From f71f432a45216eab6d74e2df433c097274f5e154 Mon Sep 17 00:00:00 2001 From: zoujing Date: Fri, 15 May 2026 12:07:27 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=B9=E9=80=A0=E8=AF=AD=E9=9F=B3?= =?UTF-8?q?=E7=9A=84=E5=AE=9E=E7=8E=B0=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/constant/speech.js | 3 +- src/pages/ChatMain/ChatInputArea/index.vue | 227 +++++++++++++++--- .../ChatMain/ChatInputArea/styles/index.scss | 7 + .../yao-asdRealSpeech/yao-asdRealSpeech.vue | 183 +++++++++----- 4 files changed, 322 insertions(+), 98 deletions(-) diff --git a/src/constant/speech.js b/src/constant/speech.js index c8933e0..0fb9e34 100644 --- a/src/constant/speech.js +++ b/src/constant/speech.js @@ -1,6 +1,7 @@ // App 端 yao-asdRealSpeech 使用的阿里云 DashScope 实时语音识别配置。 // 将 apikey 填成实际的 DashScope API Key 后,App 端语音识别即可发起连接。 export const appSpeechRecognitionOptions = { - apikey: "SnoHqdtJ832riRg4", + apikey: "sk-2cab1c221b4b47749119d33ab991360a", language_hints: ["zh"], + saveAudioFile: false, }; diff --git a/src/pages/ChatMain/ChatInputArea/index.vue b/src/pages/ChatMain/ChatInputArea/index.vue index e5d5337..45a099c 100644 --- a/src/pages/ChatMain/ChatInputArea/index.vue +++ b/src/pages/ChatMain/ChatInputArea/index.vue @@ -1,6 +1,10 @@