Views
No views yet
config.json - Model configurationgeneration_config.json - Generation parametersmodel.safetensors - Model weights (includes speaker encoder weights)tokenizer_config.json - Tokenizer configurationvocab.json - Vocabulary filemerges.txt - BPE merges filepreprocessor_config.json - Preprocessor configurationspeech_tokenizer/ - Speech tokenizer model and configspeaker_encoder/speaker_config.json - Speaker encoder configurationtraining_state.json - Training state and configuration1from qwen_tts.inference.qwen3_tts_model import Qwen3TTSModel
2
3# Load the fine-tuned model
4model = Qwen3TTSModel.from_pretrained(
5 "./output/best",
6 torch_dtype=torch.bfloat16,
7 attn_implementation="flash_attention_2"
8)
9
10# Generate speech with the new speaker
11text = "Your text here"
12ref_audio = "path/to/reference_audio.wav"
13
14wavs, sr = model.generate_voice_clone(
15 text=text,
16 language="Auto",
17 ref_audio=ref_audio,
18 ref_text="Reference text for ICL mode",
19 x_vector_only_mode=False
20)