How to create voice control on QBoat Sunny

299_1510208617_Qboat20Sunny_top-right202Bheat20sink

Abstract

The Internet of Things is used in a wide range of applications, and in combination with smart home devices (such as electrical appliances, air quality detectors, thermometers, and air conditioners) can make your home smarter.

In this tutorial we will show you how to use QBoat Sunny to enable voice control.

Requirements

 

Diagram

圖片1

 

The Python program will run on the Ubuntu LXC container to process speak recognition, and will use eSpeak as broadcasting.

Voice recordings will be sent to the Google Speech to Text API to convert them to plain text. The plain text will be transferred to DialogFlow (an online service) for natural language processing.

The DHT11 will acquire the temperature and humidity value every two seconds to power the relay on/off using the designated topic via MQTT from QBoat Sunny.

 

Hardware circuit

 

2

Software

 

LinkIt 7697:

<< linkit7697_ino_code/MQTTRelay.ino>>

Node-RED:

Refer to the following image. You can download and import this file to QIoT Suite Lite.

<<QIoT_export/MQTTHome.json>>

圖片3

Python:

<< speak/mqtt.py >>

 

Code:
https://github.com/blackmesataiwan/qboat_voice_control

 

We hope you have enjoyed this tutorial. Stay tuned for more tutorials and scenarios. You can also subscribe to our YouTube page at https://www.youtube.com/user/qnapsys

Related posts

Leave a Reply