Skip to content
Sending TTS mp3 fil...
 
Notifications
Clear all

Sending TTS mp3 files to Aircall

8 Posts
2 Users
0 Reactions
3 Views
Grupo_APCAR
(@grupo_apcar)
Posts: 4
Active Member
Topic starter
 

Hello everyone,

I'm trying to use callin.io to automate the creation of a text-to-speech (TTS) audio file using Google TTS, and then upload this audio file to Aircall via their API. The audio file is generated in binary format. However, I'm facing challenges in correctly formatting and uploading this binary data as an MP3 file to Aircall, as it consistently returns a 404 error.

Here are some screenshots of the modules I'm using:

Could you please offer some guidance?

 
Posted : 23/06/2024 9:01 am
Benjamin_from_Make
(@benjamin_from_make)
Posts: 35
Eminent Member
 

Hello!! Welcome to the callin.io 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

 
Posted : 23/06/2024 9:21 am
Grupo_APCAR
(@grupo_apcar)
Posts: 4
Active Member
Topic starter
 

Hello Benjamin,

I've made the necessary adjustments, but it appears the issue persists. Could you please take another look?

json
[
{
"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"
}
]
}
]

 
Posted : 23/06/2024 9:33 am
Benjamin_from_Make
(@benjamin_from_make)
Posts: 35
Eminent Member
 

Hi! You didn't quite follow my instructions.

:wink:

It should be /v1 (including the slash).

Benjamin

 
Posted : 23/06/2024 9:39 am
Grupo_APCAR
(@grupo_apcar)
Posts: 4
Active Member
Topic starter
 

I did this because the example indicates it's relative to https://api.aircall.io/ .

Enter a path relative to https://api.aircall.io/ . For instance: v1/users.

I tried again, but without success. Thanks for your assistance, I really appreciate it!

Screenshot 2024-06-23 at 10.42.56

 
Posted : 23/06/2024 9:43 am
Benjamin_from_Make
(@benjamin_from_make)
Posts: 35
Eminent Member
 

My apologies, you were correct.

:blush:

I cannot locate a files/upload endpoint within the Aircall API documentation. Could you direct me to it? Perhaps the URL differs from the one you intend to use.

 
Posted : 23/06/2024 9:56 am
Grupo_APCAR
(@grupo_apcar)
Posts: 4
Active Member
Topic starter
 

Ouch, I just discovered this:

Do you have any recommendations on how I can transmit a TTS audio message over the phone?

The goal would be to utilize their API to "deliver message," which I believe is a feature they offer, with the message type being an mp3.

 
Posted : 23/06/2024 10:04 am
Benjamin_from_Make
(@benjamin_from_make)
Posts: 35
Eminent Member
 

I'm not entirely sure. Based on their API documentation, it doesn't seem possible to initiate a call and attach the resulting MP3. However, there might be an undocumented method I'm unaware of, as I haven't used Aircall previously.

 
Posted : 23/06/2024 10:30 am
Share: