Skip to content

TTS RESTful API得到的base64文件解析问题求助 #2060

Answered by lym0302
centurion2021 asked this question in Q&A
Discussion options

You must be logged in to vote

1、API返回的base64转音频可以参考下述链接对应的函数:https://github.com/PaddlePaddle/PaddleSpeech/blob/develop/paddlespeech/server/bin/paddlespeech_client.py#L84

2、转换wav文件的base64值和API返回的base64不一样 是因为 API返回的base64并不是来源于保存的 wav文件,因为考虑到服务端有可能并不想保存音频的情况。参考下述链接 174~192行:https://github.com/PaddlePaddle/PaddleSpeech/blob/develop/paddlespeech/server/engine/tts/python/tts_engine.py#L174

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by centurion2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants