开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜