Skip to content

Add a simple audio file stream handler#64

Open
pythonbrad wants to merge 2 commits intoAnt-Brain:mainfrom
pythonbrad:audio_fstream
Open

Add a simple audio file stream handler#64
pythonbrad wants to merge 2 commits intoAnt-Brain:mainfrom
pythonbrad:audio_fstream

Conversation

@pythonbrad
Copy link

Issues

Changes

  • Added a handler to read an audio file as stream.

This commit implement a handler to read an audio file as stream.
@TheSeriousProgrammer
Copy link
Member

appologies for the late response though.. do you think you can pivot your dependency from librosa to pydub. for better cross platform dependencies.. I recently shifted the project's dependency from librosa to pydub due to issues in windows and rasspberry pi

@pythonbrad
Copy link
Author

@TheSeriousProgrammer, pydub depends on ffmpeg but I want minimal dependencies on my environment.

@pythonbrad
Copy link
Author

pythonbrad commented Jan 4, 2026

@TheSeriousProgrammer, this is the cost to install ffmpeg.
I deploy my application using docker, and have the minimal size and deployment time, is good for me.

image

@TheSeriousProgrammer
Copy link
Member

Hmm .. we can migrate to soundfile but we won't be able to generate reference files from file types other than the wav format.. let me see..

@TheSeriousProgrammer
Copy link
Member

have made the pivot to soundfile and added a couple of other features tooo.. check it out and let me know

@pythonbrad
Copy link
Author

@TheSeriousProgrammer, it works with my change.
Also soundfile support mp3, i tested with mp3 and it worked!

@TheSeriousProgrammer
Copy link
Member

Just now saw that a recent version of sndfile does support mp3... will test it myself too once. and then include it back

@TheSeriousProgrammer
Copy link
Member

Have made the changes

@pythonbrad
Copy link
Author

pythonbrad commented Jan 19, 2026

Have made the changes

@TheSeriousProgrammer, the PR is ready.
I updated and tested.

image

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