ONSET-CANCEL 留痕:准确复核撤销切换(同人暂停续说)时输出 fastSim/label,验证复核关工作时可见

This commit is contained in:
liwenhao2 2026-09-16 15:03:17 +08:00
parent 02a27085f4
commit d1441acf69
1 changed files with 7 additions and 1 deletions

View File

@ -710,7 +710,13 @@ class MainActivity : AppCompatActivity() {
?: nearestAttribution(
emb, SpeakerRecognition.registry,
verdictFallbackMin)
if (known != null && known == active) return@post
if (known != null && known == active) {
// 复核撤销(同人暂停续说):留痕便于验证
Log.i(TAG, "ONSET-CANCEL fastSim=" +
"%.2f".format(simFast) +
" label=$known(active)")
return@post
}
val label = known
?: SpeakerRecognition.nextAutoLabel().also {
SpeakerRecognition.registry.addAuto(it, emb)