Ok breif history. I have compiled both sphinxbasae 4.1 and pocketsphinx 5.1 in Mac OS 10.5 and Fedora 10. Both seem to have the same problem, although I am able to get two different errors in F10.
I run the following in F10:
/usr/local/bin/pocketsphinx_continuous -hmm /usr/local/share/pocketsphinx/model/hmm/wsj1 -lm 8883.lm -dict 8883.dic
I get:
INFO: ngram_search_fwdflat.c(95): fwdflat: min_ef_width = 4, max_sf_win = 25
Warning: Could not find Mic element
INFO: continuous.c(261): /usr/local/bin/pocketsphinx_continuous COMPILED ON: Feb 2 2009, AT: 12:48:22
snd_pcm_start failed: Input/output error
FATAL_ERROR: "continuous.c", line 133: ad_start_rec failed
When I run the following in F10:
/usr/local/bin/pocketsphinx_continuous -hmm /usr/local/share/pocketsphinx/model/hmm/wsj1 -lm 8883.lm -dict 8883.dic -adcdev plughw:1
I get :
INFO: ngram_search_fwdflat.c(95): fwdflat: min_ef_width = 4, max_sf_win = 25
ALSA lib pcm_hw.c:1429:(_snd_pcm_hw_open) Invalid value for card
Error opening audio device plughw:1 for capture: No such file or directory
FATAL_ERROR: "continuous.c", line 259: ad_open_dev failed
This is getting incredibly frustrating as there is no documentation on this error and only 1 mention of -adcdev option in any of my google searches. Im not sure how I can duplicate this on two seperate machines and OS's, I must be doing something wrong. This seems to be the best place to find help so I will remain optimistic. Thanks in advance for any advice/pointers. Im fairly new to compiling code and such so please keep that in mind.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The -adcdev option is just passed directly to ALSA. So you need to know the name of your audio device... Maybe you can try plughw:0 instead of plughw:1?
On Fedora 10, though, audio is probably being managed by pulseaudio. I'm not really sure why the default ALSA device (whose nameis "default") isn't working...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok breif history. I have compiled both sphinxbasae 4.1 and pocketsphinx 5.1 in Mac OS 10.5 and Fedora 10. Both seem to have the same problem, although I am able to get two different errors in F10.
I run the following in F10:
/usr/local/bin/pocketsphinx_continuous -hmm /usr/local/share/pocketsphinx/model/hmm/wsj1 -lm 8883.lm -dict 8883.dic
I get:
INFO: ngram_search_fwdflat.c(95): fwdflat: min_ef_width = 4, max_sf_win = 25
Warning: Could not find Mic element
INFO: continuous.c(261): /usr/local/bin/pocketsphinx_continuous COMPILED ON: Feb 2 2009, AT: 12:48:22
snd_pcm_start failed: Input/output error
FATAL_ERROR: "continuous.c", line 133: ad_start_rec failed
When I run the following in F10:
/usr/local/bin/pocketsphinx_continuous -hmm /usr/local/share/pocketsphinx/model/hmm/wsj1 -lm 8883.lm -dict 8883.dic -adcdev plughw:1
I get :
INFO: ngram_search_fwdflat.c(95): fwdflat: min_ef_width = 4, max_sf_win = 25
ALSA lib pcm_hw.c:1429:(_snd_pcm_hw_open) Invalid value for card
Error opening audio device plughw:1 for capture: No such file or directory
FATAL_ERROR: "continuous.c", line 259: ad_open_dev failed
This is getting incredibly frustrating as there is no documentation on this error and only 1 mention of -adcdev option in any of my google searches. Im not sure how I can duplicate this on two seperate machines and OS's, I must be doing something wrong. This seems to be the best place to find help so I will remain optimistic. Thanks in advance for any advice/pointers. Im fairly new to compiling code and such so please keep that in mind.
The -adcdev option is just passed directly to ALSA. So you need to know the name of your audio device... Maybe you can try plughw:0 instead of plughw:1?
On Fedora 10, though, audio is probably being managed by pulseaudio. I'm not really sure why the default ALSA device (whose nameis "default") isn't working...
Thanks David as well as nshm on #cmusphinx. I will be grinding away trying to get this up and running on Mac OS. Will update with any success.
meant to mention it must have been pulseaudio. Which does point to not being able to see some kind of sound input on the Mac.