Instructions to use tinytrashlabs/supertonic-3-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use tinytrashlabs/supertonic-3-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir supertonic-3-mlx tinytrashlabs/supertonic-3-mlx
- Supertonic
How to use tinytrashlabs/supertonic-3-mlx 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
- Local Apps Settings
- LM Studio
supertonic-3-mlx
Native-MLX conversion of Supertone/supertonic-3
(99M-parameter flow-matching TTS, 44.1 kHz, 10 preset voices, 32 languages)
for use with mlx-audio-swift's SupertonicModel (model_type supertonic).
Contents
config.jsonβ model_typesupertonic, sample_rate 44100, hop 512, latent_dim 24, chunk_factor 6, cfg_scale 4.0, default_steps 8duration_predictor.safetensors,text_encoder.safetensors,vector_estimator.safetensors,vocoder.safetensorsβ the four ONNX sub-graphs' initializers, converted to MLX layout (Conv [O,I,K] β [O,K,I])unicode_indexer.jsonβ 65,536-entry BMP codepoint β embedding-row tablevoice_styles/{M1..M5,F1..F5}.jsonβ preset style vectors (style_ttl[1,50,256],style_dp[1,8,16])
Conversion pipeline
ONNX initializers were extracted with onnx.numpy_helper, Conv weights
transposed to MLX conv1d layout, keys renamed to stable dotted paths, and the
result validated stage-by-stage against ONNX Runtime at β€1e-4 max-abs-error
(end-to-end β€1e-3 on identical injected noise; ~69 dB SNR, perceptually
transparent). CFG and the Euler step baked into vector_estimator.onnx are
factored out and applied by the runtime.
License
BigScience Open RAIL-M with use-based restrictions β see LICENSE and
NOTICE. These are format-converted (modified) files of the original
Supertone release; all credit for the model belongs to Supertone Inc.
- Downloads last month
- 52
Quantized
Model tree for tinytrashlabs/supertonic-3-mlx
Base model
Supertone/supertonic-3