Voix
Constructor
config | Object | config |
keyList | Object | session data |
isLoop | Boolean | Whether to run after one detection |
var voix = new Jsonic.Voix();
Property
onLearning | Function | The event will be fired in learning mode |
onLog | Function | The event will be fired when voix call console.log |
Method
.start()
start to do voice recognition
voix.start();
.stop()
stop doing voice recognition
voix.stop();
.bind()
bind event
msg | string lowcase | message |
func | Function | null | event |
voix.bind('hello',event);
.unbind()
unbind event
msg | string lowcase | message |
func | Function | null | event |
voix.unbind('hello',event);
.one()
bind an event which will be fired only once
msg | string lowcase | message |
func | Function | null | event |
voix.one('hello',event);