{"id":21232299,"url":"https://github.com/danibcorr/musicgenreclassifier","last_synced_at":"2025-03-15T02:41:02.724Z","repository":{"id":246683530,"uuid":"801964044","full_name":"danibcorr/MusicGenreClassifier","owner":"danibcorr","description":"Music genre classifier for automatic equalization parameters for JamesDSP using CNN with Transformers.","archived":false,"fork":false,"pushed_at":"2024-06-30T09:13:19.000Z","size":1583,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-21T18:27:59.845Z","etag":null,"topics":["classification","cnn","deep-learning","dsp","equalization","jamesdsp","music","python","spectrogram","tensorflow","transformer"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danibcorr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-17T08:52:56.000Z","updated_at":"2025-01-10T10:40:19.000Z","dependencies_parsed_at":"2024-06-29T16:56:14.529Z","dependency_job_id":"db7d0a46-40da-446e-a859-2ce1b18de011","html_url":"https://github.com/danibcorr/MusicGenreClassifier","commit_stats":null,"previous_names":["danibcorr/jamesdspdynamicequalizer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danibcorr%2FMusicGenreClassifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danibcorr%2FMusicGenreClassifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danibcorr%2FMusicGenreClassifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danibcorr%2FMusicGenreClassifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danibcorr","download_url":"https://codeload.github.com/danibcorr/MusicGenreClassifier/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243676705,"owners_count":20329431,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["classification","cnn","deep-learning","dsp","equalization","jamesdsp","music","python","spectrogram","tensorflow","transformer"],"created_at":"2024-11-20T23:50:21.388Z","updated_at":"2025-03-15T02:41:02.705Z","avatar_url":"https://github.com/danibcorr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎵 Music Genre Classifier and Equalizer\n\n## 📋 Description\n\nThis project analyzes the audio being played on your computer, converts it into a MEL spectrogram, and uses a deep learning model to classify the music genre. Based on the detected genre, it sends a command to [JamesDSP](https://github.com/Audio4Linux/JDSP4Linux) to adjust the music equalization according to the genre-specific profile.\n\nIf you want to know more about the reason for certain selected parameters of the Mel programs, please visit the [following document](./documentation/explanations.md).\n\n## 🧩 Features\n\n- **Audio Capture**: Monitors and captures the audio being played on your computer.\n- **MEL Spectrogram Conversion**: Converts the captured audio into a MEL spectrogram.\n- **Music Genre Classification**: Utilizes a deep learning model to classify the genre of the audio.\n- **Automatic Equalization Adjustment**: Sends commands to JamesDSP to adjust the equalization based on the detected music genre.\n\n## 🛠️ Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/yourusername/music-genre-classifier.git\n   cd music-genre-classifier\n   ```\n\n2. Create a virtual environment (optional but recommended):\n   ```bash\n   python -m venv venv\n   source venv/bin/activate  # On Windows use `venv\\Scripts\\activate`\n   ```\n\n3. Install the required packages:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n## 🕹️ Usage\n\n1. Start the main script to begin monitoring audio and adjusting equalization:\n   ```bash\n   python main.py\n   ```\n\n2. The system will capture the audio, generate the MEL spectrogram, classify the music genre, and adjust the equalization in real-time.\n\n## 🎼 Project Structure\n\n- `data/`\n  - `balance_dataset.py`: Balances the dataset for training.\n  - `command_equalization.py`: Sends commands to JamesDSP for equalization adjustments.\n  - `data_acquisition.py`: Captures audio being played on the computer.\n  - `music_2_spectrogram.py`: Converts audio to MEL spectrogram.\n- `model/`\n  - `schedulers/`: Contains learning rate schedulers.\n  - `architecture.py`: Defines the architecture of the deep learning model.\n  - `inference.py`: Handles inference for genre classification.\n- `main.py`: Main script to run the complete audio analysis and equalization adjustment flow.\n- `training.py`: Script for training the deep learning model.\n\n## 🫂 Contributing\n\nContributions are welcome. If you would like to contribute, please follow these steps:\n\n1. Fork the project.\n2. Create a new branch (`git checkout -b feature/new_feature`).\n3. Make your changes and commit them (`git commit -am 'Add new feature'`).\n4. Push to the branch (`git push origin feature/new_feature`).\n5. Open a Pull Request.\n\n## 📜 License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n---\n\nThank you for using our automatic music genre classification and equalization system!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanibcorr%2Fmusicgenreclassifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanibcorr%2Fmusicgenreclassifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanibcorr%2Fmusicgenreclassifier/lists"}