Conversation
sam0rr
force-pushed
the
fix_audioop_dependency
branch
from
September 14, 2026 01:07
ff2494a to
29efa43
Compare
sam0rr
force-pushed
the
fix_audioop_dependency
branch
from
September 14, 2026 01:09
29efa43 to
14bf31d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Python 3.13 removed the standard-library
audioopmodule, but pydub 0.25.1 still imports it. On a clean Python 3.13 or 3.14 installation, importing pydub fails and prevents Chat's audio-processing code from loading.Add
audioop-ltsfor Python 3.13 and newer. Older Python versions continue using the standard-library module.I reproduced the import failure with the current requirements on Python 3.13.5 and 3.14.7. After installing the app with this change, both versions pass audio generation, gain adjustment, sample-rate/channel conversion, a WAV round trip, and MP3 export through FFmpeg. The same checks pass on Python 3.12.14, where
audioop-ltsis correctly left uninstalled.