Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
fix(stt-eval): say so when real-check has no word to compare
EtienneLescot341a72f0d5ad
diff --git a/tools/stt-eval/word-timing/real-check.mjs b/tools/stt-eval/word-timing/real-check.mjsindex c58a66682..e60788f7f 100644--- a/tools/stt-eval/word-timing/real-check.mjs+++ b/tools/stt-eval/word-timing/real-check.mjs@@ -110,7 +110,10 @@ if (aligned) {});moved.sort((x, y) => x - y);const m = (p) => (moved[Math.floor(moved.length * p)] * 1000).toFixed(0);+ const spread = moved.length+ ? `median ${m(0.5)} ms, p90 ${m(0.9)} ms`+ : "no word to compare (punctuation only)";console.log(- `\naligner vs DTW, |moved| per boundary: median ${m(0.5)} ms, p90 ${m(0.9)} ms (${emissions.elapsed_s.toFixed(2)} s on ${emissions.device})`,+ `\naligner vs DTW, |moved| per boundary: ${spread} (${emissions.elapsed_s.toFixed(2)} s on ${emissions.device})`,);}