diff --git a/src/TextToSpeech/YaCloudKit.TTS/Model/VoiceEmotion.cs b/src/TextToSpeech/YaCloudKit.TTS/Model/VoiceEmotion.cs
index cf28bbd..d36bdc4 100644
--- a/src/TextToSpeech/YaCloudKit.TTS/Model/VoiceEmotion.cs
+++ b/src/TextToSpeech/YaCloudKit.TTS/Model/VoiceEmotion.cs
@@ -4,9 +4,9 @@ namespace YaCloudKit.TTS;
public class VoiceEmotion
{
- public static readonly VoiceEmotion Neutral = new VoiceEmotion("neutral");
- public static readonly VoiceEmotion Good = new VoiceEmotion("good");
- public static readonly VoiceEmotion Evil = new VoiceEmotion("evil");
+ public static readonly VoiceEmotion Neutral = new("neutral");
+ public static readonly VoiceEmotion Good = new("good");
+ public static readonly VoiceEmotion Evil = new("evil");
public string Value { get; }
diff --git a/src/TextToSpeech/YaCloudKit.TTS/Model/VoiceLanguage.cs b/src/TextToSpeech/YaCloudKit.TTS/Model/VoiceLanguage.cs
index f466fb2..c647a7e 100644
--- a/src/TextToSpeech/YaCloudKit.TTS/Model/VoiceLanguage.cs
+++ b/src/TextToSpeech/YaCloudKit.TTS/Model/VoiceLanguage.cs
@@ -4,9 +4,11 @@ namespace YaCloudKit.TTS;
public class VoiceLanguage
{
- public static readonly VoiceLanguage Russian = new VoiceLanguage("ru-RU");
- public static readonly VoiceLanguage Kazakh = new VoiceLanguage("kk-KK");
- public static readonly VoiceLanguage English = new VoiceLanguage("en-US");
+ public static readonly VoiceLanguage Russian = new("ru-RU");
+ public static readonly VoiceLanguage Kazakh = new("kk-KK");
+ public static readonly VoiceLanguage English = new("en-US");
+ public static readonly VoiceLanguage German = new("de-DE");
+ public static readonly VoiceLanguage Uzbek = new("uz-UZ");
public string Value { get; }
diff --git a/src/TextToSpeech/YaCloudKit.TTS/Model/VoiceName.cs b/src/TextToSpeech/YaCloudKit.TTS/Model/VoiceName.cs
index ece58a4..b64cb4c 100644
--- a/src/TextToSpeech/YaCloudKit.TTS/Model/VoiceName.cs
+++ b/src/TextToSpeech/YaCloudKit.TTS/Model/VoiceName.cs
@@ -4,15 +4,19 @@ namespace YaCloudKit.TTS;
public class VoiceName
{
- public static readonly VoiceName Alena = new VoiceName("alena");
- public static readonly VoiceName Filipp = new VoiceName("filipp");
- public static readonly VoiceName Jane = new VoiceName("jane");
- public static readonly VoiceName Omazh = new VoiceName("omazh");
- public static readonly VoiceName Zahar = new VoiceName("zahar");
- public static readonly VoiceName Ermil = new VoiceName("ermil");
- public static readonly VoiceName Amira = new VoiceName("amira");
- public static readonly VoiceName John = new VoiceName("john");
-
+ public static readonly VoiceName Lea = new("lea");
+ public static readonly VoiceName Alena = new("alena");
+ public static readonly VoiceName Filipp = new("filipp");
+ public static readonly VoiceName Jane = new("jane");
+ public static readonly VoiceName Omazh = new("omazh");
+ public static readonly VoiceName Zahar = new("zahar");
+ public static readonly VoiceName Ermil = new("ermil");
+ public static readonly VoiceName Amira = new("amira");
+ public static readonly VoiceName John = new("john");
+ public static readonly VoiceName Madi = new("madi");
+ public static readonly VoiceName Madirus = new("madirus");
+ public static readonly VoiceName Nigora = new("nigora");
+
public string Value { get; }
public VoiceName(string value)
diff --git a/src/TextToSpeech/YaCloudKit.TTS/Model/VoiceParameters.cs b/src/TextToSpeech/YaCloudKit.TTS/Model/VoiceParameters.cs
index 687ce55..f0b2703 100644
--- a/src/TextToSpeech/YaCloudKit.TTS/Model/VoiceParameters.cs
+++ b/src/TextToSpeech/YaCloudKit.TTS/Model/VoiceParameters.cs
@@ -7,6 +7,11 @@ namespace YaCloudKit.TTS
///
public class VoiceParameters
{
+ ///
+ /// Женский немецкий голос Lea
+ ///
+ public static readonly VoiceParameters Lea = new(VoiceName.Lea);
+
///
/// Женский русский голос Alena
///
@@ -37,6 +42,30 @@ public class VoiceParameters
///
public static readonly VoiceParameters Ermil = new(VoiceName.Ermil);
+ ///
+ /// Женский казахский голос
+ ///
+ public static readonly VoiceParameters Amira = new(VoiceName.Amira);
+
+ ///
+ /// Мужской казахский голос
+ ///
+ public static readonly VoiceParameters Madi = new(VoiceName.Madi);
+
+ ///
+ /// Мужской английский голос
+ ///
+ public static readonly VoiceParameters John = new(VoiceName.John);
+
+ ///
+ /// Мужской русский голос
+ ///
+ public static readonly VoiceParameters Madirus = new(VoiceName.Madirus);
+
+ ///
+ /// Женский узбекский голос
+ ///
+ public static readonly VoiceParameters Nigora = new(VoiceName.Nigora);
///
/// Название голоса. Подробнее см. список голосов
@@ -64,11 +93,18 @@ public class VoiceParameters
/// Инициалзация параметров голоса для генерации речи
///
/// Название голоса
- public VoiceParameters(VoiceName name)
+ public VoiceParameters(
+ VoiceName name,
+ VoiceLanguage language = null,
+ string speed = null,
+ VoiceEmotion emotion = null)
{
if (string.IsNullOrWhiteSpace(name))
throw new ArgumentNullException(nameof(name));
Name = name;
+ Language = language;
+ Speed = speed;
+ Emotion = emotion;
}
}
}
\ No newline at end of file