算法,以确定是否音频音乐 [英] Algorithm to determine if audio is music

查看:177
本文介绍了算法,以确定是否音频音乐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不能完全肯定这是正确的堆叠交换子网站张贴了这个问题,但...

I'm not entirely sure this is the correct stack exchange subsite to post this question to, but...

我在寻找一种算法,我可以用它来确定的确定性体面的数额,如果给定的一段音频是音乐还是不行。只是布尔结果是好的,我并不需要知道密钥,BPM或类似的东西,我只是需要的,如果它似乎是音乐(相对于语音)才能够确定。编程语言无关,但我会最终将其转换到Python。

I'm looking for an algorithm that I can use to determine with a decent amount of certainty if a given piece of audio is music or not. Just a boolean result is fine, I don't need to know the key, bpm or anything like that, I just need to be able to determine if it appears to be music (as opposed to speech). Programming language is irrelevant, but I'll end up converting it to Python.

推荐答案

在一个短语,傅立叶分析。看不同频率的随时间变化的功率。这里是讲话,这里的的小提琴演奏。前者显示了每一个音节的剧烈变化;在流是非常不相交并且可以拾取由采取不同频带的衍生物作为时间的函数的算法。在例证音乐,另一方面,所述过渡是平滑得多和色调是较纯的(在图中少'模糊')。又见频谱维基百科页面

In a phrase, Fourier analysis. Look at the power of different frequencies over time. Here's speech, and here's violin playing. The former shows dramatic changes with every syllable; the 'flow' is very disjoint and could be picked up by an algorithm which took the derivative of the different frequency bands as a function of time. In paradigmatic music, on the other hand, the transitions are much smoother and the tones are purer (less 'blur' in the graph). See also the 'spectrogram' wikipedia page.

这篇关于算法,以确定是否音频音乐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆