PaddlePaddle / PaddleSpeech

Easy-to-use Speech Toolkit including Self-Supervised Learning model, SOTA/Streaming ASR with punctuation, Streaming TTS with text frontend, Speaker Verification System, End-to-End Speech Translation and Keyword Spotting. Won NAACL2022 Best Demo Award.
https://paddlespeech.readthedocs.io
Apache License 2.0
10.93k stars 1.83k forks source link

[TTS]流式tts客户端web client 对最新的代码服务不适配,参数不对 #3831

Open forever1dream opened 4 weeks ago

forever1dream commented 4 weeks ago

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之类的 需要改进
    },
Ray961123 commented 3 weeks ago

开发者你好,感谢关注 PaddleSpeech 开源项目,抱歉给你带来了不好的开发体验,目前开源项目维护人力有限,你可以尝试通过修改 PaddleSpeech 源码的方式自己解决,或请求开源社区其他开发者的协助。飞桨开源社区交流频道:飞桨AI Studio星河社区-人工智能学习与实训社区