[Freeswitch-users] Invalid ASR module [mod_unimrcp]
Yungwei Chen
yungwei at resolvity.com
Tue Jul 12 02:14:53 MSD 2011
It looks like the following statements builds a grammar on the fly, which means that I don't need to specify the path to the grammar file.
pizza.orderObtainer = new SpeechObtainer(asr, 1, 5000);
pizza.orderObtainer.setGrammar("pizza_order", "", "result.interpretation.input", dft_min, dft_confirm, true);
pizza.orderObtainer.setTopSound("GP-DeliveryorTakeout");
pizza.orderObtainer.setBadSound("GP-NoDeliveryorTake-out");
pizza.orderObtainer.addItemAlias("Delivery", "Delivery");
pizza.orderObtainer.addItemAlias("Takeout,Pickup", "Pickup");
From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Yungwei Chen
Sent: Monday, July 11, 2011 4:53 PM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Invalid ASR module [mod_unimrcp]
I tried the following, but I'm still getting the same error, detect_speech(unimrcp pizza_order file://usr/local/freeswitch/grammar/pizza_order.gram undefined). What am I missing here? Thanks.
pizza.orderObtainer.setGrammar("pizza_order", "file://usr/local/freeswitch/grammar/pizza_order.gram", "result.interpretation.input", dft_min, dft_confirm, true);
pizza.orderObtainer.setGrammar("pizza_order", "/usr/local/freeswitch/grammar/pizza_order.gram", "result.interpretation.input", dft_min, dft_confirm, true);
Here's the content of pizza_order.gram:
#JSGF V1.0;
/**
* JSGF Grammar for pizza_order
*/
grammar pizza_order;
public <delivery> = [ takeout | pickup | delivery ];
From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Yungwei Chen
Sent: Monday, July 11, 2011 4:32 PM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Invalid ASR module [mod_unimrcp]
I found the definition of setGrammar(....)
this.setGrammar = function (grammar_name, path, obj_path, min_score, confirm_score, halt) {
this.asr.setGrammar(this.grammar_name);
From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Yungwei Chen
Sent: Monday, July 11, 2011 4:26 PM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Invalid ASR module [mod_unimrcp]
When reviewing the log file, I also noticed the following message: EXECUTE sofia/internal/1000 at 192.168.216.98 detect_speech(unimrcp pizza_order undefined)
Now I'm wondering which folder ps_pizza.js looks for grammars. Thanks.
Here's the statement in ps_pizza.js.
pizza.orderObtainer.setGrammar("pizza_order", "", "result.interpretation.input", dft_min, dft_confirm, true);
From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Christopher Rienzo
Sent: Monday, July 11, 2011 4:15 PM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Invalid ASR module [mod_unimrcp]
"unimrcp" is the engine to use. Make sure your mrcp profile is set up correctly. The wiki has examples for various servers.
On Jul 11, 2011 5:09 PM, "Yungwei Chen" <yungwei at resolvity.com<mailto:yungwei at resolvity.com>> wrote:
Hi,
I'm testing the pizza demo shipped with freeswitch. I tested it with pocketsphinx module, and that works.
Now I'm trying to do the same with a different ASR via unimrcp.
In ps_pizza.js, I replaced pocketsphinx in the following statement in ps_pizza.js with mod_unimrcp and unimrcp respectively, none of which works.
What am I missing here? Thanks.
var asr = new SpeechDetect(session, "pocketsphinx");
_______________________________________________
Join us at ClueCon 2011, Aug 9-11, Chicago
http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org<mailto:FreeSWITCH-users at lists.freeswitch.org>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110711/3f8a763c/attachment-0001.html
More information about the FreeSWITCH-users
mailing list