如何检测录制的声音样本的音高

时间:2014-12-25 16:02:52

标签: android audio-streaming audio-recording pitch-tracking

我想分析一段录制的声音样本并找到它的属性,如音高等。 我试图分析缓冲区的记录字节,但没有成功。 怎么做?

2 个答案:

答案 0 :(得分:2)

使用快速傅里叶变换..可用于大多数语言的库。字节不好,可以是mp3编码或wav / pcm ..你需要决定再分析。

DG

答案 1 :(得分:2)

您必须查看FFM

然后执行类似此伪代码的操作:

Complex in[1024];
Complex out[1024];
Copy your signal into in
FFT(in, out)
for every member of out compute sqrt(a^2+b^2)
To find frequency with highest power scan for the maximum value in the first 512 points in out

检查好友here的原始帖子,因为它可能是重复的。

相关问题