次の方法で共有


TextToSpeechService.OnIsValidVoiceName(String) Method

Definition

Checks whether the engine supports a voice with a given name.

[Android.Runtime.Register("onIsValidVoiceName", "(Ljava/lang/String;)I", "GetOnIsValidVoiceName_Ljava_lang_String_Handler")]
public virtual Android.Speech.Tts.OperationResult OnIsValidVoiceName (string? voiceName);
[<Android.Runtime.Register("onIsValidVoiceName", "(Ljava/lang/String;)I", "GetOnIsValidVoiceName_Ljava_lang_String_Handler")>]
abstract member OnIsValidVoiceName : string -> Android.Speech.Tts.OperationResult
override this.OnIsValidVoiceName : string -> Android.Speech.Tts.OperationResult

Parameters

voiceName
String

Name of the voice.

Returns

TextToSpeech#ERROR or TextToSpeech#SUCCESS.

Attributes

Remarks

Checks whether the engine supports a voice with a given name.

Can be called on multiple threads.

The default implementation treats the voice name as a language tag, creating a Locale from the voice name, and passes it to #onIsLanguageAvailable(String, String, String).

Java documentation for android.speech.tts.TextToSpeechService.onIsValidVoiceName(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