public sealed class Voice : IMessage<Voice>, IEquatable<Voice>, IDeepCloneable<Voice>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Text-to-Speech v1 API class Voice.
Description of a voice supported by the TTS service.
Namespace
Google.Cloud.TextToSpeech.V1Assembly
Google.Cloud.TextToSpeech.V1.dll
Constructors
Voice()
public Voice()
Voice(Voice)
public Voice(Voice other)
Parameter | |
---|---|
Name | Description |
other |
Voice |
Properties
LanguageCodes
public RepeatedField<string> LanguageCodes { get; }
The languages that this voice supports, expressed as BCP-47 language tags (e.g. "en-US", "es-419", "cmn-tw").
Property Value | |
---|---|
Type | Description |
RepeatedFieldstring |
Name
public string Name { get; set; }
The name of this voice. Each distinct voice has a unique name.
Property Value | |
---|---|
Type | Description |
string |
NaturalSampleRateHertz
public int NaturalSampleRateHertz { get; set; }
The natural sample rate (in hertz) for this voice.
Property Value | |
---|---|
Type | Description |
int |
SsmlGender
public SsmlVoiceGender SsmlGender { get; set; }
The gender of this voice.
Property Value | |
---|---|
Type | Description |
SsmlVoiceGender |