From 00d313c12f28a41f338c5656e64dbd8aa1812878 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=B2=A9?= Date: Mon, 8 Dec 2025 20:54:23 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=96=B0=E6=A0=A1=E5=AF=B9=E4=BA=86?= =?UTF-8?q?=E4=BC=A0=E5=85=A5=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- .../sparring/components/talk-speaker.vue | 64 ++++++++++++++++--- src/pages/sparring/js/ProtocolCodec.ts | 6 +- src/pages/sparring/talk.vue | 8 ++- 4 files changed, 64 insertions(+), 18 deletions(-) diff --git a/.env.development b/.env.development index f296d9bd..ceae769b 100644 --- a/.env.development +++ b/.env.development @@ -6,7 +6,7 @@ ENV = 'development' # VITE_APP_BASE_API_Url = 'https://aits.jlbank.com.cn:7001' -VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002' +#VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002' # VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002' @@ -17,7 +17,7 @@ VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002' #VITE_APP_BASE_API_Url = 'http://25.18.122.65:7001' # sit -# VITE_APP_BASE_API_Url = 'http://25.18.122.91:9786' +VITE_APP_BASE_API_Url = 'http://25.18.122.91:9786' # UAT diff --git a/src/pages/sparring/components/talk-speaker.vue b/src/pages/sparring/components/talk-speaker.vue index ed364e38..8a9b33c3 100644 --- a/src/pages/sparring/components/talk-speaker.vue +++ b/src/pages/sparring/components/talk-speaker.vue @@ -16,10 +16,10 @@ import { ref, onUnmounted, watch, onMounted } from 'vue'; const isStop = ref(false); const currentPCMChunk = ref(false); - const audioOutput = ref(''); + const audioOutput = ref('earpiece'); // 响应式状态 const isPlaying = ref(false); // 是否正在播放 - const volume = ref(); // 播放音量(0~1) + const volume = ref(1); // 播放音量(0~1) const playPCM = (pcmData) => { if (!pcmData || pcmData.byteLength === 0) return; currentPCMChunk.value = pcmData; @@ -42,7 +42,55 @@