package js.html
Available on jsThe
SpeechSynthesisinterface of the Web Speech API is the controller interface for the speech service; this can be used to retrieve information about the synthesis voices available on the device, start and pause speech, and other commands besides.Documentation SpeechSynthesis by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
read only paused:BoolA Boolean that returns true if the SpeechSynthesis object is in a paused state.
read only pending:BoolA Boolean that returns true if the utterance queue contains as-yet-unspoken utterances.
read only speaking:BoolA Boolean that returns true if an utterance is currently in the process of being spoken — even if SpeechSynthesis is in a paused state.
cancel ():VoidRemoves all utterances from the utterance queue.
getVoices ():Array<SpeechSynthesisVoice>Returns a list of SpeechSynthesisVoice objects representing all the available voices on the current device.
pause ():VoidPuts the SpeechSynthesis object into a paused state.
resume ():VoidPuts the SpeechSynthesis object into a non-paused state: resumes it if it was already paused.
speak (utterance:SpeechSynthesisUtterance):VoidAdds an SpeechSynthesisUtterance to the utterance queue; it will be spoken when any other utterances queued before it have been spoken.
© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/SpeechSynthesis.html