Text-to-Speech
Transformers
Safetensors
Cebuano
speecht5
text-to-audio
philippines
philippine-languages
single-speaker
Instructions to use Splintir/speecht5_tts-pld-ceb-solo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Splintir/speecht5_tts-pld-ceb-solo with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="Splintir/speecht5_tts-pld-ceb-solo")# Load model directly from transformers import AutoProcessor, AutoModelForTextToSpectrogram processor = AutoProcessor.from_pretrained("Splintir/speecht5_tts-pld-ceb-solo") model = AutoModelForTextToSpectrogram.from_pretrained("Splintir/speecht5_tts-pld-ceb-solo", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Play the clip inline in a notebook, and say what Colab needs
Browse files
README.md
CHANGED
|
@@ -145,10 +145,20 @@ with torch.inference_mode():
|
|
| 145 |
speech = model.generate_speech(ids, speaker, vocoder=vocoder)
|
| 146 |
|
| 147 |
sf.write("out.wav", speech.numpy(), 16000) # 16 kHz mono
|
|
|
|
|
|
|
|
|
|
|
|
|
| 148 |
```
|
| 149 |
|
| 150 |
-
Runs on
|
| 151 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 152 |
|
| 153 |
Spell numbers out: the tokenizer is character-level Latin and drops digits
|
| 154 |
silently.
|
|
|
|
| 145 |
speech = model.generate_speech(ids, speaker, vocoder=vocoder)
|
| 146 |
|
| 147 |
sf.write("out.wav", speech.numpy(), 16000) # 16 kHz mono
|
| 148 |
+
|
| 149 |
+
# In a notebook (Colab, Jupyter), play it inline instead of saving:
|
| 150 |
+
from IPython.display import Audio, display
|
| 151 |
+
display(Audio(speech.numpy(), rate=16000))
|
| 152 |
```
|
| 153 |
|
| 154 |
+
Runs unmodified on a stock Colab CPU runtime — every dependency is preinstalled,
|
| 155 |
+
including the `sentencepiece` the tokenizer needs — at roughly 1.8× real time.
|
| 156 |
+
For GPU, `.to("cuda")` the model, the vocoder and `ids`/`speaker`, then `.cpu()`
|
| 157 |
+
the result before `sf.write`.
|
| 158 |
+
|
| 159 |
+
The `display(Audio(...))` line renders a play button in a notebook cell. It
|
| 160 |
+
produces no sound over a terminal or SSH session; there, write the wav and fetch
|
| 161 |
+
it (`from google.colab import files; files.download("out.wav")`).
|
| 162 |
|
| 163 |
Spell numbers out: the tokenizer is character-level Latin and drops digits
|
| 164 |
silently.
|