Skip to content

WavFile reader fails when data chunk is not at byte 36 #12

@KJ-Waller

Description

@KJ-Waller

Firstly, thanks for making this library. I'm finding it very useful for a project I'm working on.

I'm having issues reading a couple of wav files, and am getting the error 'invalid WAV file (expected 'data' at byte 36)' when running the following line:

(int sampleRate, double[] audio) = WavFile.ReadMono(audioFile_path);

The audioFile_path is a valid path to a wav file, which worked fine before the repo was recently updated to use this custom wave file reader. The wav files I encountered this error with were from "The Ryerson Audio-Visual Database of Emotional Speech and Song" which you can find here: https://zenodo.org/record/1188976

I get the same error for any of the wav files of this database I've tried. For other datasets I'm using, I don't get this error. Is there something I'm doing incorrect or is this something you could possibly fix?

Regards,
Kevin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions