From: Jim D. <ji...@du...> - 2010-04-15 23:37:26
|
On 04/12/2010 11:57 PM, Seann Clark wrote: > On 4/12/2010 8:07 PM, Jim Duda wrote: >> On 04/12/2010 08:21 PM, Seann Clark wrote: >> >>> my code_select.txt: >>> >>> pocketsphinx_control.pl >> I suggest you start adding some additional debug messages in >> both pocketsphinx_control.pl and PocketSphinx.pm in order to >> figure out where it is in the program flow. >> >> I'm stumped. >> >> Jim > Found a simple fix that seems to get it running. Changing the > conditional that looks for the pocketsphinx voice command: > > > if ($Vcmd_pocketsphinx and my $text = said $Vcmd_pocketsphinx) { > #my $text = $Vcmd_pocketsphinx( ); > $text =~ s/\n//g;#For some odd reason we get the odd \n stuck here. > $cmd_heard = lc $text; > $number = $cmd_num_by_text{$cmd_heard}; > print "db pocketsphinx: n=$number cmd=$cmd_heard text=$text.\n" if > $main::config_parms{debug} eq 'voice'; > } Seann, Hmm, somebody changed something. I haven't updated svn in a while. I have in my svn sandbox: if ($Vcmd_pocketsphinx) { my $text = &$Vcmd_pocketsphinx( ); $text =~ s/\n//g;#For some odd reason we get the odd \n stuck here. $cmd_heard = lc $text; $number = $cmd_num_by_text{$cmd_heard}; print "db pocketsphinx: n=$number cmd=$cmd_heard text=$text.\n" if $main::config_parms{debug} eq 'voice'; } So, your problem is now explained. I didn't catch that when I saw your snipet earlier. Jim > > > That seems to work, at least the server is running and after tuning some > of the parameters down I got PocketSphinx to run and stay running. I > will report back any other issues I see if any come up. > > regards, > Seann > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > > > > ________________________________________________________ > To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 > |