Blog /
Building the Audio Angel Engine
What if you could tell your music player what you wanted to avoid, and it could adapt the song around that choice?
That is the idea behind Audio Angel, my project for AI Engineering Buildcamp. In an earlier piece, I called this agentic accessibility: software that adapts an experience around needs a person chooses to express. Audio gives that idea a concrete problem. A song can have an explicit label, but that label tells us very little about which words or topics matter to a particular listener.
We built an engine that takes listening rules, finds matching content, and renders an edited version of the audio. The larger goal is to do this during playback. The current engine processes the audio before you listen.
How It Works
The pipeline prepares the audio, decides what to filter, and renders the result, with a listener review before rendering.
The current engine processes audio before playback. Review feedback feeds into future evaluations.
The prototype takes music from Audius or podcast episodes from RSS feeds. For music, it can use Spleeter running on Modal to separate the vocals from the instrumental. Deepgram transcribes the vocals and gives us timestamps for individual words. Podcasts generally go straight to transcription.
Those timestamps are the connection between the model’s judgment and the actual sound. Knowing that a word should be muted is only useful if we can find where it begins and ends.
A Pydantic AI agent then checks the transcript against the listener’s rules. These can be categories, specific terms, or topics. The agent has a small lexicon of slang and ambiguous language, plus tools to look at nearby lines and search the rest of the transcript. Think about the word “high.” The meaning changes depending on whether someone is describing a mountain or drug use. Context matters.
The agent returns the words it flagged and its reasons. Ordinary code maps those words to time intervals. FFmpeg applies the edits and writes a new audio file. When separated tracks are available, it mutes the vocal track during those intervals and mixes the instrumental back in. Without them, it mutes the whole mix.
The Streamlit interface lets you review the flags and compare the original with the edited version. We also built human labeling, evaluation, and logging around the pipeline. A listener can reject a flag or report something the engine missed. That feedback can become material for future evaluations.
The Limitations
The reality is that every stage can introduce an error.
Singing is difficult to transcribe. A missed word never reaches the agent. An incorrect timestamp can leave part of a word audible or cut into the next one. Separating vocals helps, but the separation itself can leave vocal sounds in the instrumental or affect the sound of the music.
The judgment is imperfect too. Slang changes. Topics can stretch across several lines. The model can flag harmless language or miss something the listener wanted removed. Our early evaluation on a small human-labeled set showed both kinds of error. Human review is still part of the experience, and a track with no flags is not a guarantee that everything was caught.
Real-time playback adds another constraint: the decision has to arrive before the sound does. This prototype downloads, separates, transcribes, analyzes, and renders. A live version would need to process ahead of playback, keep edits synchronized, and handle slow requests or failures without making the listening experience fall apart. Context takes time, but playback keeps moving.
There is also the question of access. This engine works with audio it can download and process. Connecting a Spotify player does not give the engine that same access to the underlying recording. Bringing this into a streaming product would require resolving provider access and permissions alongside the engineering.
What I Want to Build Toward
The prototype makes the idea concrete. A listener’s preference can become a decision about a specific word, and that decision can become an edit you can hear.
The next challenge is making that process accurate and fast enough that people can trust it during ordinary listening. I am interested in that work because it gives people more control over an experience they already care about. The person defines the boundaries. The software does the work of adapting.