Windows 10 IoT Core Speech Recognition

Hardware components:
R8326274 01
Raspberry Pi 2 Model B
× 1
09590 01
LED (generic)
× 2
Single Channel Relay
× 1
Generic Light
× 1
Generic USB Microphone
× 1
Software apps and online services:
Vs2015logo
Microsoft Visual Studio 2015

Windows 10 IoT Core Speech Recognition

STORY

Update 08-15-2015: Project converted to Visual Studio 2015 RTM

Windows 10 IoT Core Speech Recognition

One of the major feature of the recently released Windows 10 IoT Core for Rapsberry Pi was USB Audio support. This features open the Speech Recognition on Raspberry Pi. Previously it was working only for MinnowBoard MAX. Here is s project I worked last weekend using this feature.

To run this project you need following items:

  1. Raspberry Pi 2
  2. USB Microphone
  3. 1 Red Led and 1 Green Led
  4. One Relay Control
  5. One Electrical Light

Two Leds are connected to GPIO Pins 5 and 6 respectively. The Relay control is connected to GPIO Pin 13. The light is connected to the Relay control.

Wiring

  1. LEDs connected to GPIO Pins 5 and 6 respectively
  2. Relay Control 3.3v to RPi 3.3v
  3. Relay Control GND to RPi GND
  4. Light connected to Relay Control
  5. USB Microphone connected to one of the USB

Windows 10 IoT Core Speech Recognition

The project is simple Proof of Concept Home Automation device. Using this application uses voice recognition to turn on/off different devices attached to the RPi. For this POC I have attached two LEDs (one Red and another Green) and one electrical light using a single channel relay control. You can control these devices using voice. If you say “Turn on red led” then it will turn on the RED led attached to GPIO pin 5, “Turn on green led” will turn on green led attached to GPIO pin 6 and “Turn on bedroom light” will turn on electrical light attached to GPIO pin 13. This is only a Proof of Concept application but you can attach any devices to RPi and modify the application to control the devices.

Basically for grammar based speech recognition on Windows 10, you the steps:

  1. Create and initialize SpeechRecognition object
  2. Add and compile grammar file constraint
  3. Start a continuous speech recognition session
  4. Process the recognition results using the event handlers

For this application I have created a simple SRGS grammar file (attached below). You can find a detailed explanation on how to create SRGS grammer here.

Read More: Windows 10 IoT Core Speech Recognition

 

 

Scroll to Top