fix: Update speaker selection logic to handle all speaker sources in CustomVoiceForm

This commit is contained in:
2026-02-04 16:33:59 +08:00
parent ddaa0abfc7
commit 13820e38c7

View File

@@ -210,7 +210,7 @@ const CustomVoiceForm = forwardRef<CustomVoiceFormHandle>((_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)
}
}}