- About
- Features
- How It Works
- Installation
- Usage
- Screenshots
- Project Structure
- Building From Source
- Running Tests
- Contributing
- Support
- License
FrontLine Lyrics displays synchronized song lyrics in an always-on-top desktop overlay. It can follow playback metadata from compatible media players or recognize music from system audio, then look up synchronized lyrics and show them as the song plays.
The project supports a Windows desktop frontend and a Linux frontend sharing a Python-based backend. Availability and integration details depend on the platform.
- Real-time synchronized lyrics in a customizable desktop overlay.
- Song recognition using audio fingerprinting.
- Automatic tracking from supported media sessions (Windows media sessions / Linux MPRIS).
- Manual lyrics search and synchronization adjustments.
- Live lyric translation, optional on-device translation models, and improved romanization.
- Font, color, and theme customization, including seasonal themes.
- Multiple interface languages.
- Festival Mode with editable setlists and manual line synchronization (feature availability may vary by platform).
- Optional anonymous telemetry; see PRIVACY.md.
FrontLine Lyrics has two parts: a Python backend that handles recognition, lyrics, translation, and media integration, and a desktop frontend that displays the lyrics and communicates with the backend over a local WebSocket connection.
- Windows: WPF / .NET frontend, with Windows media-session and WASAPI audio integration.
- Linux: Avalonia / .NET frontend, with Linux-specific media and audio integration.
Install the official Windows version from the Microsoft Store.
Install the official Linux version from the Snap Store.
- Launch FrontLine Lyrics and start playing music.
- Use LISTEN to recognize a track, or enable AUTO to follow playback when supported.
- Use SEARCH to find lyrics manually.
- Adjust the overlay appearance, lyric size, and synchronization as needed.
- Use translation controls and other features available on your platform.
Frontline/ Windows desktop app (WPF)
FrontLine-Linux/ Linux desktop app (Avalonia) and packaging scripts
FrontlineServer/ Shared Python backend
FrontlinePackaging/ Windows packaging resources
.github/ CI workflows
docs/ Project website
Both desktop applications share the recognition and lyrics engine, with platform-specific integrations where necessary.
Both frontends use the shared FrontlineServer/ Python backend. Clone the project once:
git clone https://github.com/juliocax/FrontLine-Lyrics-Desktop.git
cd FrontLine-Lyrics-DesktopRequires Visual Studio 2022 with the .NET desktop development workload and the .NET 8 SDK.
- Open
Frontline.slnin Visual Studio. - Set
Frontline(WPF) as the startup project and press F5. - The Windows frontend starts its bundled Python backend automatically.
To rebuild the Windows backend, run this command from the repository root in PowerShell with desktop Python installed:
.\FrontlineServer\build-windows.ps1The script creates or reuses the backend's .venv, installs the requirements and the Argos tokenizer, and runs PyInstaller in --onedir mode. Keep FrontlineServer/hooks/hook-sentencepiece.py in place so PyInstaller collects the Windows DLLs. The build is first written to FrontlineServer/dist/FrontlineServer/.
Close the running WPF app before building. The script replaces FrontlineServer.exe and the entire _internal directory in Frontline/FrontlineServer/. Once the new backend is in place, the script removes FrontlineServer/build/ and FrontlineServer/dist/. Rebuild or package the WPF app in Visual Studio afterward.
If PowerShell reports that build-windows.ps1 is not digitally signed, check the effective policy and its scopes:
Get-ExecutionPolicy Get-ExecutionPolicy -List
With RemoteSigned, Windows can block a script downloaded from the internet. Review the script and verify its source before unblocking it. From the repository root, unblock only the build script and then run it:
Unblock-File -LiteralPath .\FrontlineServer\build-windows.ps1 .\FrontlineServer\build-windows.ps1
On your own PC, if the effective policy is Restricted and no Group Policy applies, you can allow local scripts in the current PowerShell session with Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned, then run the commands above. This setting expires when you close that session. If your organization requires signed scripts or sets MachinePolicy or UserPolicy, follow its policy. Unblocking a file does not sign it or satisfy AllSigned.
See PowerShell execution policies and Unblock-File.
Requires .NET 10 SDK, Python, Git, pulseaudio-utils, and playerctl. Current packages target amd64; Snap uses core26.
First-time setup (from the repository root):
sudo apt install -y pulseaudio-utils playerctl
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -r FrontlineServer/requirements-linux.txt
dotnet restore FrontLine-Linux/FrontLine-Linux.csprojOpen the repository in VS Code. In terminal 1, start the Python backend:
source .venv/bin/activate
python FrontlineServer/FrontlineServer.pyIn terminal 2, run the Avalonia frontend:
dotnet run --project FrontLine-Linux/FrontLine-Linux.csproj -c Debug
The backend uses 127.0.0.1:8765; do not start a second instance. Check the Release compilation with:
dotnet build FrontLine-Linux/FrontLine-Linux.csproj -c Release
To follow the backend log in real time, use:
tail -f ~/FrontLineLyrics/logs/frontline_server.logBuild a .deb (from the repository root, with .venv activated):
chmod +x FrontLine-Linux/packaging-deb/*.sh
./FrontLine-Linux/packaging-deb/build-deb.sh
sudo apt install ./FrontLine-Linux/dist-linux/frontline-lyrics_1.1.0-1_amd64.deb
frontline-lyricsBuild a .snap (also builds the intermediate .deb):
chmod +x FrontLine-Linux/packaging-deb/*.sh FrontLine-Linux/packaging-snap/*.sh ./FrontLine-Linux/packaging-snap/build-snap.sh 1.1.0 sudo snap install ./FrontLine-Linux/packaging-snap/frontline-lyrics_1.1.0_amd64.snap --dangerous snap run frontline-lyrics
--dangerous permits installation of a locally built, unsigned Snap; it does not disable strict confinement. Some media integrations require user-approved connections:
snap connections frontline-lyrics sudo snap connect frontline-lyrics:audio-record sudo snap connect frontline-lyrics:mpris spotify:spotify-mpris
The MPRIS command applies only if your Spotify snap exposes spotify-mpris. Other players need their own connections. See FrontLine-Linux/packaging-snap/ for build and maintainer publishing scripts.
From the repository root, activate the Python environment, install the optional development requirements (when present), and run:
python -m pip install -r FrontlineServer/requirements-dev.txt python -m pytest FrontlineServer/tests/
For Windows, use the platform-specific Python environment and dependencies from FrontlineServer/requirements.txt; for Linux use requirements-linux.txt. Tests may need updates if you change translation providers or platform integrations.
Contributions and bug reports are welcome. Please see CONTRIBUTING.md and CODE_OF_CONDUCT.md.
If FrontLine Lyrics is useful to you, consider supporting the project.
See LICENSE.txt for the repository's license terms and THIRD-PARTY-NOTICES.md for the Windows Python dependencies and add-ons.






