I am getting this error when trying to open a RIFF file (which as I understand it is a type of WAV) in Python.
Failed to open file file.wav as a WAV due to: file does not start with RIFF id
When I inspect the file with various tools, it leads me to believe that it is a WAV / RIFF file.
$ file file.wav
file.wav: MBWF/RF64 audio, stereo 96000 Hz
$ file -i file.wav
file.wav: audio/x-wav; charset=binary
$ mediainfo file.wav
General
Complete name : file.wav
Format : Wave
Format profile : RF64
File size : 4.10 GiB
Duration : 2h 7mn
Overall bit rate mode : Constant
Overall bit rate : 4 608 Kbps
Audio
Format : PCM
Format settings, Endianness : Little
Format settings, Sign : Signed
Codec ID : 1
Duration : 2h 7mn
Bit rate mode : Constant
Bit rate : 4 608 Kbps
Channel(s) : 2 channels
Sampling rate : 96.0 KHz
Bit depth : 24 bits
Stream size : 4.10 GiB (100%)
RuntimeError: Error opening 'temp.wav': File contains data in an unknown format.
– Airminded