0

我尝试在语音呼叫中重复一条消息作为python代码here这是在此处指导但不起作用,即根本没有暂停任何数字:长度<Pause length="3">

call = client.calls.create(
    twiml = f'''
    <Response>
        <Gather>
            <Say loop="{loop}">{message}</Say>
            <Pause length="3"></Pause>
        </Gather>
        <Redirect>/gather.xml</Redirect>
    </Response>
    ''',
    to    = to,
    from_ = from_,
)
4

1 回答 1

1

看看 SSML Pause

添加暂停

SSML 中断标记

我尝试了以下方法,并且成功了。不要忘记您的<Gather> 操作网址

<Response>
    <Gather>
        <Say loop="3">This is a message with a pause between loops<break time="3s"/></Say>
    </Gather>
    <Redirect>/gather.xml</Redirect>
</Response>
于 2020-09-19T14:38:50.233 回答