How to read Audio File into Vector?

Hello, I have to read a Audio File (.wav) into a vector.
I know how to plot it:
info = audioinfo(‘sound.wav’);
[y, Fs] = audioread(‘sound.wav’);

t = 0:1/Fs:info.Duration;
t = t(1:end-1);

plot(t,y);
xlabel(‘Time’);
ylabel(‘Audio Signal’);
But this Sript does not read the Audio into a Vector.
I also tried to read every single Sample, but this is to complex and I get error after error. Is there a simple way to do this?Hello, I have to read a Audio File (.wav) into a vector.
I know how to plot it:
info = audioinfo(‘sound.wav’);
[y, Fs] = audioread(‘sound.wav’);

t = 0:1/Fs:info.Duration;
t = t(1:end-1);

plot(t,y);
xlabel(‘Time’);
ylabel(‘Audio Signal’);
But this Sript does not read the Audio into a Vector.
I also tried to read every single Sample, but this is to complex and I get error after error. Is there a simple way to do this? Hello, I have to read a Audio File (.wav) into a vector.
I know how to plot it:
info = audioinfo(‘sound.wav’);
[y, Fs] = audioread(‘sound.wav’);

t = 0:1/Fs:info.Duration;
t = t(1:end-1);

plot(t,y);
xlabel(‘Time’);
ylabel(‘Audio Signal’);
But this Sript does not read the Audio into a Vector.
I also tried to read every single Sample, but this is to complex and I get error after error. Is there a simple way to do this? vector, audio, sound MATLAB Answers — New Questions

​

Leave a Reply

Your email address will not be published. Required fields are marked *