Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created April 24, 2019 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/0dad8057246fcec93d7c99d6255e0e0f to your computer and use it in GitHub Desktop.
Save parzibyte/0dad8057246fcec93d7c99d6255e0e0f to your computer and use it in GitHub Desktop.
// No preguntes por qué pongo esto que se ejecuta dos veces
// en determinados casos, solo así funciona en algunos casos
cargarVoces();
// Si hay evento, entonces lo esperamos
if ('onvoiceschanged' in speechSynthesis) {
speechSynthesis.onvoiceschanged = function () {
cargarVoces();
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment