package js.html
extends EventTarget
Available on js
The SpeechSynthesisUtterance interface of the Web Speech API represents a speech request. It contains the content the speech service should read and information about how to read it (e.g. language, pitch and volume.)
Documentation SpeechSynthesisUtterance by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
new(text:String)new()Throws:
null |
DOMError |
|---|
lang:StringGets and sets the language of the utterance.
onboundary:FunctionFired when the spoken utterance reaches a word or sentence boundary.
onend:FunctionFired when the utterance has finished being spoken.
onerror:FunctionFired when an error occurs that prevents the utterance from being succesfully spoken.
onmark:FunctionFired when the spoken utterance reaches a named SSML "mark" tag.
onpause:FunctionFired when the utterance is paused part way through.
onresume:FunctionFired when a paused utterance is resumed.
onstart:FunctionFired when the utterance has begun to be spoken.
pitch:FloatGets and sets the pitch at which the utterance will be spoken at.
rate:FloatGets and sets the speed at which the utterance will be spoken at.
text:StringGets and sets the text that will be synthesised when the utterance is spoken.
voice:SpeechSynthesisVoiceGets and sets the voice that will be used to speak the utterance.
volume:FloatGets and sets the volume that the utterance will be spoken at.
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/SpeechSynthesisUtterance.html