Skip to content

Commit

Permalink
Tune unintelligibility algorithm (#206)
Browse files Browse the repository at this point in the history
Fixes #196

Signed-off-by: Dave Thaler <[email protected]>
  • Loading branch information
dthaler authored Nov 27, 2024
1 parent e80f1a1 commit dbccae2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OrcanodeMonitor/Core/FfmpegCoreAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace OrcanodeMonitor.Core
public class FfmpegCoreAnalyzer
{
// We consider anything below this average amplitude as silence.
const double MaxSilenceAmplitude = 20.0;
const double MaxSilenceAmplitude = 17.0;

// Minimum ratio of amplitude outside the hum range to amplitude
// within the hum range. So far the max in a known-unintelligible
Expand Down
3 changes: 3 additions & 0 deletions Test/UnintelligibilityTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ public async Task TestNormalSample()
await TestSampleAsync("normal\\live385.ts", OrcanodeOnlineStatus.Online);
await TestSampleAsync("normal\\live839.ts", OrcanodeOnlineStatus.Online);
await TestSampleAsync("normal\\live1184.ts", OrcanodeOnlineStatus.Online);

// Bush Point file from arond 5pm 11/18/2024 is relatively quiet (max amplitude 17.46).
await TestSampleAsync("normal\\live6079.ts", OrcanodeOnlineStatus.Online);
}
}
}
Binary file added Test/samples/normal/live6079.ts
Binary file not shown.

0 comments on commit dbccae2

Please sign in to comment.