Instructions to use Phoonnx/supertonic-multi-unicode with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Supertonic
How to use Phoonnx/supertonic-multi-unicode 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
|
Download README.md from Phoonnx/supertonic-multi-unicode: direct link, hf CLI and curl.
- Browser
- Download file 8.94 kB
-
https://huggingface.co/Phoonnx/supertonic-multi-unicode/resolve/main/README.md
- Command line
-
hf download hf://Phoonnx/supertonic-multi-unicode/README.md
-
curl -L -o README.md https://huggingface.co/Phoonnx/supertonic-multi-unicode/resolve/main/README.md
8.94 kB
| license: openrail | |
| library_name: phoonnx | |
| pipeline_tag: text-to-speech | |
| language: | |
| - ar | |
| - bg | |
| - cs | |
| - da | |
| - de | |
| - el | |
| - en | |
| - es | |
| - et | |
| - fi | |
| - fr | |
| - hi | |
| - hr | |
| - hu | |
| - id | |
| - it | |
| - ja | |
| - ko | |
| - lt | |
| - lv | |
| - nl | |
| - pl | |
| - pt | |
| - ro | |
| - ru | |
| - sk | |
| - sl | |
| - sv | |
| - tr | |
| - uk | |
| - vi | |
| tags: | |
| - phoonnx | |
| - supertonic | |
| # supertonic-multi-unicode | |
| A SuperTonic model by Supertone, from [Supertone/supertonic-3](https://huggingface.co/Supertone/supertonic-3), packaged for [phoonnx](https://github.com/TigreGotico/phoonnx), our ONNX text-to-speech library. | |
| ## Model details | |
| | | | | |
| |---|---| | |
| | Architecture | [SuperTonic](https://huggingface.co/collections/Phoonnx/supertonic-6af8ecc17005c13853492803) | | |
| | Upstream | [Supertone/supertonic-3](https://huggingface.co/Supertone/supertonic-3) | | |
| | Author | Supertone | | |
| | Languages | `ar`, `bg`, `cs`, `da`, `de`, `el`, `en`, `es`, `et`, `fi`, `fr`, `hi`, `hr`, `hu`, `id`, `it`, `ja`, `ko`, `lt`, `lv`, `nl`, `pl`, `pt`, `ro`, `ru`, `sk`, `sl`, `sv`, `tr`, `uk`, `vi` | | |
| | Text input | Unicode codepoints of the text | | |
| ## How to use | |
| ```bash | |
| pip install --pre phoonnx | |
| ``` | |
| ```python | |
| import wave | |
| from phoonnx.model_manager import TTSModelManager | |
| manager = TTSModelManager() | |
| manager.load() | |
| manager.merge_default_voices() | |
| voice = manager.voices["supertonic/F1/ar"].load() | |
| with wave.open("output.wav", "wb") as wav_file: | |
| text = "..." # a sentence in ar | |
| voice.synthesize_wav(text, wav_file) | |
| ``` | |
| In OVOS, phoonnx installs the `ovos-tts-plugin-phoonnx` plugin. Select the voice in `mycroft.conf`: | |
| ```json | |
| {"tts": {"module": "ovos-tts-plugin-phoonnx", "ovos-tts-plugin-phoonnx": {"voice": "supertonic/F1/ar"}}} | |
| ``` | |
| ## Text front end | |
| phoonnx hands the text to [scriptconv](https://github.com/TigreGotico/scriptconv), our text conversion library, which normalises it and turns it into the model's input: | |
| - `unicode`: `UnicodeCodepointPhonemizer` from `scriptconv.phonemizers.base`, in scriptconv itself. | |
| ## phoonnx voices | |
| - `supertonic/F1/ar` | |
| - `supertonic/F1/bg` | |
| - `supertonic/F1/cs` | |
| - `supertonic/F1/da` | |
| - `supertonic/F1/de` | |
| - `supertonic/F1/el` | |
| - `supertonic/F1/en` | |
| - `supertonic/F1/es` | |
| - `supertonic/F1/et` | |
| - `supertonic/F1/fi` | |
| - `supertonic/F1/fr` | |
| - `supertonic/F1/hi` | |
| - `supertonic/F1/hr` | |
| - `supertonic/F1/hu` | |
| - `supertonic/F1/id` | |
| - `supertonic/F1/it` | |
| - `supertonic/F1/ja` | |
| - `supertonic/F1/ko` | |
| - `supertonic/F1/lt` | |
| - `supertonic/F1/lv` | |
| - `supertonic/F1/nl` | |
| - `supertonic/F1/pl` | |
| - `supertonic/F1/pt` | |
| - `supertonic/F1/ro` | |
| - `supertonic/F1/ru` | |
| - `supertonic/F1/sk` | |
| - `supertonic/F1/sl` | |
| - `supertonic/F1/sv` | |
| - `supertonic/F1/tr` | |
| - `supertonic/F1/uk` | |
| - `supertonic/F1/vi` | |
| - `supertonic/F2/ar` | |
| - `supertonic/F2/bg` | |
| - `supertonic/F2/cs` | |
| - `supertonic/F2/da` | |
| - `supertonic/F2/de` | |
| - `supertonic/F2/el` | |
| - `supertonic/F2/en` | |
| - `supertonic/F2/es` | |
| - `supertonic/F2/et` | |
| - `supertonic/F2/fi` | |
| - `supertonic/F2/fr` | |
| - `supertonic/F2/hi` | |
| - `supertonic/F2/hr` | |
| - `supertonic/F2/hu` | |
| - `supertonic/F2/id` | |
| - `supertonic/F2/it` | |
| - `supertonic/F2/ja` | |
| - `supertonic/F2/ko` | |
| - `supertonic/F2/lt` | |
| - `supertonic/F2/lv` | |
| - `supertonic/F2/nl` | |
| - `supertonic/F2/pl` | |
| - `supertonic/F2/pt` | |
| - `supertonic/F2/ro` | |
| - `supertonic/F2/ru` | |
| - `supertonic/F2/sk` | |
| - `supertonic/F2/sl` | |
| - `supertonic/F2/sv` | |
| - `supertonic/F2/tr` | |
| - `supertonic/F2/uk` | |
| - `supertonic/F2/vi` | |
| - `supertonic/F3/ar` | |
| - `supertonic/F3/bg` | |
| - `supertonic/F3/cs` | |
| - `supertonic/F3/da` | |
| - `supertonic/F3/de` | |
| - `supertonic/F3/el` | |
| - `supertonic/F3/en` | |
| - `supertonic/F3/es` | |
| - `supertonic/F3/et` | |
| - `supertonic/F3/fi` | |
| - `supertonic/F3/fr` | |
| - `supertonic/F3/hi` | |
| - `supertonic/F3/hr` | |
| - `supertonic/F3/hu` | |
| - `supertonic/F3/id` | |
| - `supertonic/F3/it` | |
| - `supertonic/F3/ja` | |
| - `supertonic/F3/ko` | |
| - `supertonic/F3/lt` | |
| - `supertonic/F3/lv` | |
| - `supertonic/F3/nl` | |
| - `supertonic/F3/pl` | |
| - `supertonic/F3/pt` | |
| - `supertonic/F3/ro` | |
| - `supertonic/F3/ru` | |
| - `supertonic/F3/sk` | |
| - `supertonic/F3/sl` | |
| - `supertonic/F3/sv` | |
| - `supertonic/F3/tr` | |
| - `supertonic/F3/uk` | |
| - `supertonic/F3/vi` | |
| - `supertonic/F4/ar` | |
| - `supertonic/F4/bg` | |
| - `supertonic/F4/cs` | |
| - `supertonic/F4/da` | |
| - `supertonic/F4/de` | |
| - `supertonic/F4/el` | |
| - `supertonic/F4/en` | |
| - `supertonic/F4/es` | |
| - `supertonic/F4/et` | |
| - `supertonic/F4/fi` | |
| - `supertonic/F4/fr` | |
| - `supertonic/F4/hi` | |
| - `supertonic/F4/hr` | |
| - `supertonic/F4/hu` | |
| - `supertonic/F4/id` | |
| - `supertonic/F4/it` | |
| - `supertonic/F4/ja` | |
| - `supertonic/F4/ko` | |
| - `supertonic/F4/lt` | |
| - `supertonic/F4/lv` | |
| - `supertonic/F4/nl` | |
| - `supertonic/F4/pl` | |
| - `supertonic/F4/pt` | |
| - `supertonic/F4/ro` | |
| - `supertonic/F4/ru` | |
| - `supertonic/F4/sk` | |
| - `supertonic/F4/sl` | |
| - `supertonic/F4/sv` | |
| - `supertonic/F4/tr` | |
| - `supertonic/F4/uk` | |
| - `supertonic/F4/vi` | |
| - `supertonic/F5/ar` | |
| - `supertonic/F5/bg` | |
| - `supertonic/F5/cs` | |
| - `supertonic/F5/da` | |
| - `supertonic/F5/de` | |
| - `supertonic/F5/el` | |
| - `supertonic/F5/en` | |
| - `supertonic/F5/es` | |
| - `supertonic/F5/et` | |
| - `supertonic/F5/fi` | |
| - `supertonic/F5/fr` | |
| - `supertonic/F5/hi` | |
| - `supertonic/F5/hr` | |
| - `supertonic/F5/hu` | |
| - `supertonic/F5/id` | |
| - `supertonic/F5/it` | |
| - `supertonic/F5/ja` | |
| - `supertonic/F5/ko` | |
| - `supertonic/F5/lt` | |
| - `supertonic/F5/lv` | |
| - `supertonic/F5/nl` | |
| - `supertonic/F5/pl` | |
| - `supertonic/F5/pt` | |
| - `supertonic/F5/ro` | |
| - `supertonic/F5/ru` | |
| - `supertonic/F5/sk` | |
| - `supertonic/F5/sl` | |
| - `supertonic/F5/sv` | |
| - `supertonic/F5/tr` | |
| - `supertonic/F5/uk` | |
| - `supertonic/F5/vi` | |
| - `supertonic/M1/ar` | |
| - `supertonic/M1/bg` | |
| - `supertonic/M1/cs` | |
| - `supertonic/M1/da` | |
| - `supertonic/M1/de` | |
| - `supertonic/M1/el` | |
| - `supertonic/M1/en` | |
| - `supertonic/M1/es` | |
| - `supertonic/M1/et` | |
| - `supertonic/M1/fi` | |
| - `supertonic/M1/fr` | |
| - `supertonic/M1/hi` | |
| - `supertonic/M1/hr` | |
| - `supertonic/M1/hu` | |
| - `supertonic/M1/id` | |
| - `supertonic/M1/it` | |
| - `supertonic/M1/ja` | |
| - `supertonic/M1/ko` | |
| - `supertonic/M1/lt` | |
| - `supertonic/M1/lv` | |
| - `supertonic/M1/nl` | |
| - `supertonic/M1/pl` | |
| - `supertonic/M1/pt` | |
| - `supertonic/M1/ro` | |
| - `supertonic/M1/ru` | |
| - `supertonic/M1/sk` | |
| - `supertonic/M1/sl` | |
| - `supertonic/M1/sv` | |
| - `supertonic/M1/tr` | |
| - `supertonic/M1/uk` | |
| - `supertonic/M1/vi` | |
| - `supertonic/M2/ar` | |
| - `supertonic/M2/bg` | |
| - `supertonic/M2/cs` | |
| - `supertonic/M2/da` | |
| - `supertonic/M2/de` | |
| - `supertonic/M2/el` | |
| - `supertonic/M2/en` | |
| - `supertonic/M2/es` | |
| - `supertonic/M2/et` | |
| - `supertonic/M2/fi` | |
| - `supertonic/M2/fr` | |
| - `supertonic/M2/hi` | |
| - `supertonic/M2/hr` | |
| - `supertonic/M2/hu` | |
| - `supertonic/M2/id` | |
| - `supertonic/M2/it` | |
| - `supertonic/M2/ja` | |
| - `supertonic/M2/ko` | |
| - `supertonic/M2/lt` | |
| - `supertonic/M2/lv` | |
| - `supertonic/M2/nl` | |
| - `supertonic/M2/pl` | |
| - `supertonic/M2/pt` | |
| - `supertonic/M2/ro` | |
| - `supertonic/M2/ru` | |
| - `supertonic/M2/sk` | |
| - `supertonic/M2/sl` | |
| - `supertonic/M2/sv` | |
| - `supertonic/M2/tr` | |
| - `supertonic/M2/uk` | |
| - `supertonic/M2/vi` | |
| - `supertonic/M3/ar` | |
| - `supertonic/M3/bg` | |
| - `supertonic/M3/cs` | |
| - `supertonic/M3/da` | |
| - `supertonic/M3/de` | |
| - `supertonic/M3/el` | |
| - `supertonic/M3/en` | |
| - `supertonic/M3/es` | |
| - `supertonic/M3/et` | |
| - `supertonic/M3/fi` | |
| - `supertonic/M3/fr` | |
| - `supertonic/M3/hi` | |
| - `supertonic/M3/hr` | |
| - `supertonic/M3/hu` | |
| - `supertonic/M3/id` | |
| - `supertonic/M3/it` | |
| - `supertonic/M3/ja` | |
| - `supertonic/M3/ko` | |
| - `supertonic/M3/lt` | |
| - `supertonic/M3/lv` | |
| - `supertonic/M3/nl` | |
| - `supertonic/M3/pl` | |
| - `supertonic/M3/pt` | |
| - `supertonic/M3/ro` | |
| - `supertonic/M3/ru` | |
| - `supertonic/M3/sk` | |
| - `supertonic/M3/sl` | |
| - `supertonic/M3/sv` | |
| - `supertonic/M3/tr` | |
| - `supertonic/M3/uk` | |
| - `supertonic/M3/vi` | |
| - `supertonic/M4/ar` | |
| - `supertonic/M4/bg` | |
| - `supertonic/M4/cs` | |
| - `supertonic/M4/da` | |
| - `supertonic/M4/de` | |
| - `supertonic/M4/el` | |
| - `supertonic/M4/en` | |
| - `supertonic/M4/es` | |
| - `supertonic/M4/et` | |
| - `supertonic/M4/fi` | |
| - `supertonic/M4/fr` | |
| - `supertonic/M4/hi` | |
| - `supertonic/M4/hr` | |
| - `supertonic/M4/hu` | |
| - `supertonic/M4/id` | |
| - `supertonic/M4/it` | |
| - `supertonic/M4/ja` | |
| - `supertonic/M4/ko` | |
| - `supertonic/M4/lt` | |
| - `supertonic/M4/lv` | |
| - `supertonic/M4/nl` | |
| - `supertonic/M4/pl` | |
| - `supertonic/M4/pt` | |
| - `supertonic/M4/ro` | |
| - `supertonic/M4/ru` | |
| - `supertonic/M4/sk` | |
| - `supertonic/M4/sl` | |
| - `supertonic/M4/sv` | |
| - `supertonic/M4/tr` | |
| - `supertonic/M4/uk` | |
| - `supertonic/M4/vi` | |
| - `supertonic/M5/ar` | |
| - `supertonic/M5/bg` | |
| - `supertonic/M5/cs` | |
| - `supertonic/M5/da` | |
| - `supertonic/M5/de` | |
| - `supertonic/M5/el` | |
| - `supertonic/M5/en` | |
| - `supertonic/M5/es` | |
| - `supertonic/M5/et` | |
| - `supertonic/M5/fi` | |
| - `supertonic/M5/fr` | |
| - `supertonic/M5/hi` | |
| - `supertonic/M5/hr` | |
| - `supertonic/M5/hu` | |
| - `supertonic/M5/id` | |
| - `supertonic/M5/it` | |
| - `supertonic/M5/ja` | |
| - `supertonic/M5/ko` | |
| - `supertonic/M5/lt` | |
| - `supertonic/M5/lv` | |
| - `supertonic/M5/nl` | |
| - `supertonic/M5/pl` | |
| - `supertonic/M5/pt` | |
| - `supertonic/M5/ro` | |
| - `supertonic/M5/ru` | |
| - `supertonic/M5/sk` | |
| - `supertonic/M5/sl` | |
| - `supertonic/M5/sv` | |
| - `supertonic/M5/tr` | |
| - `supertonic/M5/uk` | |
| - `supertonic/M5/vi` | |
| ## Licence | |
| The upstream declares the licence `openrail` in the model card of Supertone/supertonic-3. | |
| ## Related projects | |
| - [phoonnx](https://github.com/TigreGotico/phoonnx): runs this model, in Python and in OVOS. | |
| - [scriptconv](https://github.com/TigreGotico/scriptconv): text normalisation, script conversion and phonemizers for phoonnx. | |
| - The [SuperTonic](https://huggingface.co/collections/Phoonnx/supertonic-6af8ecc17005c13853492803) collection: every SuperTonic model packaged for phoonnx. | |