How to create voice control on QBoat Sunny

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

2 thoughts on “How to create voice control on QBoat Sunny

  1. 請問在Rule內
    QNAP的選項內基本上會有五個QDashboard、QBroker(in)、QBroker(out)、QDdataBase和QHistoricData。
    但我卻沒有QDdataBase 請問該如何開啟?
    我使用的是版本 1.1.111
    謝謝

    1. tim

      您好:
      在1.1.X版本中,我們將透過broker傳進來的資料預設上存進Database之中,故移除掉了QDatabase的node,詳細說明可以參考此篇文章:https://qiot.qnap.com/blog/tw/2018/07/02/qiot-suite-lite-%E5%B9%AB%E5%8A%A9%E5%BF%AB%E9%80%9F%E6%94%B6%E9%9B%86%E6%84%9F%E6%B8%AC%E5%99%A8%E6%AD%B7%E5%8F%B2%E8%B3%87%E6%96%99/

      謝謝

Leave a Reply