Project 7 - Controlling your Arduino Projects with Voice Commands

Demo Video


Voice recognition and voice control applications are increasing in popularity. Features like Apple’s Siri, Microsoft’s Cortana, and “OK Google” are changing the way people interact with their phones, games consoles, and multimedia devices.

Where a full set of buttons and switches is not practical (or not desired), voice control often provides a solution to the problem of making a user interface. In some cases, voice control is a significant benefit to people who are unable to use regular user interfaces.

This project demonstrates the steps for adding voice control to your Arduino Yún projects. It comprises an Arduino sketch that responds to a button and handles the digital pins, and a Pythonv script that: records speech from a microphone; sends the audio to a web service that translates the voice into text; parses the text to decide what to do; and sends commands to the Arduino sketch.

The voice control aspect of this project has the nickname “Yuri”.

Parts List

  • An Arduino Yún, connected to the Internet over Ethernet or Wi-Fi
  • A microSD card, with the OpenWrt-Yun Linux file system expanded onto it
  • A USB audio interface - example here
  • A pair of desktop PC speakers, with a 3.5 mm stereo jack plug and their own power supply. Or a set of headphones with a 3.5 mm stereo jack plug
  • A desktop PC microphone with a 3.5 mm jack plug
  • One 10 kΩ resistor
  • A momentary push button
  • A solderless breadboard and jumper wires

Useful Links

Circuit Diagrams

Source Code Download Here


Start Building Today

book cover Start Reading Now

Your guide to Yún developement. Arduino Meets Linux includes:

  • Over 320+ pages of content
  • OpenWrt-Yun Linux tutorials
  • Python and shell scripting
  • 7 in-depth Arduino projects

Take your Arduino projects to the next level. This book shows you how.