Instructions to use facebook/mms-tts-tgl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/mms-tts-tgl with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="facebook/mms-tts-tgl")# Load model directly from transformers import AutoTokenizer, AutoModelForTextToWaveform tokenizer = AutoTokenizer.from_pretrained("facebook/mms-tts-tgl") model = AutoModelForTextToWaveform.from_pretrained("facebook/mms-tts-tgl", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download vocab.json from facebook/mms-tts-tgl: direct link, hf CLI and curl.
- Browser
- Download file 470 Bytes
-
https://huggingface.co/facebook/mms-tts-tgl/resolve/main/vocab.json
- Command line
-
hf download hf://facebook/mms-tts-tgl/vocab.json
-
curl -L -o vocab.json https://huggingface.co/facebook/mms-tts-tgl/resolve/main/vocab.json
470 Bytes
| { | |
| " ": 25, | |
| "'": 17, | |
| "-": 4, | |
| "0": 12, | |
| "1": 32, | |
| "2": 20, | |
| "3": 37, | |
| "4": 42, | |
| "5": 10, | |
| "6": 15, | |
| "7": 38, | |
| "8": 39, | |
| "9": 29, | |
| "_": 35, | |
| "a": 0, | |
| "b": 30, | |
| "c": 22, | |
| "d": 31, | |
| "e": 11, | |
| "f": 21, | |
| "g": 3, | |
| "h": 33, | |
| "i": 8, | |
| "j": 26, | |
| "k": 41, | |
| "l": 36, | |
| "m": 6, | |
| "n": 16, | |
| "o": 5, | |
| "p": 23, | |
| "q": 27, | |
| "r": 24, | |
| "s": 7, | |
| "t": 28, | |
| "u": 9, | |
| "v": 14, | |
| "w": 34, | |
| "x": 2, | |
| "y": 19, | |
| "z": 13, | |
| "ñ": 40, | |
| "ʼ": 1, | |
| "–": 18 | |
| } | |