Skip to content

Instantly share code, notes, and snippets.

@frneide
Created August 17, 2025 22:11
Show Gist options
  • Select an option

  • Save frneide/f71869b49599e2dd723f9de050672f26 to your computer and use it in GitHub Desktop.

Select an option

Save frneide/f71869b49599e2dd723f9de050672f26 to your computer and use it in GitHub Desktop.
Alura - Voz IA do Jogo
if ('speechSynthesis' in window) {
let utterance = new SpeechSynthesisUtterance(texto);
utterance.lang = 'pt-BR';
utterance.rate = 1.2;
window.speechSynthesis.speak(utterance);
} else {
console.log("Web Speech API não suportada neste navegador.");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment