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 and synthesis in Ubuntu 14.04.2 using Python


In this section, we will discuss Python interfacing with Pocket Sphinx, Julius, and Microsoft Speech SDK and speech synthesis frameworks such as eSpeak and Festival. Let's start with speech recognition libraries and their installation procedures.

Setting up Pocket Sphinx and its Python binding in Ubuntu 14.04.2

The following packages are required to install Pocket Sphinx and its Python bindings:

  • python-pocketsphinx

  • pocketsphinx-hmm-wsj1

  • pocketsphinx-lm-wsj

The packages can be installed using the apt-get command. The following commands are used to install Pocket Sphinx and its Python interface.

Installing Pocket Sphinx in Ubuntu can be done either through source code or by package managers. Here, we will install Pocket Sphinx using the package manager:

  • The following command will install HMM of Pocket Sphinx:

    $ sudo apt-get install pocketsphinx-hmm-wsj1
    
  • The following command will install LM of Pocket Sphinx:

    $ sudo...