Active Topics

 



Notices


Reply
Thread Tools
Sandeep's Avatar
Posts: 110 | Thanked: 59 times | Joined on Nov 2010 @ Bangalore
#61
I had a hard time making Pocketsphinx recognize what I say. I was SO LUCKY to get Saera tell me the current time.
Is it possible anyway to 'train' the pocketsphinx to recognize what we say? Much like the microsoft voice recognition training.
Thanks a lot Taixzo !! Great Idea !!

Anything is possible with the N900
 

The Following User Says Thank You to Sandeep For This Useful Post:
Posts: 238 | Thanked: 131 times | Joined on May 2011 @ Bulgaria
#62
About saera on what packages are needed to me to run that application(enable extras-devel)
apt-get install pocketsphinx-hmm-en-hub4wsj
apt-get install pocketsphinx-lm-en-hub4
apt-get install gstreamer0.10-pocketsphinx
apt-get install pocketsphinx-utils
apt-get install python-gst0.10
apt-get install python-gtk2
apt-get install puthon-gobject
apt-get install espeak or you prefer to installed from app.manager
To my great regret,from almost every questions which i asked saera,the reply it was "I don't understand you.Sorry"or "What time it is in miami" the answer it was "Law time the miami".However thanks for the app

Last edited by disappear; 2012-06-09 at 15:43.
 

The Following 2 Users Say Thank You to disappear For This Useful Post:
Posts: 440 | Thanked: 160 times | Joined on Aug 2010 @ Las Vegas, NV
#63
Code:
~/MyDocs/Downloads $ python saera.py
INFO: cmd_ln.c(512): Parsing command line:
gst-pocketsphinx \
	-samprate 8000 \
	-cmn prior \
	-nfft 256 \
	-fwdflat no \
	-bestpath no \
	-maxhmmpf 1000 \
	-maxwpf 10 

Current configuration:
[NAME]		[DEFLT]		[VALUE]
-agc		none		none
-agcthresh	2.0		2.000000e+00
-alpha		0.97		9.700000e-01
-ascale		20.0		2.000000e+01
-backtrace	no		no
-beam		1e-48		1.000000e-48
-bestpath	yes		no
-bestpathlw	9.5		9.500000e+00
-bghist		no		no
-ceplen		13		13
-cmn		current		prior
-cmninit	8.0		8.0
-compallsen	no		no
-debug				0
-dict				
-dictcase	no		no
-dither		no		no
-doublebw	no		no
-ds		1		1
-fdict				
-feat		1s_c_d_dd	1s_c_d_dd
-featparams			
-fillprob	1e-8		1.000000e-08
-frate		100		100
-fsg				
-fsgusealtpron	yes		yes
-fsgusefiller	yes		yes
-fwdflat	yes		no
-fwdflatbeam	1e-64		1.000000e-64
-fwdflatefwid	4		4
-fwdflatlw	8.5		8.500000e+00
-fwdflatsfwin	25		25
-fwdflatwbeam	7e-29		7.000000e-29
-fwdtree	yes		yes
-hmm				
-input_endian	little		little
-jsgf				
-kdmaxbbi	-1		-1
-kdmaxdepth	0		0
-kdtree				
-latsize	5000		5000
-lda				
-ldadim		0		0
-lextreedump	0		0
-lifter		0		0
-lm				
-lmctl				
-lmname		default		default
-logbase	1.0001		1.000100e+00
-logfn				
-logspec	no		no
-lowerf		133.33334	1.333333e+02
-lpbeam		1e-40		1.000000e-40
-lponlybeam	7e-29		7.000000e-29
-lw		6.5		6.500000e+00
-maxhmmpf	-1		1000
-maxnewoov	20		20
-maxwpf		-1		10
-mdef				
-mean				
-mfclogdir			
-mixw				
-mixwfloor	0.0000001	1.000000e-07
-mllr				
-mmap		yes		yes
-ncep		13		13
-nfft		512		256
-nfilt		40		40
-nwpen		1.0		1.000000e+00
-pbeam		1e-48		1.000000e-48
-pip		1.0		1.000000e+00
-pl_beam	1e-10		1.000000e-10
-pl_pbeam	1e-5		1.000000e-05
-pl_window	0		0
-rawlogdir			
-remove_dc	no		no
-round_filters	yes		yes
-samprate	16000		8.000000e+03
-seed		-1		-1
-sendump			
-senmgau			
-silprob	0.005		5.000000e-03
-smoothspec	no		no
-svspec				
-tmat				
-tmatfloor	0.0001		1.000000e-04
-topn		4		4
-topn_beam	0		0
-toprule			
-transform	legacy		legacy
-unit_area	yes		yes
-upperf		6855.4976	6.855498e+03
-usewdphones	no		no
-uw		1.0		1.000000e+00
-var				
-varfloor	0.0001		1.000000e-04
-varnorm	no		no
-verbose	no		no
-warp_params			
-warp_type	inverse_linear	inverse_linear
-wbeam		7e-29		7.000000e-29
-wip		0.65		6.500000e-01
-wlen		0.025625	2.562500e-02

FATAL_ERROR: "fe_sigproc.c", line 397: WTF, 5062.500000 < -31.250000 > 5718.750000
~/MyDocs/Downloads $
 
Posts: 959 | Thanked: 3,427 times | Joined on Apr 2012
#64
Originally Posted by nodevel View Post
It's a good idea, although the perfect implementation would be like this:
Me:"Hey Saera, write a text for me"
S: "Who is the text for?"
Me: "Jack" (triggers contact search) or "789-456-123"
S: "Ok, please tell me the message for /Jack/"
Me: "Hey, Jack, How are you? Done."
S: "Would you like to send the text now?" (if Yes, the word /Done/ won't be included in the text, if No, then it will and Saera will continue listening."

Then Saera could pass the text to the command line as it is possible to send messages that way.


Anyway, thanks for the great work.
That's more or less how I imagined writing a text. However, three things in that that I am still trying to figure out:
  1. Pocketsphinx uses a pre-trained grammatical model. This model apparently assigns a very low probability to multiple numbers being used in sequence, so it never seems to recognize a phone number. Even saying ten of the most distinctively pronounced number (seven), it only recognized four sevens. This is something I need to work on with the voice model, but have been putting off until I have enough time to recompile the model (maybe Sunday).
  2. Also, Pocketsphinx is not very good with names. This could possibly be alleviated by running a phoneme search on all contacts once it's determined to be not a number.
  3. If the user is dictating a text, there needs to be some way to edit what they said. Ideally, this would also train the voice model. This is definately possible, but I need to learn more about pocketsphinx first.

I had a hard time making Pocketsphinx recognize what I say. I was SO LUCKY to get Saera tell me the current time.
Is it possible anyway to 'train' the pocketsphinx to recognize what we say? Much like the microsoft voice recognition training.
Thanks a lot Taixzo !! Great Idea !!

Anything is possible with the N900
I'm working on it.
 

The Following 4 Users Say Thank You to taixzo For This Useful Post:
Posts: 959 | Thanked: 3,427 times | Joined on Apr 2012
#65
Originally Posted by Joseph9560 View Post
Code:
...
-hmm				
...
-lm				
...
Do you have the packages pocketsphinx-hmm-en-hub4wsj and pocketsphinx-lm-en-hub4 installed?
 

The Following User Says Thank You to taixzo For This Useful Post:
Posts: 101 | Thanked: 47 times | Joined on Aug 2010 @ somerset
#66
having trouble with pocketsphinx bit's the rest downloaded and installed fine. here's my xterm screen

BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ root


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N900:~# apt-get install pocketsphinx-hmm-en-hub4wsj
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package pocketsphinx-hmm-en-hub4wsj
Nokia-N900:~# apt-get install pocketsphinx-lm-en-hub4
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package pocketsphinx-lm-en-hub4
Nokia-N900:~# apt-get install gstreamer0.10-pocketsphinxReading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package gstreamer0.10-pocketsphinx
Nokia-N900:~# apt-get install pocketsphinx-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package pocketsphinx-utils
Nokia-N900:~# apt-get install python-gst0.10
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-gst0.10 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Nokia-N900:~#
 

The Following User Says Thank You to scoobydoo For This Useful Post:
Posts: 959 | Thanked: 3,427 times | Joined on Apr 2012
#67
Originally Posted by scoobydoo View Post
having trouble with pocketsphinx bit's the rest downloaded and installed fine. here's my xterm screen

BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ root


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N900:~# apt-get install pocketsphinx-hmm-en-hub4wsj
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package pocketsphinx-hmm-en-hub4wsj
Nokia-N900:~# apt-get install pocketsphinx-lm-en-hub4
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package pocketsphinx-lm-en-hub4
Nokia-N900:~# apt-get install gstreamer0.10-pocketsphinxReading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package gstreamer0.10-pocketsphinx
Nokia-N900:~# apt-get install pocketsphinx-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package pocketsphinx-utils
Nokia-N900:~# apt-get install python-gst0.10
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-gst0.10 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Nokia-N900:~#
I believe they are in extras-devel repository.
 
Posts: 293 | Thanked: 163 times | Joined on Jan 2012 @ beijing-islamabad
#68
Originally Posted by scoobydoo View Post
having trouble with pocketsphinx bit's the rest downloaded and installed fine. here's my xterm screen

BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ root


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N900:~# apt-get install pocketsphinx-hmm-en-hub4wsj
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package pocketsphinx-hmm-en-hub4wsj
Nokia-N900:~# apt-get install pocketsphinx-lm-en-hub4
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package pocketsphinx-lm-en-hub4
Nokia-N900:~# apt-get install gstreamer0.10-pocketsphinxReading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package gstreamer0.10-pocketsphinx
Nokia-N900:~# apt-get install pocketsphinx-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package pocketsphinx-utils
Nokia-N900:~# apt-get install python-gst0.10
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-gst0.10 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Nokia-N900:~#
apt-get update
apt-get upgrade
then proceed.
internet connection & catalouge must be enabled.
 
Posts: 101 | Thanked: 47 times | Joined on Aug 2010 @ somerset
#69
the only thing i have'nt done is apt-get upgrade as i was told this can cause issue's
 

The Following User Says Thank You to scoobydoo For This Useful Post:
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#70
Originally Posted by scoobydoo View Post
the only thing i have'nt done is apt-get upgrade as i was told this can cause issue's
You don't need to upgrade anything. Just make sure that extras-devel is enabled, and then do apt-get update and install the packages.
 

The Following User Says Thank You to reinob For This Useful Post:
Reply

Tags
saera, speech-to-text


 
Forum Jump


All times are GMT. The time now is 22:20.