Why do I keep getting errors?

Error using audioread (line 88)
File could not be read due to an unexpected error. Reason: Error in MAT5 file. Bad block structure.
Error in Untitled2 (line 18)
[s,Fs1] = audioread('whitenoise.wav'); % load audio data
[s,Fs1] = audioread('whitenoise.wav'); % load audio data
[imp1,Fs2] = audioread('fftimpz.wav'); % load impulse response data
imp = downsample(imp1,round(Fs2/Fs1)); % downsample the impulse response to the Homer sampling frequency
imp = imp(:,2); % use right channel only (since Homer is mono)
plot((0:length(imp)-1)/Fs1, imp);
grid on;
xlabel('Time(s)');
title('Measured Impulse Response of a big hall');
y1 = conv(imp, s);
soundsc(s,Fs1); % play original Hommer
pause; % press Any Key to play the next sound
soundsc(y1,Fs1); % play Hommer in the big hall

댓글 수: 6

Rik
Rik 2019년 3월 18일
It seems your whitenoise.wav file got damaged somehow. Please atatch these wav files in a zip.
codefanta
codefanta 2019년 3월 18일
I have attached them all below, let me know if there is anything else you need from me.
Rik
Rik 2019년 3월 19일
You attached mat files, not the original wav files. How did you manage to load anything to put in those mat files if you got an error in the audioread function?
So if you want us to be able reproduce your issue in an attempt to solve it, please upload the original wav files all together in one zip file.
Walter Roberson
Walter Roberson 2019년 3월 19일
Which operating system and MATLAB release are you using?
I wonder if the error occurs while trying to import the plugin manager ?
codefanta
codefanta 2019년 3월 20일
Hello Walter, I am using Matlab 18b.
Hello Rik, I have added the Wav files in a zip file
Walter Roberson
Walter Roberson 2019년 3월 20일
Which Linux distribution are you using ?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Audio I/O and Waveform Generation에 대해 자세히 알아보기

태그

질문:

2019년 3월 18일

댓글:

2019년 3월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by