VB.NET/C#-麦克风输入频率(db,hz) [英] VB.NET / C# - Microphone input frequency(db, hz)

查看:233
本文介绍了VB.NET/C#-麦克风输入频率(db,hz)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在寻找一种方法(代码示例),使其几乎可以实时获取麦克风输入频率(赫兹)(可能是计时器?)并将其显示在label.text中.可以在VB.NET或C#中.
现在我已经通过wavein获得了声音阵列,但是我不知道如何通过fft计算频率?
像这样的声音阵列{120,121,132,114,186,220,112,113,121 ..},
我获得频率后,如何确定声源是男人还是女人?
功能示例:
有人用麦克风说话,然后确定标签显示男人"或女人"在说的声音频率.
在此先感谢!

Hi,
I am looking for a way(code example) to be able to get the microphone input frequency(hertz) almost in real time(timer maybe?) and show it in a label.text. Can be in VB.NET or C#.
Now I have get the sound array by wavein ,but i don''t know how to calculate the frequency by fft?
The sound array like this {120,121,132,114,186,220,112,113,121..},
After i get the frequency how to determine the sound source is a man or woman?
Functional exemple:
Somebody say something in the microphone,and determine the sound frequency the lable show "man" or "women" is saying.
Thanks in advance!

推荐答案

gmajkun,

看一下这篇文章.我认为它将解决您的问题
在C#中具有频谱图的声激活记录器 [
gmajkun,

Have a look at this article. i think it will solve your problem
Sound Activated Recorder with Spectrogram in C#[^]

Enjoy programming
-Satya182


这篇关于VB.NET/C#-麦克风输入频率(db,hz)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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