瀏覽代碼

得,音频接口地址又改了

任一存 2 年之前
父節點
當前提交
282c34058e
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      web/src/views/accessibility.vue

+ 2 - 2
web/src/views/accessibility.vue

@@ -740,7 +740,7 @@ export default {
           if (that.audioPlayer && !that.audioPlayer.ended) {
             that.audioPlayer.pause()
           }
-          that.audioPlayer = new Audio('http://125.89.55.135:10803' + res.msg)
+          that.audioPlayer = new Audio('http://47.107.166.80:8008' + res.msg)
           that.audioPlayer.muted = that.ariaSettings.isMuted
           that.audioPlayer.playbackRate = speechRateFactors[that.ariaSettings.speechRateLevel]
           that.audioPlayer.oncanplaythrough = () => {
@@ -762,7 +762,7 @@ export default {
           }
         }
       }
-      XHR.open("POST", "http://125.89.55.135:10803/api/tts/toMp3")
+      XHR.open("POST", "http://47.107.166.80:8008/api/tts/toMp3")
       XHR.setRequestHeader("Content-Type", "application/json;charset=UTF-8")
       XHR.send(JSON.stringify({
         content: text || this.elemType + (this.elemType ? ': ' : '') + this.elemDisc