ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

pocketsphinx does not work in ROS indigo and Ubuntu14.04

asked 2015-03-16 11:20:07 -0500

Zhao Cheng gravatar image

Hello, everyone

When I finished sudo apt-get install gstreamer0.10-pocketsphinx sudo apt-get install ros-indigo-pocketsphinx sudo apt-get install ros-indigo-audio-common

and run roslaunch pocketsphinx robocup.launch

then I got some errors below

rocess[master]: started with pid [11838] ROS_MASTER_URI=http://localhost:11311

setting /run_id to 1fe512c6-cbf7-11e4-8467-3417ebabc63d process[rosout-1]: started with pid [11851] started core service [/rosout] process[recognizer-2]: started with pid [11868] [INFO] [WallTime: 1426522298.911547] Launch config: gconfaudiosrc /opt/ros/indigo/lib/pocketsphinx/ SyntaxWarning: The publisher should be created with an explicit keyword argument 'queue_size'. Please see for more information. = rospy.Publisher('~output', String) [INFO] [WallTime: 1426522298.920858] Starting recognizer... Traceback (most recent call last): File "/opt/ros/indigo/lib/pocketsphinx/", line 177, in start = recognizer() File "/opt/ros/indigo/lib/pocketsphinx/", line 73, in __init__ self.start_recognizer() File "/opt/ros/indigo/lib/pocketsphinx/", line 80, in start_recognizer self.pipeline = gst.parse_launch(self.launch_config) glib.GError: no element "gconfaudiosrc" Traceback (most recent call last): File "/opt/ros/indigo/lib/python2.7/dist-packages/rospy/", line 399, in signal_shutdown h() File "/opt/ros/indigo/lib/pocketsphinx/", line 131, in shutdown gtk.main_quit() RuntimeError: called outside of a mainloop [recognizer-2] process has died [pid 11868, exit code 1, cmd /opt/ros/indigo/lib/pocketsphinx/ __name:=recognizer __log:=/home/cheng/.ros/log/1fe512c6-cbf7-11e4-8467-3417ebabc63d/recognizer-2.log]. log file: /home/cheng/.ros/log/1fe512c6-cbf7-11e4-8467-3417ebabc63d/recognizer-2*.log

How to handle this errors? Many thanks for your help.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-03-17 09:34:56 -0500

Humpelstilzchen gravatar image

Looks like you are missing a GStreamer plugin. Try apt-get install gstreamer0.10-gconf

edit flag offensive delete link more


Hi Humpelstilzchen

Thank you so much, It can work now when I 'apt-get install gstreamer0.10-gconf'

Zhao Cheng gravatar image Zhao Cheng  ( 2015-03-17 11:55:17 -0500 )edit

Tanks, works for me to

GT gravatar image GT  ( 2016-10-12 20:31:47 -0500 )edit

Question Tools



Asked: 2015-03-16 11:20:07 -0500

Seen: 3,278 times

Last updated: Mar 16 '15