Synthetize text to speech using the browser speechSynthesis
npm i -S tts-js
// const tts = require('tts-js')
import tts from 'tts-js'
tts.speak('Hello World')
// default options
tts.speak('Hello World', { lang: 'en-US', pitch: 1, rate: 1})
Synthetize text to speech using the browser speechSynthesis
Synthetize text to speech using the browser speechSynthesis
npm i -S tts-js
// const tts = require('tts-js')
import tts from 'tts-js'
tts.speak('Hello World')
// default options
tts.speak('Hello World', { lang: 'en-US', pitch: 1, rate: 1})
Synthetize text to speech using the browser speechSynthesis