loading

If you are not familiar with Amazon Echo — it is a novel personal assistant that responds to your voice commands and, therefore, performs simple tasks tasks for you. For example, it can control your smart lights or turn on and off anything plugged into your Internet-connected power outlets.

In this instructable we will learn how to build a similar system using Raspberry Pi with Prota OS. To get a sense of what you can control with your voice, watch a quick video demonstration above. As you can see it's not a full Amazon Echo replacement because it cannot respond to your questions, however it still does a pretty good job in helping you out with your smart items, especially when you don't have your smartphone or tablet by your side.

Step 1: Check If You Have the Following Items.

This item list is not conclusive. In this instructable we will show how we use voice to control Philips Hue connected lightbulbs and an electric fan plugged into a DIY smart socket.

In theory you can set up personal voice commands to control other devices that are plugged into Raspberry Pi's GPIO pins or even control your web services if you connect them to Raspberry Pi via Prota Web-hook app.

To replicate what's been shown in the demo above, you will need:

  • To enable speech recognition:
    • Raspberry P
    • Webcam with a microphone)
    • SD card with Prota OS (download here)
    • Speech app for Prota (install via Prota App Repository)
    • WLAN dongle
  • To remotely control lights
    • Philips Hue
  • To remotely control an electric fan
    • DIY smart sockets (learn how to make here)
    • RF antenna module for Raspberry Pi
    • Bread board
    • ON OFF app (install via Prota App Repository)

Step 2: Set Up Smart RF Sockets.

Please read a full instructable about how to make your own DIY smart electric sockets.

Short version:

  1. Install Prota OS on Raspberry Pi
  2. Connect RF module to Raspberry Pi using a bread board
  3. In your browser go to http://myprota.me
  4. Find and open App Repository
  5. Find and install ON OFF app (just click install)
  6. Go back to shell and open ON OFF app
  7. Click to add new RF socket
  8. Long press a physical button on your smart socket to activate the discovery mode
  9. Once the socket is discovered (LED stops flashing), click remember in the ON OFF app.

Step 3: Plug in Your Webcam and WLAN Dongle.

Once you finish setting up smart sockets, plug in remaining parts: webcam and WLAN dongle (you'll need this for wireless Internet connection).

Step 4: Once Everything Is Connected and Raspberry Pi Is Up and Running, Go to Http://myprota.me.

Step 5: Go to App Repository and Install Speech, Hue and ON OFF Apps.

Step 6: Go Back to Shell and Then Go to Ambience App.

This is where you'll set your keywords and voice control rules. Click on + icon to add a new rule.

Step 7: Let's Set Up a Command for Turning Lights on and Off.

First select the Speech app as your sensor and Philips Hue app as your actuator.

Step 8: Choose That If Specific Phrase Is Recognized, Philips Hue Should Be Turned On.

Step 9: Click on the Green Tick Sign to Confirm Your Sensor, Then Click Funnel Sign to Set Up Your Phrase.

Step 10: Enter What Keyword Should Your Phrase Contain and Click the Tick Sign Again.

Step 11: Review Your Rule and Click on the Green Tick Sign Again.

Step 12: Name and Save Your Rule.

Step 13: Repeat the Process to Set Up Other Keywords and Rules. This One for Example Turns the Electric Fan Off.

That's it!

Hope it works well for you. Enjoy!

<p>I've installed Prota on my raspberry pi, and I've got a USB sound card with a mic attached, but I'm not seeing the voice app in the repository.</p>
<p>we have a same. been removed :-(</p>
<p><strong>Naran is a known astroturfer for </strong><strong>porta</strong>, this is a promotion not a tutorial.</p>
<p>Now that I think about it. Could it be that a RPi 2 is required for the speech app?</p>
<p>Yes, you should be able to see the Speech App in the Repository.</p>
<p>Okay. It isn't showing up for me. (Raspberry Pi model B, 512MB Ram (Rev. 2))</p>
<p>The speech app isn't showing up on my installation as well.</p><p>I've tried it with the latest Prota OS (20160205) and a Raspberry Pi B to.</p><p>I've a webcam attached (Microsoft Lifecam VX-7000) to it. </p>
<p>G.T</p>
<p>Hmm, the speech app doesn't show up on the cloud access or the local access. And my prota doesn't show up at all on the myprota.me website. Any ideas?</p>
<p><strong>Naran is a known astroturfer for </strong><strong>porta</strong>, this is a promotion not a tutorial.</p>
<p><strong>Naran is a known astroturfer for </strong><strong>porta</strong>, this is a promotion not a tutorial.</p>
<p>Note that the voice app is not currently available, which sadly makes this guide redundant. More here: https://support.prota.info/hc/communities/public/questions/208148878-Voice-App</p>
<p>Hi, does anyone know if this is always listening and transmitting constantly to whatever STT service it is using? Or is there a passive trigger phrase?</p>
<p>I am looking into making one of these but the Prota OS for RPi is not available. Do you have an alternative link or an idea when it will be available?</p>
<p>can you not use a usb microphone instead of a webcam? and could you recommend a cheap wifi adapter?</p>
<p>Although I have not built this my self, a usb microphone should work. The reason they used a webcam is because Raspberry pi does not have a sound card, while a webcam with a mic does. Alternatively you could use a usb sound card which are available for ~10$. Just make sure that the usb mic in question does not draw too much power from the usb port or is externally powered.</p>
<p>+1</p>
<p>Hey, does this use the prota or the prota+ software that is yet to be released. Thanks</p>
<p>It can be used both with Prota and Prota +</p>
<p>Can I suggest you change the download link to: http://prota.info/downloads/</p>
<p>Done! Thank you for noticing :)</p>

About This Instructable

20,827views

181favorites

License:

Bio: We are the creators of - Prota OS: an OS for smart home hub that connects all devices and services and automate them in a simple ... More »
More by Naran:Boost Your Google Home With Prota OS for RPi DIY Smart Home Automation for Everyone Turn a Monitor Into a Family-shared Live Slideshow Album (w/ Raspberry Pi) 
Add instructable to: