public class AudioData extends Object
| Constructor and Description |
|---|
AudioData(SdlFile audioFile) |
AudioData(String spokenString) |
AudioData(String phoneticString,
SpeechCapabilities phoneticType) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAudioFiles(List<SdlFile> audioFiles)
Add additional SDLFiles holding data or pointing to a file on the file system.
|
void |
addPhoneticSpeechSynthesizerStrings(List<String> phoneticString,
SpeechCapabilities phoneticType)
Create additional strings to be spoken by the system speech synthesizer using a phonetic string.
|
void |
addSpeechSynthesizerStrings(List<String> spokenString)
Create additional strings to be spoken by the system speech synthesizer.
|
List<TTSChunk> |
getAudioData() |
public AudioData(@NonNull
SdlFile audioFile)
public AudioData(@NonNull
String spokenString)
public AudioData(@NonNull
String phoneticString,
@NonNull
SpeechCapabilities phoneticType)
public void addAudioFiles(@NonNull
List<SdlFile> audioFiles)
audioFiles - A list of audio file to be played by the systempublic void addSpeechSynthesizerStrings(@NonNull
List<String> spokenString)
spokenString - The strings to be spoken by the system speech synthesizerpublic void addPhoneticSpeechSynthesizerStrings(@NonNull
List<String> phoneticString,
@NonNull
SpeechCapabilities phoneticType)
phoneticString - The strings to be spoken by the system speech synthesizerphoneticType - Must be one of `SAPI_PHONEMES`, `LHPLUS_PHONEMES`, `TEXT`, or `PRE_RECORDED` or no object will be created