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 eSpeak to allow your robot to respond with an audible voice


Sound is an important tool in our robotic toolkit but you will want to do more than just play music. Let's make our robot speak. You're going to start by enabling eSpeak, an open source application that provides us with a computerized voice. It is a voice generation application. To get this free functionality, download the eSpeak library by typing sudo apt-get install espeak at the prompt. The download may take a while but the prompt will reappear when it is complete. Now, let's see if the Raspberry Pi Zero has a voice. Type the espeak hello command. The speaker should emit "hello" in a computer-generated voice. If it does not, check the speakers and the volume level.

Now that we have a computer-generated voice, you may want to customize it. eSpeak offers a complete set of customization features, including a large number of languages, voices, and other options. To access these, you can type in the options at the command-line...