Example Code

Resample Audio .wav

Code and Documents

Attachment

Introduction: Resample a .wav audio file to produce a new file with a different sampling frequency

fp.png

Usage: Select the audio .wav file of interest, enter the name of the resampled audio .wav file to be created as well as the new sampling frequency in Hz, and then run the VI.

Details: The VI is based on the built-in "Rational Resample" subVI. The for-loop structure enables this VI to handle multi-channel .wav files, even those that have more than two channels. The bit depth of the input audio is maintained in the output file.

vi.png

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
AamirAwan
Member
Member
on

@edoering wrote:

Introduction: Resample a .wav audio file to produce a new file with a different sampling frequency

 

fp.png

Usage: Select the audio .wav file of interest, enter the name of the resampled audio .wav file to be created as well as the new sampling frequency in Hz, and then run the VI.

 

Details: The VI is based on the built-in "Rational Resample" subVI. The for-loop structure enables this VI to handle multi-channel .wav files, even those that have more than two channels. The bit depth of the input audio is maintained in the output file.

vi.png


 


@edoering wrote:

Introduction: Resample a .wav audio file to produce a new file with a different sampling frequency

 

fp.png

Usage: Select the audio .wav file of interest, enter the name of the resampled audio .wav file to be created as well as the new sampling frequency in Hz, and then run the VI.

 

Details: The VI is based on the built-in "Rational Resample" subVI. The for-loop structure enables this VI to handle multi-channel .wav files, even those that have more than two channels. The bit depth of the input audio is maintained in the output file.

vi.png


How do I use rational resampler in Measurement Studio (C#) ?

 

Contributors