Created
August 7, 2018 16:49
-
-
Save oHervis/56d1508d4685499a16dc7f36261ef3a2 to your computer and use it in GitHub Desktop.
WebSpeech API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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