Corrupt wav file header

About 10% of my wav files appear to have some corruption in their header information. I can open all my files in audio tool such as Audacity, Windows media play etc However when I try to read certain files using the wavread function I get this error:
---------------------
Error using ==> wavread at 93 Truncated chunk header found - possibly not a WAV file.
Error in ==> wavread at 93 error('wavread:InvalidFile',msg);
-----------------------------
I've looked at their header information and it seems to be ok.
any ideas on how to fix this? Can I read the data without the header?
thanks for any help Shona

Answers (1)

Daniel Shub
Daniel Shub on 10 Dec 2011

0 votes

How did you create the wav file?
I don't think you can read the data in a meaningful manner without the header. You might be able to open it with Audacity and save it again and see if that fixes it.

Asked:

on 9 Dec 2011

Community Treasure Hunt

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

Start Hunting!