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
AudioData

AudioData Class Reference

Constructors

Instance Methods

Constructors

new AudioData(phoneticString, phoneticType, audioFile)

Initializes an instance of AudioData.

Instance Methods

audioData.addAudioFiles(audioFiles)

Adds audio files to _audioFiles.

Kind: Instance method of AudioData

ParamTypeDescription
audioFiles Array.<SdlFile> A list of audio files referenced by SdlFile instances.

audioData.addPhoneticSpeechSynthesizerStrings(phoneticString, phoneticType)

Create additional strings to be spoken by the system speech synthesizer using a phonetic string.

Kind: Instance method of AudioData

ParamTypeDescription
phoneticString Array.<String> The strings to be spoken by the system speech synthesizer
phoneticType SpeechCapabilities Must be one of `SAPI_PHONEMES`, `LHPLUS_PHONEMES`, `TEXT`, or `PRE_RECORDED` or no object will be created

audioData.addSpeechSynthesizerStrings(spokenString)

Create additional strings to be spoken by the system speech synthesizer.

Kind: Instance method of AudioData

ParamTypeDescription
spokenString Array.<String> The strings to be spoken by the system speech synthesizer.

audioData.getAudioData() ⇒ Array.<TTSChunk>

Gets the audio data.

Kind: Instance method of AudioData
Returns: Array.<TTSChunk> - An array of TTSChunks.

audioData.isValidPhoneticType(phoneticType) ⇒ Boolean

Checks whether the phonetic type is valid.

Kind: Instance method of AudioData
Returns: Boolean - Whether the phonetic type is valid.

ParamTypeDescription
phoneticType SpeechCapabilities Validates the phoneticType provided.
View on GitHub.com
Previous Section Next Section