Twilio bargeIn参数能否打断TTS?<Say>后<Gather>配置疑问
Twilio bargeIn 参数使用说明
核心结论
bargeIn="true"仅能打断**组件内部**的TTS播报,无法打断独立的 组件的语音输出。你当前的配置场景确实不被支持。
原因解释
Twilio的bargeIn参数是专门为say属性)时,开启bargeIn才能让呼叫者打断这段播报并触发语音采集。独立的
正确配置示例
如果需要允许用户打断播报并立即采集语音,必须把播报内容放到
<?xml version="1.0" encoding="utf-8"?> <Response> <Gather input="speech" action="https://myserver/api/v1/webhooks/twilio" timeout="3" speechTimeout="auto" language="en-US" bargeIn="true" speechModel="phone_call" enhanced="true"> <Say voice="Polly.Matthew-Neural" language="en-US">This is a whole lot of instructions to give the person on the other end of the call. etc...</Say> </Gather> </Response>
这样配置后,呼叫者在action地址。
内容的提问来源于stack exchange,提问作者Bron Davies
相关产品推荐
相关产品推荐

