SelfHosted-Music-Awesome

🎡 Adding Lyrics to Selfhost Music

This guide explains how Selfhost Music searches for lyrics and how you can easily add them to your music files.


βœ… Quick Overview

Selfhost Music supports:

By default, Selfhost Music searches in this order:

.lrc β†’ .txt β†’ embedded

This is controlled by the environment variable:

ND_LYRICSPRIORITY

Default value:

.lrc,.txt,embedded


1️⃣ External Synced Lyrics (.lrc)

This is the best option if you want synchronized (karaoke-style) lyrics.

πŸ“Œ Step 1 β€” Match the filename exactly

The lyric file must:

Example:

01 - My Song.mp3 01 - My Song.lrc

⚠️ On Linux systems, filenames are case-sensitive.


πŸ“Œ Step 2 β€” Use correct LRC format

Example:

[00:12.00] First line of lyrics [00:34.50] Second line of lyrics

Format:

[mm:ss.xx] Lyrics line

Selfhost Music will automatically sync the lyrics during playback.


2️⃣ Embedded Lyrics (Unsynchronized)

Use this if you only want static lyrics (no timing).

Lyrics are stored inside the audio file metadata:


πŸ›  Tools to Add Embedded Lyrics

Mp3tag (Windows)

Kid3 (Windows / Linux / macOS)

CLI Tools (for advanced users)

Useful for bulk scripting.


3️⃣ Configure Lyrics Priority

You can change the search order using:

ND_LYRICSPRIORITY

Example values:

.lrc,.txt,embedded embedded,.lrc


🐳 Docker Example

services:
  navidrome:
    image: deluan/navidrome:latest
    environment:
      - ND_LYRICSPRIORITY=.lrc,.txt,embedded
πŸͺŸ Windows PowerShell (temporary)
$env:ND_LYRICSPRIORITY = ".lrc,.txt,embedded"
Restart-Service navidrome
4️⃣ Force a Library Rescan

After adding lyrics:

Restart Selfhost Music

Use the Scan option in the Admin panel

Modify the file date to trigger re-indexing

5️⃣ Minimal LRC Example
[00:00.00] Intro
[00:15.20] Verse 1 line 1
[00:22.50] Verse 1 line 2
πŸ”§ Troubleshooting

βœ”οΈ Filenames must match exactly
βœ”οΈ Check ND_LYRICSPRIORITY
βœ”οΈ If embedded lyrics don’t show, confirm correct tag field
βœ”οΈ Enable debug logs with:

ND_LOGLEVEL=debug
πŸ”— Useful Link

Selfhost Music Configuration Options:
https://www.navidrome.org/docs/usage/configuration/options/