Skip to content

Fix error handling for audio files that are shorter than 10 seconds#400

Open
derpoliuk wants to merge 1 commit intomyshell-ai:mainfrom
theREDspace:fix-short-audio-duration
Open

Fix error handling for audio files that are shorter than 10 seconds#400
derpoliuk wants to merge 1 commit intomyshell-ai:mainfrom
theREDspace:fix-short-audio-duration

Conversation

@derpoliuk
Copy link
Copy Markdown

@derpoliuk derpoliuk commented May 22, 2025

Problem

The split_audio_vad function was raising an assertion error for audio files shorter than 5 seconds due to rounding issues when calculating number of splits.

Solution

Modified the function to handle short audio files as single segments when duration is less than split_seconds (default 10s), while maintaining existing behavior for longer files.

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working labels May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant