Voice Controlled Electrical Appliances using Android app and ESP8266
As in part 2 of the tutorial we built an android app to control GPIO of ESP8266 using button press. In this tutorial instead of button we will Speech Recognization¬†to control same thing. ¬†In this article, we will use “Speech Recognizer” component of App Inventor 2¬†.
Step 1: Bring a button from user interface to screen, change background image ¬†to something fancy like below.
Step 2:¬†add a text box, where you can enter the ip address of your ESP8266 wifi chip.
Step 3:¬† In block section, add “when button get click” and “call speech recognizer.gottext” like shown below.
Step 4: ¬† Then Call and “Speech Recognizer . After Getting Text” like bellow and do your algorithm, call web services of ESP server inside that like bellow.
Thats all.Now Run and test your app.
To Turn On Lamp: You have to speak “Turn On Lamp”
To Turn Off Lamp: You have to speak “Turn Off Lamp”
Screen Shot of the app, I have created.
You can download the whole app inventor source code of the app by clicking here.
You Can download the app from play store, by clicking here.
Let me know, if you have any doubt regarding source code or anything related to this.
Now play with your imagination and make something cool. Happy Hacking ūüôā
First part of this tutorial:¬†https://www.myelectronicslab.com/tutorial/controlling-home-appliances-using-android-app-part-1/
Second Part Of the tutorial:¬†https://www.myelectronicslab.com/tutorial/controlling-home-appliences-with-esp8266-and-android-app-part-2/