Disabled Twilio loudspeaker audio/video call in iOS - ios

While doing video/audio call using Twilio then by default it's place the voice over loudspeaker also the call has lot of noise.
I want to override the loudspeaker and also to minimize the noise.

Twilio developer evangelist here.
You can set the audio output for Twilio Video using the TVIAudioController. If you set the audioOutput to TVIAudioOutputVoiceChatDefault then the audio should come out of the phone speaker, not the loudspeaker.
As for noise, I'm not sure how to help you there. Do you mean the voice is distorted? Or that you are hearing background noise?

(Posted answer on behalf of the question author).
TVIAudioController *audioController = [TVIAudioController sharedController];
[audioController setAudioOutput:TVIAudioOutputVoiceChatDefault];
//[audioController setAudioOutput:TVIAudioOutputVideoChatDefault];
The sound problem is due to same place where we are testing.

Related

How to Toggle video recording in Twilio

I am trying to add a Toggle recording feature into my web application,
Using Twilio Client version 2.0 and Generating token via Java Server side code.
Toggle(just to be clear)-> Being able to pause/start recording when a call is already underway.
Question : How to implement toggle recording feature in Twilio, If that's possible?
As of now, Pause/Start video recording on a video call is not possible.
Response from Twilio support:
Thanks for reaching out to us! At this time, pausing and resuming a recording isn't possible. This is a feature we're looking to add in the future, but I don't have a specific date to share on when that will be available. I'll add your ticket to the feature request so that we can accurately set a priority for implementing it. Please let me know if you have any questions!

Is it possible to simultaneously combine Play and Say verbs

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 replace Twilio's default ringing sound with some melody?

So the idea is pretty simple: to make caller to listen some nice melody instead of default ring beeps.
I have already looked at Twilio tutorials, but the only thing i found is that it is possible with queued calls.
Does such feature available with verb and not using queues?
Twilio developer evangelist here.
If you dropped your caller into a conference you could set the wait music while you dialled another party into the call. That's not much different to using a queue though. There's no way to just set the dialling tone while the phone is ringing, so I would recommend one of these options.
Also note, the phone may ring before Twilio is able to deal with it. That is out of our control, so you may not get your music for the entire ringing period.

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.

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.

Resources