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
11.12k stars 1.85k forks source link

语音合成 使用POST /paddlespeech/tts返回的base64编码的音频字符串在C#端解密有问题 #3370

Open qianmo0609 opened 1 year ago

qianmo0609 commented 1 year ago

我将返回的audio字符串和报存的wav加载后用base64编码,两边是不一样的,同样是”你好“的语音wav格式的编码 QQ截图20230630135902 audio在C#端解码base64会有电流声,加载保存的wav就没有 QQ截图20230630175857

我测试了一下,python的base64编码和C#的base64编码是一致的,音频的字节不一样,是个怎么个问题?

zh794390558 commented 1 year ago

离线测试下,不应该有这个问题。

qianmo0609 commented 1 year ago

离线测试下,不应该有这个问题。

可我部署的源码就是有这个问题,保存的wav文件和发回来的字符串就是不一样,应该问题就出在那个wavefile.write的方法上边,从代码的上看numpy的数据应该是没问题的

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.