JSFiddle - React, Tailwind, and code Playground
by graphettion
JavaScript
const hal = window.speechSynthesis
const halStays = 'Ahoy scallywags, how are me scallywags doin\' today?'
let phrase = new SpeechSynthesisUtterance(halStays)
phrase.voice = hal.getVoices[0]
phrase.pitch = .7
phrase.rate = .7
hal.speak(phrase)