TtsSpan
open class TtsSpan : ParcelableSpan
| kotlin.Any | |
| ↳ | android.text.style.TtsSpan |
A span that supplies additional meta-data for the associated text intended for text-to-speech engines. If the text is being processed by a text-to-speech engine, the engine may use the data in this span in addition to or instead of its associated text. Each instance of a TtsSpan has a type, for example TYPE_DATE or TYPE_MEASURE. And a list of arguments, provided as key-value pairs in a bundle. The inner classes are there for convenience and provide builders for each TtsSpan type.
Summary
| Nested classes | |
|---|---|
| open |
A simple builder for TtsSpans. |
| open |
A builder for TtsSpans of type |
| open |
A builder for TtsSpans of type |
| open |
A builder for TtsSpans of type |
| open |
A builder for TtsSpans of type |
| open |
A builder for TtsSpans of type |
| open |
A builder for TtsSpans of type |
| open |
A builder for TtsSpans of type |
| open |
A builder for TtsSpans of type |
| open |
A builder for TtsSpans of type |
| open |
A builder for TtsSpans of type |
| open |
A builder for TtsSpans, has setters for morphosyntactic features. |
| open |
A builder for TtsSpans of type |
| open |
A builder for TtsSpans of type |
| open |
A builder for TtsSpans of type |
| open |
A builder for TtsSpans of type |
| Constants | |
|---|---|
| static String | |
| static String | |
| static String |
String argument supplying animacy information. |
| static String |
String argument supplying case information. |
| static String |
Argument used to specify the country code of a telephone number. |
| static String |
Argument used to specify the currency. |
| static String |
Argument used to specify the day of the month of a date. |
| static String |
Argument used to specify the denominator of a fraction. |
| static String |
Argument used to specify a string of digits. |
| static String |
Argument used to specify the domain part of a URI. |
| static String |
Argument used to specify the extension part of a telephone number. |
| static String |
Argument used to specify the fractional part of a decimal. |
| static String |
Argument used to specify the fragment id of a URI. |
| static String |
String argument supplying gender information. |
| static String |
Argument used to specify the hours of a time or duration. |
| static String |
Argument used to specify the integer part of a decimal or fraction. |
| static String |
Argument used to specify the minutes of a time or duration. |
| static String |
Argument used to specify the month of a date. |
| static String |
String argument supplying multiplicity information. |
| static String |
Argument used to specify a whole number. |
| static String |
Argument used to specify the main number part of a telephone number. |
| static String |
Argument used to specify the numerator of a fraction. |
| static String |
Argument used to specify the password part of a URI. |
| static String |
Argument used to specify the path part of a URI. |
| static String |
Argument used to specify the port number of a URI. |
| static String |
Argument used to specify the protocol of a URI. |
| static String |
Argument used to choose the suffix (thousand, million, etc) that is used to pronounce large amounts of money. |
| static String |
Argument used to specify the query string of a URI. |
| static String |
Argument used to specify the seconds of a time or duration. |
| static String |
String supplying the text to be synthesized. |
| static String |
Argument used to specify the unit of a measure. |
| static String |
Argument used to specify the username part of a URI. |
| static String |
Argument used to specify a string where the characters are read verbatim, except whitespace. |
| static String |
Argument used to specify the weekday of a date. |
| static String |
Argument used to specify the year of a date. |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static Int | |
| static Int | |
| static Int | |
| static Int | |
| static Int | |
| static Int | |
| static Int | |
| static Int | |
| static Int | |
| static Int | |
| static Int | |
| static Int | |
| static String | |
| static String | |
| static String | |
| static String |
The text associated with this span is a cardinal. |
| static String |
The text associated with this span is a date. |
| static String |
The text associated with this span is a decimal number. |
| static String |
The text associated with this span is a series of digits that have to be read sequentially. |
| static String |
The text associated with this span is a duration, consisting of a number of hours, minutes, and seconds specified with |
| static String |
The text associated with this span is a URI (can be used for URLs and email addresses). |
| static String |
The text associated with this span is a fractional number. |
| static String |
The text associated with this span is a measure, consisting of a number and a unit. |
| static String |
The text associated with this span is an amount of money. |
| static String |
The text associated with this span is an ordinal. |
| static String |
The text associated with this span is a telephone number. |
| static String |
This span type can be used to add morphosyntactic features to the text it spans over, or synthesize a something else than the spanned text. |
| static String |
The text associated with this span is a time, consisting of a number of hours, minutes, and seconds specified with |
| static String |
The text associated with this span is a series of characters that have to be read verbatim. |
| static Int | |
| static Int | |
| static Int | |
| static Int | |
| static Int | |
| static Int | |
| static Int | |
| Public constructors | |
|---|---|
TtsSpan(type: String!, args: PersistableBundle!) |
|
| Public methods | |
|---|---|
| open Int |
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
| open PersistableBundle! |
getArgs()Returns a bundle of the arguments set. |
| open Int |
Return a special type identifier for this span class. |
| open String! |
getType()Returns the type. |
| open Unit |
writeToParcel(dest: Parcel, flags: Int)Flatten this object in to a Parcel. |
Constants
ANIMACY_INANIMATE
static val ANIMACY_INANIMATE: String
Value: "android.inanimate"ARG_ANIMACY
static val ARG_ANIMACY: String
String argument supplying animacy information. Can be ANIMACY_ANIMATE or ANIMACY_INANIMATE
Value: "android.arg.animacy"ARG_CASE
static val ARG_CASE: String
String argument supplying case information. Can be any of CASE_NOMINATIVE, CASE_ACCUSATIVE, CASE_DATIVE, CASE_ABLATIVE, CASE_GENITIVE, CASE_VOCATIVE, CASE_LOCATIVE and CASE_INSTRUMENTAL
Value: "android.arg.case"ARG_COUNTRY_CODE
static val ARG_COUNTRY_CODE: String
Argument used to specify the country code of a telephone number. Can be a string of digits optionally prefixed with a "+". Can be used with TYPE_TELEPHONE.
Value: "android.arg.country_code"ARG_CURRENCY
static val ARG_CURRENCY: String
Argument used to specify the currency. Should be a ISO4217 currency code, e.g. "USD". Can be used with TYPE_MONEY.
Value: "android.arg.money"ARG_DAY
static val ARG_DAY: String
Argument used to specify the day of the month of a date. The value should be provided as an integer in the range from 1 up to and including 31. Can be used with TYPE_DATE.
Value: "android.arg.day"ARG_DENOMINATOR
static val ARG_DENOMINATOR: String
Argument used to specify the denominator of a fraction. The value can be a string of digits of any size optionally prefixed with a + or -. Can be used with TYPE_FRACTION.
Value: "android.arg.denominator"ARG_DIGITS
static val ARG_DIGITS: String
Argument used to specify a string of digits. Can be used with TYPE_DIGITS.
Value: "android.arg.digits