-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Description
PaddleSpeech\demos\speech_web\web_client\src\components\SubMenu\TTS\TTST.vue
// 基于WS的流式合成
async getTtsChunkWavWS(){
if(this.ws.readyState != this.ws.OPEN){
this.$message.error("websocket 链接失败,请检查 Websocket 后端服务是否正确开启")
return
}
// 初始化 chunks
chunks = []
chunk_index = 0
reciveOver = false
_reset()
this.streamingOnInit = false
this.streamingStopStatus = true
this.streamingContinueStatus = true
this.streamingSendStamp = Date.now()
this.ws.send(this.textarea) ---这里访问服务端报错, 需要是一个json 就算该对了流程也不对,需要start end之类的 需要改进
},