Is it possible to receive streaming audio data from Twilio? - twilio

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

Related

Can we connect dial into Twilio Programmable Video Group Rooms?

It seems Twilio Programmable Video API is based on WebRTC. This will allow us to setup audio/video conference from browser/app to browser/app.
However, is there any way to connect Programmable Voice incoming audio calls to the Video rooms? Also is there any way to make outgoing Voice calls from the Rooms?
This will allow a participant to just dial-in even if his internet is not working.
Twilio developer evangelist here.
It is not currently possible, using the Video SDK, to dial into a Video Group Room from an audio call over the phone network. If that changes I will update this answer.

Video Twilio - Setting up a Ringtone for videocalls

We're using Twilio Programmable Video and we'd like to set up:
- A ringtone while a participant is waiting in the room.
- A "ringing" to notify the other side that a participant is waiting in the room.
All in all, a performance like a voice call.
We have checked API Reference, AudioTrack and Media section, without success. (https://media.twiliocdn.com/sdk/js/video/releases/1.0.0-beta4/docs/)
Any idea to configure this performance?
Regards,
Carlos
Twilio developer evangelist here.
There is no functionality in the Twilio API for providing a ring tone, however you could implement it yourself.
You would need to send an invite to the participant that hasn't entered the room yet. You could do that with a server sent event or websocket. Then you would play the ringtone (using an <audio> element or the web audio API) until the user entered the room themself, at which point you would stop playback of the ringtone.
Let me know if that helps at all.

twilio doesn't play recorded voice message on server

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.

Can Twilio make webrtc video calls?

Can Twilio do peer to peer video calls using WebRTC? I can see it does voice calls with WebRTC, but since WebRTC also includes video it seems like this should be possible. If not is this on the road map?
Now you can.
Twilio just added video calling support to their service today. Here's an analysis on what you can expect and what it means: https://bloggeek.me/twilio-webrtc-video/
Twilio had introduced peer-to-peer video call at cheap rates.
You can refer these links for more information:
Twilio video and Twilio video call example
Unfortunately this is not something you can currently do with Twilio.
Update
Twilio announced their video product in May 2015. At time of writing it is not yet available. Further information can be found on Twilio Video. Thanks to nbermudezs in the comments below.

Change voice of text to speech openvbx/twilio

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.

Resources