Text-to-Speech
Core ML
Supertonic
speech
audio
tts
ane
apple-silicon
flow-matching
diffusion
multilingual
Run this model with HF Jobs
Run FluidInference/supertonic-3-coreml on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/FluidInference/supertonic-3-coreml. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/FluidInference/supertonic-3-coreml on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use FluidInference/supertonic-3-coreml with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Supertonic
How to use FluidInference/supertonic-3-coreml with Supertonic:
from supertonic import TTS tts = TTS(auto_download=True) style = tts.get_voice_style(voice_name="M1") text = "The train delay was announced at 4:45 PM on Wed, Apr 3, 2024 due to track maintenance." wav, duration = tts.synthesize(text, voice_style=style) tts.save_audio(wav, "output.wav")
- Notebooks
- Google Colab
- Kaggle
Upload 9 files
Browse filesFiles changed (9)
- README.md+12-7
- VectorEstimator_int8.mlmodelc/analytics/coremldata.binAdded+3
- VectorEstimator_int8.mlmodelc/coremldata.binAdded+3
- VectorEstimator_int8.mlmodelc/model.milAdded
- VectorEstimator_int8.mlmodelc/weights/weight.binAdded+3
- VectorEstimator_int8.mlpackage/Data/com.apple.CoreML/model.mlmodelAdded+3
- VectorEstimator_int8.mlpackage/Data/com.apple.CoreML/weights/weight.binAdded+3
- VectorEstimator_int8.mlpackage/Manifest.jsonAdded+18
- manifest.json+76-4
120 unmodified lines12112212312412512612712812913013113212 unmodified lines14514614714814915015123 unmodified lines175176177178179180120 unmodified lines## Performance (Apple M2, macOS 26.5, FP16)| Module | Size | Predict | Compute placement || ------------------ | ----- | ------- | ----------------- || duration_predictor | 1.8 MB| 0.82 ms | CPU (tiny) || text_encoder | 17 MB | 2.15 ms | 62 % ANE || vocoder | 48 MB | 1.17 ms | 100 % ANE || vector_estimator | 122 MB| 9.29 ms | CPU + GPU (see notes) |End‑to‑end on M2: ≈ 0.74 s to synthesize 6.32 s of audio for a single Englishsentence (RTFx ≈ 8.5×), 8 denoising steps. Output verified against12 unmodified lines- `TextEncoder.mlpackage` / `TextEncoder.mlmodelc` — fixed `T=128` text input.- `DurationPredictor.mlpackage` / `DurationPredictor.mlmodelc` — fixed `T=128` text input.- `VectorEstimator.mlpackage` / `VectorEstimator.mlmodelc` — `latent.L` and `text.T` as RangeDim(17..512).- `Vocoder.mlpackage` / `Vocoder.mlmodelc` — `latent.L_ttl` as RangeDim(4..512).- `tts.json` — token / text frontend configuration.- `unicode_indexer.json` — Unicode → token id mapping (multilingual frontend).23 unmodified linespython infer.py "Hello, world." --voice-style voice_styles/M1.json -o hello.wavpython infer.py "Bonjour le monde." --lang fr --voice-style voice_styles/M1.json -o fr.wav# Optional: pick a compute unit explicitly.python infer.py "Test" --compute-units CPU_AND_NE -o ne.wav```120 unmodified lines12112212312412512612712812913013113213312 unmodified lines14614714814915015115215323 unmodified lines177178179180181182183184185120 unmodified lines## Performance (Apple M2, macOS 26.5, FP16)| Module | Size | Predict | Compute placement || ----------------------- | ------ | ------- | ----------------- || duration_predictor | 1.8 MB | 0.82 ms | CPU (tiny) || text_encoder | 17 MB | 2.15 ms | 62 % ANE || vocoder | 48 MB | 1.17 ms | 100 % ANE || vector_estimator (fp16) | 122 MB | 9.29 ms | CPU + GPU (see notes) || vector_estimator (int8) | 62 MB | ~same | int8 weight-only / fp16 acts; ~10 % lower peak RSS, RMSE ≈ 0.016 vs FP16 |End‑to‑end on M2: ≈ 0.74 s to synthesize 6.32 s of audio for a single Englishsentence (RTFx ≈ 8.5×), 8 denoising steps. Output verified against12 unmodified lines- `TextEncoder.mlpackage` / `TextEncoder.mlmodelc` — fixed `T=128` text input.- `DurationPredictor.mlpackage` / `DurationPredictor.mlmodelc` — fixed `T=128` text input.- `VectorEstimator.mlpackage` / `VectorEstimator.mlmodelc` — `latent.L` and `text.T` as RangeDim(17..512), FP16 weights (122 MB).- `VectorEstimator_int8.mlpackage` / `VectorEstimator_int8.mlmodelc` — same model, **int8 weight-only** (per-channel symmetric) + FP16 activations (62 MB; ~10 % lower peak RSS, RMSE ≈ 0.016 vs FP16).- `Vocoder.mlpackage` / `Vocoder.mlmodelc` — `latent.L_ttl` as RangeDim(4..512).- `tts.json` — token / text frontend configuration.- `unicode_indexer.json` — Unicode → token id mapping (multilingual frontend).23 unmodified linespython infer.py "Hello, world." --voice-style voice_styles/M1.json -o hello.wavpython infer.py "Bonjour le monde." --lang fr --voice-style voice_styles/M1.json -o fr.wav# Use the int8-quantized VectorEstimator (62 MB instead of 122 MB).python infer.py "Hello, int8 build." --vector-estimator VectorEstimator_int8.mlpackage -o int8.wav# Optional: pick a compute unit explicitly.python infer.py "Test" --compute-units CPU_AND_NE -o ne.wav```
123version https://git-lfs.github.com/spec/v1oid sha256:982da75910aca2f5f0e2f813bf7db9ec201fbf4c71668d0f0a99eb2f9da983d0size 243123version https://git-lfs.github.com/spec/v1oid sha256:e93e9a59f6d4035aa07cf21ff06e160eb1bbcdad9b48d2ac413d11f3c2c26949size 633123version https://git-lfs.github.com/spec/v1oid sha256:0e637c3a1725b5e1b3df09cc162d1822e8fe80fa92ba01c180dde2ca29c12523size 64184608123version https://git-lfs.github.com/spec/v1oid sha256:15d1760d354e6849c72ae2fd81805bf7121aab92567f12b0f230bf70268cc853size 345736123version https://git-lfs.github.com/spec/v1oid sha256:0e637c3a1725b5e1b3df09cc162d1822e8fe80fa92ba01c180dde2ca29c12523size 64184608123456789101112131415161718{ "fileFormatVersion": "1.0.0", "itemInfoEntries": { "4F2FAD81-6BF2-4BFC-96C0-D8020F7800F8": { "author": "com.apple.CoreML", "description": "CoreML Model Specification", "name": "model.mlmodel", "path": "com.apple.CoreML/model.mlmodel" }, "56E32995-F792-4C6D-BE97-7345BD2B46DB": { "author": "com.apple.CoreML", "description": "CoreML Model Weights", "name": "weights", "path": "com.apple.CoreML/weights" } }, "rootModelIdentifier": "4F2FAD81-6BF2-4BFC-96C0-D8020F7800F8"}42 unmodified lines434445464748495051525312 unmodified lines66676869707118 unmodified lines9091929394959697989910012 unmodified lines11311411511611711818 unmodified lines13713813914014114214314414514614712 unmodified lines16016116216316416516 unmodified lines18218318418518618718818919019119219319412 unmodified lines20720820921021121242 unmodified lines"modules": [{"name": "TextEncoder","package": "TextEncoder.mlpackage","compiled": "TextEncoder.mlmodelc","shape_policy": "fixed T=128","package_size_bytes": 18166801,"compiled_size_bytes": 18173642,"package_files": [{"path": "TextEncoder.mlpackage/Data/com.apple.CoreML/model.mlmodel",12 unmodified lines}],"compiled_files": [{"path": "TextEncoder.mlmodelc/analytics/coremldata.bin","sha256": "b39c208b46f180dcbf4cfcd3b4437eeb93371fb77d6d636b99ca3ddff5327253",18 unmodified lines},{"name": "DurationPredictor","package": "DurationPredictor.mlpackage","compiled": "DurationPredictor.mlmodelc","shape_policy": "fixed T=128","package_size_bytes": 1892063,"compiled_size_bytes": 1896415,"package_files": [{"path": "DurationPredictor.mlpackage/Data/com.apple.CoreML/model.mlmodel",12 unmodified lines}],"compiled_files": [{"path": "DurationPredictor.mlmodelc/analytics/coremldata.bin","sha256": "b836b72b388c2bc009a13bcc495cd08278a1742b1a866cdaf7faab7d80786bcb",18 unmodified lines},{"name": "VectorEstimator","package": "VectorEstimator.mlpackage","compiled": "VectorEstimator.mlmodelc","shape_policy": "RangeDim L,T 17..512","package_size_bytes": 127977306,"compiled_size_bytes": 127993906,"package_files": [{"path": "VectorEstimator.mlpackage/Data/com.apple.CoreML/model.mlmodel",12 unmodified lines}],"compiled_files": [{"path": "VectorEstimator.mlmodelc/analytics/coremldata.bin","sha256": "1f43626d16b133a8b302f4f7a0e6d0f789422b22df135b7af11df25c385bebe0",16 unmodified lines}]},{"name": "Vocoder","package": "Vocoder.mlpackage","compiled": "Vocoder.mlmodelc","shape_policy": "RangeDim L_ttl 4..512","package_size_bytes": 50743824,"compiled_size_bytes": 50748769,"package_files": [{"path": "Vocoder.mlpackage/Data/com.apple.CoreML/model.mlmodel",12 unmodified lines}],"compiled_files": [{"path": "Vocoder.mlmodelc/analytics/coremldata.bin","sha256": "4fe1b825137629a96dc58a1339bc4ece32041b755f99d638f21a153f2e7faed6",42 unmodified lines43444546474849505152535412 unmodified lines676869707172737475767718 unmodified lines9697989910010110210310410510610712 unmodified lines12012112212312412512612712812913018 unmodified lines14915015115215315415515615715815916012 unmodified lines17317417517617717817918018118218316 unmodified lines20020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026112 unmodified lines27427527627727827928028128228328442 unmodified lines"modules": [{"name": "TextEncoder","precision": "fp16","package": "TextEncoder.mlpackage","compiled": "TextEncoder.mlmodelc","shape_policy": "fixed T=128","package_size_bytes": 18166801,"compiled_size_bytes": 18179790,"package_files": [{"path": "TextEncoder.mlpackage/Data/com.apple.CoreML/model.mlmodel",12 unmodified lines}],"compiled_files": [{"path": "TextEncoder.mlmodelc/.DS_Store","sha256": "cf4645f055711856ff0569b29315fb462026365385312c81e7db25c789e76e2b","size_bytes": 6148},{"path": "TextEncoder.mlmodelc/analytics/coremldata.bin","sha256": "b39c208b46f180dcbf4cfcd3b4437eeb93371fb77d6d636b99ca3ddff5327253",18 unmodified lines},{"name": "DurationPredictor","precision": "fp16","package": "DurationPredictor.mlpackage","compiled": "DurationPredictor.mlmodelc","shape_policy": "fixed T=128","package_size_bytes": 1892063,"compiled_size_bytes": 1902563,"package_files": [{"path": "DurationPredictor.mlpackage/Data/com.apple.CoreML/model.mlmodel",12 unmodified lines}],"compiled_files": [{"path": "DurationPredictor.mlmodelc/.DS_Store","sha256": "75c79ac936a1add17210b7cbec4962505cc557bc2f940e276b1236d35ff12dfa","size_bytes": 6148},{"path": "DurationPredictor.mlmodelc/analytics/coremldata.bin","sha256": "b836b72b388c2bc009a13bcc495cd08278a1742b1a866cdaf7faab7d80786bcb",18 unmodified lines},{"name": "VectorEstimator","precision": "fp16","package": "VectorEstimator.mlpackage","compiled": "VectorEstimator.mlmodelc","shape_policy": "RangeDim L,T 17..512","package_size_bytes": 127977306,"compiled_size_bytes": 128000054,"package_files": [{"path": "VectorEstimator.mlpackage/Data/com.apple.CoreML/model.mlmodel",12 unmodified lines}],"compiled_files": [{"path": "VectorEstimator.mlmodelc/.DS_Store","sha256": "d61692ef37d205b073915a28b0fcca8eb5360563286dc61d44acbd2af6b4a184","size_bytes": 6148},{"path": "VectorEstimator.mlmodelc/analytics/coremldata.bin","sha256": "1f43626d16b133a8b302f4f7a0e6d0f789422b22df135b7af11df25c385bebe0",16 unmodified lines}]},{"name": "VectorEstimator_int8","precision": "int8 weight-only / fp16 activations (per-channel symmetric)","package": "VectorEstimator_int8.mlpackage","compiled": "VectorEstimator_int8.mlmodelc","shape_policy": "RangeDim L,T 17..512","package_size_bytes": 64530961,"compiled_size_bytes": 64551709,"package_files": [{"path": "VectorEstimator_int8.mlpackage/Data/com.apple.CoreML/model.mlmodel","sha256": "15d1760d354e6849c72ae2fd81805bf7121aab92567f12b0f230bf70268cc853","size_bytes": 345736},{"path": "VectorEstimator_int8.mlpackage/Data/com.apple.CoreML/weights/weight.bin","sha256": "0e637c3a1725b5e1b3df09cc162d1822e8fe80fa92ba01c180dde2ca29c12523","size_bytes": 64184608},{"path": "VectorEstimator_int8.mlpackage/Manifest.json","sha256": "32b9a6e8860f4fe2a5f873042621b59aac94af0d1a62e184514b40a16d258897","size_bytes": 617}],"compiled_files": [{"path": "VectorEstimator_int8.mlmodelc/analytics/coremldata.bin","sha256": "982da75910aca2f5f0e2f813bf7db9ec201fbf4c71668d0f0a99eb2f9da983d0","size_bytes": 243},{"path": "VectorEstimator_int8.mlmodelc/coremldata.bin","sha256": "e93e9a59f6d4035aa07cf21ff06e160eb1bbcdad9b48d2ac413d11f3c2c26949","size_bytes": 633},{"path": "VectorEstimator_int8.mlmodelc/model.mil","sha256": "4286e9f3ea253bdbca50e246d5568e9f89e130e05b7c8243c54d70f3611e5440","size_bytes": 366225},{"path": "VectorEstimator_int8.mlmodelc/weights/weight.bin","sha256": "0e637c3a1725b5e1b3df09cc162d1822e8fe80fa92ba01c180dde2ca29c12523","size_bytes": 64184608}]},{"name": "Vocoder","precision": "fp16","package": "Vocoder.mlpackage","compiled": "Vocoder.mlmodelc","shape_policy": "RangeDim L_ttl 4..512","package_size_bytes": 50743824,"compiled_size_bytes": 50754917,"package_files": [{"path": "Vocoder.mlpackage/Data/com.apple.CoreML/model.mlmodel",12 unmodified lines}],"compiled_files": [{"path": "Vocoder.mlmodelc/.DS_Store","sha256": "aad4800457fdb1567500acd0f9eb203b27c71d29189891095b9d371f8c9c58b5","size_bytes": 6148},{"path": "Vocoder.mlmodelc/analytics/coremldata.bin","sha256": "4fe1b825137629a96dc58a1339bc4ece32041b755f99d638f21a153f2e7faed6",
README.md+12-7
VectorEstimator_int8.mlmodelc/analytics/coremldata.binAdded+3
VectorEstimator_int8.mlmodelc/coremldata.binAdded+3
VectorEstimator_int8.mlmodelc/model.milAdded
VectorEstimator_int8.mlmodelc/weights/weight.binAdded+3
VectorEstimator_int8.mlpackage/Data/com.apple.CoreML/model.mlmodelAdded+3
VectorEstimator_int8.mlpackage/Data/com.apple.CoreML/weights/weight.binAdded+3
VectorEstimator_int8.mlpackage/Manifest.jsonAdded+18
manifest.json+76-4