TextToSpeech.SetAudioAttributes(AudioAttributes) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.