Menu

Can't recognize any words in French

Help
2018-04-02
2018-04-03
  • Acrilex Rocrote

    Acrilex Rocrote - 2018-04-02

    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:

    1. 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/zsho
    2. pocketsphinx_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/oylcu
    3. 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/q274 (was converted to 8 khz using ffmpeg -i test.wav -ar 8000 output-test.wav)

    PocketSphinx 5prealpha:

    1. 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/lg9i
    2. pocketsphinx_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/15uh
      3.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 using ffmpeg -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

     
    • Nickolay V. Shmyrev

      Read about cmninit

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.