Karaoke from any song in your music library, powered by neural networks.
[!IMPORTANT] This repository is an independently modified fork of rzru/nightingale. It keeps the upstream GPL-3.0-or-later license and adds the Nightingale Vocal Studio, local YouTube importing, melody extraction and correction, strict pitch coaching, and vocal recording/export workflows. See FORK.md for attribution, branding, and packaging details.
Nightingale scans your music folder, Plex Media Server, Jellyfin server, Navidrome server, or self-hosted web library; separates lead vocals from instrumentals using the UVR Karaoke model (or Demucs); transcribes lyrics with word-level timestamps via WhisperX; and plays it all back with synchronized highlighting, pitch scoring, key/tempo controls, profiles, and dynamic backgrounds.
The standard installer ships as a small desktop app and bootstraps Python, ffmpeg, and ML packages automatically on first launch. An offline installer build can embed the already-provisioned analyzer runtime in the installer, so Python and package setup does not need a network connection.
๐ Folder library โ point at any folder and Nightingale scans supported audio, video, and UltraStar files inside.
๐ Plex โ connect to a local, remote, or LAN-only Plex Media Server, select one or more music libraries, and import tracks, associated music video clips, covers, and read-only playlists. Hosted Plex sign-in discovers servers; an advanced PMS URL + token flow works without plex.tv during normal operation.
๐ฌ Jellyfin โ play straight from your Jellyfin library. Songs cache locally on first play so karaoke runs the same as a folder library.
๐ฟ Navidrome โ connect to Navidrome for audio libraries. Login details are kept encrypted on disk.
๐ Self-hosted web mode โ run Nightingale on a Linux box on your home network and open it from phones, laptops, tablets, and TVs at <hostname>.local. See docs/self-hosted. Also runs in Docker (CPU or CUDA/GPU).
๐งญ Sidebar + library filters โ browse by quick filters, metadata cleanup buckets, artists, albums, and existing playlists from Plex, Jellyfin, Navidrome, or folder-library .m3u / .m3u8 / .pls files. Analyze All and optional auto-analysis help queue your library faster, and the sidebar/song list remember scroll position when you come back.
๐๏ธ Flexible storage โ choose the main data folder during setup, then split cache, models, videos, and vendor tools into separate folders from Settings when needed.
๐ฆ Self-contained โ ffmpeg, uv, Python, PyTorch, and ML packages are downloaded automatically during setup. Video backgrounds are pre-downloaded so the first session is ready to go.
๐ค Stem separation โ isolates lead vocals from instrumentals using the UVR Karaoke model (default) or Demucs, with adjustable guide vocal volume. The karaoke model preserves backing vocals in the instrumental for a more natural sound.
๐ Word-level lyrics โ automatic transcription with alignment, or fetched from LRCLIB when available.
โ๏ธ Lyrics editor with LRCLIB browser โ edit lyrics, browse LRCLIB matches, or paste your own LRC / Enhanced LRC from a song's Actions button. Timed LRC is used as-is (optionally skipping stem separation to sing over the original mix); plain lyrics run alignment.
๐ฏ CJK lyric support โ Japanese, Chinese, Cantonese, and Korean songs get per-character forced alignment and romanized readings (Hepburn / pinyin / Jyutping / Revised Romanization) shown above each token.
๐ฃ๏ธ Pluggable ASR engines โ choose Whisper (default, broad language coverage) or Parakeet v3 (experimental) for ~25 European languages, with NeMo on CUDA and ONNX Runtime everywhere else.
โก Pluggable forced alignment โ keep WhisperX's aligner (default) or switch on an experimental backend: GPU forced alignment (torchaudio forced_align) for faster word timestamps on CUDA and Apple Silicon, or the Qwen aligner (Qwen3-ForcedAligner-0.6B) which timestamps 11 languages incl. CJK in a single pass on CUDA/MPS/CPU. Both fall back to WhisperX automatically.
๐ผ UltraStar Deluxe songs (experimental) โ drop USDX song folders (.txt or .usdx plus sibling audio/vocals/instrumental/video) into your library; pitch and lyric data come from the file directly, no analyzer pass needed. See docs/usdx.
๐ฏ Pitch scoring โ real-time microphone input with pitch detection, star ratings, and per-song scoreboards.
๐๏ธ Key & tempo shifts โ adjust song key and tempo after analysis, with cached playback variants for quick retries.
๐ฌ Video files โ drop video files (.mp4, .mkv, etc.) into your music folder; vocals are separated from the audio track and the original video plays as a synchronized background.
๐ Audio-reactive backgrounds โ 10 GPU shaders that react to your microphone in real time (Plasma, Waves, Nebula, Starfield, Sonar, Voronoi, Vortex, Metaballs, Spectrum, Oscilloscope), Pixabay video loops in 5 flavors (Nature, Underwater, Space, City, Countryside), plus source-video playback for video files.
๐๏ธ Mic monitoring + latency test โ optionally route your live mic into playback, adjust monitor gain (0โ200%), and run a beep-based latency test from Settings so scoring lines up with your room.
๐ค Profiles โ create and switch between player profiles; scores are tracked per profile.
๐ฎ Gamepad support โ full navigation and control via gamepad (D-pad, sticks, face buttons).
๐บ Adaptive + touch-friendly UI โ scales from phones/tablets to 4K TVs, with on-screen playback controls on touch devices.
โฌ๏ธ In-app updates โ on macOS and Windows, auto-checks for new releases at launch, badges the sidebar avatar when one is available, and downloads and installs signed updates with one click. Linux is manual: the Update entry opens GitHub Releases for you to grab the new build.
Download the latest release for your platform from the Releases page and run it. On first launch, Nightingale shows setup steps, lets you pick a data folder, then installs the Python environment and ML models automatically.
On macOS and Windows, Nightingale checks for new releases once at launch. When one is available, the sidebar avatar grows a small green dot and the Update entry in the dropdown menu opens a dialog with the release notes. Click Install & Restart and the app downloads the signed bundle, installs it, and relaunches. On Windows the installer runs in passive mode โ a small progress window flashes and the app comes back automatically once the install finishes.
Auto-update is not supported on Linux โ the app ships without the updater plugin. The Update entry still appears in the sidebar menu, but it just opens a dialog explaining this with a one-click button to the Releases page so you can grab the new .deb or .rpm and install it the usual way for your distro.
The manual Installer builds workflow creates separate .dmg installers for Apple Silicon and Intel Macs without requiring release-signing secrets. Open the workflow in GitHub Actions, choose Run workflow, then download the artifact matching the Mac's processor.
macOS quarantines files downloaded from the internet. Since Nightingale isn't signed with an Apple Developer ID, Gatekeeper will block it with a message like "app is damaged and can't be opened". To fix this, remove the quarantine attribute after moving the Nightingale.app to Applications:
xattr -cr /Applications/Nightingale.app
Audio: .mp3, .flac, .ogg, .opus, .wav, .m4a, .aac, .wma. Video: .mp4, .mkv, .avi, .webm, .mov, .m4v. UltraStar: .usdx, plus .txt files whose contents look like USDX.
| Action | Keyboard | Gamepad |
|---|---|---|
| Move | Arrow keys | D-pad / Left stick |
| Confirm / Select | Enter | A (South) |
| Back / Cancel | Escape | B (East) / Start |
| Switch panel | Tab | โ |
| Search songs | Type to filter | โ |
| Action | Keyboard | Gamepad |
|---|---|---|
| Pause / Resume | Space | Start |
| Exit to menu | Escape | B (East) |
| Toggle guide vocals | G | โ |
| Guide volume up/down | + / - | โ |
| Cycle background theme | T | โ |
| Cycle video flavor | F | โ |
| Toggle microphone | M | โ |
| Next microphone | N | โ |
| Toggle mic monitoring | R | โ |
| Toggle fullscreen | F11 | โ |
| Skip Intro / Skip Outro | On-screen buttons | A (South) |
flowchart TD
A["Audio or video file"] --> B["UVR Karaoke / Demucs"]
A2["USDX bundle (.txt / .usdx)"] --> E["Tauri App (Rust + React)"]
B -->|"vocals + instrumental"| C["LRCLIB"]
C -->|"synced lyrics if available"| D["WhisperX or Parakeet v3 (exp.)"]
D -->|"word-level alignment, CJK reading"| E
E --> F["Plays instrumental + synced lyrics with pitch scoring, key/tempo, mic monitoring, audio-reactive backgrounds"]
The analyzer runs as a persistent local process: Nightingale starts it once and talks to it over a token-authenticated loopback TCP socket using newline-delimited JSON, so per-song startup overhead (model load, CUDA init) is paid only once.
Analysis results are cached using blake3 file hashes. Re-analysis only happens if the source file changes, the user triggers it manually, or you choose to shift key/tempo and create playback variants. USDX songs skip stem separation entirely when #VOCALS and #INSTRUMENTAL are provided.
The Python analyzer uses PyTorch and auto-detects the best backend:
| Backend | Device | Notes |
|---|---|---|
| CUDA | NVIDIA GPU | Fastest |
| MPS | Apple Silicon | macOS; WhisperX alignment falls back to CPU |
| CPU | Any | Slowest but always works |
The UVR Karaoke model uses ONNX Runtime and enables CUDA acceleration automatically on NVIDIA GPUs, or CoreML on Apple Silicon.
A song typically takes 2โ5 minutes on GPU, 10โ20 minutes on CPU.
During setup, you can choose where Nightingale stores data (default: ~/.nightingale). Most runtime data is stored in that selected data folder, while config.json and nightingale.log remain in ~/.nightingale.
Typical selected data folder layout:
<selected-data-folder>/
โโโ cache/ # Stems, transcripts, lyrics, shifted variants, covers, playable videos
โโโ songs.db # SQLite song library and analysis metadata
โโโ profiles.json # Player profiles and scores
โโโ videos/ # Cached Pixabay video backgrounds
โโโ sounds/ # Sound effects (celebration)
โโโ vendor/
โ โโโ ffmpeg # Downloaded ffmpeg binary
โ โโโ uv # Downloaded uv binary
โ โโโ python/ # Python 3.10 installed via uv
โ โโโ venv/ # Virtual environment with ML packages
โ โโโ analyzer/ # Extracted analyzer Python scripts
โ โโโ .ready # Marker indicating setup is complete
โโโ models/
โโโ torch/ # Demucs model cache
โโโ huggingface/ # WhisperX model cache
โโโ audio_separator/ # UVR Karaoke model cache
~/.nightingale/config.json stores app settings, including the selected data folder path.
Pixabay video backgrounds use the Pixabay API. The API key is embedded in release builds. For development, create a .env file at the project root:
PIXABAY_API_KEY=your_key_here
| Tool | Version |
|---|---|
| Rust | 1.85+ (workspace uses edition 2024) |
| Node.js | 20+ |
| pnpm | latest |
| Linux only | libwebkit2gtk-4.1-dev, libssl-dev, libayatana-appindicator3-dev, librsvg2-dev, libxdo-dev, libasound2-dev |
git clone <repo-url> nightingale
cd nightingale
cargo desktop dev
cargo desktop build
After completing setup once on the build machine, create a dependency-complete installer from that exact vendor environment and model cache:
cargo desktop offline-build \
--vendor /path/to/nightingale-data/vendor \
--models /path/to/nightingale-data/models
On Windows, the analyzer-only build produces one *-offline-setup.exe. When model weights would push that executable above Windows' 4 GB PE limit, the complete build automatically produces a *-complete-offline-setup/ media folder containing a runnable launcher, offline-models/ sidecars, a short README, and a sorted SHA256SUMS.txt covering every distributed file. Keep the folder together and run the .exe inside it; installation is still one command and requires no downloads. The launcher expands models directly into the configured model cache, including for upgrades that have already completed first-run setup. macOS defaults to a DMG with bundled resources. The packager excludes Python bytecode caches and transient model locks/downloads, creates deterministic tar.zst payloads, splits them into installer-safe parts, and writes SHA-256 manifests. First-run setup verifies every part's size and checksum plus the app version, operating system, architecture, and payload type before atomically extracting into the selected data folder. Interrupted atomic swaps restore the previous verified directory on retry, and a failed verification leaves an existing analyzer or model environment untouched while first-run setup can fall back to online provisioning.
Publish the normal *-setup.exe for downloads. Complete offline media is intended for local or air-gapped transfer and is deliberately excluded from GitHub installer artifacts because model weights make it several gigabytes.
Omit --models to produce the smaller analyzer-only *-offline-setup.exe; model weights will then download when an analysis backend is first used.
Use offline-stage to create and inspect the payload without building an installer:
cargo desktop offline-stage --vendor /path/to/nightingale-data/vendor
Stage and inspect model weights independently:
cargo desktop offline-models-stage --models /path/to/nightingale-data/models
To migrate a previously staged single archive into multipart form without recompressing it:
cargo desktop offline-split
Wrap an existing standard Windows setup executable and staged payload without rebuilding either:
cargo desktop offline-wrap \
--bundle target/offline-vendor/windows-x86_64 \
--models-bundle target/offline-models/windows-x86_64
The completed Windows launcher can verify its embedded analyzer and adjacent model payload without changing the system:
Nightingale_1.0.0_x64-complete-offline-setup\Nightingale_1.0.0_x64-complete-offline-setup.exe --verify-only
Verify the complete archive by extracting it to a disposable folder and starting its relocated Python imports and ffmpeg binary:
cargo desktop offline-verify
Verify the staged model cache with the same full extraction and hash checks:
cargo desktop offline-models-verify
The analyzer environment can exceed 6 GB before compression and the model cache can add several more gigabytes. Keep enough free space for the source data, staged payloads, verification extraction, and final installer at the same time.
Local builds omit signed updater archives when TAURI_SIGNING_PRIVATE_KEY is unavailable, so the
installer command still exits successfully. Tagged GitHub releases keep updater artifacts enabled
and sign them with the repository secret.
| Platform | Target |
|---|---|
| Linux x86_64 | x86_64-unknown-linux-gnu |
| Linux aarch64 | aarch64-unknown-linux-gnu |
| macOS ARM | aarch64-apple-darwin |
| macOS Intel | x86_64-apple-darwin |
| Windows x86_64 | x86_64-pc-windows-msvc |
Releases are cut by .github/workflows/release.yml on any v* tag push. The workflow:
version in client/src-tauri/tauri.conf.json, client/src-tauri/Cargo.toml, and client/package.json.## [<version>] section from CHANGELOG.md as the release body..deb, .rpm (on ubuntu-22.04).deb, .rpm (on ubuntu-24.04-arm).dmg + .app.tar.gz (+ .sig) for the in-app updater*-setup.exe (NSIS, + .sig), *_en-US.msi (+ .sig)latest.json covering darwin-aarch64, darwin-x86_64, and windows-x86_64 โ Linux is intentionally absent since the updater plugin isn't compiled in for Linux.https://github.com/rzru/nightingale/releases/latest/download/latest.json (the URL hard-coded in tauri.conf.json) resolve to it and start rolling out the in-app update.For test installers without updater or Apple signing keys, run .github/workflows/installers.yml manually. It uploads Apple Silicon and Intel .dmg files plus a Windows NSIS .exe, each with a SHA-256 checksum.
Cutting a release:
# bump versions in client/src-tauri/tauri.conf.json, client/src-tauri/Cargo.toml, client/package.json
# add a `## [<version>] - YYYY-MM-DD` section to CHANGELOG.md
git tag v<version>
git push origin v<version>
Required repository secrets:
| Secret | Purpose |
|---|---|
TAURI_SIGNING_PRIVATE_KEY | Minisign private key whose public counterpart is the pubkey in tauri.conf.json. Generate once with pnpm tauri signer generate. |
TAURI_SIGNING_PRIVATE_KEY_PASSWORD | Password for the signing key. Omit the secret entirely if the key was generated passwordless โ GitHub rejects empty-string secrets, and a missing one resolves to empty at workflow runtime, which is what minisign expects. |
PIXABAY_API_KEY | Embedded at compile time so release builds can fetch video backgrounds. |
Contributions are welcome, but Nightingale follows a discussion-first process: before writing any code for a new feature or change, please start a discussion thread so we can agree on whether it fits the app. Only once a discussion reaches approved status will a corresponding pull request be accepted.
See CONTRIBUTING.md for the full workflow.
Nightingale is open-source, free, and built by one person in their spare time. If it brings you joy and you want to help keep development going, you can chip in:
Every bit helps cover site hosting, hardware for testing, and the time spent shipping new features. Thank you.
GPL-3.0-or-later โ see LICENSE.
TypeScript
53.2%
Rust
33.6%
Python
6.2%
Shell
2.4%
Astro
2.3%
GLSL
1.5%
Karaoke from any song in your music library, powered by neural networks.
[!IMPORTANT] This repository is an independently modified fork of rzru/nightingale. It keeps the upstream GPL-3.0-or-later license and adds the Nightingale Vocal Studio, local YouTube importing, melody extraction and correction, strict pitch coaching, and vocal recording/export workflows. See FORK.md for attribution, branding, and packaging details.
Nightingale scans your music folder, Plex Media Server, Jellyfin server, Navidrome server, or self-hosted web library; separates lead vocals from instrumentals using the UVR Karaoke model (or Demucs); transcribes lyrics with word-level timestamps via WhisperX; and plays it all back with synchronized highlighting, pitch scoring, key/tempo controls, profiles, and dynamic backgrounds.
The standard installer ships as a small desktop app and bootstraps Python, ffmpeg, and ML packages automatically on first launch. An offline installer build can embed the already-provisioned analyzer runtime in the installer, so Python and package setup does not need a network connection.
๐ Folder library โ point at any folder and Nightingale scans supported audio, video, and UltraStar files inside.
๐ Plex โ connect to a local, remote, or LAN-only Plex Media Server, select one or more music libraries, and import tracks, associated music video clips, covers, and read-only playlists. Hosted Plex sign-in discovers servers; an advanced PMS URL + token flow works without plex.tv during normal operation.
๐ฌ Jellyfin โ play straight from your Jellyfin library. Songs cache locally on first play so karaoke runs the same as a folder library.
๐ฟ Navidrome โ connect to Navidrome for audio libraries. Login details are kept encrypted on disk.
๐ Self-hosted web mode โ run Nightingale on a Linux box on your home network and open it from phones, laptops, tablets, and TVs at <hostname>.local. See docs/self-hosted. Also runs in Docker (CPU or CUDA/GPU).
๐งญ Sidebar + library filters โ browse by quick filters, metadata cleanup buckets, artists, albums, and existing playlists from Plex, Jellyfin, Navidrome, or folder-library .m3u / .m3u8 / .pls files. Analyze All and optional auto-analysis help queue your library faster, and the sidebar/song list remember scroll position when you come back.
๐๏ธ Flexible storage โ choose the main data folder during setup, then split cache, models, videos, and vendor tools into separate folders from Settings when needed.
๐ฆ Self-contained โ ffmpeg, uv, Python, PyTorch, and ML packages are downloaded automatically during setup. Video backgrounds are pre-downloaded so the first session is ready to go.
๐ค Stem separation โ isolates lead vocals from instrumentals using the UVR Karaoke model (default) or Demucs, with adjustable guide vocal volume. The karaoke model preserves backing vocals in the instrumental for a more natural sound.
๐ Word-level lyrics โ automatic transcription with alignment, or fetched from LRCLIB when available.
โ๏ธ Lyrics editor with LRCLIB browser โ edit lyrics, browse LRCLIB matches, or paste your own LRC / Enhanced LRC from a song's Actions button. Timed LRC is used as-is (optionally skipping stem separation to sing over the original mix); plain lyrics run alignment.
๐ฏ CJK lyric support โ Japanese, Chinese, Cantonese, and Korean songs get per-character forced alignment and romanized readings (Hepburn / pinyin / Jyutping / Revised Romanization) shown above each token.
๐ฃ๏ธ Pluggable ASR engines โ choose Whisper (default, broad language coverage) or Parakeet v3 (experimental) for ~25 European languages, with NeMo on CUDA and ONNX Runtime everywhere else.
โก Pluggable forced alignment โ keep WhisperX's aligner (default) or switch on an experimental backend: GPU forced alignment (torchaudio forced_align) for faster word timestamps on CUDA and Apple Silicon, or the Qwen aligner (Qwen3-ForcedAligner-0.6B) which timestamps 11 languages incl. CJK in a single pass on CUDA/MPS/CPU. Both fall back to WhisperX automatically.
๐ผ UltraStar Deluxe songs (experimental) โ drop USDX song folders (.txt or .usdx plus sibling audio/vocals/instrumental/video) into your library; pitch and lyric data come from the file directly, no analyzer pass needed. See docs/usdx.
๐ฏ Pitch scoring โ real-time microphone input with pitch detection, star ratings, and per-song scoreboards.
๐๏ธ Key & tempo shifts โ adjust song key and tempo after analysis, with cached playback variants for quick retries.
๐ฌ Video files โ drop video files (.mp4, .mkv, etc.) into your music folder; vocals are separated from the audio track and the original video plays as a synchronized background.
๐ Audio-reactive backgrounds โ 10 GPU shaders that react to your microphone in real time (Plasma, Waves, Nebula, Starfield, Sonar, Voronoi, Vortex, Metaballs, Spectrum, Oscilloscope), Pixabay video loops in 5 flavors (Nature, Underwater, Space, City, Countryside), plus source-video playback for video files.
๐๏ธ Mic monitoring + latency test โ optionally route your live mic into playback, adjust monitor gain (0โ200%), and run a beep-based latency test from Settings so scoring lines up with your room.
๐ค Profiles โ create and switch between player profiles; scores are tracked per profile.
๐ฎ Gamepad support โ full navigation and control via gamepad (D-pad, sticks, face buttons).
๐บ Adaptive + touch-friendly UI โ scales from phones/tablets to 4K TVs, with on-screen playback controls on touch devices.
โฌ๏ธ In-app updates โ on macOS and Windows, auto-checks for new releases at launch, badges the sidebar avatar when one is available, and downloads and installs signed updates with one click. Linux is manual: the Update entry opens GitHub Releases for you to grab the new build.
Download the latest release for your platform from the Releases page and run it. On first launch, Nightingale shows setup steps, lets you pick a data folder, then installs the Python environment and ML models automatically.
On macOS and Windows, Nightingale checks for new releases once at launch. When one is available, the sidebar avatar grows a small green dot and the Update entry in the dropdown menu opens a dialog with the release notes. Click Install & Restart and the app downloads the signed bundle, installs it, and relaunches. On Windows the installer runs in passive mode โ a small progress window flashes and the app comes back automatically once the install finishes.
Auto-update is not supported on Linux โ the app ships without the updater plugin. The Update entry still appears in the sidebar menu, but it just opens a dialog explaining this with a one-click button to the Releases page so you can grab the new .deb or .rpm and install it the usual way for your distro.
The manual Installer builds workflow creates separate .dmg installers for Apple Silicon and Intel Macs without requiring release-signing secrets. Open the workflow in GitHub Actions, choose Run workflow, then download the artifact matching the Mac's processor.
macOS quarantines files downloaded from the internet. Since Nightingale isn't signed with an Apple Developer ID, Gatekeeper will block it with a message like "app is damaged and can't be opened". To fix this, remove the quarantine attribute after moving the Nightingale.app to Applications:
xattr -cr /Applications/Nightingale.app
Audio: .mp3, .flac, .ogg, .opus, .wav, .m4a, .aac, .wma. Video: .mp4, .mkv, .avi, .webm, .mov, .m4v. UltraStar: .usdx, plus .txt files whose contents look like USDX.
| Action | Keyboard | Gamepad |
|---|---|---|
| Move | Arrow keys | D-pad / Left stick |
| Confirm / Select | Enter | A (South) |
| Back / Cancel | Escape | B (East) / Start |
| Switch panel | Tab | โ |
| Search songs | Type to filter | โ |
| Action | Keyboard | Gamepad |
|---|---|---|
| Pause / Resume | Space | Start |
| Exit to menu | Escape | B (East) |
| Toggle guide vocals | G | โ |
| Guide volume up/down | + / - | โ |
| Cycle background theme | T | โ |
| Cycle video flavor | F | โ |
| Toggle microphone | M | โ |
| Next microphone | N | โ |
| Toggle mic monitoring | R | โ |
| Toggle fullscreen | F11 | โ |
| Skip Intro / Skip Outro | On-screen buttons | A (South) |
flowchart TD
A["Audio or video file"] --> B["UVR Karaoke / Demucs"]
A2["USDX bundle (.txt / .usdx)"] --> E["Tauri App (Rust + React)"]
B -->|"vocals + instrumental"| C["LRCLIB"]
C -->|"synced lyrics if available"| D["WhisperX or Parakeet v3 (exp.)"]
D -->|"word-level alignment, CJK reading"| E
E --> F["Plays instrumental + synced lyrics with pitch scoring, key/tempo, mic monitoring, audio-reactive backgrounds"]
The analyzer runs as a persistent local process: Nightingale starts it once and talks to it over a token-authenticated loopback TCP socket using newline-delimited JSON, so per-song startup overhead (model load, CUDA init) is paid only once.
Analysis results are cached using blake3 file hashes. Re-analysis only happens if the source file changes, the user triggers it manually, or you choose to shift key/tempo and create playback variants. USDX songs skip stem separation entirely when #VOCALS and #INSTRUMENTAL are provided.
The Python analyzer uses PyTorch and auto-detects the best backend:
| Backend | Device | Notes |
|---|---|---|
| CUDA | NVIDIA GPU | Fastest |
| MPS | Apple Silicon | macOS; WhisperX alignment falls back to CPU |
| CPU | Any | Slowest but always works |
The UVR Karaoke model uses ONNX Runtime and enables CUDA acceleration automatically on NVIDIA GPUs, or CoreML on Apple Silicon.
A song typically takes 2โ5 minutes on GPU, 10โ20 minutes on CPU.
During setup, you can choose where Nightingale stores data (default: ~/.nightingale). Most runtime data is stored in that selected data folder, while config.json and nightingale.log remain in ~/.nightingale.
Typical selected data folder layout:
<selected-data-folder>/
โโโ cache/ # Stems, transcripts, lyrics, shifted variants, covers, playable videos
โโโ songs.db # SQLite song library and analysis metadata
โโโ profiles.json # Player profiles and scores
โโโ videos/ # Cached Pixabay video backgrounds
โโโ sounds/ # Sound effects (celebration)
โโโ vendor/
โ โโโ ffmpeg # Downloaded ffmpeg binary
โ โโโ uv # Downloaded uv binary
โ โโโ python/ # Python 3.10 installed via uv
โ โโโ venv/ # Virtual environment with ML packages
โ โโโ analyzer/ # Extracted analyzer Python scripts
โ โโโ .ready # Marker indicating setup is complete
โโโ models/
โโโ torch/ # Demucs model cache
โโโ huggingface/ # WhisperX model cache
โโโ audio_separator/ # UVR Karaoke model cache
~/.nightingale/config.json stores app settings, including the selected data folder path.
Pixabay video backgrounds use the Pixabay API. The API key is embedded in release builds. For development, create a .env file at the project root:
PIXABAY_API_KEY=your_key_here
| Tool | Version |
|---|---|
| Rust | 1.85+ (workspace uses edition 2024) |
| Node.js | 20+ |
| pnpm | latest |
| Linux only | libwebkit2gtk-4.1-dev, libssl-dev, libayatana-appindicator3-dev, librsvg2-dev, libxdo-dev, libasound2-dev |
git clone <repo-url> nightingale
cd nightingale
cargo desktop dev
cargo desktop build
After completing setup once on the build machine, create a dependency-complete installer from that exact vendor environment and model cache:
cargo desktop offline-build \
--vendor /path/to/nightingale-data/vendor \
--models /path/to/nightingale-data/models
On Windows, the analyzer-only build produces one *-offline-setup.exe. When model weights would push that executable above Windows' 4 GB PE limit, the complete build automatically produces a *-complete-offline-setup/ media folder containing a runnable launcher, offline-models/ sidecars, a short README, and a sorted SHA256SUMS.txt covering every distributed file. Keep the folder together and run the .exe inside it; installation is still one command and requires no downloads. The launcher expands models directly into the configured model cache, including for upgrades that have already completed first-run setup. macOS defaults to a DMG with bundled resources. The packager excludes Python bytecode caches and transient model locks/downloads, creates deterministic tar.zst payloads, splits them into installer-safe parts, and writes SHA-256 manifests. First-run setup verifies every part's size and checksum plus the app version, operating system, architecture, and payload type before atomically extracting into the selected data folder. Interrupted atomic swaps restore the previous verified directory on retry, and a failed verification leaves an existing analyzer or model environment untouched while first-run setup can fall back to online provisioning.
Publish the normal *-setup.exe for downloads. Complete offline media is intended for local or air-gapped transfer and is deliberately excluded from GitHub installer artifacts because model weights make it several gigabytes.
Omit --models to produce the smaller analyzer-only *-offline-setup.exe; model weights will then download when an analysis backend is first used.
Use offline-stage to create and inspect the payload without building an installer:
cargo desktop offline-stage --vendor /path/to/nightingale-data/vendor
Stage and inspect model weights independently:
cargo desktop offline-models-stage --models /path/to/nightingale-data/models
To migrate a previously staged single archive into multipart form without recompressing it:
cargo desktop offline-split
Wrap an existing standard Windows setup executable and staged payload without rebuilding either:
cargo desktop offline-wrap \
--bundle target/offline-vendor/windows-x86_64 \
--models-bundle target/offline-models/windows-x86_64
The completed Windows launcher can verify its embedded analyzer and adjacent model payload without changing the system:
Nightingale_1.0.0_x64-complete-offline-setup\Nightingale_1.0.0_x64-complete-offline-setup.exe --verify-only
Verify the complete archive by extracting it to a disposable folder and starting its relocated Python imports and ffmpeg binary:
cargo desktop offline-verify
Verify the staged model cache with the same full extraction and hash checks:
cargo desktop offline-models-verify
The analyzer environment can exceed 6 GB before compression and the model cache can add several more gigabytes. Keep enough free space for the source data, staged payloads, verification extraction, and final installer at the same time.
Local builds omit signed updater archives when TAURI_SIGNING_PRIVATE_KEY is unavailable, so the
installer command still exits successfully. Tagged GitHub releases keep updater artifacts enabled
and sign them with the repository secret.
| Platform | Target |
|---|---|
| Linux x86_64 | x86_64-unknown-linux-gnu |
| Linux aarch64 | aarch64-unknown-linux-gnu |
| macOS ARM | aarch64-apple-darwin |
| macOS Intel | x86_64-apple-darwin |
| Windows x86_64 | x86_64-pc-windows-msvc |
Releases are cut by .github/workflows/release.yml on any v* tag push. The workflow:
version in client/src-tauri/tauri.conf.json, client/src-tauri/Cargo.toml, and client/package.json.## [<version>] section from CHANGELOG.md as the release body..deb, .rpm (on ubuntu-22.04).deb, .rpm (on ubuntu-24.04-arm).dmg + .app.tar.gz (+ .sig) for the in-app updater*-setup.exe (NSIS, + .sig), *_en-US.msi (+ .sig)latest.json covering darwin-aarch64, darwin-x86_64, and windows-x86_64 โ Linux is intentionally absent since the updater plugin isn't compiled in for Linux.https://github.com/rzru/nightingale/releases/latest/download/latest.json (the URL hard-coded in tauri.conf.json) resolve to it and start rolling out the in-app update.For test installers without updater or Apple signing keys, run .github/workflows/installers.yml manually. It uploads Apple Silicon and Intel .dmg files plus a Windows NSIS .exe, each with a SHA-256 checksum.
Cutting a release:
# bump versions in client/src-tauri/tauri.conf.json, client/src-tauri/Cargo.toml, client/package.json
# add a `## [<version>] - YYYY-MM-DD` section to CHANGELOG.md
git tag v<version>
git push origin v<version>
Required repository secrets:
| Secret | Purpose |
|---|---|
TAURI_SIGNING_PRIVATE_KEY | Minisign private key whose public counterpart is the pubkey in tauri.conf.json. Generate once with pnpm tauri signer generate. |
TAURI_SIGNING_PRIVATE_KEY_PASSWORD | Password for the signing key. Omit the secret entirely if the key was generated passwordless โ GitHub rejects empty-string secrets, and a missing one resolves to empty at workflow runtime, which is what minisign expects. |
PIXABAY_API_KEY | Embedded at compile time so release builds can fetch video backgrounds. |
Contributions are welcome, but Nightingale follows a discussion-first process: before writing any code for a new feature or change, please start a discussion thread so we can agree on whether it fits the app. Only once a discussion reaches approved status will a corresponding pull request be accepted.
See CONTRIBUTING.md for the full workflow.
Nightingale is open-source, free, and built by one person in their spare time. If it brings you joy and you want to help keep development going, you can chip in:
Every bit helps cover site hosting, hardware for testing, and the time spent shipping new features. Thank you.
GPL-3.0-or-later โ see LICENSE.
TypeScript
53.2%
Rust
33.6%
Python
6.2%
Shell
2.4%
Astro
2.3%
GLSL
1.5%