Skip to content

fix: resample audio frames before grouping to handle variable sample …#1458

Closed
Dhruv19duv wants to merge 1 commit into
SYSTRAN:masterfrom
Dhruv19duv:fix/decode-audio-variable-sample-rate
Closed

fix: resample audio frames before grouping to handle variable sample …#1458
Dhruv19duv wants to merge 1 commit into
SYSTRAN:masterfrom
Dhruv19duv:fix/decode-audio-variable-sample-rate

Conversation

@Dhruv19duv

Copy link
Copy Markdown

…rates\n\nFix decode_audio crash (ValueError: Frame does not match AudioFifo\nparameters) when processing audio files where sample rate or format\nchanges mid-stream.\n\nThe AudioFifo class locks to the parameters of the first frame written\nto it. By resampling frames before grouping, all frames are normalized\nto a consistent format, preventing parameter mismatch errors.\n\nAlso adds tests for variable sample rate, stereo, and short audio.\n\nFixes #1451

…rates\n\nFix decode_audio crash (ValueError: Frame does not match AudioFifo\nparameters) when processing audio files where sample rate or format\nchanges mid-stream.\n\nThe AudioFifo class locks to the parameters of the first frame written\nto it. By resampling frames before grouping, all frames are normalized\nto a consistent format, preventing parameter mismatch errors.\n\nAlso adds tests for variable sample rate, stereo, and short audio.\n\nFixes SYSTRAN#1451
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants