Menu

Changing base dictionnary, LM, ...

Help
Alexandre
2017-11-20
2017-11-23
  • Alexandre

    Alexandre - 2017-11-20

    Hi all,

    I managed to perform the tutorial for pocketsphinx, and now I gathered the french materials and I'm curious about how to tell pocketspinhx to use them instead of the en-us ones.

    I looked over Google but did not find anything about how to do that, could you help?

    Thanks.
    Regards,

    Frack

     
  • Alexandre

    Alexandre - 2017-11-23

    Hi, I then update myself since I found how to do so.
    The goal is to use the file you create during the tutorial (hello_ps.c) or to create an equivalent in python.
    See this tutorial for more details : http://depado.markdownblog.com/2015-05-13-tutorial-on-pocketsphinx-with-python-3-4

    In the tutorial, you read a raw file and display what's understood by pocketsphinx. The goal is to capture what's your mic will hear (the python file in the provided link do so).

    I just modified some things in the python file to make it working for me.
    First I adapted the model_dir, hmm, lm and dic variables since the directory and the names I use are not the same.
    More important point, I remove the line : "config.set_string('-logfn', '/dev/null')" since for me it causes the file to crash when I launched it.

    From there, you can then modify the model_dir, hmm, lm and dic to put whatever language configuration file you would like to test.

    Hope this will help someone else.

     

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.