python中音频文件的信号处理
我想在未压缩的 AIFF 音频文件中进行静音检测。我更喜欢用 Python 来做,但如果效率超级低的话,我会考虑其他选择。我正在处理的未压缩文件预计为 20 MB(最大大小)。
我可以了解信号处理的基础知识,但不是这方面的专家。
I am tying to do silence detection in uncompressed AIFF audio files. I prefer to do it in Python, but would consider other options if this is super inefficient. The uncompressed files I am dealing with are expected to be 20 MB (maximum size).
I can understand basics of signal processing, but am not an expert in it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你很幸运! aifc 库似乎足以支持解决您的问题。
You're in luck! The aifc library seems to do enough to support the solving of your problem.
与语言无关的伪代码:
计算 RMS 功率:
您可能还想添加进一步的检测层,例如确定静音 = M 个连续的静音窗口,其中 M 确定静音需要多长时间在它算作真正的沉默之前。
Language-agnostic pseudo code:
To calculate RMS power:
You probably also want to add a further layer of detection, e.g. decide that silence = M consecutive silent windows, where M determines how long a silence needs to be before it counts as an actual silence.