Twilio how to detect hold music from participant - twilio

I wrote a python app that create conference call, when adding a company to the call there is an hold music from the company.
I want to detect when someone from the company picks up the phone.
so I thought detecting when the hold music stops or something?
Is there any methods in twilio documents that can help me?
Thank you !
Tried to find in Twilio's documentation and googled about it, found nothing.

Have you tried to used the Answering Machine Detection and check whether the AnsweredBy property is human?

Related

Steps to implement - One to One Video call App using Twilio

Can Anyone please let me know how we can do a one to one video calling app using twilio.
I could get some sample codes to do a group video chat, but my requirement is particular to have it one to one, please guide if there is any way to do it using twilio.
To build a one to one video calling app, you can follow the same steps to build a multiparty group chat, but limit the access to the room to only 2 participants.
You can easily build a video calling app with the help of Twilio WebRTC Go, and WebRTC Go rooms have default max participants set at 2.
To know more about how to set "max participants" with Twilio WebRTC you can visit the link here.
To understand more about different type of Video rooms using Twilio, you can also visit this doc.
You can set the room limit to 2, when making the multi-party video app using Video Room. Second option is to use WebRTC as mention above, here is the guide of making such app using NodeJS by twilio.

What is the best way to measure bandwidth/connection quality in Twilio?

We are using Twilio video in iOS and Android (through a react-native extension). We would like to warn users about lousy connections if they are making a call. Is there something buried in Twilio's SDKs to do this? Or do people have suggestions for a great library to measure connection quality? (for instance: https://www.npmjs.com/package/network-js)
Twilio developer evangelist here.
In WebRTC implementations there is normally a way to get the connection statistics. In iOS using Twilio Video, you need to call the getStatsWithBlock method on the room. In Android you want the getStats method on the room. I don't know how you've made your react-native wrapper, but those are the bits you are looking for.
Once you've got the stats, you can start looking for the track stats, which will give you information about the frames per second, frames received, frames dropped, etc. This means you can judge the quality of the call not on the network, but on the data being sent and received.
Sorry I can't be more specific, hopefully this gets you started.

Video recording with Twilio

Is it possible to record only one person in video call with Twilio?
I don't see any examples in their documentation about video recording for one person.
Yes you absolutely can, just make the 2 people join the same room.
You can give it a try with Twilio's sample app here: Twilio Video Sample App
Just make sure the 2 devices running this app connects to the same room.

Twilo Message Broadcast

Hi all dose anybody have any simple basic workings to send a prerecorded message to a phone like a broadcast using Twiillo
Make a call to a phone number
User picks up
Twilo plays a message
the users select a option Yes or No
Hangs up
also how can we determine if its a voice mail box if the user dose not pick up and goes into if a voice mail
I am using PHP and have fair idea on what to call
The best way to avoid playing messages to answering machines is to have a simple human-detector ('press 1 to hear the message').
https://www.twilio.com/help/faq/voice/can-twilio-tell-whether-a-call-was-answered-by-a-human-or-machine
The workflow sounds very doable by Twilio. I'm not a php programmer, but Twilio has a lot of documentation with examples in php. I'd check out the following if I were you:
to make a call
https://www.twilio.com/docs/api/rest/making-calls
you're going to probably want to start a gather before playing the message as some people will reply before the message finishes
https://www.twilio.com/docs/api/twiml/gather
and here's how to play
https://www.twilio.com/docs/api/twiml/play
alternatively if you want to use the TTS you can use the say tag instead
https://www.twilio.com/docs/api/twiml/say

Twilio - Play an audio file to the person call is transferred to before connecting

The answer to this my be out there, but I'm having trouble locating it do to I don't know what the feature would be called.
I have a phone system setup where people call in with an option to press zero to be transferred to a live person. The person it goes to also receives calls from other places and I would like to notify them with an audio file and possibly a action with a little more info about the call before it's connected.
Example of what I would like to happen:
A call is placed to our system and they press zero, they hear on-hold music while a action is started.The phone rings in our office and the receptionist picks it up. After answering they hear something like 'incoming call from some company, connecting now', and then the call connects to the other person.
I have everything working in the system right now minus the piece of audio the receptionist would hear before the call is connected.
Is there a feature like this built into Twilio?
Twilio evangelist here.
What you're describing is called a 'whisper' and its pretty easy to set up with Twilio. I'd start by reading through the Call Screening and Recording How to which includes an example of a whisper.
Specifically, check out examples 4 and 5 which shows how to include the url attribute on the <Number> noun. The url you provide there will be requested when the second call is answered and allows you to return TwiML that Twilio will execute to that call before we bridge the two calls together.
Hope that helps.

Resources