Skip to content

Audio compression module

fan-droide edited this page Oct 21, 2025 · 1 revision

In order to run the compression module locally, the environment variable COMPRESSION_MODULE_ACTIVE at config.py needs to be set to True.

Edit the following field in the config.py file:

COMPRESSION_MODULE_ACTIVE = True # by default is set to False

It's required to execute the following commands, the first for the installation of the pydub package (see NOTE 1) and the other to run the thread.

pip install pydub

python compress_thread.py

NOTES:

1- Install FFMPEG. pydub needs either sudo apt install ffmpeg (Linux) or brew install ffmpeg (Mac) in order to function correctly.

Clone this wiki locally