LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

play audio samples in different rates

I need to play samples from differents rate, I'm working about speech and most of the time, the rate of the file is 16000Hz, the sound VI from National instrument don't allow a rate different from 8000, 11025, 22050 and 44100...
Maybe, It could be possible to change the DLL "lvsound.dll" include by National instrument but I haven't the source code.
I also have the same problem for recording speech.
Thanks for your help
0 Kudos
Message 1 of 4
(2,982 Views)
Under windows 98 or 2000, you can do the following to play the rates not supported by the NI lvsound.dll. Use activX container, select Windows Media Player (v 6.4 and above). Pass the complete path of the wavefile you want to play to the property node and enable the play action. Oh, you can not only play sound files but also media files supported by the WMP. The NI's write to sound vi can be modified to write wave files with any rates.

I haven't tried the recording side so I don't know it works or not.

Hope this helps you.

Joe
Roush Industries, Inc
0 Kudos
Message 2 of 4
(2,982 Views)
Thank you for your answer but I'm not sur I will be able to play samples of a wave file and not the whole file.
0 Kudos
Message 3 of 4
(2,982 Views)
Well, the sample can be written to a temporary file and pass that file path. After playing it the file can be deleted. If the sample is not too large (several MBs) there will be no noticable difference in speed.

Joe
0 Kudos
Message 4 of 4
(2,982 Views)