diff --git a/ElevenLabs-DotNet-Tests/Test_Fixture_05_VoiceGeneration.cs b/ElevenLabs-DotNet-Tests/Test_Fixture_05_VoiceGeneration.cs index c8ef871..4f44e30 100644 --- a/ElevenLabs-DotNet-Tests/Test_Fixture_05_VoiceGeneration.cs +++ b/ElevenLabs-DotNet-Tests/Test_Fixture_05_VoiceGeneration.cs @@ -30,7 +30,7 @@ public async Task Test_02_GenerateVoice() var (generatedVoiceId, audioFilePath) = await ElevenLabsClient.VoiceGenerationEndpoint.GenerateVoiceAsync(generateRequest); Console.WriteLine(generatedVoiceId); Console.WriteLine(audioFilePath); - var createVoiceRequest = new CreateVoiceRequest("Test Voice Lab Create Voice", generatedVoiceId); + var createVoiceRequest = new CreateVoiceRequest("Test Voice Lab Create Voice", "This is a test voice", generatedVoiceId); File.Delete(audioFilePath); Assert.NotNull(createVoiceRequest); var result = await ElevenLabsClient.VoiceGenerationEndpoint.CreateVoiceAsync(createVoiceRequest); diff --git a/ElevenLabs-DotNet/ElevenLabs-DotNet.csproj b/ElevenLabs-DotNet/ElevenLabs-DotNet.csproj index 5420c59..dc9aa82 100644 --- a/ElevenLabs-DotNet/ElevenLabs-DotNet.csproj +++ b/ElevenLabs-DotNet/ElevenLabs-DotNet.csproj @@ -14,8 +14,11 @@ RageAgainstThePixel 2023 ElevenLabs, AI, ML, Voice, TTS - 1.3.5 - Version 1.3.5 + 1.3.6 + Version 1.3.6 +- Added Voice.HighQualityBaseModelIds +- Added CreateVoiceRequest.Description +Version 1.3.5 - Updated voice settings Version 1.3.4 - Added VoiceSettings setters for convience diff --git a/ElevenLabs-DotNet/VoiceGeneration/CreateVoiceRequest.cs b/ElevenLabs-DotNet/VoiceGeneration/CreateVoiceRequest.cs index ace4f3a..ca44000 100644 --- a/ElevenLabs-DotNet/VoiceGeneration/CreateVoiceRequest.cs +++ b/ElevenLabs-DotNet/VoiceGeneration/CreateVoiceRequest.cs @@ -6,9 +6,10 @@ namespace ElevenLabs.VoiceGeneration { public sealed class CreateVoiceRequest { - public CreateVoiceRequest(string voiceName, string generatedVoiceId = null) + public CreateVoiceRequest(string voiceName, string description, string generatedVoiceId = null) { VoiceName = voiceName; + Description = description; GeneratedVoiceId = generatedVoiceId; } @@ -16,6 +17,9 @@ public CreateVoiceRequest(string voiceName, string generatedVoiceId = null) [JsonPropertyName("voice_name")] public string VoiceName { get; } + [JsonPropertyName("voice_description")] + public string Description { get; } + [JsonInclude] [JsonPropertyName("generated_voice_id")] public string GeneratedVoiceId { get; } diff --git a/ElevenLabs-DotNet/Voices/Voice.cs b/ElevenLabs-DotNet/Voices/Voice.cs index 13e7419..8a2666c 100644 --- a/ElevenLabs-DotNet/Voices/Voice.cs +++ b/ElevenLabs-DotNet/Voices/Voice.cs @@ -41,6 +41,10 @@ public Voice(string id) [JsonPropertyName("available_for_tiers")] public IReadOnlyList AvailableForTiers { get; private set; } + [JsonInclude] + [JsonPropertyName("high_quality_base_model_ids")] + public IReadOnlyList HighQualityBaseModelIds { get; private set; } + [JsonInclude] [JsonPropertyName("settings")] public VoiceSettings Settings { get; internal set; } @@ -99,6 +103,7 @@ public bool Equals(Voice other) Equals(Labels, other.Labels) && PreviewUrl == other.PreviewUrl && Equals(AvailableForTiers, other.AvailableForTiers) && + Equals(HighQualityBaseModelIds, other.HighQualityBaseModelIds) && Equals(Settings, other.Settings); }