AppBazaar
...
Connect Applet
Dynamic Audio Message
3 min
many a time you may want to play out a dynamic audio file to the caller based on who's calling when they are calling, or based on their ivr inputs in order to do that you need to do the following in the audio picker, you need to choose the 'type text' option enter your application url which will, in turn, return a url of the audio file the audio file must be in the wav, mp3, 8khz mono format the bit depth must be 16 bits all other formats are not supported (eg 16kz mono/stereo etc) example in the 'type text' option of the audio picker, we have configured a url when exotel makes an http get to this url http //example com/exotel/dynamicaudio php the http response should contain this header content type text/plain http body must have the wav file url one in each line http //example com/first audio wav http //example com/second audio wav exotel will then download and play the audio files one after the other to the person on the call caching of the audio files exotel caches the audio files that it downloads and plays so that the next time you send the same file, we don't need to download and it will be faster exotel caches the file based on the name of the url so if case you are changing first audio wav, you will need to send in another name the next time ( ex http //example com/first audio new\ wav ) conversion of audio files from any format to the required format if you're on linux, you can use ffmpeg to convert any audio file to the file format accepted by exotel using the below command ffmpeg loglevel quiet y i /path/to/audiofile ar 8000 ac 1 /path/to/target wav explain shell has a good explanation of what these options to ffmpeg mean http //explainshell com/explain?cmd=ffmpeg+ loglevel+quiet+ y+ i+%2fpath%2fto%2faudiofile+ ar+8000+ ac+1+%2fpath%2fto%2ftarget wav
🤔
Have a question?
Our knowledgeable support team and an awesome community will get you an answer in a flash.
To ask a question or participate in discussions, you'll need to authenticate first.