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

请问支持发送amr格式的音频流吗? #148

Open
Alex1911-Jiang opened this issue Apr 14, 2023 · 3 comments
Open

请问支持发送amr格式的音频流吗? #148

Alex1911-Jiang opened this issue Apr 14, 2023 · 3 comments
Labels
enhancement New feature or request working The developer is working on this issue/pr.

Comments

@Alex1911-Jiang
Copy link

amr格式的MemoryStream传入UploadVoiceAsync时报“输入的音频数据无法被已注册的 IVoiceConverter 转换 Arg_ParamName_Name”

QQ截图20230414220611

我用ffmpeg把mp3转成的amr,文件在这里:
amr.zip

发送amr的路径就一切正常,但我还是对使用硬盘有抵触,如果能在内存中完成就好了

另外就是之前不转amr,直接通过这个方法传入mp3的MemoryStream时手机听得了但PC听不了的情况还是有(不过这个后来我试了发mp3的文件路径也不行,可能是mirai的问题,大佬能帮忙试试能不能重现吗🙏)

@Executor-Cheng Executor-Cheng added the pending The developer is working on other projects. label Apr 19, 2023
@Executor-Cheng
Copy link
Owner

这几天工作较为繁重, 麻烦再等一到两天OAO

@Executor-Cheng Executor-Cheng added investigating The developer is investigating the issue enhancement New feature or request working The developer is working on this issue/pr. and removed pending The developer is working on other projects. investigating The developer is investigating the issue labels Apr 23, 2023
@Executor-Cheng
Copy link
Owner

如果可以的话, 可以把你播放失败的mp3传一份不? 我在本地试了下 44100Hz / 48000Hz 的 mp3 发群听起来都没问题
amr 目前确实不受支持, 转换流程是先把来源音频解析为 pcm-s16le 格式, 然后再转换成 silk 格式
我会添加 amr 转 pcm 的支持, 大概今天内就能完成

@Alex1911-Jiang
Copy link
Author

有的,#142里发过
炉心融解.zip
谢谢大佬🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request working The developer is working on this issue/pr.
Projects
None yet
Development

No branches or pull requests

2 participants