Vumi的FreeSwitch EventSocket传输。

vxfreeswitch的Python项目详细描述


用于Vumi的自由开关事件套接字传输

vfs-civfs-cover

您可以通过以下方式与Vumi开发团队联系:

可以在github问题跟踪程序中提交问题。请不要用这个问题 用于一般支持查询的跟踪器。

用法

语音传输可能会收到有关如何处理出站的其他提示 位于helper_metadatavoice部分的消息。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,
    },
}

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java Android首选项相同getPreference()值的不同数据   字符串如何在Java中连接两个列表中的单词   安卓 Java Socket编程:检测客户端和服务器是否连接   使用JTextField的java无法将值转换为int   在java中,如何在不通过超级构造函数设置的情况下将消息设置为自定义异常类   用于标识属性值的java正则表达式模式   Android中的java不可见谷歌地图   java正确取消启动ExecutorService的JavaFX任务   在非活动java类中使用安卓的融合位置提供程序,并在主活动类中获取经度和纬度   spring为什么我的大摇大摆不能用springboot在java中工作?   java JSF(2.2)ViewScope在Weblogic 12.2.1.2和JDK 8上使用Spring 4.3.7(在Mac OS和Docker Oracle Linux环境上)   java如何用一个按钮提高计时器速度   java如何检查字符是否是元音?   注册表引用了不存在的Java运行时环境安装或运行时已损坏错误   来自ResultSet java的mysql getDateTime   maven LanguageTool Java API是否具有“无用”依赖关系?   twitter api身份验证的java Trycatch问题   java在Apache Struts 1.1中是否可以显式白名单?   安卓致命异常:主java。lang.RuntimeException:被问及未知片段