Whenever I try to play a recorded voice message from phone, it does not get played during the twilio call using verb <play> but it plays mp3 songs very well. What could be problem with the recorded voice message?
Sumit, Megan from Twilio here.
Noticed you came to a solution above, but I wanted to point out the full list of supported audio MIME types for the verb <play> and some best practices for audio recordings, which seem to suggest WAV files over other types.
Related
The use case I'd like to create is to have some background audio play over a voiceover as part of an introduction to an IVR. Is it possible to combine the and verb at the same time?
Twilio developer evangelist here.
It's not possible to <Play> and <Say> at the same time. If you're after a message playing over music then I recommend you record the message and audio into the same audio file and play it with <Play>. That way you can guarantee the quality of the audio and voice together.
Is it possible to receive streaming audio data from Twilio? I would like to be able to do this rather than simply downloading a recording after it's complete.
Twilio developer evangelist here.
It is not possible to receive streaming audio data from Twilio for a phone call. Your options are to wait for a recording, or if you are looking for voice recognition, you can try using <Gather> with input="speech".
Twilio has just announced Streams ! It's a twiml verb that will communicate the audio through websockets to your server.
Otherwise you can try a solution I had worked on prior to their announcement: twilio-client.js-recording-bot
On this Twilio page: https://support.twilio.com/hc/en-us/articles/223180588-Best-Practices-for-Audio-Recordings
It talks about uploading an audio file to twilio and allowing twilio to do the audio conversion. I have not found a way to upload the file on the website. Where is this done?
Twilio developer evangelist here.
That is a slightly misleading article and I apologise. There's no direct way to upload audio files to Twilio. However, when you use the <Play> verb in TwiML that points to the location of an audio file then technically it will get uploaded to Twilio and converted as that article describes.
When using <Play> you do need to host the original audio file somewhere online first.
Update
There is now a way to upload assets to Twilio so that they can be used with <Play>. Check out the documentation on Twilio Assets here.
We currently use twilio to send out SMS messages to our employees on the field. I see that twilio has a transcription service. We have many voicemails in-house which are wav files that needs to converted to text. I was looking at a way of uploading these voicemails into twilio and get it transcribed. Would it be possible?
Are these voicemails actually connected in any way to Twilio? It sounds like you have just some regular WAV audio files and are wondering if you can use the Twilio transcription API to convert audio files to text?
If this is the case then it looks like you might be better off using a more pure transcription-as-a-service API.
Maybe something like Speechmatics?
If these audio files are in fact from a Twilio received call then it looks like you can use the Twilio Transcription API to receive the text. Check out their API docs page: https://www.twilio.com/docs/api/rest/transcription
I am not satisfy with voice of text to speech in twilio. Currently twilio has provided men, women and Alice in voice for read text. Which is not clear sound. So i want to use my custom voice . Or is there any option to make clear sound while reading text to speech in openvbx to twilio.
Thanks in advance.
Twilio evangelist here.
Currently there is no way via the API to integrate your own custom TTS into Twilio. If what you want your callers to hear is fairly static you could create recordings of those messages and use the <Play> verb to play them to the caller.
https://www.twilio.com/docs/api/twiml/play
It might be possible for you to use your own TTS if you can have the TTS system save its output to WAV or MP3. Then you can use the <Play> verb to have Twilio play those audio files.
Hope that helps.