Because your tunes deserve a little extra flavor.
Let artificial intelligence decipher and enhance the mysterious metadata of your music tracks.
- You: The person who once gazed at your MP3 folder and thought, "My beats need more AI jazz hands!"
- Also You: If you trust AI more than your friend who can't stop labeling everything "Track 1".
- Definitely You: If you own folders full of tracks from bootlegs, unknown rips, or suspect compilation albums.
- Auto-Metadata Magic: Automatically retrieve and correct track and album metadata using AI-generated suggestions.
- Cleanup Crew: Strip away unnecessary embellishments like "Free Download" in titles or SHOUTCAPS, giving your library a polished appearance.
- Extensible System: Leverage AI configurations and prompts custom tailored for your library needs.
- Beets: Make sure you have Beets installed (
pip install beets), - AI Service API Key: Get an API key from your preferred AI service provider (e.g., OpenAI, Deepseek).
- Any service that supports openAI endpoints should work.
- Installation: Obtain the sauce by installing the plugin via pip:
pip install beets-aisauce
- Configuration: Add the plugin to your Beets configuration file (
config.yaml/beets config -e) with your AI provider details:plugins: - aisauce aisauce: mode: "metadata_source" # or "metadata_cleanup" providers: - id: openai model: gpt-4o api_key: YOUR_API_KEY_HERE api_base_url: https://api.openai.com/v1
- Execute the AI Sauce: Import your tracks through Beets to start receiving AI-enhanced metadata suggestions.
There are two main ways to use the AI Sauce plugin, either as metadata source during import or as a pre-import correction step. You can also combine both methods for maximum flavor.
When importing new music, the AI Sauce plugin can act as a metadata source. Beets will query the AI model to suggest metadata for tracks that lack sufficient information.
For this set the mode option to metadata_source in your configuration file:
aisauce:
mode: "metadata_source"
providers:
...During beet import, the plugin will prompt the AI model to generate metadata suggestions based on existing tags or file names.
If you want to use AI to cleanup your metadata before retrieving candidates from other sources, set the mode option to metadata_cleanup:
aisauce:
mode: "metadata_cleanup"
providers:
...During beet import, the plugin will first use the AI model to correct and enhance existing metadata before proceeding with the standard import process. This allows you to clean up messy tags before Beets attempts to match them with external databases.
- Custom Rules: Sometimes you have specific metadata correction rules that you want to apply. You can modify the default user and system prompts by adding a
sourceto your configuration file:aisauce: providers: - id: openai model: gpt-4o api_key: YOUR_API_KEY_HERE sources: - provider_id: openai user_prompt: ' Additional rules: - Replace any occurrences of Vulgar or inappropriate words with "**sauced**". '
- Multiple sources can be defined allowing you to test different prompts or configurations for different types of music or metadata corrections and models.
Great ideas welcome! Especially if they include more puns. Open a PR or send us a message in a bottle (GitHub issues also work).
This project is licensed under the MIT License—meaning you can do almost anything, but please don't sue us if the AI names your tracks "Untitled Jam 42."
The following sections are for developers who want to contribute to the project. Feel free to skip if you're just here for the AI sauce.
Clone the repository and install the package in editable mode:
git clone
pip install -e .[dev]To run the tests, you can use pytest. Make sure you have the necessary dependencies installed:
pytest .Running mypy local is a bit tricky due to the namespace packages used in this project. To run mypy, you need to specify the --namespace-packages and --explicit-package-bases flags.
mypy --namespace-packages --explicit-package-bases .