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

MaixCAM-Pro中使用audio.Player()播放完wav音频后会有200ms左右的电流声,如何优化或者改善这种现象呢 #73

Open
mcpanl opened this issue Nov 13, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@mcpanl
Copy link
Contributor

mcpanl commented Nov 13, 2024

MaixCAM-Pro中使用audio.Player()播放完wav音频后会有200ms左右的电流声,如何优化或者改善这种现象呢

from maix import audio, time, app

p = audio.Player("/root/output.wav")

p.play()

while not app.need_exit():
    time.sleep_ms(10)
print("play finish!")

采样率是48k,采样格式为小端格式-有符号16位,采样通道为1

@lxowalle
Copy link
Collaborator

试试一下检查一下音频数据是不是本身有噪音,或者主动把音频末尾200ms左右的数据置0看看能不能改善。
ps:现在maxicam pro上功放的en脚是直连的3.3v,有动手能力可以把en脚飞线到gpio,播放完成后拉低en脚可以保证静音。

@mcpanl
Copy link
Contributor Author

mcpanl commented Nov 14, 2024

确定不是音频的问题,其实没200ms那么夸张,就是音频播放结束后会有滋滋滋的短暂声响,有时候长按电源键关机也会听到类似的声音。如果研发下一个版本的PCB时候,建议预留EN脚

@Neutree Neutree added the enhancement New feature or request label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants