Instructions to use Somali-tts/Hussein_tts with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Somali-tts/Hussein_tts with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-audio", model="Somali-tts/Hussein_tts")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForTextToSpectrogram processor = AutoProcessor.from_pretrained("Somali-tts/Hussein_tts") model = AutoModelForTextToSpectrogram.from_pretrained("Somali-tts/Hussein_tts", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from Somali-tts/Hussein_tts: direct link, hf CLI and curl.
- Browser
- Download file 1.39 kB
-
https://huggingface.co/Somali-tts/Hussein_tts/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://Somali-tts/Hussein_tts/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/Somali-tts/Hussein_tts/resolve/main/tokenizer_config.json
1.39 kB
| { | |
| "added_tokens_decoder": { | |
| "0": { | |
| "content": "<s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "1": { | |
| "content": "<pad>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "2": { | |
| "content": "</s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "3": { | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "79": { | |
| "content": "<mask>", | |
| "lstrip": true, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "80": { | |
| "content": "<ctc_blank>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": false | |
| } | |
| }, | |
| "bos_token": "<s>", | |
| "clean_up_tokenization_spaces": false, | |
| "eos_token": "</s>", | |
| "extra_special_tokens": {}, | |
| "mask_token": "<mask>", | |
| "model_max_length": 600, | |
| "normalize": false, | |
| "pad_token": "<pad>", | |
| "processor_class": "SpeechT5Processor", | |
| "sp_model_kwargs": {}, | |
| "tokenizer_class": "SpeechT5Tokenizer", | |
| "unk_token": "<unk>" | |
| } | |