home automation with speech recognition
DESCRIPTION
Billy Overton 2012-9-19. Home Automation with Speech Recognition. Controlling Your Devices. Getting back to software. Common Communication Methods. RS-232 HTTP GET/POST Infrared Custom. RS-232. Pros Many devices have RS-232 control Extremely simple Has common libraries - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Home Automation with Speech Recognition](https://reader030.vdocuments.us/reader030/viewer/2022032805/56813300550346895d99beec/html5/thumbnails/1.jpg)
Home Automation with Speech Recognition
Billy Overton2012-9-19
![Page 2: Home Automation with Speech Recognition](https://reader030.vdocuments.us/reader030/viewer/2022032805/56813300550346895d99beec/html5/thumbnails/2.jpg)
Controlling Your DevicesGetting back to software
![Page 3: Home Automation with Speech Recognition](https://reader030.vdocuments.us/reader030/viewer/2022032805/56813300550346895d99beec/html5/thumbnails/3.jpg)
Common Communication Methods
RS-232 HTTP GET/POST Infrared Custom
![Page 4: Home Automation with Speech Recognition](https://reader030.vdocuments.us/reader030/viewer/2022032805/56813300550346895d99beec/html5/thumbnails/4.jpg)
RS-232
Pros Many devices have RS-232 control Extremely simple Has common libraries Usually well documented
Cons Uncommon Hardware No common command set
![Page 5: Home Automation with Speech Recognition](https://reader030.vdocuments.us/reader030/viewer/2022032805/56813300550346895d99beec/html5/thumbnails/5.jpg)
RS-232 in PowerShell
http://files.support.epson.com/pdf/plhc87u/plhc87uug.pdf
![Page 6: Home Automation with Speech Recognition](https://reader030.vdocuments.us/reader030/viewer/2022032805/56813300550346895d99beec/html5/thumbnails/6.jpg)
HTTP GET/POST
Pros Uses pre-existing controls systems Can be as simple as an iframe Customizable
Cons Usually less documented
![Page 7: Home Automation with Speech Recognition](https://reader030.vdocuments.us/reader030/viewer/2022032805/56813300550346895d99beec/html5/thumbnails/7.jpg)
Infrared
Pros Almost everything has a remote Will cover all the functions a user wants Has premade tools: (Win)LIRC▪ http://lirc.sourceforge.net/remotes/
Cons Time consuming Hardware Dependent
![Page 8: Home Automation with Speech Recognition](https://reader030.vdocuments.us/reader030/viewer/2022032805/56813300550346895d99beec/html5/thumbnails/8.jpg)
Custom
Pros You can do anything you want
Cons More hardware
![Page 9: Home Automation with Speech Recognition](https://reader030.vdocuments.us/reader030/viewer/2022032805/56813300550346895d99beec/html5/thumbnails/9.jpg)
Speech Recognition with KinectFrom voice to code
![Page 10: Home Automation with Speech Recognition](https://reader030.vdocuments.us/reader030/viewer/2022032805/56813300550346895d99beec/html5/thumbnails/10.jpg)
Microsoft SDKs
Kinect for Windows Microsoft Speech Platform
![Page 11: Home Automation with Speech Recognition](https://reader030.vdocuments.us/reader030/viewer/2022032805/56813300550346895d99beec/html5/thumbnails/11.jpg)
Kinect Setup
![Page 12: Home Automation with Speech Recognition](https://reader030.vdocuments.us/reader030/viewer/2022032805/56813300550346895d99beec/html5/thumbnails/12.jpg)
Kinect Setup
![Page 13: Home Automation with Speech Recognition](https://reader030.vdocuments.us/reader030/viewer/2022032805/56813300550346895d99beec/html5/thumbnails/13.jpg)
Kinect Setup
![Page 14: Home Automation with Speech Recognition](https://reader030.vdocuments.us/reader030/viewer/2022032805/56813300550346895d99beec/html5/thumbnails/14.jpg)
Speech Recognition
Speech Recognition Engines Grammars Recognition Results
![Page 15: Home Automation with Speech Recognition](https://reader030.vdocuments.us/reader030/viewer/2022032805/56813300550346895d99beec/html5/thumbnails/15.jpg)
Speech Recognition Engines
There are two types We’ll use
SpeechRecognitionEngine();
![Page 16: Home Automation with Speech Recognition](https://reader030.vdocuments.us/reader030/viewer/2022032805/56813300550346895d99beec/html5/thumbnails/16.jpg)
Grammars
Define what we are looking for Have three methods of creation
GrammarBuilder class SrgsGrammar class Srgs XML file
![Page 17: Home Automation with Speech Recognition](https://reader030.vdocuments.us/reader030/viewer/2022032805/56813300550346895d99beec/html5/thumbnails/17.jpg)
GrammarBuilder
Allows you to add items such as strings and Choices objects to build a grammar
Used to create a Grammar object
![Page 18: Home Automation with Speech Recognition](https://reader030.vdocuments.us/reader030/viewer/2022032805/56813300550346895d99beec/html5/thumbnails/18.jpg)
GrammarBuilder Example
![Page 19: Home Automation with Speech Recognition](https://reader030.vdocuments.us/reader030/viewer/2022032805/56813300550346895d99beec/html5/thumbnails/19.jpg)
Adding a Grammar
recognitionEngine.LoadGrammar(g)
![Page 20: Home Automation with Speech Recognition](https://reader030.vdocuments.us/reader030/viewer/2022032805/56813300550346895d99beec/html5/thumbnails/20.jpg)
Listening for Speech
Two Methods Synchronous▪ recognitionEngine.Recognize()▪ Returns RecognitionResult
Asynchronous▪ recognitionEngine.RecognizeAsync()▪ recognitionEngine.RecognizeAsync(mode)▪ Raises SpeechRecognized event
![Page 21: Home Automation with Speech Recognition](https://reader030.vdocuments.us/reader030/viewer/2022032805/56813300550346895d99beec/html5/thumbnails/21.jpg)
RecognitionResult
Contains all data regarding one grammar match.
Most notably contains: Result.Text Result.Confidence
![Page 22: Home Automation with Speech Recognition](https://reader030.vdocuments.us/reader030/viewer/2022032805/56813300550346895d99beec/html5/thumbnails/22.jpg)
Full Example
![Page 23: Home Automation with Speech Recognition](https://reader030.vdocuments.us/reader030/viewer/2022032805/56813300550346895d99beec/html5/thumbnails/23.jpg)
Questions and Contact Information
Name: Billy Overton Email : [email protected] IRC: logos on irc.freenode.net
Join us in the #etsuacm channel