MATLAB: How to calculate bit rate of audio signal in MATLAB

bit rate calculation

CompressionMethod: 'Uncompressed'
NumChannels: 2
SampleRate: 44100
TotalSamples: 1264896
Duration: 28.6824
BitsPerSample: 16
audio signal is sampled at
[y,Fs]=wavread('x.wav');
file_read=resample(y,10,22050);
file_open=fopen('file_read','r');
a=roundn(file_read,-3);
byte_size_of_sampled_signal=getByteSize(a);
b=zeros(1,2*length(a));
figure;
plot(a(:,1));
title('input sampled sequence');

Best Answer

bitrate_per_channel = SampleRate * BitsPerSample
multiply by the number of channels if you want to know the bit rate for both channels combined.