gregoryxie / nicer-rack

MIT License
0 stars 0 forks source link

Implement mp3 to wav bytestream functionality #5

Closed tristan1049 closed 2 years ago

tristan1049 commented 2 years ago

Added function to link_handler.py that given a relative path, returns a list of 2-byte integers that represents the audio from the .mp3 file.

To do this, need to create a .wav file from the .mp3 file, and separately read from the .wav file, converting every 2 bytes into integers.

For this to work, ffmpeg must be installed onto the device that runs the script as well, as pydub has a dependency on ffmpeg, and ffmpeg from a pip3 install alone has no executables. It must be installed via homebrew or the module's website.