Public Access
Prevent sampleless speaker identities
PR and Push Build/Test / build-and-test (push) Successful in 8m38s
PR and Push Build/Test / build-and-test (push) Successful in 8m38s
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user