MATLAB: I have a *.wav file. How to change the bit rate(bits per sample) of it

audio filebit rate

I know the sampling frequency, bits per sample(bps) of the audio file. How can I change the bit rate?

Best Answer

The only way I am aware of to change the bit rate is to read the audio file using audioread, then write it with audiowrite using different values for 'BitsPerSample' and 'BitRate'. See the documentation on the relevant functions, and Read and Write Audio Files for details. If you also want to change the sampling frequency, use the resample function before writing the file.