Model reference · open weights
styletts2 is an open-weight audio or speech model from hexgrad. AxForge deploys and operates it for you on dedicated EU-owned hardware — with the licence handled where one is required.
Available as managed deployment — configured and operated for you on dedicated EU hardware, quoted per deployment.
What it is
| Maker | hexgrad |
|---|---|
| Type | Audio & music |
| Task | Text→speech |
| Based on | yl4579/StyleTTS2-LibriTTS |
| Released | 2024-05-08 |
| Popularity | 0 downloads / month |
| Licence | Open weights |
About
This repository is a fossil.
This model is a direct ONNX conversion of yl4579/StyleTTS2-LibriTTS without modification to its weights and therefore inherits the original license. It currently powers a WebUI that performs TTS inference on CPU. To facilitate lazy loading, it is chunked into four parts.
The original PyTorch checkpoint, trained on a subset of LibriTTS by the authors of StyleTTS 2, can be considered a "base model", and it has some limitations. That base model should not be confused with Kokoro, a StyleTTS 2 variant using a different decoder architecture, which is currently only being hosted at https://hf.co/spaces/hexgrad/Kokoro-TTS.
This repository will likely remain dormant and undocumented. You are welcome to use these ONNX models subject to the original license, but be advised that in most cases PyTorch is likely the more suitable option. The ONNX conversion was not performance optimized and was intended for CPU usage. Informal benchmarking shows that this ONNX descendant is substantially outpaced by its PyTorch ancestor in GPU environments.
From the published model card. Full card on the HuggingFace links in the sidebar.
How it works
Using it via the API
Once AxForge deploys styletts2 for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (styletts2 below is illustrative; you get the exact model name on deployment.)
$ curl -sS https://api.axforge.ai/v1/audio/transcriptions \ -H "Authorization: Bearer $AXFORGE_API_KEY" \ -F model="styletts2" -F file=@audio.mp3
Create an account — your API key is available in the console. 5M tokens/month currently included with every new account at launch.