MATLAB Answers

0

I have a *.wav file. How do I change the bit rate(bits per sample) of it?

Asked by Akhil Jain Choadhry on 13 Sep 2019
Latest activity Answered by Star Strider
on 13 Sep 2019
I know the sampling frequency, bits per sample(bps) of the audio file. How can I change the bit rate?

  0 Comments

Sign in to comment.

1 Answer

Answer by Star Strider
on 13 Sep 2019
 Accepted 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.

  0 Comments

Sign in to comment.