Voice Constructors
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.
Overloads
| Name | Description |
|---|---|
| Voice(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
| Voice(String, Locale, VoiceQuality, VoiceLatency, Boolean, ICollection<String>) |
Creates a voice with the specified name, locale, quality, latency, network requirement, and features. |
Voice(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected Voice(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Speech.Tts.Voice : nativeint * Android.Runtime.JniHandleOwnership -> Android.Speech.Tts.Voice
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnershipindicating how to handle javaReference
Remarks
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
Voice(String, Locale, VoiceQuality, VoiceLatency, Boolean, ICollection<String>)
Creates a voice with the specified name, locale, quality, latency, network requirement, and features.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/util/Locale;IIZLjava/util/Set;)V", "")]
public Voice(string? name, Java.Util.Locale? locale, Android.Speech.Tts.VoiceQuality quality, Android.Speech.Tts.VoiceLatency latency, bool requiresNetworkConnection, System.Collections.Generic.ICollection<string>? features);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/util/Locale;IIZLjava/util/Set;)V", "")>]
new Android.Speech.Tts.Voice : string * Java.Util.Locale * Android.Speech.Tts.VoiceQuality * Android.Speech.Tts.VoiceLatency * bool * System.Collections.Generic.ICollection<string> -> Android.Speech.Tts.Voice
Parameters
- name
- String
The unique name of the voice.
- locale
- Locale
The locale of the voice.
- quality
- VoiceQuality
The quality level of the voice. Higher levels indicate better quality.
- latency
- VoiceLatency
The expected synthesis latency level. Lower levels indicate less delay.
- requiresNetworkConnection
- Boolean
true if the voice requires a network connection; otherwise, false.
- features
- ICollection<String>
The set of framework-defined or engine-specific feature strings supported by the voice, supplied as a collection.
- Attributes
Remarks
Android implementation of the voice constructor and its stored properties.
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.