-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class AudioPromptContent implements Parcelable
Audio prompt content For example, sentence = "in five hundred meters keep right to %1% towards %2%", then client use tokens0 to replace %1%, tokens1 to replace %2% in the sentence. Please notice: client can assemble final TTS string by dealing with tokens. If client wants to choose phoneme, please note that phoneme, escape symbol and language tag should be assembled by client The placeholder has same size with token vector
-
-
Field Summary
Fields Modifier and Type Field Description private final String
sentence
private final List<AudioToken>
tokens
-
Constructor Summary
Constructors Constructor Description AudioPromptContent(String sentence, List<AudioToken> tokens)
AudioPromptContent(List<AudioToken> tokens)
-
Method Summary
Modifier and Type Method Description final String
getSentence()
final List<AudioToken>
getTokens()
Integer
describeContents()
-
-
Constructor Detail
-
AudioPromptContent
AudioPromptContent(String sentence, List<AudioToken> tokens)
-
AudioPromptContent
AudioPromptContent(List<AudioToken> tokens)
-
-
Method Detail
-
getSentence
final String getSentence()
-
getTokens
final List<AudioToken> getTokens()
-
describeContents
Integer describeContents()
-
-
-
-