[Freeswitch-users] mod_pocketsphinx

Brian West brian at freeswitch.org
Mon Jul 14 06:49:46 PDT 2008


I have reported this bug to david.  Its related to getting the  
confidence scores it seems.

/b

On Jul 13, 2008, at 9:27 PM, Frederick Jabre wrote:

> Chris,
>
>   I've been doing some testing of mod_pocketsphinx as well. I have  
> tested it on my AMD Dual Core 64-bit 4200+ and a Pentium 4 HT. Both  
> with 1 gig of memory. I'm getting 100% CPU utilization on both  
> during the recognition of a word or utterance. It pretty much brings  
> everything to a halt until it's done and returns the result. This  
> obviously causes the pizza demo to be fairly slow in its responses  
> to voice input.
>
>   I haven't been able to do much testing with lumenvox on freeswitch  
> but using lumenvox on an Asterisk box the standard CPU utilization  
> on my Pentium 4 hovers around 5%-15% during a recognition using a  
> much larger grammar file than the ones used for the pizza demo.
>
>   I'm sure, as its name suggest, that pocketsphinx can do better  
> than that. Not sure how low level this is but it definitely seems to  
> be happening in the sphinx code base.
>
>   Any ideas..?
>
> Fred
>
> On Sat, Jul 12, 2008 at 2:34 PM, Chris Danielson <chris at maxpowersoft.com 
> > wrote:
> Was working with mod_pocketsphinx and found it difficult to  
> troubleshoot the failed loading of the dictionary files.  Tried to  
> open a JIRA to apply the patch on this but it told me the following:
> Issue Created Successfully
>
> You have successfully created the issue (MODASRTTS-6), however you  
> do not have the permission to view the created issue.
> If you think this message is wrong, please consult your  
> administrators about getting the necessary permissions.
>
> Anyways, here is the patch.
>
>
> Index: mod_pocketsphinx.c
> ===================================================================
> --- mod_pocketsphinx.c  (revision 9003)
> +++ mod_pocketsphinx.c  (working copy)
> @@ -125,12 +125,12 @@
>         model = switch_mprintf("%s%smodel%s%s",  
> SWITCH_GLOBAL_dirs.grammar_dir, SWITCH_PATH_SEPARATOR,  
> SWITCH_PATH_SEPARATOR, globals.model);
>
>         if (switch_file_exists(dic, ah->memory_pool) !=  
> SWITCH_STATUS_SUCCESS) {
> -               switch_log_printf(SWITCH_CHANNEL_LOG,  
> SWITCH_LOG_ERROR, "Can't open dictionary.\n");
> +               switch_log_printf(SWITCH_CHANNEL_LOG,  
> SWITCH_LOG_ERROR, "Can't open dictionary. %s\n", dic);
>                 goto end;
>         }
>
>         if (switch_file_exists(lm, ah->memory_pool) !=  
> SWITCH_STATUS_SUCCESS) {
> -               switch_log_printf(SWITCH_CHANNEL_LOG,  
> SWITCH_LOG_WARNING, "Can't open language model.\n");
> +               switch_log_printf(SWITCH_CHANNEL_LOG,  
> SWITCH_LOG_WARNING, "Can't open language model. %s\n", lm);
>                 goto end;
>         }
>
>
> Chris Danielson
> Software Consultant and Co-Founder
> Web: MaxPowerSoft, LLC
>
>
> Index: mod_pocketsphinx.c
> ===================================================================
> --- mod_pocketsphinx.c  (revision 9003)
> +++ mod_pocketsphinx.c  (working copy)
> @@ -125,12 +125,12 @@
>        model = switch_mprintf("%s%smodel%s%s",  
> SWITCH_GLOBAL_dirs.grammar_dir, SWITCH_PATH_SEPARATOR,  
> SWITCH_PATH_SEPARATOR, globals.model);
>
>        if (switch_file_exists(dic, ah->memory_pool) !=  
> SWITCH_STATUS_SUCCESS) {
> -               switch_log_printf(SWITCH_CHANNEL_LOG,  
> SWITCH_LOG_ERROR, "Can't open dictionary.\n");
> +               switch_log_printf(SWITCH_CHANNEL_LOG,  
> SWITCH_LOG_ERROR, "Can't open dictionary. %s\n", dic);
>                goto end;
>        }
>
>        if (switch_file_exists(lm, ah->memory_pool) !=  
> SWITCH_STATUS_SUCCESS) {
> -               switch_log_printf(SWITCH_CHANNEL_LOG,  
> SWITCH_LOG_WARNING, "Can't open language model.\n");
> +               switch_log_printf(SWITCH_CHANNEL_LOG,  
> SWITCH_LOG_WARNING, "Can't open language model. %s\n", lm);
>                goto end;
>        }
>
>
> _______________________________________________
> Freeswitch-users mailing list
> 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
>
>
> _______________________________________________
> Freeswitch-users mailing list
> 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

Brian West
sip:brian at freeswitch.org



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080714/0f82cabf/attachment-0002.html 


More information about the FreeSWITCH-users mailing list