Book Image

Learning Robotics Using Python

Book Image

Learning Robotics Using Python

Overview of this book

Table of Contents (19 chapters)
Learning Robotics Using Python
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Working with Speech recognition in ROS Indigo and Python


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

Installation of the pocketsphinx package in ROS Indigo

To install the pocketsphinx package, first switch to the catkin workspace source folder.

  1. Download the source code of the pocketsphinx package using the following command:

    $ git clone https://github.com/mikeferguson/pocketsphinx
    
  2. Execute the catkin_make command from the catkin workspace folder to build the package

  3. Start the speech recognizer demo using the...