MATLAB: Do I receive an ” Incorrect chunk size information in wav file ” error when trying to read a file using WAVREAD

chunkerrorfileinincorrectinformationlengthMATLABsize;toolboxwavwaveletwavread

Why do I receive an " Incorrect chunk size information in wav file " error when trying to read a file using WAVREAD?
I am trying to read a .wav file using WAVREAD:
wavread('output1c')
I receive the following error message:
??? Error using ==> wavread
Incorrect chunk size information in WAV file.
What is the reason for this error? Is it possible to recover my .wav file?

Best Answer

A .wav file consists of two parts: A header that holds certain information (chunk size being one of them) about the file, and the body that holds the actual content as data chunks.
The above error occurs when the data in the data chunk is different in length than what is specified by the chunk size in the header. This usually happens when a .wav file is corrupted.
Sometimes if the .wav file is corrupted, the actual data chunks may not have any information, thus essentially having a chunk size of zero. This would be different from the chunk size specified in the header, resulting in an incorrect chunk size error message.