PYDUB库找到音频剪辑中最大的部分,在5秒之前节省5秒钟,然后打印出最大分贝?

发布于 2025-01-17 20:49:53 字数 251 浏览 6 评论 0原文

我想从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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文