Insights

How to make your browser talk using speechSynthesis

Photo of the author: Camilo Nova

Camilo Nova

  •  

1 min read.

You can make your browser talk to you using the new awesome speech-api spec, simple as:

function talkToMe () {
    var msg = new SpeechSynthesisUtterance();
    msg.lang = 'en';
    msg.rate = 2;
    msg.text = 'We are an awesome team';
    window.speechSynthesis.speak(msg);
}

Call this javascript function and you will start listening to your browser (must be an updated browser).

See full spec at: https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html

Learn more by receiving an email once a month.

Additional Insights

How to retrieve Facebook extra info from Django

When we use python-social-auth sometimes there is a need to obtain some extra information from the Facebook about a regis...

Author Vera Mazhuga Vera Mazhuga

Imagen vs. Diseño digital

Durante muchos años, se ha venido hablando sobre que la buena imagen de una página web, trae consigo más clientes y una mayor...

Photo of the author: Roberto Aguirre Roberto Aguirre