LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is a real-time sound spectrogram possible in LabView

I developed a VI to play and analyze a .wav file. I would like to see a frequency time spectrogram displayed in real-time as I hear the sound (similar to what is provided in GoldWave). I put together my VI from various examples (it is attached). First I hear the sound and see a time domain graph. But several minutes or more go by before I will see the spectrum show up. Is there anyway to see the spectrum appear as the sound is playing?

Thanks,
Rick
Download All
Message 1 of 13
(8,458 Views)
Try something like shown in the attached modified version of your VI. Is this what you were looking for?
0 Kudos
Message 2 of 13
(8,458 Views)
Hi Boltzmann,,,,,
 
I'm badly stuck in one of my application development...
Right now my requirement is to compare one .wav file with another .wav file present in my Library.....
And if the comparison is correct it should take a decision of Pass or Fail...
Which help me to take decisions for other activities....
So please provide me a sample VI which helps in Comparing two .wav files....
 
You can reach me at my personal mail
 
Thanks in Advance.
 
Cheers,
Suneel.V
0 Kudos
Message 3 of 13
(8,100 Views)

Hi Suneel.V,

I was reading your question and I have a few suggestions for you. You first have to bring in the .wav files into the LabVIEW environment. Once the .wav files are there, you could use a case structure or the Select VI to compare the .wav files. You can then put the extra code that you want implemented in the case structure (which would be implemented depending if the comparison turns out to be true or false). There are some great examples of using the case structure in the NI Example Finder. I hope this helps!

Carla

National Instruments
Applications Engineer
0 Kudos
Message 4 of 13
(8,073 Views)

Hi Boltz,,,,

 

Thanks for the reply....

Could you be more specific in telling me how to bring the .wav files to Labview environment.,...

For my application i am just taking the files from the path

and then using the sound2 library present in the Labview examples

and doing the manipulation....

I am looking for a proper speech recogntion engine....

WHich should have a proper accessing...

I've gone thru the example (203644.zip)

but that didnt helped me much....

And to be frank my applcation is not that complicated....

Here's a briefing about my application

One .wav file is a library file (already stored in a folder)
Second .wav file is recorded as .wav from the Microphone for a specific time...

And finally these two need to be compared.....
One thought of comaprison i thought is to change this .wav to array of points
and then compare point to point.....
So please let me know if u have any idea or  any VI worked on any such kind of VI....

Cheers,

Suneel.V

0 Kudos
Message 5 of 13
(8,033 Views)

Hi Suneel.V,

There is a great NI Developer Zone example that converts a .wav file into waveform data that can be used in LabVIEW. You can input the .wav file a few different ways but I think you might have to convert this data into a waveform in order for you to compare the two .wav files. Once the .wav files are waveforms, then you can use the selector VI or the case structure to see if they are equal or not. Please take a look at the NI Developer Zone example and let us know if you have any more questions.

 

Carla

National Instruments
Applications Engineer
0 Kudos
Message 6 of 13
(8,012 Views)
What do you mean by compare?? Just a simple subtraction of the two waveforms, frequency analysis, amplitude,...??? What is the chance that the timing of the sounds will be identical? Will you need to shift the signals to align the sounds.??
 
I think this will actually be a fairly complex application. You mention that you need a proper speech recognition engine. Possibly the Sound and Vibration toolkit will help.
 
 
0 Kudos
Message 7 of 13
(7,999 Views)

You may find the short time FFT, the intensity plots, waterfall plots of the sound and vibration toolset to be useful. 

http://zone.ni.com/devzone/cda/tut/p/id/6685

You might also consider the advanced signal processing library and its wavelets. 

Preston

Preston Johnson
Solutions Manager, Industrial IoT: Condition Monitoring and Predictive Analytics
cbt
512 431 2371
preston.johnson@cbtechinc
0 Kudos
Message 8 of 13
(7,987 Views)

please guide me how to record speech signal in labview

0 Kudos
Message 9 of 13
(5,923 Views)

please guide me how to record speech signal in labview

0 Kudos
Message 10 of 13
(5,912 Views)