Repository navigation
v0.2.2
·
68 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Speech boundary padding (hangbefore + hangover)
Soft speech onsets (plosives like "p", fricatives like "s") and word endings were getting clipped because the VAD chunker discarded silence while idle and emitted too early on short gaps.
New features
- Pre-speech ring buffer — keeps a sliding window of recent silence samples and prepends them when speech starts, capturing soft onsets before energy crosses the VAD threshold
- Post-speech gap floor — ensures a minimum amount of trailing silence is included in each emitted chunk, preventing word endings from being clipped on short gap thresholds
- CLI flags for tuning:
--pre-speech <MS>— override pre-speech buffer duration (default: 250ms)--post-speech <MS>— override post-speech padding duration (default: 150ms)
Example usage
voicsh --pre-speech 400 # more onset padding
voicsh --pre-speech 500 --post-speech 200 # both tuned upFull Changelog: v0.2.1...v0.2.2