feature(voice): 增加VOICE_INPUT_ENABLED 开关,在https就绪之前,不启用该功能
This commit is contained in:
1 parent
8f69131872
commit
cc53d29e76
1 file changed
+7
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user