I have just written my Twilio app to make an outbound voice call to my phone number in Indonesia.
When I answer the voice call, there is roughly 3-5 seconds of delay before the first audio plays, be it using <Say>
or using <Play>
verbs.
Do you guys know why this is the case and whether there is a current workaround to reduce this long delay to a mere 1-2 seconds? Recipients will most likely hang up the phone if there is no sound at all on the other end for too long.
Thanks in advance on any insight
The most common reason for delayed audio is jitter. Jitter indicates a connection issue occurred on the call. Jitter affects your call's packets of audio data transmitted to-and-from. This can result in packet loss, which can cause latency issues.
Possible causes of message delaysTwilio queuing or latency. SuperNetwork or destination mobile network delays. Destination mobile device issues.
Make an outbound call For any Function using the built-in Twilio Client, the "Add my Twilio Credentials (ACCOUNT_SID) and (AUTH_TOKEN) to ENV" option on the Settings > Environment Variables tab must be enabled. You can use a Function to make a call from your Twilio phone number via Programmable Voice.
I had this same problem - my outbound call to between 7 and 9 seconds to start playing the voicefile.
The process inside twilio ( from the delays measured when you look at each call with the http response time) accounted for about 3-4 seconds.
I also had AMD (Answering Machine Detection) on ie IfMachine=Continue.
(see documentation here 1. https://www.twilio.com/help/faq/voice/can-twilio-tell-whether-a-call-was-answered-by-a-human-or-machine 2. https://www.twilio.com/docs/api/rest/answering-machine-detection)
I removed this option from the call and the call start time reduced by 3 seconds down to about 5 seconds on average.
I think this is due to the AMD feature listening to the first few seconds of the call to determine if it was in fact answered by a human or a machine.
So, turn off AMD.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With