Pocketsphinx recognizer.py does not work
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/recognizer.py", line 177, in <module>
start = recognizer()
File "/home/meow/catkin_ws/src/pocketsphinx/nodes/recognizer.py", line 73, in __init__
self.start_recognizer()
File "/home/meow/catkin_ws/src/pocketsphinx/nodes/recognizer.py", 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/core.py", line 467, in signal_shutdown
h()
File "/home/meow/catkin_ws/src/pocketsphinx/nodes/recognizer.py", line 131, in shutdown
gtk.main_quit()
RuntimeError: called outside of a mainloop
[recognizer-2] process has died [pid 15287, exit code 1, cmd /home/meow/catkin_ws/src/pocketsphinx/nodes/recognizer.py __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