C#中的拍手声音检测

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/980673/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-06 04:47:17  来源:igfitidea点击:

Clap sound detection in C#

c#audiosound-recognition

提问by jamesrom

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.

我的目标是使用一些基于拍手的基本控件来自动化客户媒体中心。

采纳答案by coobird

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. (Disclosure: Yes, I did answer that question.)

虽然这个问题不是特定于 C# 的,但它确实有一些算法可以使用的想法。(披露:是的,我确实回答了这个问题。)

回答by Anton Gogolev

Not sure whether this will be of any help, but still: MERL - Sound Recognition. Or better yet, Clap detection, with microphone.

不确定这是否有任何帮助,但仍然:MERL - Sound Recognition。或者更好的是,使用麦克风进行拍手检测

回答by Anton Gogolev

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.

这似乎是一个可以使用所谓的主成分分析来解决的问题。尝试谷歌它。著名的鸡尾酒会问题的其他解决方案也可能有所帮助。但我相信已经有一些图书馆了。

回答by PaulJWilliams

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, thendecide the best way to implement it.

一旦你有了一个算法,然后决定实现它的最佳方式。

回答by Raj Rao

Check out Audio Zone Triggerfor $25 it looks like it will do exactly what you want.

以 25 美元的价格查看Audio Zone Trigger,它看起来完全符合您的要求。