JSFiddle - React, Tailwind, and code Playground

by Oski Krawczyk

JavaScript

var msg = new SpeechSynthesisUtterance();
var voices = window.speechSynthesis.getVoices();
msg.voice = voices[2]; // Note: some voices don't support altering params
//msg.voiceURI = 'native';
//msg.volume = 1; // 0 to 1
//msg.rate = 0.5; // 0.1 to 10
//msg.pitch = 1; //0 to 2
msg.text = 'Positionly was the only tool where no one had to contact customer services';
//msg.lang = 'en-US';

msg.onend = function(e) {
  console.log('Finished in ' + event.elapsedTime + ' seconds.');
};

speechSynthesis.speak(msg)