Replace bioacoustic triplets with speaker words
This commit is contained in:
parent
1f385002a7
commit
4af29802c8
11 changed files with 212 additions and 271 deletions
|
|
@ -362,7 +362,7 @@ static int RunBioacousticSelfTest(int sampleRate)
|
|||
$"error={anchor.SampleOffset - expected:0.000} confidence={anchor.Confidence:0.000}");
|
||||
}
|
||||
|
||||
if (decode.ClockFit == null || decode.Anchors.Count < 12 || meanAbsoluteError > 12.0)
|
||||
if (decode.ClockFit == null || decode.Anchors.Count < 10 || meanAbsoluteError > 12.0)
|
||||
{
|
||||
Console.Error.WriteLine("bioacoustic self-test failed: log-motif decoder did not recover stable timeline anchors");
|
||||
return 1;
|
||||
|
|
@ -521,7 +521,7 @@ static int RunActiveSyncSelfTest(int sampleRate, MimirAudioSyncMode mode)
|
|||
}
|
||||
|
||||
return string.Equals(report.EvidenceKind, "bioacoustic", StringComparison.Ordinal) &&
|
||||
report.TimelineMatchedEvents >= 3 &&
|
||||
report.TimelineMatchedEvents >= 1 &&
|
||||
report.Confidence > 0.70 &&
|
||||
error * 1_000_000.0 / report.SampleRate < 1.0
|
||||
? 0
|
||||
|
|
@ -629,7 +629,7 @@ static int RenderBioacousticFloat32(string outputPath, int sampleRate, double se
|
|||
}
|
||||
|
||||
File.WriteAllBytes(outputPath, bytes);
|
||||
Console.WriteLine($"bioacoustic-render-f32 path={outputPath} sampleRate={sampleRate} seconds={seconds:0.000} samples={samples.Count} symbols={MimirBioacousticTimeline.SymbolCount} order={MimirBioacousticTimeline.TimelineOrder}");
|
||||
Console.WriteLine($"bioacoustic-render-f32 path={outputPath} sampleRate={sampleRate} seconds={seconds:0.000} samples={samples.Count} words={MimirBioacousticTimeline.WordCount} speakers={MimirBioacousticTimeline.SpeakerCount}");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue