Skip to content

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

@forever1dream

Description

@forever1dream

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之类的 需要改进
    },

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions