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
Android Documentation
AudioData

Class AudioData

Hierarchy

java.lang.Object

Package
com.smartdevicelink.managers.screen
All Known Subclasses
com.smartdevicelink.managers.screen.AlertAudioData

Constructors

AudioData( SdlFile audioFile )

public AudioData(SdlFile audioFile)

Constructor Parameters

audioFile

AudioData( String spokenString )

public AudioData(String spokenString)

Constructor Parameters

spokenString

AudioData( String phoneticString, SpeechCapabilities phoneticType )

public AudioData(String phoneticString,SpeechCapabilities phoneticType)

Constructor Parameters

phoneticString
phoneticType

Methods

addAudioFiles( java.util.List<com.smartdevicelink.managers.file.filetypes.SdlFile> audioFiles )

Add additional SDLFiles holding data or pointing to a file on the file system. When this object is passed to an `Alert` or `Speak`, the file will be uploaded if it is not already, then played if the system supports that feature.

public void addAudioFiles(java.util.List<com.smartdevicelink.managers.file.filetypes.SdlFile> audioFiles)

Method Parameters

audioFiles
A list of audio file to be played by the system

addSpeechSynthesizerStrings( java.util.List<java.lang.String> spokenString )

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

public void addSpeechSynthesizerStrings(java.util.List<java.lang.String> spokenString)

Method Parameters

spokenString
The strings to be spoken by the system speech synthesizer

addPhoneticSpeechSynthesizerStrings( java.util.List<java.lang.String> phoneticString, SpeechCapabilities phoneticType )

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

public void addPhoneticSpeechSynthesizerStrings(java.util.List<java.lang.String> phoneticString,SpeechCapabilities phoneticType)

Method Parameters

phoneticString
The strings to be spoken by the system speech synthesizer
phoneticType
Must be one of `SAPI_PHONEMES`, `LHPLUS_PHONEMES`, `TEXT`, or `PRE_RECORDED` or no object will be created

getAudioData()

public java.util.List getAudioData()

Inherited Methods

From Class Methods
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section