开发者

Capture Sound from Mic/Headphone and trigger action at perticular frequency

开发者 https://www.devze.com 2022-12-24 17:01 出处:网络
I am using .NET 3.5. I need to Capture Sound from Mic/Headphone and trigger action at particular (not exact)frequency (Need to perform some action when player hits ball with stick 开发者_开发问答whil

I am using .NET 3.5.

I need to Capture Sound from Mic/Headphone and trigger action at particular (not exact) frequency (Need to perform some action when player hits ball with stick 开发者_开发问答while playing golf).

So,

1. How to capture sound from Mic/Headphone using .NET 3.5?

2. Trigger action at particular (not exact) frequency?

Any ideas?


For (2) I suggest the Goertzel algorithm, which is very simple to implement and will allow you to detect energy in a narrow range of frequencies.

0

精彩评论

暂无评论...
验证码 换一张
取 消