提交 88adcaa6 编写于 作者: L lym0302

fix code, test=doc

上级 c00c3159
#!/bin/bash #!/bin/bash
# http client test # http client test
paddlespeech_client tts --server_ip 127.0.0.1 --port 8092 --protocol http --input "您好,欢迎使用百度飞桨语音合成服务。" --output output.wav paddlespeech_client tts_online --server_ip 127.0.0.1 --port 8092 --protocol http --input "您好,欢迎使用百度飞桨语音合成服务。" --output output.wav
# websocket client test # websocket client test
#paddlespeech_client tts --server_ip 127.0.0.1 --port 8092 --protocol websocket --input "您好,欢迎使用百度飞桨语音合成服务。" --output output.wav #paddlespeech_client tts_online --server_ip 127.0.0.1 --port 8092 --protocol websocket --input "您好,欢迎使用百度飞桨语音合成服务。" --output output.wav
\ No newline at end of file
...@@ -49,7 +49,9 @@ class LengthRegulator(nn.Layer): ...@@ -49,7 +49,9 @@ class LengthRegulator(nn.Layer):
encodings: (B, T, C) encodings: (B, T, C)
durations: (B, T) durations: (B, T)
""" """
batch_size, t_enc = durations.shape #batch_size, t_enc = durations.shape
batch_size = paddle.shape(durations)[0]
t_enc = paddle.shape(durations)[1]
durations = durations.numpy() durations = durations.numpy()
slens = np.sum(durations, -1) slens = np.sum(durations, -1)
t_dec = np.max(slens) t_dec = np.max(slens)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册