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

Giving your robot voice commands


Now that your robot knows how to respond to the commands from the Python program, you can add the ability to your robot to respond to voice commands. You'll also make your robot speak, which will make the robot more interactive.

To add these capabilities to your robot, you need to add some new hardware. This project requires a USB microphone and speaker adapter. You need the following three pieces of hardware:

  • A USB device to be able to plug in a microphone and speaker; one that works well is Sabrent USB External Stereo Sound Adapter for Windows and Mac, as shown here:

  • A microphone that can plug into the USB device; any such device might work, like the one shown here:

  • A powered speaker that can plug into the USB device; any device that can plug into your USB adapter would work, such as something similar to what is shown here:

Fortunately, these devices are inexpensive and widely available. Make sure that the speaker is powered because your board will generally...