Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ElevenLabs-DotNet 3.4.1 #72

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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