Last active
September 7, 2022 12:40
-
-
Save AitorAlejandro/35a79876da5f7ecdccfb1dc8e3ec47a8 to your computer and use it in GitHub Desktop.
Uso básico total de SpeechSynthesis
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
const synth = speechSynthesis; | |
const msg = new SpeechSynthesisUtterance(); | |
msg.text = 'Hola amo'; | |
// o directamente new SpeechSynthesisUtterance('Hola amo'); | |
msg.lang = 'es-ES'; | |
synth.speak(msg); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment