Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可以播放录音后的pcm文件,但无法播放wav音频 #29

Open
mcpanl opened this issue Jul 4, 2024 · 2 comments
Open

可以播放录音后的pcm文件,但无法播放wav音频 #29

mcpanl opened this issue Jul 4, 2024 · 2 comments

Comments

@mcpanl
Copy link

mcpanl commented Jul 4, 2024

可以播放录音后的pcm文件,但无法播放wav音频,代码没报错,就是没有声音。请问需要wav设置特定的比特率才可以正常播放吗?如果是的话,比特率最大为多少?
图片

@lxowalle
Copy link
Collaborator

lxowalle commented Jul 5, 2024

  1. 请确保更新到了最新的运行库,方法Settings->Install Runtime->Upgrade
  2. 请看下面代码的注释说明有PCM参数 “采样率48000,FMT_S16_LE格式,和采样通道数为1”

@mcpanl
Copy link
Author

mcpanl commented Jul 5, 2024

好的,晚上回家我试一下用4.8k采样率的音频试一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants