how to calculate bit rate of audio signal in MATLAB?

8 vues (au cours des 30 derniers jours)
PRATIBHA WARKADE
PRATIBHA WARKADE le 20 Août 2015
Commenté : Walter Roberson le 16 Oct 2023
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');

Réponse acceptée

Walter Roberson
Walter Roberson le 20 Août 2015
bitrate_per_channel = SampleRate * BitsPerSample
multiply by the number of channels if you want to know the bit rate for both channels combined.

Plus de réponses (1)

Orlando
Orlando le 16 Oct 2023
[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');
  2 commentaires
Walter Roberson
Walter Roberson le 16 Oct 2023
Could you point out which part of this code calculates the bit rate?
Walter Roberson
Walter Roberson le 16 Oct 2023
Could you clarify why you choose to open a file named file_read for reading, even though you never read from the file and you do not close the file either?

Connectez-vous pour commenter.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by