diff --git a/src/subpackage/device/pages/audio_manage/audio_manage.vue b/src/subpackage/device/pages/audio_manage/audio_manage.vue index 1a92b22..985a041 100644 --- a/src/subpackage/device/pages/audio_manage/audio_manage.vue +++ b/src/subpackage/device/pages/audio_manage/audio_manage.vue @@ -69,8 +69,6 @@ :class="voicePadConfig.step==2?'voice_img_playing':''"> 按住说话 - - 发送 听取录音 @@ -191,7 +189,6 @@ console.log("文字转语音"); this.voicePadConfig.showVoicePad = true this.voicePadConfig.step = 0 - // this.voicePadConfig } else { //语音发送 console.log("语音发送"); this.voicePadConfig.showVoicePad = true @@ -235,7 +232,7 @@ "url": _url } }, - "token": "f0d5c19b-b87e-11eb-bc7d-5254005df464" + // "token": "f0d5c19b-b87e-11eb-bc7d-5254005df464" } //发送命令到中控 this.operateReq({ @@ -247,6 +244,7 @@ async listenVoice() { if(this.voicePadConfig.step==0){ //需要将语音下载到本地,然后播放 + let txt = this.voicePadConfig.txt; let url =`${deviceApi.ORIGIN}/ouxuanac/tts/textToVoice.wav?text=${txt}&voice_type=4&speed=-1&volume=10`; let updated_url = await this.getDownloadUrl(url) innerAudioContext.src = updated_url