Skip to content

Instantly share code, notes, and snippets.

@AitorAlejandro
Last active September 7, 2022 12:40
Show Gist options
  • Save AitorAlejandro/35a79876da5f7ecdccfb1dc8e3ec47a8 to your computer and use it in GitHub Desktop.
Save AitorAlejandro/35a79876da5f7ecdccfb1dc8e3ec47a8 to your computer and use it in GitHub Desktop.
Uso básico total de SpeechSynthesis
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