Skip to content

Instantly share code, notes, and snippets.

@oHervis
Created August 7, 2018 16:49
Show Gist options
  • Save oHervis/56d1508d4685499a16dc7f36261ef3a2 to your computer and use it in GitHub Desktop.
Save oHervis/56d1508d4685499a16dc7f36261ef3a2 to your computer and use it in GitHub Desktop.
WebSpeech API
init() {
this.audioRecordApi.start();
this.audioRecordApi.continuos = true;
this.audioRecordApi.interimResults = true;
this.audioRecordApi.lang = 'pt-BR';
this.audioRecordApi.onstart = this.onstart.bind(this);
this.audioRecordApi.onend = this.onend.bind(this);
this.audioRecordApi.onresult = this.onresult.bind(this);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment