Compared to other speech recognition methods, one of the easiest and effective methods to implement real time speech recognition is Pocket Sphinx and GStreamer pipeline. We discussed Pocket Sphinx, GStreamer and its interfacing with Python previously. Next, we can see a ROS package called pocketsphinx
that uses the GStreamer pocketsphinx
interface to perform speech recognition. The pocketsphinx
ROS package is available in the ROS repository. You will get the package information at the following link
http://wiki.ros.org/pocketsphinx
To install the pocketsphinx
package, first switch to the catkin
workspace source folder.
pocketsphinx
package using the following command:$ git clone https://github.com/mikeferguson/pocketsphinx
catkin_make
command from the catkin
workspace folder to build the package$ roslaunch pocketsphinx robocup.launch
$ rostopic echo /recognizer/output
The following is the screenshot of the output:
This Topic can be subscribed and the command can be processed in some other nodes. In the next section, we will see how to synthesize speech using ROS and Python.
3.147.62.94