Bug: very short live stop segments should be skipped or coalesced #11

Open
opened 2026-05-24 04:41:45 +00:00 by mathieu · 0 comments
Owner

In live mode, stopping during a segment can produce a very short final WAV. In the observed failure, segment 3 was started at 00:35:45 and stop was requested at 00:35:47, so it likely contained ~2 seconds of audio despite WAYSTT_LANWHISPER_LIVE_CHUNK_SECONDS=20.\n\nThat short final segment was sent to transcription and failed, causing the whole run to exit rc=1.\n\nExpected behavior:\n- Measure recorded segment duration/size before transcription.\n- Skip final chunks below a configurable minimum duration, e.g. WAYSTT_LANWHISPER_MIN_FINAL_CHUNK_SECONDS.\n- Or append short final chunks to the previous segment before submitting.\n\nThis should reduce spurious failures on quick stops.

In live mode, stopping during a segment can produce a very short final WAV. In the observed failure, segment 3 was started at 00:35:45 and stop was requested at 00:35:47, so it likely contained ~2 seconds of audio despite WAYSTT_LANWHISPER_LIVE_CHUNK_SECONDS=20.\n\nThat short final segment was sent to transcription and failed, causing the whole run to exit rc=1.\n\nExpected behavior:\n- Measure recorded segment duration/size before transcription.\n- Skip final chunks below a configurable minimum duration, e.g. WAYSTT_LANWHISPER_MIN_FINAL_CHUNK_SECONDS.\n- Or append short final chunks to the previous segment before submitting.\n\nThis should reduce spurious failures on quick stops.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mathieu/murmur-wayland#11
No description provided.