Skip to content

Commit 403c1e0

Browse files
committed
fix: adjust onset trigger thresholds and timings
1 parent 56e4917 commit 403c1e0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/lib/components/Voice.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
// Onset-trigger config (simple wiring; replace with UI controls later if desired)
1414
const USE_ONSET_TRIGGER = true;
1515
const ONSET_TRIGGER_OPTIONS = {
16-
threshold: 0.5, // 0..1 linear
17-
preRollMs: 120, // include a short lead-in
18-
holdMs: 12, // minimum ms above threshold
16+
threshold: 0.1, // 0..1 linear
17+
preRollMs: 1, // include a short lead-in
18+
holdMs: 0, // minimum ms above threshold
1919
timeoutMs: 10000, // abort if no trigger within 10s
2020
highpassHz: 80 // reduce low-frequency rumble
2121
};

0 commit comments

Comments
 (0)