Package ai.tock.translator
Class TextAndVoiceTranslatedString
-
- All Implemented Interfaces:
-
ai.tock.translator.TranslatedSequence,kotlin.CharSequence
public final class TextAndVoiceTranslatedString extends TranslatedString
A TranslatedString that has also a "voice" version.
-
-
Field Summary
Fields Modifier and Type Field Description private final CharSequencetextprivate final CharSequencevoiceprivate final Integerlength
-
Constructor Summary
Constructors Constructor Description TextAndVoiceTranslatedString(CharSequence text, CharSequence voice)
-
Method Summary
Modifier and Type Method Description final CharSequencegetText()final CharSequencegetVoice()final BooleanisSSML()StringtoString()final List<CharSequence>splitToCharSequence(String delimiters, Boolean ignoreCase, Integer limit)TranslatedSequencesubSequence(Integer startIndex, Integer endIndex)TranslatedSequenceplus(Object other)Returns a string obtained by concatenating this string with the string representation of the given other object. -
-
Constructor Detail
-
TextAndVoiceTranslatedString
TextAndVoiceTranslatedString(CharSequence text, CharSequence voice)
-
-
Method Detail
-
getText
final CharSequence getText()
-
getVoice
final CharSequence getVoice()
-
splitToCharSequence
final List<CharSequence> splitToCharSequence(String delimiters, Boolean ignoreCase, Integer limit)
-
subSequence
TranslatedSequence subSequence(Integer startIndex, Integer endIndex)
-
plus
TranslatedSequence plus(Object other)
Returns a string obtained by concatenating this string with the string representation of the given other object.
-
-
-
-