Text-to-Speech
Transformers
Safetensors
Qwen3-TTS
English
text-generation
tts
finetune
voice-cloning
narrator
qwen
speech
audio
Instructions to use scrappylabs/narrator-tts with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use scrappylabs/narrator-tts with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="scrappylabs/narrator-tts")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForSeq2SeqLM model = AutoModelForSeq2SeqLM.from_pretrained("scrappylabs/narrator-tts", device_map="auto") - Qwen3-TTS
How to use scrappylabs/narrator-tts with Qwen3-TTS:
# pip install qwen-tts import torch import soundfile as sf from qwen_tts import Qwen3TTSModel model = Qwen3TTSModel.from_pretrained( "scrappylabs/narrator-tts", device_map="cuda:0", dtype=torch.bfloat16, attn_implementation="flash_attention_2", ) wavs, sr = model.generate_custom_voice( text="Your text here.", language="English", speaker="Ryan", instruct="Speak in a natural tone.", ) sf.write("output.wav", wavs[0], sr) - Notebooks
- Google Colab
- Kaggle
Download preprocessor_config.json from scrappylabs/narrator-tts: direct link, hf CLI and curl.
- Browser
- Download file 127 Bytes
-
https://huggingface.co/scrappylabs/narrator-tts/resolve/main/preprocessor_config.json
- Command line
-
hf download hf://scrappylabs/narrator-tts/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/scrappylabs/narrator-tts/resolve/main/preprocessor_config.json
127 Bytes
| { | |
| "padding_side": "left", | |
| "padding_value": 0.0, | |
| "processor_class": "Qwen3TTSProcessor", | |
| "return_attention_mask": true | |
| } |