Hey all,
I am attempting to use Make to automate the process of generating a text-to-speech (TTS) audio file using Google TTS and then uploading that audio file to Aircall via their API. The audio file is generated in binary format. However, I am encountering difficulties in correctly formatting and uploading this binary data as an MP3 file to Aircall (it keeps on returning a 404 error)
Here are some screenshots of the modules used:
Hello!! Welcome to the Make community!
404 means the endpoint is not found. From your screenshot we can see that you have set the full URL (https://api.aircall.io/v1/files/upload), but it should be a relative url. You should write /v1/files/upload instead.
Besides, you don’t need to add the Authorization (item2) you can remove it. The Module will leverage the connection you have already configured.
Benjamin
1 Like
Hey Benjamin,
I did the alterations, but I think it’s still not working. Can you try to look into it?
[
{
“url”: “v1/files/upload”,
“body”: “"file": {\n "value": "IMTBuffer(94848, binary, 71b961a7bb8e876c7e1d41deac5301206827334f): fff344c4001138423c00c246250c9aec46f2101b909a818e9863502818b3801e3fec8fc0000003c3fff33e387878000000001879ffff9878786000000000787bffffffccffffffef80000000230f0f0f1e00307850c1c0831fb7ce6ef1362adcfff344c4",\n "filename": "2024-06-21 17:57:20.mp3",\n "content_type": "audio/mpeg" \n }”,
“method”: “POST”,
“headers”: [
{
“key”: “Content-Type”,
“value”: “multipart/form-data”
}
]
}
]
Hi! You didn’t completely do as I told you
It’s /v1 (with the slash)
Benjamin
1 Like
I did it because in the example it says it’s relative to https://api.aircall.io/
Enter a path relative to https://api.aircall.io/
For example: v1/users
I tried again, but without success. Thanks for trying to help, really appreciate it!
Oh, it’s you that were right, sorry
I don’t see any files/upload endpoint in the Aircall API documentation. Can you please point me to it? Maybe the url is different than the one you want to call?
1 Like
Outch, I actually just found this:
Is there any suggestion regarding how i can deliver a TTS audio message over the phone?
The idea would be to use their API to “deliver message” which is something i think they have, and the message type being an mp3.
I really don’t know… According to their API documentation, there’s no way to call someone and attach the mp3 you get. But maybe there is a way I’m not aware of, as I never used Aircall before.
1 Like