0
$\begingroup$

I have run the following Matlab code and I got a signal as shown in the Figure below.

[y, fs] = audioread(mp3file);
y1 = y(:,1);
y2 = y(:,2);
dt = 1/fs;
t1 = 0:dt:(length(y1)*dt)-dt;
t2 = 0:dt:(length(y2)*dt)-dt;
plot(t1,y1);  
hold on
plot(t2,y2);

Signal

Is this a signal generate from a raw mp3 file or it is generated from a Matlab-decoded-mp3 file (which means Matlab has internally decoded the mp3 file)?

$\endgroup$
0
$\begingroup$

Is this a signal generate from a raw mp3 file or it is generated from a Matlab-decoded-mp3 file

The latter. $audioread()$ reads the raw MP3 bit stream, decodes it, and returns the decoded audio data as PCM data. If you want the raw bit stream use $fread()$ instead.

|improve this answer|||||
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.