Browse Source

语音助手2

SanHQin 8 months ago
parent
commit
a88ede2000
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/components/classRoomHelper/component/levitatedSphere.vue

+ 2 - 3
src/components/classRoomHelper/component/levitatedSphere.vue

@@ -347,16 +347,15 @@ export default {
 			let _talkTextIiframe2 = this.$refs.iiframe2;
 			
 			if(_text){
-				_talkTextIiframe2.contentWindow.testdoContinuousPronunciationAssessment();
 				this.talkLoading = true;
 				console.log(`👉转语音:${_text}`)
 				// setTimeout(()=>{
 				// 	this.talkText();
 				// },2000)
-				_talkTextIiframe2.texttospeech(_text,this.talkText);
+				_talkTextIiframe2.contentWindow.texttospeech(_text,this.talkText);
 			}else{
 				console.log("👉转语音结束👈")
-				_talkTextIiframe2.closesynthesizer()
+				_talkTextIiframe2.contentWindow.closesynthesizer()
 				this.chatLoading = false;
 				this.talkLoading = false;
 				this.talkTextList = [];