Merge pull request #179 from colin-campbell/stt-to-storage

stt-to-storage: UX - Move speechToText from state to storage.
This commit is contained in:
Muhammed Nazeem
2024-08-26 14:14:57 +05:30
committed by GitHub
4 changed files with 9 additions and 8 deletions

View File

@@ -53,7 +53,10 @@ export const SettingsBody = () => {
const [hideCurrentChatModelSettings, setHideCurrentChatModelSettings] =
useStorage("hideCurrentChatModelSettings", false)
const { speechToTextLanguage, setSpeechToTextLanguage } = useMessage()
const [ speechToTextLanguage, setSpeechToTextLanguage ] = useStorage(
"speechToTextLanguage",
"en-US"
)
const { mode, toggleDarkMode } = useDarkMode()
const { changeLocale, locale, supportLanguage } = useI18n()