Skip to content

Instantly share code, notes, and snippets.

@LewisGet
Created July 20, 2016 07:52
Show Gist options
  • Save LewisGet/8152f7b372af18e67cd8d634e5f801e0 to your computer and use it in GitHub Desktop.
Save LewisGet/8152f7b372af18e67cd8d634e5f801e0 to your computer and use it in GitHub Desktop.
var recognition = new webkitSpeechRecognition();
recognition.lang = "zh-TW";
recognition.continuous = true;
recognition.interimResults = true;
recognition.onresult = function(event) {
console.log(event.results);
}
recognition.start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment