Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
JavaScript Suite Documentation

TTSChunk Class Reference

Constructors

Instance Methods

Constructors

new TTSChunk(parameters)

Initializes an instance of TTSChunk.

Instance Methods

tTSChunk.getText() ⇒ String

Get the Text

Kind: Instance method of TTSChunk
Returns: String - the KEY_TEXT value

tTSChunk.getType() ⇒ SpeechCapabilities

Get the Type

Kind: Instance method of TTSChunk
Returns: SpeechCapabilities - the KEY_TYPE value

tTSChunk.setText(text) ⇒ TTSChunk

Set the Text

Kind: Instance method of TTSChunk
Returns: TTSChunk - The class instance for method chaining.

ParamTypeDescription
text String The text or phonemes to speak, or the name of the audio file to play. May not be empty. - The desired Text. {'string_min_length': 0, 'string_max_length': 500}

tTSChunk.setType(type) ⇒ TTSChunk

Set the Type

Kind: Instance method of TTSChunk
Returns: TTSChunk - The class instance for method chaining.

ParamTypeDescription
type SpeechCapabilities Describes whether the TTS chunk is plain text, a specific phoneme set, or an audio file. See SpeechCapabilities - The desired Type.
View on GitHub.com