Skip to content

Add SoulX-Singer singing synthesis and voice conversion - #1319

Merged
0xShug0 merged 1 commit into
mainfrom
feature/soulx-singer-svc
Nov 17, 2026
Merged

0xShug0 merged 1 commit into
mainfrom
feature/soulx-singer-svc

Conversation

@0xShug0

@0xShug0 0xShug0 commented Nov 17, 2026

Copy link
Copy Markdown
Owner

Summary

Add SoulX-Singer singing synthesis (SVS) and singing voice conversion (SVC) under one soulx_singer family, using a registration table to select the checkpoint/task route.

  • SVC converts isolated source vocals using reference audio for the target voice, reusing framework Whisper and RMVPE components.
  • SVS synthesizes singing from reference audio and aligned phoneme/note metadata, with score or melody control.
  • Both paths produce 24 kHz mono audio, support offline inference, and reuse framework DiT, device sampling and Vocos execution. This does not add streaming inference.
  • Add F16 and mixed-Q8 GGUF conversion, embedded schema-v1 contracts, package links, model documentation and license notices.

Framework scope

Extend DiT with explicitly configured adaptive RMS modulation, additive frame conditioning, fixed reference prefixes/key masks, projection bindings and rescaled CFG. Add opt-in ConvNeXtV2 GRN bindings and a Vocos constructor accepting a tensor source and explicit configuration. Existing constructor/default behavior remains selected for existing callers. Graphs and buffers remain session-owned and cached. No GGML/kernel changes.

CUDA performance

RTX 5090, eight threads, Debug builds, warmed requests, 32 Euler steps and guidance 3. Automatic pitch matching is enabled for these measurements; SVS uses score control. Python uses official FP16 inference. Timing includes conditioning, denoising and vocoding, excluding model loading and WAV serialization. Peak VRAM covers the whole process, sampled every 20 ms.

Workload Package Python RTF audio.cpp RTF Peak VRAM, Python → audio.cpp
SVC, 51.48 s F16 0.08508 0.07415 4,416 → 4,532 MiB
SVC, 51.48 s Mixed Q8_0 0.08508 0.06649 4,416 → 4,150 MiB
SVS score, approximately 8 s F16 0.10070 0.06909 3,492 → 2,342 MiB
SVS score, approximately 8 s Mixed Q8_0 0.10070 0.06656 3,492 → 1,982 MiB

Mixed Q8 reduces generation time by approximately 22% for SVC and 34% for SVS versus these Python runs. SVS peak VRAM is approximately 43% lower.

Correctness and backend validation

  • Controlled FP32 replay uses aligned inputs and frozen noise. CUDA denoiser mel cosine exceeds 0.9999999 for SVC and both SVS control modes. SVC CPU waveform cosine is 0.9999980.
  • CUDA waveform cosine is 0.9978–0.9989. Isolated decoding of identical Python mel reaches 0.99950 on CUDA versus approximately 1.0 on CPU; this GPU vocoder drift is documented and accepted rather than changing production precision or the shared vocoder.
  • SVC frontend checks cover reference mel, Whisper content and F0. SVS frame/phoneme alignment matches the reference processor, including multi-phone English conditioning.
  • CUDA F16/Q8 checks cover repeated/changed seeds, CFG 3→0→3, long→short requests, reference changes and restoration. Same restored configurations reproduce the same WAV bytes; repeated 51.48-second Q8 SVC requests retain a stable 4,150 MiB observed peak.
  • CPU and Vulkan Q8 end-to-end requests succeed for both routes, including default pitch/control settings. ASR recognizes the expected Mandarin lyrics. These are functional checks, not warmed cross-backend performance comparisons.
  • Independent scalar-reference tests cover ConvNeXt defaults and opt-in GRN. DiT tests cover adaptive RMS, CFG rescaling, masked prefixes and graph-shape reuse. Model-spec validation passes.

@0xShug0
0xShug0 merged commit cfc30b0 into main Nov 17, 2026
7 checks passed
@0xShug0
0xShug0 deleted the feature/soulx-singer-svc branch November 17, 2026 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant