Google Cloud Text-to-Speech v1 API - Class Voice (3.5.0)

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.

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
RepeatedFieldstring

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
int

SsmlGender

public SsmlVoiceGender SsmlGender { get; set; }

The gender of this voice.

Property Value
TypeDescription
SsmlVoiceGender