Skip to content

Instantly share code, notes, and snippets.

@aminembarki
Last active May 14, 2018 00:45
Show Gist options
  • Select an option

  • Save aminembarki/3eb032a2947ee44c24c531bfe805fb3a to your computer and use it in GitHub Desktop.

Select an option

Save aminembarki/3eb032a2947ee44c24c531bfe805fb3a to your computer and use it in GitHub Desktop.
if('speechSynthesis' in window){
var speech = new SpeechSynthesisUtterance('hello baby');
speech.lang = 'en-US';
speech..rate = 1.5;
window.speechSynthesis.speak(speech);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment