home automation with speech recognition

23
Home Automation with Speech Recognition Billy Overton 2012-9-19

Upload: kevyn-thomas

Post on 02-Jan-2016

13 views

Category:

Documents


0 download

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 Presentation

TRANSCRIPT

Page 1: Home Automation with Speech Recognition

Home Automation with Speech Recognition

Billy Overton2012-9-19

Page 2: Home Automation with Speech Recognition

Controlling Your DevicesGetting back to software

Page 3: Home Automation with Speech Recognition

Common Communication Methods

RS-232 HTTP GET/POST Infrared Custom

Page 4: Home Automation with Speech Recognition

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

RS-232 in PowerShell

http://files.support.epson.com/pdf/plhc87u/plhc87uug.pdf

Page 6: Home Automation with Speech Recognition

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

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

Custom

Pros You can do anything you want

Cons More hardware

Page 9: Home Automation with Speech Recognition

Speech Recognition with KinectFrom voice to code

Page 10: Home Automation with Speech Recognition

Microsoft SDKs

Kinect for Windows Microsoft Speech Platform

Page 11: Home Automation with Speech Recognition

Kinect Setup

Page 12: Home Automation with Speech Recognition

Kinect Setup

Page 13: Home Automation with Speech Recognition

Kinect Setup

Page 14: Home Automation with Speech Recognition

Speech Recognition

Speech Recognition Engines Grammars Recognition Results

Page 15: Home Automation with Speech Recognition

Speech Recognition Engines

There are two types We’ll use

SpeechRecognitionEngine();

Page 16: Home Automation with Speech Recognition

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

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

GrammarBuilder Example

Page 19: Home Automation with Speech Recognition

Adding a Grammar

recognitionEngine.LoadGrammar(g)

Page 20: Home Automation with Speech Recognition

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

RecognitionResult

Contains all data regarding one grammar match.

Most notably contains: Result.Text Result.Confidence

Page 22: Home Automation with Speech Recognition

Full Example

Page 23: Home Automation with Speech Recognition

Questions and Contact Information

Name: Billy Overton Email : [email protected] IRC: logos on irc.freenode.net

Join us in the #etsuacm channel