다음을 통해 공유


TextToSpeech.SetVoice(Voice) Method

Definition

Sets the text-to-speech voice.

[Android.Runtime.Register("setVoice", "(Landroid/speech/tts/Voice;)I", "GetSetVoice_Landroid_speech_tts_Voice_Handler")]
public virtual Android.Speech.Tts.OperationResult SetVoice (Android.Speech.Tts.Voice? voice);
[<Android.Runtime.Register("setVoice", "(Landroid/speech/tts/Voice;)I", "GetSetVoice_Landroid_speech_tts_Voice_Handler")>]
abstract member SetVoice : Android.Speech.Tts.Voice -> Android.Speech.Tts.OperationResult
override this.SetVoice : Android.Speech.Tts.Voice -> Android.Speech.Tts.OperationResult

Parameters

voice
Voice

One of objects returned by #getVoices().

Returns

#ERROR or #SUCCESS.

Attributes

Remarks

Sets the text-to-speech voice.

Java documentation for android.speech.tts.TextToSpeech.setVoice(android.speech.tts.Voice).

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

See also