Skip to content

Studio: keep renamed audio.cpp options at generation time - #14901

Merged
danielhanchen merged 1 commit into
mainfrom
dh/s3-audio-option-aliases
Oct 23, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
dh/s3-audio-option-aliases

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

The generate path drops options the request will not carry (ignored_options, #14075) before filled_options folds the audio.cpp v0.9.2 renamed option names (#14073). The option panel shows a renamed option under its legacy name and a strict v0.9.2 contract lists only the canonical name, so valid values were dropped and the defaults sent instead:

  • Seed-VC with a strict v0.9.2 spec: length_adjust or duration_scale 1.5 reached the runtime as duration_scale 1.0.
  • Seed-VC with an older strict spec: duration_scale 1.5 was dropped and length_adjust 1.0 sent.
  • Chatterbox: flow_guidance_scale 1.0 was dropped and s3gen_cfg_rate 0.7 sent.

ignored_options now judges a renamed option under its legacy name and widens strict keys with the legacy name, matching filled_options. Options the model does not take are still dropped and reported.

Tests: test_generation_keeps_a_renamed_option_under_either_name in test_audio_cpp_option_renames.py drives a Convert generation through the backend with a fake server for both names on Seed-VC (old and new specs) and Chatterbox, and checks that an unknown option is still reported. 4 of its 5 cases fail on main and all pass here. Across the audio test files: 2312 passed vs 2308 on main; the 6 remaining failures (test_native_audio.py, soundfile missing locally) are the same on both sides. Not run against a live audio.cpp server.

ignored_options compared legacy and canonical option names against the
strict request keys without folding renames, so Seed-VC length_adjust /
duration_scale and Chatterbox flow_guidance_scale were dropped before
filled_options ran and the defaults were sent instead. Judge a renamed
option under its legacy name, as filled_options sends it.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-23T09:42:31.006189Z 251e0cb Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: 251e0cb06b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen
danielhanchen merged commit 472b1ca into main Oct 23, 2026
2 of 35 checks passed
@danielhanchen
danielhanchen deleted the dh/s3-audio-option-aliases branch October 23, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant