fix: Update speaker selection logic to handle all speaker sources in CustomVoiceForm
This commit is contained in:
@@ -210,7 +210,7 @@ const CustomVoiceForm = forwardRef<CustomVoiceFormHandle>((_props, ref) => {
|
|||||||
onValueChange={(value: string) => {
|
onValueChange={(value: string) => {
|
||||||
setSelectedSpeakerId(value)
|
setSelectedSpeakerId(value)
|
||||||
const item = unifiedSpeakers.find(s => s.id === value)
|
const item = unifiedSpeakers.find(s => s.id === value)
|
||||||
if (item?.source === 'builtin') {
|
if (item) {
|
||||||
setValue('speaker', item.id)
|
setValue('speaker', item.id)
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user