Text-to-Speech
Transformers
Safetensors
English
emotra_tts
feature-extraction
emotional-tts
emotion-transition
cosyvoice2
emotra-tts
custom_code
Instructions to use RetentionLabs/EmoTra-TTS with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RetentionLabs/EmoTra-TTS with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="RetentionLabs/EmoTra-TTS", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("RetentionLabs/EmoTra-TTS", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download chat_template.jinja from RetentionLabs/EmoTra-TTS: direct link, hf CLI and curl.
- Browser
- Download file 328 Bytes
-
https://huggingface.co/RetentionLabs/EmoTra-TTS/resolve/main/chat_template.jinja
- Command line
-
hf download hf://RetentionLabs/EmoTra-TTS/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/RetentionLabs/EmoTra-TTS/resolve/main/chat_template.jinja
328 Bytes
| {% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system | |
| You are a helpful assistant.<|im_end|> | |
| ' }}{% endif %}{{'<|im_start|>' + message['role'] + ' | |
| ' + message['content'] + '<|im_end|>' + ' | |
| '}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant | |
| ' }}{% endif %} |