From 988443396090ad77714b6bae7a4bbcedc3e88f02 Mon Sep 17 00:00:00 2001 From: Stephen Hodgson Date: Mon, 25 Nov 2024 10:06:25 -0500 Subject: [PATCH] ElevenLabs-DotNet 3.4.1 (#72) - Removed text length check in TextToSpeechRequest --- ElevenLabs-DotNet/ElevenLabs-DotNet.csproj | 4 +++- ElevenLabs-DotNet/TextToSpeech/TextToSpeechRequest.cs | 7 +------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/ElevenLabs-DotNet/ElevenLabs-DotNet.csproj b/ElevenLabs-DotNet/ElevenLabs-DotNet.csproj index 197d6db..f2eada9 100644 --- a/ElevenLabs-DotNet/ElevenLabs-DotNet.csproj +++ b/ElevenLabs-DotNet/ElevenLabs-DotNet.csproj @@ -25,8 +25,10 @@ All copyrights, trademarks, logos, and assets are the property of their respecti false true true - 3.4.0 + 3.4.1 +Version 3.4.1 +- Removed text length check in TextToSpeechRequest Version 3.4.0 - Added additional request properties for TextToSpeechRequest - previous_text, next_text, previous_request_ids, next_request_ids, languageCode, withTimestamps diff --git a/ElevenLabs-DotNet/TextToSpeech/TextToSpeechRequest.cs b/ElevenLabs-DotNet/TextToSpeech/TextToSpeechRequest.cs index ca77782..f5f2f4a 100644 --- a/ElevenLabs-DotNet/TextToSpeech/TextToSpeechRequest.cs +++ b/ElevenLabs-DotNet/TextToSpeech/TextToSpeechRequest.cs @@ -23,7 +23,7 @@ public TextToSpeechRequest(string text, Model model, VoiceSettings voiceSettings /// to use. /// /// - /// Text input to synthesize speech for. Maximum 5000 characters. + /// Text input to synthesize speech for. /// /// to use for . /// @@ -76,11 +76,6 @@ public TextToSpeechRequest( throw new ArgumentNullException(nameof(text)); } - if (text.Length > 5000) - { - throw new ArgumentOutOfRangeException(nameof(text), $"{nameof(text)} cannot exceed 5000 characters"); - } - if (voice == null || string.IsNullOrWhiteSpace(voice.Id)) {