Skip to content

Instantly share code, notes, and snippets.

@GuiStockler
Created July 10, 2025 02:34
Show Gist options
  • Save GuiStockler/70c749e5e1cd5e63a4187a4b9ed80943 to your computer and use it in GitHub Desktop.
Save GuiStockler/70c749e5e1cd5e63a4187a4b9ed80943 to your computer and use it in GitHub Desktop.
Responsive voice
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