Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created December 2, 2019 03:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/04f1e4064bd5b0e9346a6648b237a67e to your computer and use it in GitHub Desktop.
Save parzibyte/04f1e4064bd5b0e9346a6648b237a67e to your computer and use it in GitHub Desktop.
let sr = new webkitSpeechRecognition();
sr.onresult = resultado => {
console.log(resultado);
}
sr.onend = () => {
// Simplemente iniciamos de nuevo ;)
sr.start();
};
// Y lo iniciamos por primera vez ;)
sr.start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment