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
fix missing import
#2
by pete-rrr - opened
add datasets import to code example
Additionally - as of Feb 24th, the SpeechT5Processor and friends classes aren't yet in a transformers PyPI release. Solved by installing bleeding edge from GitHub:
pip install git+https://github.com/huggingface/transformers
patrickvonplaten changed pull request status to merged