Views
No views yet
pip install qwen-tts torch torchaudio1import torch
2import soundfile as sf
3from qwen_tts import Qwen3TTSModel
4
5tts = Qwen3TTSModel.from_pretrained(
6 "thunk6/qwen3-tts-custom-voice",
7 device_map="cuda:0",
8 dtype=torch.bfloat16,
9)
10
11wavs, sr = tts.generate_custom_voice(
12 text="Hello, this is my cloned voice.",
13 speaker="my_custom_voice",
14)
15
16sf.write("output.wav", wavs[0], sr)| Setting | Value |
|---|---|
| Base model | Qwen3-TTS-12Hz-1.7B-Base |
| Fine-tuning method | SFT |
| Learning rate | 2e-6 |
| Batch size | 4 |
| Epochs | 10 |
| Hardware | A100 80GB |