Skip to content

Add ACE-Step reference-audio conditioning - #1307

Merged
0xShug0 merged 1 commit into
mainfrom
fix/ace-step-reference-audio
Nov 16, 2026
Merged

0xShug0 merged 1 commit into
mainfrom
fix/ace-step-reference-audio

Conversation

@0xShug0

@0xShug0 0xShug0 commented Nov 16, 2026

Copy link
Copy Markdown
Owner

ACE-Step currently always feeds silence into its timbre-conditioning slot. Add the model-local reference_audio request option so users can supply a WAV independently of route-specific source audio:

--request-option reference_audio=reference.wav

The model normalizes the reference to stereo 48 kHz, builds a 30-second digest from three 10-second windows, and encodes it through the existing session-owned VAE and timbre encoder. Server requests use options.reference_audio with a server-local WAV path. Empty, missing and silent references fail explicitly.

Omitting the option retains silence conditioning. Source-audio handling, planner defaults and diffusion sampling are unchanged. Providing a reference does not disable caption rewriting; use_cot_caption=false remains a separate explicit choice. This provides timbre/style guidance, not guaranteed speaker-identity cloning. No CLI, server, framework or GGML implementation changes.

Validation:

  • Debug build, model-spec validation and reference preprocessing/request tests passed. Parser coverage includes all seven ACE-Step routes.
  • No-reference CUDA output was byte-identical to main in the checked text-to-music case.
  • CUDA single-session none → A → B → A → none reuse passed: changed references changed output, while repeated references and restored no-reference requests reproduced their earlier output exactly.
  • Source audio and reference conditioning were exercised together on CUDA.
  • Generated full 180-second songs in audio.cpp and clean, unmodified official Python at ca1e85fe9430179831e6bc6be790c332190a3866, using matching male-vocal prompts, lyrics, reference, seed and Turbo controls: eight steps, shift 3, guidance 1, DCW enabled and planner enabled. Caption rewriting was explicitly disabled for these comparisons. ASR recovered the requested verses, choruses, bridge and outro from both outputs; this is a vocal-generation check, not a waveform-parity or speaker-identity claim.

Closes #1306.

@0xShug0
0xShug0 merged commit fc3852a into main Nov 16, 2026
7 checks passed
@0xShug0
0xShug0 deleted the fix/ace-step-reference-audio branch November 16, 2026 03:35
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.

ACE-Step: no reference-audio input — the timbre conditioning slot is pinned to silence (voice cloning unreachable)

1 participant