Skip to content

A Javascript library for working with the webkitSpeechRecognition.

License

Notifications You must be signed in to change notification settings

rlgnak/domotica

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#Domotica

A Javascript library for working with the webkitSpeechRecognition API.

##Todo!

  • Add support for routes with numbers for example "turn on number %d" would respond to "turn on number one" or "turn on number two".
  • Add support for routes with wildcards for example "turn on the %w" would respond to "turn on the tv" or "turn on the toaster".
  • Add the ability for domintica to automatically restart the listener if it stops for some reason.
  • Add support for routes with word lists for example "turn on the %(tv|toaster)" would respond to "turn on the tv" or "turn on the toaster".

##Example

var router = new (Domotica.Router.extend({
	routes: {
	  "house lights" : "toggleLights"
	},

	toggleLights: function(){
	  console.log("toggleLights")
	}
}));

Domotica.listener.listen();

About

A Javascript library for working with the webkitSpeechRecognition.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published