Sdílet prostřednictvím


TextToSpeech.SetAudioAttributes(AudioAttributes) Method

Definition

Sets the audio attributes to be used when speaking text or playing back a file.

[Android.Runtime.Register("setAudioAttributes", "(Landroid/media/AudioAttributes;)I", "GetSetAudioAttributes_Landroid_media_AudioAttributes_Handler")]
public virtual Android.Speech.Tts.OperationResult SetAudioAttributes (Android.Media.AudioAttributes? audioAttributes);
[<Android.Runtime.Register("setAudioAttributes", "(Landroid/media/AudioAttributes;)I", "GetSetAudioAttributes_Landroid_media_AudioAttributes_Handler")>]
abstract member SetAudioAttributes : Android.Media.AudioAttributes -> Android.Speech.Tts.OperationResult
override this.SetAudioAttributes : Android.Media.AudioAttributes -> Android.Speech.Tts.OperationResult

Parameters

audioAttributes
AudioAttributes

Valid AudioAttributes instance.

Returns

#ERROR or #SUCCESS.

Attributes

Remarks

Sets the audio attributes to be used when speaking text or playing back a file.

Java documentation for android.speech.tts.TextToSpeech.setAudioAttributes(android.media.AudioAttributes).

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