twilio API: how can I play an audio file to both sides of a voice call and not disconnect the call?

StackOverflow https://stackoverflow.com/questions/19489715

  •  01-07-2022
  •  | 
  •  

Pregunta

Twilio API: how can I play an audio file to both sides of a voice call and not disconnect the call?

I have a working iOs client which makes a call to a destination number. but I would like to play an audio file so that both callers and callee hear the audio file playing, and then resume the conversation. I doesn't matter if the parties can hear each other while the audio file is playing.

I have read Playing music in a call with Twilio and How to say/play something to everyone in a call in Twilio

¿Fue útil?

Solución

Twilio evangelist here.

Using <Conference> could be a good solution for you in this scenario. What you would do is dial both of your callers into a conference. Then you have Twilio dial a third call into that conference and have that call <Play> the audio into conference.

Hope that helps.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top