Instructions to use microsoft/speecht5_tts with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/speecht5_tts with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="microsoft/speecht5_tts")# Load model directly from transformers import AutoProcessor, AutoModelForTextToSpectrogram processor = AutoProcessor.from_pretrained("microsoft/speecht5_tts") model = AutoModelForTextToSpectrogram.from_pretrained("microsoft/speecht5_tts") - Notebooks
- Google Colab
- Kaggle
Commit ·
4e8a16c
1
Parent(s): dee3e78
fix missing import (#2)
Browse files- fix missing import (82db64e69d34d9f060dee92b5582a08e9614197a)
Co-authored-by: Peter <pete-rrr@users.noreply.huggingface.co>
README.md
CHANGED
|
@@ -90,6 +90,7 @@ from transformers import SpeechT5Processor, SpeechT5ForTextToSpeech, SpeechT5Hif
|
|
| 90 |
from datasets import load_dataset
|
| 91 |
import torch
|
| 92 |
import soundfile as sf
|
|
|
|
| 93 |
|
| 94 |
processor = SpeechT5Processor.from_pretrained("microsoft/speecht5_tts")
|
| 95 |
model = SpeechT5ForTextToSpeech.from_pretrained("microsoft/speecht5_tts")
|
|
|
|
| 90 |
from datasets import load_dataset
|
| 91 |
import torch
|
| 92 |
import soundfile as sf
|
| 93 |
+
from datasets import load_dataset
|
| 94 |
|
| 95 |
processor = SpeechT5Processor.from_pretrained("microsoft/speecht5_tts")
|
| 96 |
model = SpeechT5ForTextToSpeech.from_pretrained("microsoft/speecht5_tts")
|