Spaces:
Running
Running
RemiFabre commited on
Commit ·
5eb6ab5
1
Parent(s): 38c0e11
tune: calibrate speed presets from through-air mic test (unit floor ~120ms)
Browse filesMic+speaker calibration (tools/calibrate_audio.py): unit=120/160 decode 18/18;
90/70 fail because dahGap (2*unit) falls under the detector's ~200ms reverb
window. Presets: brisk=120 (proven floor), normal=150, relaxed=190.
- lib/timing.js +14 -4
- lib/version.js +1 -1
lib/timing.js
CHANGED
|
@@ -49,11 +49,21 @@ export function makeTiming(unitMs = 120) {
|
|
| 49 |
});
|
| 50 |
}
|
| 51 |
|
| 52 |
-
/**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
export const SPEED_PRESETS = Object.freeze({
|
| 54 |
-
relaxed:
|
| 55 |
-
normal:
|
| 56 |
-
brisk:
|
| 57 |
});
|
| 58 |
|
| 59 |
export const DEFAULT_TIMING = makeTiming(SPEED_PRESETS.normal);
|
|
|
|
| 49 |
});
|
| 50 |
}
|
| 51 |
|
| 52 |
+
/**
|
| 53 |
+
* Named speed presets (unit in ms). Smaller = faster.
|
| 54 |
+
*
|
| 55 |
+
* Floor calibrated through-air on a MacBook (tools/calibrate_audio.py,
|
| 56 |
+
* 2026-06-01): unit=120 decoded 18/18, unit=90 failed because a dash's two
|
| 57 |
+
* taps (2×unit = 180 ms) dropped below the detector's ~200 ms reverb-rejection
|
| 58 |
+
* window and merged into one. So `dahGap = 2×unit` must stay comfortably above
|
| 59 |
+
* ~200 ms → keep unit ≳ 120. `brisk` is pinned to that proven floor; `normal`
|
| 60 |
+
* and `relaxed` add margin since the robot's antenna clicks reverberate more
|
| 61 |
+
* than a speaker blip.
|
| 62 |
+
*/
|
| 63 |
export const SPEED_PRESETS = Object.freeze({
|
| 64 |
+
relaxed: 190,
|
| 65 |
+
normal: 150,
|
| 66 |
+
brisk: 120,
|
| 67 |
});
|
| 68 |
|
| 69 |
export const DEFAULT_TIMING = makeTiming(SPEED_PRESETS.normal);
|
lib/version.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
// Deployment version label, shown in Settings so you can verify which build
|
| 2 |
// is actually loaded after a push. Format: "YYYY-MM-DD rN", bumped on push.
|
| 3 |
-
export const APP_VERSION = "2026-06-01
|
|
|
|
| 1 |
// Deployment version label, shown in Settings so you can verify which build
|
| 2 |
// is actually loaded after a push. Format: "YYYY-MM-DD rN", bumped on push.
|
| 3 |
+
export const APP_VERSION = "2026-06-01 r2 audio-calibrated";
|