问题描述
我在找一个跨平台库,让我来分析声音文件的波形。它需要能够至少要查询的幅度对于给定的样本的能力,这将是很好,如果它可以做频率检测。
I'm looking for a cross-platform library that allows me to analyze the waveform of a sound file. It needs to be able to at least have the ability to query the amplitude for a given sample, and it would be nice if it could do frequency detection.
推荐答案
好吧,查询振幅对于给定的样本是相当容易的,你只需要样品的值转换为分贝。至于其他类型的分析,你可能会发现是一个很好的工具。它可以做频率检测,甚至让你使用多种不同的检测算法取决于你是否需要精度和性能的选项。
Well, querying the amplitude for a given sample is rather easy, you only need to convert the sample's value to decibels. As for the other types of analysis, you'll probably find aubio to be a good tool. It can do frequency detection, and even gives you the option of using a number of different detection algorithms depending on whether you need accuracy or performance.
这篇关于跨平台音频分析库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!