Repository navigation
Add M5-TTS voice cloning, preset synthesis and streaming - #1298
Merged
Merged
Conversation
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds M5-TTS 50M VoiceClone and CustomVoice for offline and streaming synthesis, including reference-audio cloning, built-in voices, language selection, model documentation and WebUI catalog entries. Four F16/Q8 GGUF packages are published and their spec URLs return HTTP 200.
The implementation reuses the framework causal-decoder runtimes, streaming base, text chunker and Qwen3 speech codec. Graphs, reference conditioning and codec state are session-owned and reused. No framework or GGML changes.
Performance
RTX 5090, Ryzen 9 7900X, eight threads, warmed requests. End-to-end measurements include reference encoding, AR generation and audio decoding; peak VRAM is measured for the process.
The ONNX reference uses FP32 LM/codec weights; audio.cpp uses production F16 LM and FP32 codec weights. This is a deployment comparison, not a precision-matched kernel benchmark. Outputs differ in length because tokens are sampled independently. Streaming reference-context policies also differ. CPU peak RSS increases from 2.32 to 2.75 GiB for offline inference.
Validation
Known limitation: CUDA reference encoding does not reproduce Python's discrete codes exactly (81.25% agreement in the checked fixture). CPU codes match exactly. Teacher-forced AR tests use Python reference codes and therefore do not establish exact CUDA reference-encoder parity; the optional strict encoder test continues to reject this mismatch.