fix: VoiceDesign uses UI design description with priority

User's UI instruct (design description) takes priority.
Emotion from upstream tags only used as fallback when
design description is empty.
This commit is contained in:
Hawk Lee
2026-02-16 10:43:00 +08:00
parent 3ef9fd4601
commit 449183c800
+5 -2
View File
@@ -311,11 +311,14 @@ class AIIA_Qwen_TTS:
**gen_kwargs
)
elif m_type == "VoiceDesign":
print(f"[AIIA] Qwen3-TTS VoiceDesign: {final_instruct}")
# VoiceDesign: UI design description takes priority; emotion instruct as fallback
design_instruct = instruct.strip() if instruct else ""
vd_instruct = design_instruct if design_instruct else final_instruct
print(f"[AIIA] Qwen3-TTS VoiceDesign: {vd_instruct}")
wavs, sr = model.generate_voice_design(
text=text,
language=lang_param,
instruct=final_instruct, # For Design, instruct IS the design
instruct=vd_instruct,
**gen_kwargs
)
else: # Base / Clone