Created
July 23, 2014 08:25
-
-
Save netoht/a927837aa7eb842ec663 to your computer and use it in GitHub Desktop.
speechTest.js
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
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(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.google.com/intl/en/chrome/demos/speech.html