Ask Your Question

Pocketsphinx does not work

asked 2017-07-14 03:56:52 -0500

Martelogie gravatar image

updated 2017-07-14 05:12:57 -0500

Hello, everyone! I'm trying to work with pocketsphinx for speech recognition and im currently using this Tutorial

but i have some troubles:

when i run this command roslaunch pocketsphinx turtlebot_voice_cmd.launch

then i got some errors:

Traceback (most recent call last):
  File "/home/meow/catkin_ws/src/pocketsphinx/nodes/", line 177, in <module>
  start = recognizer()
  File "/home/meow/catkin_ws/src/pocketsphinx/nodes/", line 73, in __init__
  File "/home/meow/catkin_ws/src/pocketsphinx/nodes/", line 80, in start_recognizer
  self.pipeline = gst.parse_launch(self.launch_config)
  glib.GError: no element «vader»
Traceback (most recent call last):
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/", line 467, in signal_shutdown
  File "/home/meow/catkin_ws/src/pocketsphinx/nodes/", line 131, in shutdown
  RuntimeError: called outside of a mainloop
[recognizer-2] process has died [pid 15287, exit code 1, cmd /home/meow/catkin_ws/src/pocketsphinx/nodes/ __name:=recognizer __log:=/home/meow/.ros/log/ec640724-686e-11e7-adcd-08d40c6bd6ea/recognizer-2.log].
log file: /home/meow/.ros/log/ec640724-686e-11e7-adcd-08d40c6bd6ea/recognizer-2*.log
edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2017-10-07 12:31:30 -0500

PankajBaranwal gravatar image

You can use this version instead:
It contains quite many updated features of pocketsphinx. And also supports backward compatibility.
So it will work perfectly! And it is well maintained. So, if you have issues working with it, you can simply open a new issue and the maintainer should respond with a solution soon!
It is well documented too. You can follow the wiki, or the blog posts here:

edit flag offensive delete link more

answered 2017-08-06 05:34:03 -0500

updated 2017-08-06 05:41:43 -0500

I dont know why this post is closed previously.

I upgrade to kinetic from indigo recently. And my pocketsphinx does not work due to many issues.

i.e., glib.GError: no element "gconfaudiosrc" , this can be solved through this post:

However, for
glib.GError: no element «vader» this issue, I cannot solve it by adding libraries.

Inspired from this post: , I started looking for repos supporting kinetic by tring repos forked from mikeferguson/pocketsphinx. Finally I tried master branch and it works. remember to use git checkout master to change the branch...however the accuracy is no good currently

just use a different package without adding any more libraries. will update if anything new.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2017-07-14 03:56:52 -0500

Seen: 1,078 times

Last updated: Oct 07 '17