aufklarer/Chatterbox-Flash-CoreML
Chatterbox Flash CoreML
Compiled Core ML export of ResembleAI/chatterbox-flash for Apple runtimes.
This bundle contains the Chatterbox Flash T3 token generator and the S3Gen audio back-half as static-shape .mlmodelc graphs. It is intended for an application runtime that owns text tokenization, T3 denoising/sampling, reference conditioning, and graph orchestration.
Links
- speech-swift — Apple SDK
- Speech Studio — local speech generation and voice cloning app
- Docs — install and CLI docs
- soniqo.audio — website
- blog — blog
Model
Files
Runtime Boundary
The exported graphs cover:
- T3 conditioning, text prefill, and block decoding.
- S3Gen speaker projection, flow encoder, meanflow estimator step, and HiFT vocoder.
The host runtime must still provide:
- text normalization and tokenization
- T3 denoising loop, PMI/CFG scoring, sampling, and EOS trimming
- reference waveform encoders:
- VoiceEncoder:
ref.wav -> speaker_emb - prompt speech tokenizer:
ref.wav -> prompt_speech_tokens - S3Gen reference encoder:
ref.wav -> prompt_token,prompt_feat,embedding - padding/cropping and the two-step meanflow loop over
(t,r) = (0,0.5), (0.5,1.0)
This means the bundle supports voice-cloning TTS when the runtime supplies reference conditioning tensors, but it is not yet a fully Core ML ref.wav -> cloned wav pipeline.
Validation
Core ML warnings from local export:
CPU_ONLYprediction crashed for the T3 package in local coremltools 8.3 testing. UseALL,CPU_AND_NE, or a compiled-device runtime.- The uploaded artifact ships compiled
.mlmodelcfolders. The numerical parity tests were run against the source.mlpackageexports before compilation.
Usage Sketch
The runtime loads graphs from t3/ and audio/, then:
- Prepare T3 reference conditioning tensors and S3Gen
ref_dicttensors from a prompt wav. - Tokenize text with
t3/tokenizer.json. - Run T3 prefill and block denoising/sampling to produce S3 speech tokens.
- Concatenate S3Gen
prompt_tokenand generated speech tokens. - Run
audio/FlowEncoder.mlmodelc. - Build
condby copyingprompt_feat.Tinto the mel prefix. - Run
audio/FlowEstimator.mlmodelctwice for(0,0.5)and(0.5,1.0). - Crop generated mel frames after the prompt prefix.
- Run
audio/HiFTVocoder.mlmodelcand crop padded samples.
Source
Converted from ResembleAI/chatterbox-flash, revision 4385507288b8197e6dab8b4e6b1603328d549d9d.
