PYDUB库找到音频剪辑中最大的部分,在5秒之前节省5秒钟,然后打印出最大分贝?
我想从iPhone中获取M4A文件,并使用Python找到该细分市场的最大贝贝尔部分。然后,我想将剪辑修剪为在5秒之前开始,然后在最大贝贝尔点之后5秒结束。最后,我希望它打印出分贝级别。
我认为PYDUB库将在此任务中有益。我不是在寻找代码,而是要指向正确的方向。
我添加了pydub库:
来自pydub imporieSement audio = auciieSement.from_file('file.m4a')
I want to take m4a files from iPhones and use Python to find the max-decibel portion of the segment. I then want to trim the clip to start 5 seconds before, and end 5 seconds after the max-decibel point. Lastly, I want it to print out the decibel level.
I figure the pydub library will be beneficial in this task. I am not looking for code, but to be pointed in the right direction of how I should approach this.
I have added the pydub library:
from pydub import AudioSegment audio = AudioSegment.from_file('file.m4a')
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论