Model reference · open weights
WhisperSpeech is an open-weight audio or speech model from WhisperSpeech. 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 | WhisperSpeech |
|---|---|
| Type | Audio & music |
| Task | Text→speech |
| Released | 2023-05-04 |
| Popularity | 0 downloads / month |
| Licence | Open weights |
About
[![Test it out yourself in If you have questions or you want to help you can find us in the #audio-generation channel on the LAION Discord server.
An Open Source text-to-speech system built by inverting Whisper. Previously known as spear-tts-pytorch.
We want this model to be like Stable Diffusion but for speech – both powerful and easily customizable.
We are working only with properly licensed speech recordings and all the code is Open Source so the model will be always safe to use for commercial applications.
Currently the models are trained on the English LibreLight dataset. In the next release we want to target multiple languages (Whisper and EnCodec are both multilanguage).
Sample of the synthesized voice:
https://github.com/collabora/WhisperSpeech/assets/107984/aa5a1e7e-dc94-481f-8863-b022c7fd7434
We successfully trained a tiny S2A model on an en+pl+fr dataset and it
can do voice cloning in French:
https://github.com/collabora/WhisperSpeech/assets/107984/267f2602-7eec-4646-a43b-059ff91b574e
https://github.com/collabora/WhisperSpeech/assets/107984/fbf08e8e-0f9a-4b0d-ab5e-747ffba2ccb9
We were able to do this with frozen semantic tokens that were only trained on English and Polish. This supports the idea that we will be able to train a single semantic token model to support all the languages in the world. Quite likely even ones that are not currently well supported by the Whisper model. Stay tuned for more updates on this front. :)
We spend the last week optimizing inference performance. We integrated
torch.compile, added kv-caching and tuned some of the layers – we are
now working over 12x faster than real-time on a consumer 4090!
We can mix languages in a single sentence (here the highlighted English project names are seamlessly mixed into Polish speech):
To jest pierwszy test wielojęzycznego
Whisper Speechmodelu zamieniającego tekst na mowę, któryCollaboraiLaionnauczyli na superkomputerzeJewels.
https://github.com/collabora/WhisperSpeech/assets/107984/d7092ef1-9df7-40e3-a07e-fdc7a090ae9e
We also added an easy way to test voice-cloning. Here is a sample voice cloned from a famous speech by Winston Churchill (the radio static is a feature, not a bug ;) – it is part of the reference recording):
https://github.com/collabora/WhisperSpeech/assets/107984/bd28110b-31fb-4d61-83f6-c997f560bc26
You can [test all of these on (we optimized the dependencies so now it takes less than 30 seconds to install). A Huggingface Space is coming soon.
We’ve pushed a new SD S2A model that is a lot faster while still generating high-quality speech. We’ve also added an example of voice cloning based on a reference audio file.
As always, you can [check out our to try it yourself!
Another trio of models, this time they support multiple languages (English and Polish). Here are two new samples for a sneak peek. You can [check out our to try it yourself!
English speech, female voice (transferred from a Polish language dataset):
https://github.com/collabora/WhisperSpeech/assets/107984/aa5a1e7e-dc94-481f-8863-b022c7fd7434
A Polish sample, male voice:
https://github.com/collabora/WhisperSpeech/assets/107984/4da14b03-33f9-4e2d-be42-f0fcf1d4a6ec
Older progress updates are archived here
We encourage you to start with the Google Colab link above or run the provided notebook locally. If you want to download manually or train the models from scratch then both the WhisperSpeech pre-trained models as well as the converted datasets are available on HuggingFace.
The general architecture is similar to AudioLM, SPEAR TTS from Google and MusicGen from Meta. We avoided the NIH syndrome and built it on top of powerful Open Source models: Whisper from OpenAI to generate semantic tokens and perform transcription, EnCodec from Meta for acoustic modeling and Vocos from Charactr Inc as the high-quality vocoder.
We gave two presentation diving deeper into WhisperSpeech. The first one talks about the challenges of large scale training:
Tricks Learned from Scaling WhisperSpeech Models to 80k+ Hours of Speech - video recording by Jakub Cłapa, Collabora
The other one goes a bit more into the architectural choices we made:
Open Source Text-To-Speech Projects: WhisperSpeech - In Depth Discussion
We utilize the OpenAI Whisper encoder block to generate em
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 whisperspeech for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (whisperspeech 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="whisperspeech" -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.