thanks Jim for your reply and your help! I am running sphinxbase 0.8 and pocketsphinx 0.8 and same version perl as you. when I run the command from the terminal that you mentioned I get "Could not create socket: Connection refused". Runs fine if I only run pocketsphinx_continuous. I don't have any firewall or antivirus/security software running and I am running Ubuntu 12.04 LTS. Thanks
> To: misterhouse-users@...
> From: jim@...
> Date: Fri, 4 Jan 2013 22:54:41 -0500
> Subject: Re: [mh] pocketsphinx problem
>
> On 01/04/2013 04:24 PM, Patrick Fain wrote:
> > I have a problem I just can't seem to figure out. Probably something stupid on my part. If I run pocketsphinx_continuous outside of MH, it works correctly as shown:
> >
>
> Another person has reported a similar problem.
>
> I don't know what could be wrong. But let's try and get to the bottom of this.
>
> When I run standalone, like this (from my mh/bin directory):
> /usr/bin/perl ./pocketsphinx -host linux -port 3235 -log_file /home/misterhouse/data/pocketsphinx/pocketsphinx -sent_file /home/misterhouse/data/pocketsphinx/current.sent -lm_file /home/misterhouse/data/pocketsphinx/current.lm.DMP -hmm_file /usr/local/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k -program /usr/local/bin/pocketsphinx_continuous -device default -sample 16000
>
> I get:
>
> sphinx:: msg: READY....
> sphinx:: msg: Listening...
> sphinx:: msg: Stopped listening, please wait...
> sphinx:: msg: 000000000: computer
> sphinx:: msg: READY....
>
> All the "work" is done in the mh/bin/pocketsphinx perl script:
>
> $listener_pid = open(LISTENER, $sphinx_command . "|");
> print LOGFILE "sphinx:: child: $listener_pid\n";
>
> while(my $msg = <LISTENER>){
> chomp $msg;
> print LOGFILE "sphinx:: msg: $msg\n";
> if ( $msg =~ /^\d+\: (.*)$/ ) {
> $msg = $1;
> print LOGFILE "sphinx:: found: $msg\n";
>
> The message coming back from pocketsphinx should be:
> 000000000: <command>
>
> Some number of digits followed by : followed by the spoken phrase.
>
> In your case, the digits are coming through, but not the spoken phrase.
>
> The regexp for fetching the spoken phrase after <digits>: isn't working properly either.
> I cannot explain this:
> > sphinx:: found: 000000000:
>
> Are you good with perl?
> Can you try adding some more debugging in mh/bin/pocketsphinx?
>
> The code within pocketsphinx, which prints the spoken phrase
> can be found in continuous.c
>
> printf("Stopped listening, please wait...\n");
> fflush(stdout);
> /* Finish decoding, obtain and print result */
> ps_end_utt(ps);
> hyp = ps_get_hyp(ps, NULL, &uttid);
> printf("%s: %s\n", uttid, hyp);
> fflush(stdout);his is perl 5, version 14, subversion 2 (v5.14.2) built for x86_64-linux-gnu-thread-multi
>
> The uttid is the digits and hyp is the spoken word.
>
> It's almost as if the spoken work (hyp) and it's C/R
> are getting filtering when passed to perl?
>
> I'd love to fix it. I don't know what to fix yet.
>
> I'm running sphinxbase_0.7 and pocketsphinx_0.7.
>
> I'm running perl version:
> This is perl 5, version 14, subversion 2 (v5.14.2) built for x86_64-linux-gnu-thread-multi
>
> Regards,
>
> Jim
>
> > INFO: ps_lattice.c(1365): Normalizer P(O) = alpha(testing:24:68) = -485358
> > INFO: ps_lattice.c(1403): Joint P(O,S) = -485358 P(S|O) = 0
> > INFO: ngram_search.c(888): bestpath 0.00 CPU 0.000 xRT
> > INFO: ngram_search.c(891): bestpath 0.00 wall 0.000 xRT
> > 000000005: testing
> > READY....
> > Listening...
> > Recording is stopped, start recording with ad_start_rec
> > Stopped listening, please wait...
> > INFO: cmn_prior.c(121): cmn_prior_update: from < 46.46 0.99 1.15 0.38 -0.58 0.35 0.02 0.02 0.12 0.39 0.02 -0.32 0.22 >
> > INFO: cmn_prior.c(139): cmn_prior_update: to < 46.58 0.97 1.15 0.57 -0.63 0.26 0.01 -0.01 0.14 0.41 0.07 -0.30 0.15 >
> > INFO: ngram_search_fwdtree.c(1549): 1231 words recognized (16/fr)
> > INFO: ngram_search_fwdtree.c(1551): 172841 senones evaluated (2305/fr)
> > INFO: ngram_search_fwdtree.c(1553): 221456 channels searched (2952/fr), 24883 1st, 40530 last
> > INFO: ngram_search_fwdtree.c(1557): 2742 words for which last channels evaluated (36/fr)
> > INFO: ngram_search_fwdtree.c(1560): 15403 candidate words for entering last phone (205/fr)
> > INFO: ngram_search_fwdtree.c(1562): fwdtree 0.07 CPU 0.091 xRT
> > INFO: ngram_search_fwdtree.c(1565): fwdtree 1.54 wall 2.047 xRT
> > INFO: ngram_search_fwdflat.c(302): Utterance vocabulary contains 63 words
> > INFO: ngram_search_fwdflat.c(937): 584 words recognized (8/fr)
> > INFO: ngram_search_fwdflat.c(939): 49825 senones evaluated (664/fr)
> > INFO: ngram_search_fwdflat.c(941): 60744 channels searched (809/fr)
> > INFO: ngram_search_fwdflat.c(943): 3210 words searched (42/fr)
> > INFO: ngram_search_fwdflat.c(945): 2894 word transitions (38/fr)
> > INFO: ngram_search_fwdflat.c(948): fwdflat 0.01 CPU 0.016 xRT
> > INFO: ngram_search_fwdflat.c(951): fwdflat 0.01 wall 0.016 xRT
> > INFO: ngram_search.c(1214): </s> not found in last frame, using <sil>.73 instead
> > INFO: ngram_search.c(1266): lattice start node <s>.0 end node <sil>.69
> > INFO: ngram_search.c(1294): Eliminated 0 nodes before end node
> > INFO: ngram_search.c(1399): Lattice has 101 nodes, 14 links
> > INFO: ps_lattice.c(1365): Normalizer P(O) = alpha(<sil>:69:73) = -514498
> > INFO: ps_lattice.c(1403): Joint P(O,S) = -517079 P(S|O) = -2581
> > INFO: ngram_search.c(888): bestpath 0.00 CPU 0.000 xRT
> > INFO: ngram_search.c(891): bestpath 0.00 wall 0.000 xRT
> > 000000006: computer
> >
> >
> > BUT, this is what I get running through MH (notice there it knows I have spoken but no text is shown)
> >
> >
> >
> > localhost: localhost
> > localport: 3235
> > sent: /home/patrick/MisterHouse/data/pocketsphinx/current.sent
> > lm: /home/patrick/MisterHouse/data/pocketsphinx/current.lm
> > dict: /home/patrick/MisterHouse/data/pocketsphinx/current.dic
> > hmm: /usr/local/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k
> > program: /usr/local/bin/pocketsphinx_continuous
> > device: default
> > rate: 16000
> > starting listener ...
> > sphinx_command: /usr/local/bin/pocketsphinx_continuous -adcdev default -live yes -bestpath yes -cmn none -agc emax -lm /home/patrick/MisterHouse/data/pocketsphinx/current.lm -dict /home/patrick/MisterHouse/data/pocketsphinx/current.dic -hmm /usr/local/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k -samprate 16000
> > sphinx:: child: 15129
> > sphinx:: msg: READY....
> > sphinx:: msg: Listening...
> > sphinx:: msg: Stopped listening, please wait...
> > sphinx:: msg: 000000000:
> > sphinx:: found: 000000000:
> > sphinx:: msg: READY....
> > sphinx:: msg: Listening...
> > sphinx:: msg: Stopped listening, please wait...
> > sphinx:: msg: 000000001:
> > sphinx:: found: 000000001:
> > sphinx:: msg: READY....
> >
> >
> > What in the world could this be??
> >
> >
> > ------------------------------------------------------------------------------
> > Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
> > much more. Get web development skills now with LearnDevNow -
> > 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
> > SALE $99.99 this month only -- learn more at:
> > http://p.sf.net/sfu/learnmore_122812
> >
> >
> >
> > ________________________________________________________
> > To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365
> >
>
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. SALE $99.99 this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122912
> ________________________________________________________
> To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365
>
|