UNIMRCP on FREESWITCH (How do I execute in javascript?)

467 views
Skip to first unread message

Shea

unread,
Aug 28, 2013, 8:27:32 AM8/28/13
to uni...@googlegroups.com
Hello group,

My apologies for what is likely a novice question, but how to I route to unimrcp from a javascript dialplan?

1. I have MOD_UNIMRCP installed correctly.

2. I have UNIMRCP configired (correctly?)

3. Now i would like to route the call along with the grammar to my ASR Server via UNIMRCP from my javascrip dialplan... HOW ?? :|

What javascript function do I use??

session.execute("detect_speech","unimrcp "+grammar);

??? is that supposed to do it ?? or is there another way ??

Thank you for any thoughts / guidance,

Shea

Arsen Chaloyan

unread,
Sep 24, 2013, 8:47:23 PM9/24/13
to UniMRCP
Hello Shea,

I think you were on the right track by considering to use
detect_speech <mod_name> <gram_name> <gram_path> [<addr>].

Another alternative would be to use SpeechTool.jm module. The following link http://wiki.freeswitch.org/wiki/Mod_unimrcp#JavaScript_2 shows how to create a SpeechDetect object. You may check pizza.js for further reference.





--
You received this message because you are subscribed to the Google Groups "UniMRCP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unimrcp+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Arsen Chaloyan
Author of UniMRCP
http://www.unimrcp.org

Christopher Rienzo

unread,
Sep 24, 2013, 8:55:09 PM9/24/13
to uni...@googlegroups.com
there is also play_and_detect_speech which will play a message while simultaneously doing speech detection with barge-in.

Chris

Reply all
Reply to author
Forward
0 new messages