feature(voice): 增加VOICE_INPUT_ENABLED 开关,在https就绪之前,不启用该功能

This commit is contained in:
sophie committed 2026-06-04 08:49:34 +08:00
1 parent 8f69131872
commit cc53d29e76
1 file changed
+7
+7
View File
@@ -677,7 +677,14 @@ const {
},
});
// HTTPS 全站就绪后改为 true,恢复硅基 ASR 录音识别(useAudioTranscription)
const VOICE_INPUT_ENABLED = false;
const handleVoiceFeatureClick = () => {
if (!VOICE_INPUT_ENABLED) {
msg.info(t('chat.devComingSoon'));
return;
}
if (isThinking.value || isVoiceTranscribing.value) return;
const unavailable = getVoiceUnavailableErrorKey();
if (unavailable) {