Class Voice (2.2.0)

public sealed class Voice : IMessage<Voice>, IEquatable<Voice>, IDeepCloneable<Voice>, IBufferMessage, IMessage

Description of a voice supported by the TTS service.

Inheritance

Object > Voice

Namespace

Google.Cloud.TextToSpeech.V1

Assembly

Google.Cloud.TextToSpeech.V1.dll

Constructors

Voice()

public Voice()

Voice(Voice)

public Voice(Voice other)
Parameter
NameDescription
otherVoice

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
TypeDescription
RepeatedField<String>

Name

public string Name { get; set; }

The name of this voice. Each distinct voice has a unique name.

Property Value
TypeDescription
String

NaturalSampleRateHertz

public int NaturalSampleRateHertz { get; set; }

The natural sample rate (in hertz) for this voice.

Property Value
TypeDescription
Int32

SsmlGender

public SsmlVoiceGender SsmlGender { get; set; }

The gender of this voice.

Property Value
TypeDescription
SsmlVoiceGender