共用方式為


TextToSpeech.GetFeatures(Locale) Method

Definition

Caution

deprecated

Queries the engine for the set of features it supports for a given locale.

[Android.Runtime.Register("getFeatures", "(Ljava/util/Locale;)Ljava/util/Set;", "GetGetFeatures_Ljava_util_Locale_Handler")]
[System.Obsolete("deprecated")]
public virtual System.Collections.Generic.ICollection<string>? GetFeatures (Java.Util.Locale? locale);
[<Android.Runtime.Register("getFeatures", "(Ljava/util/Locale;)Ljava/util/Set;", "GetGetFeatures_Ljava_util_Locale_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member GetFeatures : Java.Util.Locale -> System.Collections.Generic.ICollection<string>
override this.GetFeatures : Java.Util.Locale -> System.Collections.Generic.ICollection<string>

Parameters

locale
Locale

The locale to query features for.

Returns

Set instance. May return null on error.

Attributes

Remarks

Queries the engine for the set of features it supports for a given locale. Features can either be framework defined, e.g. TextToSpeech.Engine#KEY_FEATURE_NETWORK_SYNTHESIS or engine specific. Engine specific keys must be prefixed by the name of the engine they are intended for. These keys can be used as parameters to TextToSpeech#speak(String, int, java.util.HashMap) and TextToSpeech#synthesizeToFile(String, java.util.HashMap, String).

Features values are strings and their values must meet restrictions described in their documentation.

This member is deprecated. As of API level 21, please use voices. In order to query features of the voice, call #getVoices() to retrieve the list of available voices and Voice#getFeatures() to retrieve the set of features.

Java documentation for android.speech.tts.TextToSpeech.getFeatures(java.util.Locale).

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