Skip to content

Add built-in recipes for Any-TTS voice cloning and cross-language dubbing - #997

Merged
0xShug0 merged 3 commits into
mainfrom
feature/any-tts-voice-clone
Oct 20, 2026
Merged

0xShug0 merged 3 commits into
mainfrom
feature/any-tts-voice-clone

Conversation

@0xShug0

@0xShug0 0xShug0 commented Oct 20, 2026

Copy link
Copy Markdown
Owner

Summary

Add ready-to-run multi-model recipes without requiring users to write pipeline configuration files:

  • any-tts: synthesize text with an offline TTS model, then convert each chunk to the reference voice with Tone Color VC.
  • cross-language-dubbing: translate speech with an ASR translation model, then synthesize the translated text with a target-language TTS model.

Interface and boundaries

  • CLI: --recipe, --list-recipes, --recipe-model, and --recipe-family.
  • Legacy server: GET /v1/recipes and POST /v1/recipes/run, with optional chunk-level SSE output. Experimental parallel runtime is unchanged.
  • Recipe plugins define model roles and in-memory data flow. CLI sessions are created once per role and reused across chunks; server execution uses existing model loading, locking, defaults, and unloading.
  • Role-prefixed request options override shared options with the same name.
  • Existing --pipeline remains separate. No intermediate WAV files, model implementations, framework math, or GGML changes.

Validation

  • Debug C++17 CLI and server builds passed.
  • recipe_test and server_runtime_selection_test passed, covering both recipes, option precedence, normal and frontend-forwarded routing, and shared HTTP error handling.
  • Real two-chunk Any-TTS voice cloning passed on CUDA through CLI, HTTP JSON, and SSE. With explicit seeds for both stages, all three produced identical PCM.
  • SSE emitted two audio events whose concatenation exactly matched the final audio. HTTP 400 responses retained CORS headers.

See docs/recipes.md for usage and plugin extension details.

@0xShug0
0xShug0 merged commit aef84a6 into main Oct 20, 2026
12 checks passed
@0xShug0
0xShug0 deleted the feature/any-tts-voice-clone branch October 20, 2026 02:27
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