0.1.0
Usage
var u = new SpeechSynthesisUtterance('Hello World');
u.lang = 'en-US';
u.volume = 1.0;
u.rate = 1.0;
u.onend = function(event) { console.log('Finished in ' + event.elapsedTime + ' seconds.'); };
speechSynthesis.speak(u);
CORS proxy server
u.corsProxyServer = 'http://www.corsproxy.com/';
Supported attributes and methods
SpeechSynthesis Attributes
- pending
- speaking
- paused
SpeechSynthesis Methods
- speak()
- cancel()
- pause()
- resume()
getVoices()
SpeechSynthesisUtterance Attributes
- text
- lang
voiceURI- volume
- rate
pitch
SpeechSynthesisUtterance Events
- onstart
- onend
- onerror
- onpause
- onresume
onmarkonboundary
SpeechSynthesisEvent Attributes
charIndex- elapsedTime
name
SpeechSynthesisVoice
voiceURInamelanglocalServicedefault
Voice depends on google translate service.
SpeechSynthesisVoiceList
lengthitem