Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHodgson authored Oct 27, 2024
1 parent f1ed50c commit 9b0d4e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ElevenLabs-DotNet/TextToSpeech/TextToSpeechRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public TextToSpeechRequest(
text = Encoding.UTF8.GetString(encoding.GetBytes(text));
}

if(!string.IsNullOrEmpty(languageCode) && model != Models.Model.TurboV2_5)
if (!string.IsNullOrEmpty(languageCode) && model != Models.Model.TurboV2_5)
{
throw new ArgumentException($"Currently only Turbo v2.5 model supports language enforcement.", nameof(languageCode));
}
Expand Down

0 comments on commit 9b0d4e4

Please sign in to comment.