diff --git a/src/views/voice/recordPage/index.vue b/src/views/voice/recordPage/index.vue index fe7b577..9ad97b5 100644 --- a/src/views/voice/recordPage/index.vue +++ b/src/views/voice/recordPage/index.vue @@ -87,8 +87,8 @@ } else { // wsuri = `ws://192.168.20.43:8102/voiceWebsocket`; // wsuri = `ws://139.155.49.237:8201/voiceWebsocket`; - wsuri = `ws://${window.location.host}/voiceWebsocket`; - // wsuri = `ws://server1.wh-nf.cn:8201/voiceWebsocket`; + // wsuri = `ws://${window.location.host}/voiceWebsocket`; + wsuri = `ws://server1.wh-nf.cn:8201/voiceWebsocket`; } @@ -116,6 +116,10 @@ if (uploadbusinessSourceCode.value == data.type) { // 将返回的type数据与语音指令的业务code进行精准匹配 如果匹配上了 才说明是发送的这条数据 nowword.value = params.recognitionResult; + if(params.recognitionResult==''){ + nowword.value = `指令未识别,请重试`; + return + } if (params.recognitionActionCode == 'error'||params.recognitionDataSourceCode=='error') { // nowword.value = `指令未识别,请您再说一遍`; isGuess.value=true