SynthAndRecog() Supporting Multiple Prompts

60 views
Skip to first unread message

Arsen Chaloyan

unread,
Sep 8, 2014, 4:03:30 PM9/8/14
to UniMRCP
Asterisk users:

I'd like to briefly introduce latest enhancements made in the application SynthAndRecog().

In addition to TTS prompts, SynthAndRecog() now supports playing of native audio files on Asterisk. That is pretty much the same what MRCPRecog() does when the option "f" is specified.

Furthermore, SynthAndRecog() now supports multiple prompts, where TTS and audio file prompts can be used in conjunction.

Here is a usage example:

SynthAndRecog(audio:hello-world^Please say a number, builtin:grammar/number, "b=1&ct=0.7&spl=en-US")

In the example above, an audio file "hello-world" is played first. Next is a TTS prompt "Please say a number".

As you can see, the prefix "audio:" is used to specify a native file prompt. By default, prompts are separated by "^". Other delimiters can be specified by a new option "od".


--
Arsen Chaloyan
Author of UniMRCP
http://www.unimrcp.org
Reply all
Reply to author
Forward
0 new messages