Skip to content

Instantly share code, notes, and snippets.

@arthurbergmz
Created June 17, 2017 01:34
Show Gist options
  • Save arthurbergmz/679f3f8da241c21e8a374700fde5e39d to your computer and use it in GitHub Desktop.
Save arthurbergmz/679f3f8da241c21e8a374700fde5e39d to your computer and use it in GitHub Desktop.
WebBrowser SpeechShyntesis - pt-BR
const synth = window.speechSynthesis
const speech = new SpeechSynthesisUtterance('Olá, mundo!')
speech.voice = synth.getVoices()[16] // Google PT-BR
speech.rate = 1
speech.pitch = 1
synth.speak(speech)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment