Improvements:
- Allow
max_trailing_silenceto exceedmax_silence: after the event
boundary is decided (atmax_silence), additional silent frames are
collected past the boundary up tomax_trailing_silence. Collection stops
as soon as a new valid frame is detected, so separate events are not merged.
This lets you use a smallmax_silencefor tight event boundaries while
keeping enough trailing audio to preserve natural fadeouts. The same option
is exposed on the CLI as-g/--max-trailing-silence.
Bug fixes:
- Fix 1-frame gap in leading silence between consecutive events. The silent
frame that triggered the transition intoSILENCEwas previously dropped
instead of being seeded into the leading buffer for the next token, causing
an unavoidable 1-frame gap regardless ofmax_leading_silence. Trailing
frames trimmed bymax_trailing_silenceare now also seeded into the
leading buffer of the next token.