Menu

phoneme recognition possible with prealpha5?

Help
2015-08-05
2015-08-06
  • ramin assadollahi

    first of all, thank you so much for keeping up this great open source speech recogniser for all these years!

    okay, i aim to build a little phoneme based "dialog system" that listens to speech converts it into a string of phonemes (how ever wrong it doesn't matter), processes / stores these and plays them back on phoneme level. i aim to use either festival / mbrola with it or espeak. all running on a raspberry pi (the project is called babble pi).

    i followed the really nice instructions here: [https://wolfpaulus.com/jounal/embedded/raspberrypi2-sr/]

    and i also get a nice recognition with the command:

    pocketsphinx_continuous -hmm /usr/local/share/pocketsphinx/model/en-us/en-us -lm 3199.lm -dict 3199.dic -samprate 16000/8000/48000 -inmic yes

    now i've read this article about phoneme recognition here on the sourceforge site: [http://cmusphinx.sourceforge.net/wiki/phonemerecognition]

    and also realised that obviously prealpha5 has a new binary format: [http://cmusphinx.sourceforge.net/2015/07/new-language-model-binary-format/]

    the article about the phoneme recogniser states that basically the english phoneme recogniser is part of the default installation package and thus invites to test it via:

    pocketsphinx_continuous -infile test/data/goforward.raw -hmm en-us -allphone model/en-us/en-us-phone.lm.dmp -backtrace yes -beam 1e-20 -pbeam 1e-20 -lw 2.0

    i assume that the phoneme article refers to older versions of (pocket-)sphinx, since it's refering to the .dmp instead of the .bin file extention and so i tried:

    pocketsphinx_continuous -infile test/data/goforward.raw -hmm en-us -allphone model/en-us/en-us-phone.lm.bin -backtrace yes -beam 1e-20 -pbeam 1e-20 -lw 2.0

    but i got the following error:
    ERROR: "acmod.c", line 83: Folder 'en-us' does not contain acoustic model definition 'mdef'

    looking at en-us, there is in fact only a .dict, a .lm.bin and the phone file. and another en-us directory containing an mdef file as well as several others. copying it up doesn't help.

    so, what to do? de-install prealpha5 and install version 4? or can i download the right file somewhere?

     
    • Nickolay V. Shmyrev

       
      • ramin assadollahi

        thanks very much for your help!

         

Log in to post a comment.