Created
February 8, 2025 20:41
-
-
Save CrisCesare/f85646d9297cae87292937a734cfca8f to your computer and use it in GitHub Desktop.
Biblioteca de Voz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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