DIY Your ReSpeaker Adapter(Voice Control)

by Seeed Studio in Circuits > Electronics

6726 Views, 65 Favorites, 0 Comments

DIY Your ReSpeaker Adapter(Voice Control)

f封面.jpg
111568387336872590.jpg
AWHI1359

Have you heard about home automation with Amazon Echo and Raspberry Pi? In that case, you could control your home with your voice. But Amazon Echo and Raspberry Pi are too expensive.

Now we have an new idea. With Seeed Studio ReSpeaker and Wio Node, we are able to make a Voice House Control scheme with less money and without having to worry about the complexities of the human voice.

ReSpeaker is an open modular voice interface to hack things around you. Let you interact with your home appliances, your plant, your office, your internet-equipped devices or any other things in your daily life, all by your voice.

In this recipe, we will develop a voice control adapter and control it with some voice command. If you like this, please share with your friends!

What Do We Need

a3784be6604e9e50f5c06794e3f6dbe3_original.jpg
SqOcKOIx7VWCSQYTBcR5pDyz.jpg
1030200051.jpg
QQ截图20160825141746.jpg
u=127593988,2933447128&fm=21&gp=0.jpg
copper_conductor_pvc_insulated_cable_for_internal_wiring_h05v2_u_h05v2_r_h05v2_k.jpg
21040-2.jpg
$_12.jpg
u=4034967378,1714953097&fm=21&gp=0.jpg
QQ截图20160825150857.jpg

Materials:

ReSpeaker Core with a SD card

Wio Node

Grove - Relay

Power Adapter

USB Power Adapter

Tools:

Cable

Soldering Iron

Solder wires

Pliers

Wio Link APP IOS / Android

Hardware Work 1

IMG_0617.JPG
IOT Adapter (1).JPG
IOT Adapter (2).JPG
IOT Adapter (3).JPG

Unscrew the back of power adapter. There are 3 wires marked as “1”,”2”,”3” in the pictures. Cut wire “1” “2” "3" as the picture shown. After that, to make the first socket always power on, solder wire “1” to its copper sheet.

Hardware Work 2

IOT Adapter (4).JPG
IOT Adapter (5).JPG
IOT Adapter (7).JPG
IOT Adapter (6).JPG

Connect wire “3” and “4”(new cable wire) to Grove - Relay. Then solder wire “4” to the copper sheet of the second socket as the picture above. Don’t forget to pull out the grove cable from the hole.

Finally screw down the back of power adapter.

Setup Wio Node

IOT Adapter (9).JPG
IMG_0623.PNG
IMG_0624.PNG

Connect Grove - Relay to PORT0 of Wio Node and power Wio Node with a USB power adapter.(PS: Be careful to use eletricity)

Open Wio Link APP in your phone and connect Wio Node to a Wi-Fi following the APP's instructions.

After that, add a Grove - Relay to PORT0 in the APP, update the firmware and get API like this: http://cn.wio.seeed.io/v1/node/resources?access_to...

PS: Get your own access_token in ths API and add it to the "main.py" python script

Setup ReSpeaker

QQ截图20160825171039.jpg

Serial console

  • baudrate:57600
  • terminal: putty on windows; "screen /dev/xxx 57600" on Linux/Mac

Connect to the Internet

  • Connect your smart phone/laptop to a Wi-Fi named LinkIt_Smart _xxxxxx and visit 192.168.100.1. After setting a password of Respeaker and logining in, you need to select station mode, select a Wi-Fi network and enter the password as the picture above.

Download and Edit Code

Download the code to ReSpeaker:

git clone https://github.com/jerryyip/respeaker_adapter.git

Then get a key from # get a key from https://www.microsoft.com/cognitive-services/en-u... and create 'creds.py' with the key.
Add your own Wio access_token to 'main.py'

Finish!

886402123654199605.jpg
IOT Adapter (9).JPG

Run the python script

python main.py

Try to say: "Hi ReSpeaker" , then it will repeat "hi" to you. And the next you could say "please turn on/off the relay" to control the adapter.

Let's try this!