Skip to content
David Salek edited this page Dec 12, 2017 · 20 revisions

Raspberry Pi Zero Voice Controlled Relay Switch

This project demonstrates how to use Raspberry Pi Zero with a relay switch for home automation. The relay switch can be controlled remotely:

  • either through a Cayenne dashboard
  • or using an external USB microphone and a speech recognition engine. The relay switch responds to saying "light on" and "light off".

For the latter option, an open source tool Judy is used. Judy respects privacy and performs the speech recognition directly on Raspberry Pi without a need of an internet connection, relying on a lightweight speech-to-text engine called PocketSphinx.

The instructions to build this project are given in the following steps:

  1. Connect the relay switch to the Raspberry Pi Zero and test it using command line. A physical button can be added as well to control the relay switch. https://github.com/salekd/rpizero_relay/wiki/Relay-Switch
  2. Control the relay switch remotely through a Cayenne dashboard. https://github.com/salekd/rpizero_relay/wiki/Cayenne
  3. Configure audio to recognise an external USB microphone. https://github.com/salekd/rpizero_relay/wiki/Audio
  4. Use speech recognition to turn on/off lights. https://github.com/salekd/rpizero_relay/wiki/Speech-Recognition

|

Clone this wiki locally