Open mzgcz opened 10 months ago
传递字段audio_format { "audio": "exSI6ICJlbiIsCgkgICAgInBvc2l0aW9uIjogImZhbHNlIgoJf...", "audio_format": "pcm", "sample_rate": 16000, "lang": "zh_cn", "punc": 0 }
wav和pcm格式传入punc参数都没用,没有补充标点符号
传递字段audio_format { "audio": "exSI6ICJlbiIsCgkgICAgInBvc2l0aW9uIjogImZhbHNlIgoJf...", "audio_format": "pcm", "sample_rate": 16000, "lang": "zh_cn", "punc": 0 }
我确认下:"audio_format": "pcm"
时,audio
对应的是纯pcm
载荷吧?因为如果携带的是wav
载荷是没有问题的。而且我查看代码也只是对wav
载荷处理,没有对纯pcm
载荷的处理。
我试了下,punc的参数在wav的情况下一样是无效的...
data = { "audio": base64_string, "audio_format": "wav", "sample_rate": 32000, "lang": "zh_cn", "punc": True }
For support and discussions, please use our Discourse forums.
If you've found a bug then please create an issue with the following information:
Describe the bug PaddleSpeech-Server描述说语音识别服务支持pcm和wav两种格式,但输入pcm格式文件时,报以下错误:
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Additional context Add any other context about the problem here.