From 42af4f6243774ee23b9c07912a2d9fd6e97d74fd Mon Sep 17 00:00:00 2001 From: Hoan Luu Huu <110280845+xquanluu@users.noreply.github.com> Date: Tue, 21 Nov 2023 21:27:47 +0700 Subject: [PATCH] fix elevenlabs set voice (#353) --- .../internal/views/applications/speech-selection.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/containers/internal/views/applications/speech-selection.tsx b/src/containers/internal/views/applications/speech-selection.tsx index ca0bfd5..30b1a1c 100644 --- a/src/containers/internal/views/applications/speech-selection.tsx +++ b/src/containers/internal/views/applications/speech-selection.tsx @@ -233,11 +233,10 @@ export const SpeechProviderSelection = ({ } if (vendor === VENDOR_ELEVENLABS) { - const newLang = synthesis[vendor].find( - (lang) => lang.code === ELEVENLABS_LANG_EN - ); + // Samve Voices applied to all languages + // Voices are only available for the 1st language. setSynthLang(ELEVENLABS_LANG_EN); - setSynthVoice(newLang!.voices[0].value); + setSynthVoice(synthesis[vendor][0].voices[0].value); return; }