Crosstales.RTVoice.Model.Voice Class Reference

Model for a voice. More...

Public Member Functions

 Voice ()
 Default. More...
 
 Voice (string name, string description, Crosstales.RTVoice.Model.Enum.Gender gender, string age, string culture, string id="", string vendor="unknown", int sampleRate=0, bool neural=false)
 Instantiate the class. More...
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
override string ToString ()
 

Public Attributes

string Name
 Name of the voice. More...
 
string Description
 Description of the voice. More...
 
Crosstales.RTVoice.Model.Enum.Gender Gender
 Gender of the voice. More...
 
string Age
 Age of the voice. More...
 
string Identifier = string.Empty
 Identifier of the voice. More...
 
string Vendor = string.Empty
 Vendor of the voice. More...
 
int SampleRate
 Sample rate in Hz of the voice. More...
 
bool isNeural
 Is the voice neural? More...
 
SystemLanguage Language => Crosstales.RTVoice.Util.Helper.ISO639ToLanguage(Culture)
 Language of the voice. More...
 
string SimplifiedCulture => culture.Replace("-", string.Empty)
 Simplified culture of the voice. More...
 

Properties

string Culture [get, set]
 Culture of the voice (ISO 639-1). More...
 

Detailed Description

Model for a voice.

Constructor & Destructor Documentation

◆ Voice() [1/2]

Crosstales.RTVoice.Model.Voice.Voice ( )

Default.

◆ Voice() [2/2]

Crosstales.RTVoice.Model.Voice.Voice ( string  name,
string  description,
Crosstales.RTVoice.Model.Enum.Gender  gender,
string  age,
string  culture,
string  id = "",
string  vendor = "unknown",
int  sampleRate = 0,
bool  neural = false 
)

Instantiate the class.

Parameters
nameName of the voice.
descriptionDescription of the voice.
genderGender of the voice.
ageAge of the voice.
cultureCulture of the voice.
idIdentifier of the voice (optional).
vendorVendor of the voice (optional).
sampleRateSample rate in Hz of the voice (optional).
neuralIs the voice neural (optional).

Member Data Documentation

◆ Age

string Crosstales.RTVoice.Model.Voice.Age

Age of the voice.

◆ Description

string Crosstales.RTVoice.Model.Voice.Description

Description of the voice.

◆ Gender

Crosstales.RTVoice.Model.Enum.Gender Crosstales.RTVoice.Model.Voice.Gender

Gender of the voice.

◆ Identifier

string Crosstales.RTVoice.Model.Voice.Identifier = string.Empty

Identifier of the voice.

◆ isNeural

bool Crosstales.RTVoice.Model.Voice.isNeural

Is the voice neural?

◆ Language

SystemLanguage Crosstales.RTVoice.Model.Voice.Language => Crosstales.RTVoice.Util.Helper.ISO639ToLanguage(Culture)

Language of the voice.

◆ Name

string Crosstales.RTVoice.Model.Voice.Name

Name of the voice.

◆ SampleRate

int Crosstales.RTVoice.Model.Voice.SampleRate

Sample rate in Hz of the voice.

◆ SimplifiedCulture

string Crosstales.RTVoice.Model.Voice.SimplifiedCulture => culture.Replace("-", string.Empty)

Simplified culture of the voice.

◆ Vendor

string Crosstales.RTVoice.Model.Voice.Vendor = string.Empty

Vendor of the voice.

Property Documentation

◆ Culture

string Crosstales.RTVoice.Model.Voice.Culture
getset

Culture of the voice (ISO 639-1).


The documentation for this class was generated from the following file:
  • C:/Users/slaub/Unity/assets/RTVoice/RTVoicePro/Assets/Plugins/crosstales/RTVoice/Scripts/Model/Voice.cs