First of all, I must say that I read the FAQ and that I tried many things before posting.
I am trying to get PocketSphinx to work in french on a RPI 2, without success. I can't get any words recognized, even on pocketsphinx_continuous on PC. I tried all the dictionnaries, language models and hmm available in the download section for french.
Here is a sample WAV file I tried to pass to pocketsphinx_continuous, with a near 0% success rate. It is a simple sentence (French: Bonjour, allume la radion | English: Hello, turn on the radio). The sample was recorded using: arecord -f dat -r 16000 -c 1 test.wav
Here are the diffrent configurations tested on my laptop (Ubuntu 16.04), with their respective result:
Result is same with the larger fr.lm.dmp, so I don't think it has an impact on the result. I suspect it has something to do with the bitrate for the first two results, but Pocketsphinx_continuous refuses any othe bitrates.
Thanks,
Acrilex1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
First of all, I must say that I read the FAQ and that I tried many things before posting.
I am trying to get PocketSphinx to work in french on a RPI 2, without success. I can't get any words recognized, even on pocketsphinx_continuous on PC. I tried all the dictionnaries, language models and hmm available in the download section for french.
Here is a sample WAV file I tried to pass to pocketsphinx_continuous, with a near 0% success rate. It is a simple sentence (French: Bonjour, allume la radion | English: Hello, turn on the radio). The sample was recorded using:
arecord -f dat -r 16000 -c 1 test.wav
Here are the diffrent configurations tested on my laptop (Ubuntu 16.04), with their respective result:
PocketSphinx 0.8:
pocketsphinx_continuous -dict /usr/local/share/pocketsphinx/model/fr_FR/fr.dict -hmm /usr/local/share/pocketsphinx/model/fr_FR/cmusphinx-fr-5.2/ -lm /usr/local/share/pocketsphinx/model/fr_FR/fr-small.lm -infile test.wav
: http://termbin.com/zshopocketsphinx_continuous -dict /usr/local/share/pocketsphinx/model/fr_FR/fr.dict -hmm /usr/local/share/pocketsphinx/model/fr_FR/cmusphinx-fr-ptm-5.2/ -lm /usr/local/share/pocketsphinx/model/fr_FR/fr-small.lm -infile test.wav
: http://termbin.com/oylcupocketsphinx_continuous -dict /usr/local/share/pocketsphinx/model/fr_FR/fr.dict -hmm /usr/local/share/pocketsphinx/model/fr_FR/cmusphinx-fr-ptm-8khz-5.2/ -lm /usr/local/share/pocketsphinx/model/fr_FR/fr-small.lm -infile output-test.wav -samprate 8000
: http://termbin.com/q274 (was converted to 8 khz usingffmpeg -i test.wav -ar 8000 output-test.wav
)PocketSphinx 5prealpha:
pocketsphinx_continuous -dict /usr/local/share/pocketsphinx/model/fr_FR/fr.dict -hmm /usr/local/share/pocketsphinx/model/fr_FR/cmusphinx-fr-5.2/ -lm /usr/local/share/pocketsphinx/model/fr_FR/fr-small.lm -infile test.wav
: http://termbin.com/lg9ipocketsphinx_continuous -dict /usr/local/share/pocketsphinx/model/fr_FR/fr.dict -hmm /usr/local/share/pocketsphinx/model/fr_FR/cmusphinx-fr-ptm-5.2/ -lm /usr/local/share/pocketsphinx/model/fr_FR/fr-small.lm -infile test.wav
: http://termbin.com/15uh3.
pocketsphinx_continuous -dict /usr/local/share/pocketsphinx/model/fr_FR/fr.dict -hmm /usr/local/share/pocketsphinx/model/fr_FR/cmusphinx-fr-ptm-8khz-5.2/ -lm /usr/local/share/pocketsphinx/model/fr_FR/fr-small.lm -infile output-test.wav -samprate 8000
:http://termbin.com/5adc (was converted to 8 khz usingffmpeg -i test.wav -ar 8000 output-test.wav
)Result is same with the larger fr.lm.dmp, so I don't think it has an impact on the result. I suspect it has something to do with the bitrate for the first two results, but Pocketsphinx_continuous refuses any othe bitrates.
Thanks,
Acrilex1
Read about cmninit