package
Play streaming text through the WebSpeech SpeechSynthesis API.
npm install text-to-speech-streamGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Estimated unpacked size across 1 packages.
3.8 kB
Includes dependencies.
Simple text-stream wrapper around the WebSpeech SpeechSynthesizer API for Google Chrome.
TextToSpeechStream.getVoices() // Return all voice objects
var voice = TextToSpeechStream.getVoiceByName("Alex")
var synthesizer = new TextToSpeechStream({
voice: voice,
pitch: 1,
rate: 1
})
synthesizer.write("Hello world!")