Skip to content

Commit

Permalink
Revert "TTS logs tweak (#2282)"
Browse files Browse the repository at this point in the history
This reverts commit 29b88db.
  • Loading branch information
UrPrice authored Dec 20, 2024
1 parent 7dcd64e commit d3a39a7
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions Content.Server/SS220/TTS/TTSManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,7 @@ public void Initialize()
return data;
}

if (isRadio)
_sawmill.Info($"Generate new radio sound for '{text}' speech by '{speaker}' speaker");
else
_sawmill.Info($"Generate new audio for '{text}' speech by '{speaker}' speaker");

_sawmill.Debug($"Generate new audio for '{text}' speech by '{speaker}' speaker");
var reqTime = DateTime.UtcNow;
try
{
Expand Down Expand Up @@ -153,10 +149,8 @@ public void Initialize()
_cacheKeysSeq.Remove(firstKey);
}

if (isRadio)
_sawmill.Info($"Generated new radio sound for '{text}' speech by '{speaker}' speaker ({soundData.Length} bytes)");
else
_sawmill.Info($"Generated new sound for '{text}' speech by '{speaker}' speaker ({soundData.Length} bytes)");
_sawmill.Debug(
$"Generated new sound for '{text}' speech by '{speaker}' speaker ({soundData.Length} bytes)");
RequestTimings.WithLabels("Success").Observe((DateTime.UtcNow - reqTime).TotalSeconds);

return soundData;
Expand Down Expand Up @@ -243,6 +237,10 @@ await FFMpegArguments
_cacheRadioKeysSeq.Remove(firstKey);
}

_sawmill.Debug(
$"Generated new radio sound for '{text}' speech by '{speaker}' speaker ({soundData.Length} bytes)");
RequestTimings.WithLabels("Success").Observe((DateTime.UtcNow - reqTime).TotalSeconds);

return soundData;
}
catch (TaskCanceledException)
Expand Down

0 comments on commit d3a39a7

Please sign in to comment.