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)) {