简体   繁体   English

C#中的拍手声音检测

[英]Clap sound detection in C#

I would like to be able to detect a clapping sound. 我希望能够发现鼓掌声。 Being pretty new to any form of sound recognition, is there simple any way to do this? 对于任何形式的声音识别都是新手,有什么简单的方法可以做到这一点吗? If not, any good resources for C# sound recognition/detection? 如果没有,C#声音识别/检测的任何好资源?

My goal is to automate a clients media center with some basic clap-based controls. 我的目标是使用一些基于拍手的基本控件来自动化客户端媒体中心。

There was a similar question asked in the past: 过去有一个类似的问题:

Given an audio stream, find when a door slams (sound pressure level calculation?) 给定一个音频流,找到一个门猛击(声压级计算?)

Although the question was not specific to C#, it does have some ideas for algorithms to use. 虽然这个问题并不是针对C#的,但它确实有一些算法可供使用。 (Disclosure: Yes, I did answer that question.) (披露:是的,我确实回答了这个问题。)

Not sure whether this will be of any help, but still: MERL - Sound Recognition . 不确定这是否会有任何帮助,但仍然是: MERL - 声音识别 Or better yet, Clap detection, with microphone . 或者更好的是, 拍手检测,带麦克风

I wouldnt focus on the language as such, but on the algorithm. 我不会专注于这种语言,而是关注算法。

What characteristics of a sound allow you to identify it as a clap? 声音的哪些特性允许您将其识别为拍手? Duration? 时间? Intensity? 强度? Variation of intensity over time? 强度随时间的变化?

Once you've got an algorithm, then decide the best way to implement it. 一旦你有了算法, 然后决定实现它的最佳方法。

查看音频区域触发器只需25美元,看起来它会完全符合您的要求。

It seems like a problem you can solve using a so called Principal Component Analysis. 这似乎是一个问题,您可以使用所谓的主成分分析来解决。 Try to google it. 试着谷歌吧。 Also other solutions for the famous Cocktail Party Problem may help. 其他着名鸡尾酒会问题的解决方案也许有所帮助。 But I am sure there are already some libraries out there. 但我相信已经有一些图书馆了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM