Menu

"Acoustic model definition is not specified [...]"

Help
Nicolas
2013-12-22
2016-04-04
  • Nicolas

    Nicolas - 2013-12-22

    When I try to run pocketsphinx_continuous or the gstreamer plugin, I get exactly the same response:

    "ERROR: "acmod.c", line 85: Acoustic model definition is not specified neither with -mdef option nor with -hmm"

    What should I understand from this? I've tried searching around, but all I found was a couple of dead threads with no responses.

     
  • Nickolay V. Shmyrev

    This error says that acoustic model is not found in the place where it should be according to -hmm option.

     
  • Nicolas

    Nicolas - 2013-12-22

    And where should it be? For the record, I'm using a run-of-the-mill Linux Mint install. I just don't remember going through this the last time, but it was a few months ago.

    (by the way, hello again Nickolay, and thanks for saving me so much trouble a second time)

     
  • Nickolay V. Shmyrev

    And where should it be? For the record, I'm using a run-of-the-mill Linux Mint install. I just don't remember going through this the last time, but it was a few months ago.

    If you didn't specify the path model should be in

    $prefix/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k
    

    (by the way, hello again Nickolay, and thanks for saving me so much trouble a second time)

    Hello again too

     
  • Nicolas

    Nicolas - 2013-12-22

    I couldn't locate it. After a bit of research I have found that it belongs to the pocketsphinx-hmm-en-hub4wsj package, which apparently wasn't installed with the rest.

    That's what fixed it for me. I'll post the solution to wisercoder.com as I tend to do.

    -- end of troubleshooting --

    I have worked with pocketsphinx for a few months, and what always gets me is the distinct lack of approachable documentation. Is there an initiative to improve the documentation at some point? I'd certainly be willing to participate, as I've already taken upon myself to document every mistake I make and make it public.

    When I was still learning the ropes, I have found a single python example that was repeated across all projects that used pocketsphinx and Python. I have written a far better wrapper as part of my project and I was tempted to share it in the official doc. It's heavily commented and far simpler to understand.

    I doubt I will return to that thread, but if I can be of any help, just write a line at contact@nicolasbouliane.com and we'll figure things out.

    Thanks a lot for your quick support. I didn't expect such a fast answer on a sunday afternoon. I really appreciate the gesture.

     
  • Nickolay V. Shmyrev

    Is there an initiative to improve the documentation at some point? I'd certainly be willing to participate, as I've already taken upon myself to document every mistake I make and make it public.

    Sure there is. You are welcome to participate. We have a wiki which everyone could edit

    http://cmusphinx.sourceforge.net/wiki

    It's probably better to start small and improve certain subject and then proceed to major undertakings

    This particular issue could be actually solved by a better error message which as far as I remember requires some source code modification.

    I'm not sure if your example uses new Python API we implemented recently with the help of SWIG.

     
  • Nicolas

    Nicolas - 2013-12-23

    How recently are we speaking? I started working on that project during the summer, but couldn't find any documentation on the Python API.

     
  • Nickolay V. Shmyrev

    It was merged in trunk in August I think

     
  • Himanshu Srivastava

    How to fix this issue in windows?

     

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.