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")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForTextToSpectrogram processor = AutoProcessor.from_pretrained("microsoft/speecht5_tts") model = AutoModelForTextToSpectrogram.from_pretrained("microsoft/speecht5_tts", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from microsoft/speecht5_tts: direct link, hf CLI and curl.
- Browser
- Download file 234 Bytes
-
https://huggingface.co/microsoft/speecht5_tts/resolve/refs%2Fpr%2F14/special_tokens_map.json
- Command line
-
hf download hf://microsoft/speecht5_tts@refs/pr/14/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/microsoft/speecht5_tts/resolve/refs%2Fpr%2F14/special_tokens_map.json
234 Bytes
| { | |
| "bos_token": "<s>", | |
| "eos_token": "</s>", | |
| "mask_token": { | |
| "content": "<mask>", | |
| "lstrip": true, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "pad_token": "<pad>", | |
| "unk_token": "<unk>" | |
| } | |