Skip to content

Commit

Permalink
feat: Force use rounded milliseconds silence for Flowery TTS
Browse files Browse the repository at this point in the history
  • Loading branch information
angelobreuer committed Aug 15, 2023
1 parent 95fe38e commit c331bc0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static async ValueTask<LavalinkTrack> GetTextToSpeechTrackAsync(

if (options.Silence is not null)
{
queryParameters["silence"] = options.Silence.Value.TotalMilliseconds.ToString(CultureInfo.InvariantCulture);
queryParameters["silence"] = ((int)options.Silence.Value.TotalMilliseconds).ToString(CultureInfo.InvariantCulture);
}

if (options.Format is not null)
Expand Down

0 comments on commit c331bc0

Please sign in to comment.