Add karaoke mode with on-demand vocal separation via Demucs #2

Closed
maks wants to merge 2 commits from feature/karaoke-mode into master
Owner

When the user toggles karaoke mode on a Navidrome track, the backend
downloads the track, runs htdemucs (4-stem) via Demucs to separate
vocals, sums the non-vocal stems into an instrumental WAV, and caches
it under data/stems/. The Intel N150 iGPU (torch.xpu) is used when
available, falling back to CPU.

Three new API endpoints: GET/POST /api/karaoke/{id}/status|prepare|stream.
The frontend polls every 3s while processing, then seamlessly reloads
the track at the current playback position with the karaoke stream.
When karaoke first becomes ready, the NowPlaying panel auto-opens so
lyrics are visible for a full karaoke experience.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

When the user toggles karaoke mode on a Navidrome track, the backend downloads the track, runs htdemucs (4-stem) via Demucs to separate vocals, sums the non-vocal stems into an instrumental WAV, and caches it under data/stems/. The Intel N150 iGPU (torch.xpu) is used when available, falling back to CPU. Three new API endpoints: GET/POST /api/karaoke/{id}/status|prepare|stream. The frontend polls every 3s while processing, then seamlessly reloads the track at the current playback position with the karaoke stream. When karaoke first becomes ready, the NowPlaying panel auto-opens so lyrics are visible for a full karaoke experience. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add karaoke mode with on-demand vocal separation via Demucs
Some checks failed
CI / Backend (lint + type-check + test) (pull_request) Failing after 1m52s
CI / Frontend (lint + check + test) (pull_request) Has been cancelled
a91cfd3d00
When the user toggles karaoke mode on a Navidrome track, the backend
downloads the track, runs htdemucs (4-stem) via Demucs to separate
vocals, sums the non-vocal stems into an instrumental WAV, and caches
it under data/stems/. The Intel N150 iGPU (torch.xpu) is used when
available, falling back to CPU.

Three new API endpoints: GET/POST /api/karaoke/{id}/status|prepare|stream.
The frontend polls every 3s while processing, then seamlessly reloads
the track at the current playback position with the karaoke stream.
When karaoke first becomes ready, the NowPlaying panel auto-opens so
lyrics are visible for a full karaoke experience.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Fix audio loading: use demucs AudioFile instead of torchaudio.load
Some checks failed
CI / Backend (lint + type-check + test) (pull_request) Failing after 1m50s
CI / Frontend (lint + check + test) (pull_request) Successful in 3m1s
f8627c18da
torchaudio 2.x switched its default backend to torchcodec which is not
installed. demucs' own AudioFile uses ffmpeg internally and handles all
formats without extra dependencies.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
maks closed this pull request 2026-10-07 11:48:27 +02:00
maks deleted branch feature/karaoke-mode 2026-10-07 11:48:35 +02:00
Some checks failed
CI / Backend (lint + type-check + test) (pull_request) Failing after 1m50s
CI / Frontend (lint + check + test) (pull_request) Successful in 3m1s

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
maks/sonus!2
No description provided.