<<<<<<< HEAD
A JavaScript library to use voice command in Chrome. This Library is not only wrap google's API, but also supply a smart learning feature which enables the browser to learn user's pronounce
You can use the standalone version:
<script src="myvoix.js"></script>
Create a new instance of Voix.
var _myVoix = new MyVoix(undefined,undefined,true);
Create a new instance of Voix
.
Args
-
pConfig
: refer to webkitSpeechRecognition's config. -
pCommands
: A serious of commands which have been stored before. -
pIsLoop
: whether to keep detecting.
eg:
var MyVoix=function(pConfig,pCommands,pIsLoop);
Args
-
pCommand
: a string or an array of string -
pListener
: the function which will be triggered
eg:
bind a string
_myVoix.bind('go',function(){});
bind an array
_myVoix.bind(['go','start'],function(){});
Args
-
pCommand
: a string or an array of string -
pListener
: the function need to be unbund
eg:
refer to bind
Args
opt
: the config of soundwave
eg:
_myVoix.createSoundWave({
canvas:document.getElementById('myCanvas'),
height:600,
width:800,
noise:0.01,
F:2
});
## Maintained by
- E-mail: ArthusLiang@gmail.com
Licensed under the MIT license.
Libaray to use voice command for html5
dd17d84e9869081ab05e7b80a3ff706989e2dc2c