This Python script extracts metadata and lyrics from audio files in an album folder (MP3 format) and saves them to JSON files. It utilizes multiprocessing for parallel processing, making it efficient for handling a large number of audio files.
This project is used on: https://metasong-front.vercel.app/
Clone the repository:
git clone https://github.com/mxmarchal/metasong.gitcd metasong
pip install -r requirements.txtCreate a .env file in the project directory and set the following environment variables:
OPENAI_API_KEY=your_openai_api_key
GENIUS_ACCESS_TOKEN=your_genius_access_tokenpython main.py <path_to_album_folder>Replace path_to_album_folder with the path to the folder containing the audio files (MP3 format) you want to process.
python main.py /path/to/albumI won't be accepting any pull requests for this project. This is a personal project and I'm not looking for contributions at the moment.
You are welcome to fork the project and customize it to your needs.
This project is licensed under the MIT License. See the LICENSE file for details.