feat(plip): voice-activated two-phase capture #27

Merged
electron merged 1 commits from fix/plip-voice-capture into main 2026-06-17 12:40:30 +00:00
1 Commits
Author SHA1 Message Date
clement 82759ee536 feat(plip): voice-activated two-phase capture
CI / platformio (pull_request) Failing after 10m14s
CI / platformio (push) Failing after 9m50s
Listen-loop capture now only commits when the caller actually speaks:
phase A waits for a sustained voice onset (3 frames above threshold,
rejecting the PA-mute click), phase B records until silence. Empty
captures are no longer posted, so the NPC never replies to silence.
Also: DC-blocking high-pass on the captured mono, VAD thresholds tuned
to the quiet SLIC handset mic (onset ~1.4%, silence ~0.6%), keep the
PA on during capture (muting it collapsed the mic), and add a
/debug/miccap diagnostic endpoint (raw fixed-duration mic capture).
2026-06-17 14:39:42 +02:00