What changes in Lagu
On Plex, radio that follows the sound of a song comes from sonic analysis, which is part of Plex Pass. Navidrome has no analysis of its own. AudioMuse-AI does that job, and Navidrome asks it through a plugin.
- Stations and Autoplay follow the sound. A station started from a song picks songs that sound like it, from anywhere in your library.
- Sonic Adventure switches on. It charts a path from one song to another through songs that sit between them.
- The sonic Guest DJs switch on. Without the plugin only Groupie is offered, and the others say they need a sonic analysis plugin on your Navidrome server.
The Android TV app has no Sonic Adventure on either server, so there the plugin changes stations, Autoplay and the Guest DJ.
Without AudioMuse-AI, the same stations still play. They follow related artists first and the song's genre after that. Lagu does not label a station as one kind or the other.
Before you start
This is the heaviest of the add-ons, so it is worth knowing what it asks for.
- Hardware. The README asks for a 4-core Intel processor with AVX2, usually one made in 2015 or later, or an ARM processor, with 8 GB of memory and SSD storage. It has been tested on a Raspberry Pi 5 with 8 GB. If the server is a virtual machine, pass the host's processor through, because the default virtual one has no AVX2.
- Three more containers. AudioMuse-AI runs as a web app, a worker and a PostgreSQL database, beside Navidrome.
- Time. It downloads every song from Navidrome once and listens to it. Its FAQ says a library takes from a few hours to several days. On our test server, a 6-core Xeon limited to four threads and with lyric transcription off got through a song about every six seconds, which is roughly a week for 100,000 songs.
You can run it on a different computer from Navidrome, as long as each can reach the other over your network.
1. Run AudioMuse-AI
Make a folder for it and download the project's compose file and its example settings file.
mkdir -p ~/audiomuse
cd ~/audiomuse
wget https://raw.githubusercontent.com/NeptuneHub/AudioMuse-AI/refs/heads/main/deployment/docker-compose.yaml
wget https://raw.githubusercontent.com/NeptuneHub/AudioMuse-AI/refs/heads/main/deployment/.env.example -O .env Open .env in a text editor. Since version 1.0 only the database and the time zone are set here. Give the database a password of your own and set your time zone.
TZ=America/Chicago
POSTGRES_USER=audiomuse
POSTGRES_PASSWORD=a-long-password-of-your-own Then start it.
docker compose up -d 2. Connect it to Navidrome
Open http://localhost:8000 on the server, or the server's address with :8000 from another device. The Setup Wizard opens on the first visit.
- It asks for a sign-in for AudioMuse-AI itself. Its own login is on by default.
- Pick Navidrome as the media server.
- Enter your Navidrome address, a Navidrome username and its password. Use the server's network address, such as
http://192.168.1.20:4533. From inside a container,localhostmeans the container and not your server.
The wizard also lists the models it will run. The slowest stage is the one that transcribes lyrics by listening to the song, and it only runs for songs with no lyrics from your server or from a lyrics lookup. You can switch that stage off under Machine Learning Models and the rest of the analysis is unaffected.
3. Analyze the library
Go to the Analysis and Clustering page and choose Start Analysis.
Start small. The Number of Recent Albums setting limits a run to your newest albums. On our server 20 albums took half an hour, which is enough to see it work end to end. Setting it to 0 analyzes the whole library. A later run skips every song that is already done, so nothing is wasted by starting with a few.
You do not have to wait for the whole library before going on. Lagu uses the analysis for whatever songs have it and falls back to related artists for the rest.
4. Install the Navidrome plugin
Download audiomuseai.ndp from the plugin's releases page and move it into Navidrome's plugins folder.
mkdir -p ~/navidrome/data/plugins
mv ~/Downloads/audiomuseai.ndp ~/navidrome/data/plugins/ Then tell Navidrome to ask AudioMuse-AI first when an app wants similar songs. Add this line to the environment part of Navidrome's compose file and restart it.
environment:
ND_AGENTS: "audiomuseai,deezer,listenbrainz" cd ~/navidrome
docker compose up -d The order matters. Navidrome uses the first source in the list that can answer, so audiomuseai goes first. The other two are Navidrome's defaults since 0.65.0 and keep supplying artist biographies and photos. If your server has a Last.fm key whose account has Last.fm Pro, add lastfm after audiomuseai as well. Album covers and artist info explains why it needs Pro.
Last, sign in to Navidrome's web page as the admin and open Settings, then Plugins. Enable the AudioMuse-AI plugin and fill in two fields.
- AudioMuse-AI API URL. The address from step 2, such as
http://192.168.1.20:8000. - API Token. Because AudioMuse-AI's login is on, the plugin needs a token. Create an API token in AudioMuse-AI's settings and paste it here.
5. Check it in Lagu
Play a song from one of the albums you analyzed and start a station from it. The songs that follow are chosen by sound, so expect artists that no database links to the first one. Sonic Adventure and the sonic Guest DJs become available once the server reports the plugin. There is no setting to change in the app.
If a song has not been analyzed yet, Sonic Adventure cannot chart a path from it, and a station from it uses related artists. Both sort themselves out as the analysis reaches those songs.
Keep it current
New albums are not analyzed until a run includes them. Start the analysis again after you add music. It skips what it has done, so a top-up run is short.
Navidrome, the plugin and AudioMuse-AI are three projects that change together. The plugin's README suggests keeping all three on their latest versions, and that is the combination this guide was checked on.
Credits and sources
This guide leans on other people's work. Each project below is its own, with its own license and its own documentation, and theirs is the one to trust if it and this page ever disagree.
- AudioMuse-AI NeptuneHub and contributors, AGPL-3.0
The analysis service. The hardware requirements, the compose file, the Setup Wizard steps and the analysis notes are from its README and its Navidrome, FAQ and algorithm documents.
- AudioMuse-AI Navidrome plugin NeptuneHub, AGPL-3.0
The plugin that lets Navidrome ask AudioMuse-AI for similar songs.
- Navidrome's AudioMuse-AI page
The plugin steps from Navidrome's side, including the order of the Agents setting, whose defaults are from Navidrome's 0.65.0 release notes. It notes that both pieces are developed and maintained by the community, not by the Navidrome team.