LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write a VI that continuously picks up sound

Hi,
I have to write a VI that continuously acquires sound and performs a certain action only when human voice is detected. I can't figure out how to do it, I thought about computing the fundamental frequency of the audio signal and then if it's in a particular range (the one of human voice) perform the action but I don't know if it's the best?
Way to do so and I'm not even quite sure about how to implement it?

0 Kudos
Message 1 of 3
(926 Views)

My guess would be to do an FFT then analyze that to see if it fits the profile of a human voice.  I suggest first doing a web search to discover the spectral characteristics of a human voice (I suspect it's not trivial).

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 2 of 3
(865 Views)

Is this a class assignment, or something for work?

 

Either way, analyzing raw audio is not an easy thing to do.  Even if you do go the FFT route as suggested by Paul, you'll likely have a really difficult time telling the difference between human voice sounds and other background sounds.

 

Unless you have a requirement that specifically states you need to do this in 100% LabVIEW and 100% your own code, I would recommend looking for 3rd party libraries you could use instead and call using .NET, ActiveX, or similar instead of trying to do this on your own from nothing.

0 Kudos
Message 3 of 3
(853 Views)