DtmfInput |
<?xml version="1.0" encoding="UTF-8"?>
What is your favorite color?
Choose 1 for yellow.
Choose 2 for green.
Choose 3 for light green.
Choose 4 for dark blue.
[
[1] { }
[2] { }
[3] { }
[4] { }
]
]]>
Did you say something? I didn't hear you .
I'm sorry, no match.
You said yellow.
You said green.
You said light green.
You said dark blue.
MixInput |
<?xml version="1.0" encoding="UTF-8"?>
What is your favorite color?
For yellow choose 1 or say yellow.
For green choose 2 or say green.
For light green choose 3 or say light green.
For dark blue choose 4 or say dark,blue or dark blue.
[
[dtmf-1 yellow] { }
[dtmf-2 green] { }
[dtmf-3 (light green)] { }
[dtmf-4 dark blue] { }
]
]]>
Did you say something? I didn't hear you .
I'm sorry, no match.
You said yellow.
You said green.
You said light green.
You said dark blue.
VoiceInput1 |
<?xml version="1.0" encoding="UTF-8"?>
<!-- 语音内容匹配 -->
What is your favorite color?
[yellow green (light green) dark blue]
Did you say something? I didn't hear you .
I'm sorry, no match.
You said yellow.
You said green.
You said light green.
You said dark blue.
No match but
VoiceInput2 |
<?xml version="1.0" encoding="UTF-8"?>
<!-- 语音匹配后赋值 -->
What is your favorite color?
[
[yellow] { }
[green] { }
[(light green)] { }
[dark blue] { }
]
]]>
Did you say something? I didn't hear you .
I'm sorry, no match.
You said yellow.
You said green.
You said light green.
You said dark blue.
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/12476590/viewspace-256891/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/12476590/viewspace-256891/