Exemplo n.º 1
0
 /// <summary>Instantiate the class.</summary>
 /// <param name="name">Name of the voice.</param>
 /// <param name="description">Description of the voice.</param>
 /// <param name="gender">Gender of the voice.</param>
 /// <param name="age">Age of the voice.</param>
 /// <param name="culture">Culture of the voice.</param>
 /// <param name="id">Identifier of the voice (optional).</param>
 /// <param name="vendor">Vendor of the voice (optional).</param>
 public Voice(string name, string description, Enum.Gender gender, string age, string culture, string id = "", string vendor = "unknown")
 {
     Name        = name;
     Description = description;
     Gender      = gender;
     Age         = age;
     Culture     = culture;
     Identifier  = id;
     Vendor      = vendor;
 }
Exemplo n.º 2
0
 /// <summary>Instantiate the class.</summary>
 /// <param name="name">Name of the voice.</param>
 /// <param name="description">Description of the voice.</param>
 /// <param name="gender">Gender of the voice.</param>
 /// <param name="age">Age of the voice.</param>
 /// <param name="culture">Culture of the voice.</param>
 /// <param name="id">Identifier of the voice (optional).</param>
 /// <param name="vendor">Vendor of the voice (optional).</param>
 /// <param name="version">Version of the voice (optional).</param>
 /// <param name="sampleRate">Sample rate in Hz of the voice (optional).</param>
 public Voice(string name, string description, Enum.Gender gender, string age, string culture, string id = "", string vendor = "unknown", string version = "unknown", int sampleRate = 0)
 {
     Name        = name;
     Description = description;
     Gender      = gender;
     Age         = age;
     Culture     = culture;
     Identifier  = id;
     Vendor      = vendor;
     Version     = version;
     SampleRate  = sampleRate;
 }