diff --git a/.env.development b/.env.development index ceae769b..9687232a 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:7001' # VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002' @@ -17,7 +17,7 @@ ENV = 'development' #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-microphone.vue b/src/pages/sparring/components/talk-microphone.vue index 292da646..ab861c1c 100644 --- a/src/pages/sparring/components/talk-microphone.vue +++ b/src/pages/sparring/components/talk-microphone.vue @@ -105,7 +105,7 @@ if (options.gain > 20.0) { options.gain = 20.0; } - + // #ifdef APP-PLUS const os = plus.os.name; if (os === 'Android') { console.log('是安卓'); @@ -136,7 +136,12 @@ audioContext = new AudioContext(); await audioContext.audioWorklet.addModule('static/js/processor.worklet.js'); } - + //#endif + //#ifdef H5 + audioContext = new AudioContext(); + await audioContext.audioWorklet.addModule('static/js/processor.worklet.js'); + //#endif + mediaStream = await navigator.mediaDevices.getUserMedia({ audio: { sampleRate: options.sampleRate, diff --git a/src/pages/sparring/components/talk-speaker.vue b/src/pages/sparring/components/talk-speaker.vue index 8a9b33c3..46208773 100644 --- a/src/pages/sparring/components/talk-speaker.vue +++ b/src/pages/sparring/components/talk-speaker.vue @@ -12,31 +12,72 @@ > -