cmusphinx / pocketsphinx

A small speech recognizer
Other
3.87k stars 713 forks source link

User ERROR: en-us does not contain acoustic model definition 'mdef' #384

Closed CharlieXuJk closed 4 months ago

CharlieXuJk commented 4 months ago

Hi team, I installed pocketsphinx by pip install pocketsphinx. And I am trying to use pocketsphinx in python, But i got error:

User ERROR: "acmod.c", line 73: Folder 'venv/lib/python3.9/site-packages/pocketsphinx/model/en-us' does not contain acoustic model definition 'mdef'

May I ask what is the correct way to install pocketspinx?

dhdaines commented 4 months ago

For historical reasons the acoustic model is in another subdirectory also called en-us. If you look in venv/lib/python3.9/site-packages/pocketsphinx/model/en-us/en-us you should see it there.

CharlieXuJk commented 4 months ago

Cool thank you!