Pankaj-Baranwal / pocketsphinx

Updated ROS bindings to pocketsphinx
BSD 3-Clause "New" or "Revised" License
38 stars 25 forks source link

No language model specified? #6

Closed arixrobotics closed 6 years ago

arixrobotics commented 6 years ago

Hi Sir, I'm trying to run your example kws demo.

I launched: roslaunch pocketsphinx kws.launch dict:=/home/arifrahman/catkin_ws/src/pocketsphinx/demo/voice_cmd.dic kws:=/home/arifrahman/catkin_ws/src/pocketsphinx/demo/voice_cmd.kwlist

But I got error: [ERROR] [WallTime: 1512091141.478785] No language model specified. Couldn't find defaut model.

The .dic .kwlist files are there in the directory. Can you give some insights why this happens?

Pankaj-Baranwal commented 6 years ago

Pocketsphinx couldn't find an acoustic model on your system.
You need to give it the absolute location of the model. To do this, add another command line argument:
hmm:= /home//Desktop/xiaoyou/tdt_sc_8k

arixrobotics commented 6 years ago

Oh. And where can I get this file/folder tdt_sc_8k?

Pankaj-Baranwal commented 6 years ago

That's just a sample acoustic model location. There are models available for a variety of languages which can be found here: https://sourceforge.net/projects/cmusphinx/files/Acoustic%20and%20Language%20Models/

arixrobotics commented 6 years ago

Aha ok will try this.

Pankaj-Baranwal commented 6 years ago

Did it work?

arixrobotics commented 6 years ago

Ah yes it did. Somehow my pocketsphinx installation got into python's folder, so not the default path.

Thanks!

Femi-Tofade commented 4 years ago

Hi,

Having the exact same issues.. How did you solve it? @arixrobotics

arixrobotics commented 4 years ago

Sorry @femi-tofade, its been so long I don't remember anything about this.