Instructions to use Supertone/supertonic-3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Supertonic
How to use Supertone/supertonic-3 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
Fix the error: unsupported format string passed to numpy.ndarray.__format__
#31
by valent-p - opened
README.md
CHANGED
|
@@ -75,7 +75,7 @@ text = "A gentle breeze moved through the open window while everyone listened to
|
|
| 75 |
wav, duration = tts.synthesize(text, voice_style=style, lang="en")
|
| 76 |
|
| 77 |
tts.save_audio(wav, "output.wav")
|
| 78 |
-
print(f"Generated {duration:.2f}s of audio")
|
| 79 |
```
|
| 80 |
|
| 81 |
## What's New in Supertonic 3
|
|
|
|
| 75 |
wav, duration = tts.synthesize(text, voice_style=style, lang="en")
|
| 76 |
|
| 77 |
tts.save_audio(wav, "output.wav")
|
| 78 |
+
print(f"Generated {duration.item():.2f}s of audio")
|
| 79 |
```
|
| 80 |
|
| 81 |
## What's New in Supertonic 3
|