|
@@ -51,7 +51,6 @@
|
|
src="https://beta.cloud.cocorobo.cn/browser/public/index1.html"
|
|
src="https://beta.cloud.cocorobo.cn/browser/public/index1.html"
|
|
ref="iiframe2"
|
|
ref="iiframe2"
|
|
v-show="false"
|
|
v-show="false"
|
|
- v-if="show"
|
|
|
|
></iframe>
|
|
></iframe>
|
|
|
|
|
|
<mini-audio
|
|
<mini-audio
|
|
@@ -132,7 +131,7 @@ export default {
|
|
return this.$message.info("已开启语音助手,无需重复开启");
|
|
return this.$message.info("已开启语音助手,无需重复开启");
|
|
let iiframe = this.$refs["iiframe"];
|
|
let iiframe = this.$refs["iiframe"];
|
|
iiframe.contentWindow.window.document.getElementById(
|
|
iiframe.contentWindow.window.document.getElementById(
|
|
- "languageOptions"
|
|
|
|
|
|
+ "languageOptions"
|
|
).selectedIndex = 2; //普通话
|
|
).selectedIndex = 2; //普通话
|
|
iiframe.contentWindow.testdoContinuousPronunciationAssessment();
|
|
iiframe.contentWindow.testdoContinuousPronunciationAssessment();
|
|
//this.talkTextList.push("我在");
|
|
//this.talkTextList.push("我在");
|
|
@@ -153,7 +152,7 @@ export default {
|
|
iiframe.contentWindow.onRecognizedResult = e => {
|
|
iiframe.contentWindow.onRecognizedResult = e => {
|
|
let _msg = converter(e.privText);
|
|
let _msg = converter(e.privText);
|
|
// let _msg2 = e.privText;
|
|
// let _msg2 = e.privText;
|
|
- // let _msg = _text;
|
|
|
|
|
|
+ // let _msg = "你好呀!";
|
|
console.log("👇");
|
|
console.log("👇");
|
|
console.log(_msg);
|
|
console.log(_msg);
|
|
// _msg = converter(_msg)
|
|
// _msg = converter(_msg)
|
|
@@ -416,9 +415,6 @@ export default {
|
|
iiframe.contentWindow.window.document
|
|
iiframe.contentWindow.window.document
|
|
.getElementById("scenarioStopButton")
|
|
.getElementById("scenarioStopButton")
|
|
.click();
|
|
.click();
|
|
- if (this.talkLoading) {
|
|
|
|
- this.$refs.iiframe2.contentWindow.closesynthesizer();
|
|
|
|
- }
|
|
|
|
// this.stopTalk();
|
|
// this.stopTalk();
|
|
// 录音借宿
|
|
// 录音借宿
|
|
iiframe.contentWindow.onSessionStopped = (s, e) => {
|
|
iiframe.contentWindow.onSessionStopped = (s, e) => {
|
|
@@ -434,9 +430,17 @@ export default {
|
|
this.userText = "";
|
|
this.userText = "";
|
|
this.aiText = "";
|
|
this.aiText = "";
|
|
};
|
|
};
|
|
-
|
|
|
|
|
|
+
|
|
} catch (error) {
|
|
} catch (error) {
|
|
|
|
+ console.log(error)
|
|
|
|
+ this.isOpen = false;
|
|
|
|
+ this.show = false;
|
|
|
|
+ this.showTextIndex = 3;
|
|
|
|
+ this.showIndex = 2;
|
|
this.$parent.changeRecordType(0);
|
|
this.$parent.changeRecordType(0);
|
|
|
|
+ this.$message.success("已关闭语音助手");
|
|
|
|
+ this.userText = "";
|
|
|
|
+ this.aiText = "";
|
|
}
|
|
}
|
|
|
|
|
|
},
|
|
},
|