1.0.1 • Published 6 years ago

text-to-speech-stream v1.0.1

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

text-to-speech-stream

JavaScript Style Guide

Simple text-stream wrapper around the WebSpeech SpeechSynthesizer API for Google Chrome.

Usage

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!")