Created
March 7, 2026 23:14
-
-
Save devjaynemorais/de27bc9e259b8ddc3c6514bdecf62fb4 to your computer and use it in GitHub Desktop.
Código de Leitura de Tela
This file contains hidden or 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