Skip to content

Commit

Permalink
com.rest.elevenlabs 3.4.2 (#108)
Browse files Browse the repository at this point in the history
- Removed text length check in TextToSpeechRequest
  • Loading branch information
StephenHodgson authored Nov 25, 2024
1 parent 6131c3d commit d41517c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions Runtime/TextToSpeech/TextToSpeechRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public sealed class TextToSpeechRequest
/// <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 @@ -48,7 +48,7 @@ public sealed class TextToSpeechRequest
/// <param name="previousRequestIds"></param>
/// <param name="nextRequestIds"></param>
/// <param name="languageCode">
/// Optional, Language code (ISO 639-1) used to enforce a language for the model. Currently only <see cref="Model.TurboV2_5"/> supports language enforcement.
/// Optional, Language code (ISO 639-1) used to enforce a language for the model. Currently only <see cref="Model.TurboV2_5"/> supports language enforcement.
/// For other models, an error will be returned if language code is provided.
/// </param>
/// <param name="cacheFormat"></param>
Expand All @@ -75,11 +75,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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "ElevenLabs",
"description": "A non-official Eleven Labs voice synthesis RESTful client.",
"keywords": [],
"version": "3.4.1",
"version": "3.4.2",
"unity": "2021.3",
"documentationUrl": "https://github.com/RageAgainstThePixel/com.rest.elevenlabs#documentation",
"changelogUrl": "https://github.com/RageAgainstThePixel/com.rest.elevenlabs/releases",
Expand Down

0 comments on commit d41517c

Please sign in to comment.