Skip to content

Replace libsndfile with pydub#12

Open
gryffyn wants to merge 7 commits into
nixternal:mainfrom
gryffyn:replace-libsndfile-with-pydub
Open

Replace libsndfile with pydub#12
gryffyn wants to merge 7 commits into
nixternal:mainfrom
gryffyn:replace-libsndfile-with-pydub

Conversation

@gryffyn

@gryffyn gryffyn commented Apr 6, 2026

Copy link
Copy Markdown

libsndfile is very limited in what codecs it can read. pydub supports everything ffmpeg does, and given that users will need pydub anyways for any type of lossless codec, removing a dependency and using one solution for all codecs is simpler.

This also replaces mutagen with tinytag, which is simpler to use and also helpfully returns the bitrate and codec name.

All tests pass, they were rewritten to use pydub and scipy to generate the wav/flac files though, however the actual samples are the same.

Signed-off-by: gryffyn me@gryffyn.io

gryffyn added 7 commits April 5, 2026 23:10
libsndfile is very limited in what codecs it can read. pydub supports everything ffmpeg does, and given that users will need pydub anyways for any type of lossless codec, removing a dependency and using one solution for all codecs is simpler. This also replaces mutagen with tinytag, which is simpler to use and also helpfully returns the bitrate and codec name.

Signed-off-by: gryffyn <me@gryffyn.io>
Signed-off-by: gryffyn <me@gryffyn.io>
Signed-off-by: gryffyn <me@gryffyn.io>
Signed-off-by: gryffyn <me@gryffyn.io>
Signed-off-by: gryffyn <me@gryffyn.io>
Signed-off-by: gryffyn <me@gryffyn.io>
Signed-off-by: gryffyn <me@gryffyn.io>
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.

1 participant