VoiceXML的如何指定TTS重复的值的方法
-
18-09-2019 - |
题
我有收到语音浏览器重复我的字段值作为一系列的数字,而不是一个大的多位数问题。例如,我场将收集的使用类型输入“数字”或“数字” - 在这种情况下,它是一个传递扩展。在填充部分我已经收集到的值重复了。相反听力口语为“2-3-4-5”它说成“2300四十五”分机号码2345。
如何具有值依次重复?我试图指定“说,作为”标签,但无济于事。下面是我企图本的代码:
<field name="extension" type="digits?length=4">
<prompt bargein="false">
Please dial in or say the extension of the <value expr="application.extensionValues" /> you are trying to reach.
</prompt>
<grammar type="application/x-nuance-gsl">
[ dtmf-1 dtmf-2 dtmf-3 dtmf-4 dtmf-5 dtmf-6 dtmf-7 dtmf-8 dtmf-9 dtmf-0 ]
</grammar>
<grammar type="application/x-nuance-gsl">
[ one two three four five six seven eight nine ]
</grammar>
</field>
<filled>
<prompt>
I received extension number <say-as interpret-as="vxml:number"><value expr="extension"/></say-as>. Transfering you now.
</prompt>
</filled>
修改1 强>
是的,我现在用的平台是“BeVocal咖啡馆”的发展enviornment。我指着它的IVR到URI在那里我有存储VXML脚本。
不幸的是你的建议并没有为我工作。我试图改变的解释,作为值为“电话”,并解释不理解和出错了。我试图使用它看起来更像是我想要的东西,虽然没有错误,解释日志指出,“人物”的解释,作为值为“未知”
解决方案
在说,因为标签是要走的路。尝试改变解释,作为属性电话: http://www.w3.org/TR /2005/NOTE-ssml-sayas-20050526/#S3.3
其他提示
下面是用适当的BeVocal标记你的代码。注意该标签的该实现是依赖于供应商,所以这是不的便携的。
<field name="extension" type="digits?length=4">
<prompt bargein="false">
Please dial in or say the extension of the <value expr="application.extensionValues" /> you are trying to reach.
</prompt>
<grammar type="application/x-nuance-gsl">
[ dtmf-1 dtmf-2 dtmf-3 dtmf-4 dtmf-5 dtmf-6 dtmf-7 dtmf-8 dtmf-9 dtmf-0 ]
</grammar>
<grammar type="application/x-nuance-gsl">
[ one two three four five six seven eight nine ]
</grammar>
</field>
<filled>
<prompt>
I received extension number <say-as type="number:digits"><value expr="extension"/></say-as>. Transfering you now.
</prompt>
</filled>
我也有类似的问题。但我周围有通过设置说,作为类型的缩写。这得到了IVR拼出其他后面的数字之一。请注意,这是在PlumVoice IVR。我希望这个对你有用。这是您的修改后的代码
<field name="extension" type="digits?length=4">
<prompt bargein="false">
Please dial in or say the extension of the <value expr="application.extensionValues" /> you are trying to reach.
</prompt>
<grammar type="application/x-nuance-gsl">
[ dtmf-1 dtmf-2 dtmf-3 dtmf-4 dtmf-5 dtmf-6 dtmf-7 dtmf-8 dtmf-9 dtmf-0 ]
</grammar>
<grammar type="application/x-nuance-gsl">
[ one two three four five six seven eight nine ]
</grammar>
</field>
<filled>
<prompt>
I received extension number <say-as type="acronym"><value expr="extension"/></say-as>. Transfering you now.
</prompt>
</filled>
不隶属于 StackOverflow