Book Image

Getting Started with Raspberry Pi Zero

By : Richard Grimmett
Book Image

Getting Started with Raspberry Pi Zero

By: Richard Grimmett

Overview of this book

Raspberry Pi Zero is half the size of Raspberry Pi A, only with twice the utility. At just three centimeters wide, it packs in every utility required for full-fledged computing tasks. This practical tutorial will help you quickly get up and running with Raspberry Pi Zero to control hardware and software and write simple programs and games. You will learn to build creative programs and exciting games with little or no programming experience. We cover all the features of Raspberry Pi Zero as you discover how to configure software and hardware, and control external devices. You will find out how to navigate your way in Raspbian, write simple Python scripts, and create simple DIY programs.
Table of Contents (16 chapters)
Getting Started with Raspberry Pi Zero
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Using pocketsphinx to accept your voice commands


Now that your robot can talk, you'll also want it to obey voice commands. This section shows you how to add speech recognition to your robotic projects. This isn't nearly as simple as the speaking part but, thankfully, you have some significant help from the open source development community. You are going to download a set of capabilities named pocketsphinx, which will allow our project to listen to our commands.

The first step is downloading the pocketsphinx software. Unfortunately, this is not quite as user-friendly as the eSpeak process, so follow these steps carefully. There are two ways to do this. If you have a keyboard, mouse, and display connected or want to connect through vncserver, you can do this graphically by performing the following steps:

  1. Go to the Sphinx website hosted by Carnegie Mellon University (CMU) at http://cmusphinx.sourceforge.net. This is an open source project that provides you with speech recognition software. With...