Prevent sampleless speaker identities
PR and Push Build/Test / build-and-test (push) Successful in 8m38s

This commit is contained in:
2026-06-02 10:39:00 +02:00
parent a3bad1bdd4
commit e3f4e87319
10 changed files with 101 additions and 50 deletions
@@ -82,6 +82,15 @@ public sealed class SpeakerIdentityService : ISpeakerIdentificationService
if (target is null)
{
if (sourceCandidate is null && snippet.Length == 0)
{
logger.LogWarning(
"Skipping speaker override from {SourceSpeaker} to {TargetSpeaker} because no source sample could be resolved",
sourceLabel,
targetName);
return;
}
target = sourceCandidate ?? new SpeakerIdentity
{
CreatedAt = now,