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
[DX] Clearer instructions for SpeechT5
#23
by reach-vb - opened
No description provided.
Code snippet also uses soundfile, so ideally we install this too. What you can do is:
pip install --upgrade pip
pip install --upgrade transformers sentencepiece datasets[audio]
=> this will install the correct builds of librosa/soundfile for audio decoding with datasets and soundfile writing in the code snippet
ylacombe changed pull request status to merged