Home > Projects > Home Automation Projects > ReSpeaker Home Automation

ReSpeaker Home Automation

Summary of ReSpeaker Home Automation


This article details a voice-controlled home automation system using the ReSpeaker board, Arduino MKR1000, Microsoft Cognitive Services Speech API, Api.ai, and MQTT. The setup records audio via ReSpeaker, converts it to text, processes commands through Api.ai, and sends MQTT messages to toggle LEDs representing lights. Users interact by saying a trigger word like "jarvis" followed by commands such as turning bedroom or kitchen lights on or off.

Parts used in the ReSpeaker Home Automation:

  • Seeed ReSpeaker Mic Array v2.0
  • Arduino MKR1000
  • Generic LED
  • Jumper wires (generic)

ReSpeaker Home Automation Sample using Arduino MKR1000, Microsoft Cognitive Service Speech API, Api.ai and MQTT

ReSpeaker Home Automation

Things used in this project

Hardware components

ReSpeaker Mic Array v2.0
Seeed ReSpeaker Mic Array v2.0
× 1
Arduino MKR1000
Arduino MKR1000
× 1
LED (generic)
LED (generic)
× 2
Jumper wires (generic)
Jumper wires (generic)
× 1

Software apps and online services

Arduino IDE
Arduino IDE
Python
Microsoft Cognitive Services Speech API
Api.ai
MQTT
MQTT

Story

Code

 

Quick Solutions to Questions related to ReSpeaker Home Automation:

  • How does the project control lights?
    The system records audio, converts it to text using Microsoft Cognitive Service, processes the text with Api.ai, and sends MQTT messages to turn lights on or off.
  • Can I use a different trigger word than jarvis?
    Yes, the trigger word is configurable, though the author used jarvis for this demo.
  • What software is required to flash the code?
    You need the Arduino IDE to flash the ha.ino file to the MKR1000 and respeaker_ha.ino to the ReSpeaker.
  • Does the project support Python scripting?
    Yes, Python is used for scripts like start_recognize.py and requires packages such as paho-mqtt and monotonic.
  • What is the role of the Arduino MKR1000?
    The Arduino MKR1000 connects to two generic LEDs which represent different lights controlled by the system.
  • How do I get the necessary API credentials?
    You must create accounts on Microsoft Cognitive Service Speech API and Api.ai to obtain an API Key and Access Token respectively.
  • What happens when the trigger word is detected?
    When the trigger word is detected, the application turns on the LEDs on the ReSpeaker and then listens for specific commands.
  • Can I control multiple rooms?
    Yes, the example conversation demonstrates controlling both bedroom and kitchen lights using voice input.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter
Scroll to Top