From 13820e38c7e69b90bf1809aeccca84c10d25cd88 Mon Sep 17 00:00:00 2001 From: bdim404 Date: Wed, 4 Feb 2026 16:33:59 +0800 Subject: [PATCH] fix: Update speaker selection logic to handle all speaker sources in CustomVoiceForm --- qwen3-tts-frontend/src/components/tts/CustomVoiceForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qwen3-tts-frontend/src/components/tts/CustomVoiceForm.tsx b/qwen3-tts-frontend/src/components/tts/CustomVoiceForm.tsx index f155c23..e162264 100644 --- a/qwen3-tts-frontend/src/components/tts/CustomVoiceForm.tsx +++ b/qwen3-tts-frontend/src/components/tts/CustomVoiceForm.tsx @@ -210,7 +210,7 @@ const CustomVoiceForm = forwardRef((_props, ref) => { onValueChange={(value: string) => { setSelectedSpeakerId(value) const item = unifiedSpeakers.find(s => s.id === value) - if (item?.source === 'builtin') { + if (item) { setValue('speaker', item.id) } }}