Conversation
Add Voicebox as an opt-in TTS provider behind a `voicebox` cargo feature
flag. Voicebox is a local Qwen3-TTS server with a FastAPI REST API for
voice cloning. Generation is two-step: POST /generate returns metadata
with a generation ID, then GET /audio/{id} fetches the WAV bytes.
Feature flag chain: cli → gateway → voice. Config is always parsed
(no feature gate on schema types) but provider implementation code
is gated with #[cfg(feature = "voicebox")].
Contributor
Merging this PR will improve performance by 96.29%
Performance Changes
Comparing Footnotes
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
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.
Summary
voiceboxcargo feature flagcli → gateway → voice, provider code gated with#[cfg(feature = "voicebox")]Files changed
crates/voice/src/tts/voicebox.rscrates/voice/Cargo.tomlvoicebox = []featurecrates/voice/src/tts/mod.rscrates/voice/src/config.rsVoiceboxTtsConfig,TtsProviderId::Voiceboxcrates/voice/src/lib.rscrates/gateway/Cargo.tomlvoiceboxfeature forwardingcrates/gateway/src/voice.rscrates/cli/Cargo.tomlvoiceboxfeature forwardingcrates/config/src/schema.rsVoiceVoiceboxTtsConfigstructcrates/config/src/validate.rsConfig example
Validation
Completed
cargo +nightly-2025-11-30 fmt --all -- --checkcargo clippy --workspace --all-targets(no warnings)cargo clippy --workspace --all-targets --features voicebox(no warnings)cargo check(default features)cargo check --features voiceboxcargo test -p moltis-voice(124 passed)cargo test -p moltis-voice --features voicebox(130 passed)cargo test -p moltis-config(98 passed, schema drift guard OK)cargo test -p moltis-gateway --features voicebox(488 passed)taplo fmtRemaining
./scripts/local-validate.shManual QA
cargo build --features voiceboxvoicebox serveprovider = "voicebox"inmoltis.toml