SpeechSynthesisUtterance

EventTargetjs.html.SpeechSynthesisUtterance (extern class)

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:

Instance Members

text: String

Gets and sets the text that will be synthesised when the utterance is spoken.


lang: String

Gets and sets the language of the utterance.


Gets and sets the voice that will be used to speak the utterance.


volume: Float

Gets and sets the volume that the utterance will be spoken at.


rate: Float

Gets and sets the speed at which the utterance will be spoken at.


pitch: Float

Gets and sets the pitch at which the utterance will be spoken at.


Fired when the utterance has begun to be spoken.


Fired when the utterance has finished being spoken.


Fired when an error occurs that prevents the utterance from being succesfully spoken.


Fired when the utterance is paused part way through.


onresume: haxe.Function

Fired when a paused utterance is resumed.


Fired when the spoken utterance reaches a named SSML "mark" tag.


onboundary: haxe.Function

Fired when the spoken utterance reaches a word or sentence boundary.


new(text: String): Void
Name Type
text String