Vumi的FreeSwitch EventSocket传输。
vxfreeswitch的Python项目详细描述
用于Vumi的自由开关事件套接字传输
您可以通过以下方式与Vumi开发团队联系:
- 通过email加入vumi-dev@googlegroups.com邮件列表
- 在Freenode IRC network
可以在github问题跟踪程序中提交问题。请不要用这个问题 用于一般支持查询的跟踪器。
用法
语音传输可能会收到有关如何处理出站的其他提示 位于helper_metadata的voice部分的消息。voice部分 可能包含以下键:
^{tt4}$: | The URL where the voice file to be played can be found. If this field is absent or ^{tt5}$, a text-to-speech engine will be used to generate a suitable sound from the message ^{tt6}$, otherwise this voice file will be played. This can either be a string containing the URL, or a list of strings containing URLs to sound files that should be joined to form the message. |
---|---|
^{tt7}$: | Gather response characters until the given DTMF character is encountered. Commonly either ^{tt8}$ or ^{tt9}$. If absent or ^{tt5}$, an inbound message is sent as soon as a single DTMF character arrives. |
^{tt11}$: | A boolean value that if ^{tt12}$, stops the playback of the message when a DTMF character arrives. This allows the response to the input to be played immediately, rather than waiting for the first message to finish playing before hearing the response message. Defaults to ^{tt13}$. |
^{tt14}$: | If ^{tt11}$ is ^{tt12}$, this will set the number of times a message is played if no input is received. Defaults to ^{tt17}$. |
^{tt18}$: | If ^{tt11}$ is ^{tt12}$ and ^{tt14}$ is greater than ^{tt17}$, this specifies the length of the pause (in ms) that is given before repeating the message, if no DTMF characters are received. Defaults to ^{tt23}$. |
示例:
"helper_metadata": { "voice": { "speech_url": [ "http://www.example.com/voice/ab34f611cdee.ogg", "http://www.example.com/voice/cd43f622dcef.ogg" ], "wait_for": "#", "barge_in": True, "tries": 3, "time_gap": 5000, }, }