Freigeben über


TextToSpeech.SetEngineByPackageName(String) Method

Definition

Caution

deprecated

Sets the TTS engine to use.

[Android.Runtime.Register("setEngineByPackageName", "(Ljava/lang/String;)I", "GetSetEngineByPackageName_Ljava_lang_String_Handler")]
[System.Obsolete("deprecated")]
public virtual Android.Speech.Tts.OperationResult SetEngineByPackageName (string? enginePackageName);
[<Android.Runtime.Register("setEngineByPackageName", "(Ljava/lang/String;)I", "GetSetEngineByPackageName_Ljava_lang_String_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member SetEngineByPackageName : string -> Android.Speech.Tts.OperationResult
override this.SetEngineByPackageName : string -> Android.Speech.Tts.OperationResult

Parameters

enginePackageName
String

The package name for the synthesis engine (e.g. "com.svox.pico")

Returns

#ERROR or #SUCCESS.

Attributes

Remarks

Sets the TTS engine to use.

This member is deprecated. This doesn't inform callers when the TTS engine has been initialized. #TextToSpeech(Context, OnInitListener, String) can be used with the appropriate engine name. Also, there is no guarantee that the engine specified will be loaded. If it isn't installed or disabled, the user / system wide defaults will apply.

Java documentation for android.speech.tts.TextToSpeech.setEngineByPackageName(java.lang.String).

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