diff --git a/app/components/chat.tsx b/app/components/chat.tsx index a52f3b13b..3ce9c993e 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -558,10 +558,12 @@ export function ChatActions(props: { useEffect(() => { if (isFirefox()) config.sttConfig.engine = FIREFOX_DEFAULT_STT_ENGINE; + const lang = config.sttConfig.lang; setSpeechApi( config.sttConfig.engine !== DEFAULT_STT_ENGINE - ? new WebTranscriptionApi((transcription) => - onRecognitionEnd(transcription), + ? new WebTranscriptionApi( + (transcription) => onRecognitionEnd(transcription), + lang, ) : new OpenAITranscriptionApi((transcription) => onRecognitionEnd(transcription), diff --git a/app/components/stt-config.tsx b/app/components/stt-config.tsx index 478259041..01a63cd5f 100644 --- a/app/components/stt-config.tsx +++ b/app/components/stt-config.tsx @@ -55,10 +55,10 @@ export function STTConfigList(props: { {props.sttConfig.engine === "Web Speech API" && !isFirefox() && (