Skip to content

Instantly share code, notes, and snippets.

@CrisCesare
Created February 8, 2025 20:41
Show Gist options
  • Save CrisCesare/f85646d9297cae87292937a734cfca8f to your computer and use it in GitHub Desktop.
Save CrisCesare/f85646d9297cae87292937a734cfca8f to your computer and use it in GitHub Desktop.
Biblioteca de Voz
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