Skip to content

Instantly share code, notes, and snippets.

@netoht
Created July 23, 2014 08:25
Show Gist options
  • Save netoht/a927837aa7eb842ec663 to your computer and use it in GitHub Desktop.
Save netoht/a927837aa7eb842ec663 to your computer and use it in GitHub Desktop.
speechTest.js
function speechTest() {
var speech = new webkitSpeechRecognition;
speech.continuous = true;
speech.interimResults = true;
speech.lang = 'pt-BR';
speech.onresult = function(e) {
console.log(e.results[e.results.length-1][0].transcript);
};
speech.start();
}
speechTest();
@netoht
Copy link
Author

netoht commented Aug 28, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment