Skip to content

Commit

Permalink
ElevenLabs-DotNet 3.4.1
Browse files Browse the repository at this point in the history
- Removed text length check in TextToSpeechRequest
  • Loading branch information
StephenHodgson committed Nov 25, 2024
1 parent ae0b152 commit e6b0a33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 3 additions & 1 deletion ElevenLabs-DotNet/ElevenLabs-DotNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ All copyrights, trademarks, logos, and assets are the property of their respecti
<SignAssembly>false</SignAssembly>
<IncludeSymbols>true</IncludeSymbols>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<Version>3.4.0</Version>
<Version>3.4.1</Version>
<PackageReleaseNotes>
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
Expand Down
7 changes: 1 addition & 6 deletions ElevenLabs-DotNet/TextToSpeech/TextToSpeechRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public TextToSpeechRequest(string text, Model model, VoiceSettings voiceSettings
/// <see cref="Voice"/> to use.
/// </param>
/// <param name="text">
/// Text input to synthesize speech for. Maximum 5000 characters.
/// Text input to synthesize speech for.
/// </param>
/// <param name="encoding"><see cref="Encoding"/> to use for <see cref="text"/>.</param>
/// <param name="voiceSettings">
Expand Down Expand Up @@ -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))
{
Expand Down

0 comments on commit e6b0a33

Please sign in to comment.