Language

SynthesisRequest.Text Property

Definition

Caution

deprecated

Gets the text which should be synthesized.

[System.Obsolete("deprecated")]
public string? Text { [Android.Runtime.Register("getText", "()Ljava/lang/String;", "")] get; }
[<System.Obsolete("deprecated")>]
[<get: Android.Runtime.Register("getText", "()Ljava/lang/String;", "")>]
member this.Text : string

Property Value

The text to synthesize, converted to a string.

Attributes

Remarks

Unlike CharSequenceText, this obsolete property calls the Java text object's toString() method without a null check. If the request was created with null text, this getter throws Java.Lang.NullPointerException.

Gets the text which should be synthesized.

This member is deprecated. As of API level 21, replaced by #getCharSequenceText.

Java documentation for android.speech.tts.SynthesisRequest.getText().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to