Want to use Whisper in Twilio Studio

五迷三道 提交于 2019-12-22 12:58:36

问题


I want to use the Whisper in Twilio Studio, is this possible??

Now I using only Twilio Studio and TwiML Bin

my goal is...

  1. User calls to my Twilio number
  2. Connect call to the support team phone.
  3. After starting the calls between the User(client) & the support team, I want to [Say] a message to the support team then start the calls.

How can I do this??


回答1:


Twilio developer evangelist here.

Currently you cannot do a whisper with Studio. You could achieve this flow with just TwiML Bins though.

You would need two bins. One to read the message that you want in the whisper and the other two forward the call and point to the whisper.

So, the whisper bin would include TwiML using either <Say> or <Play> for the message, like this:

<Response>
  <Say voice="alice">You are getting a call on the support line, the next voice you will hear is the customer.</Say>
</Response>

Then, the bin that responds to the incoming call needs to use <Dial> with a <Number>. The <Number> url attribute should point at the TwiML above for the whisper. Like:

<Response>
  <Dial>
    <Number url="TWIML_BIN_URL">+123456789</Number>
  </Dial>
</Response>


来源:https://stackoverflow.com/questions/51229525/want-to-use-whisper-in-twilio-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!