Skip to content

96 kHz 24 bit audio files not supported #4

@audiofeature

Description

@audiofeature

I used wavio.py 0.0.1 for quite a while but just installed wavio-0.0.3 freshly via pip.

In both cases, on an 96 kHz 24 bit audio file I get the following error (0.0.3 in this case).

from wavio import read
Wav = read('000042B1-0005294207.wav')
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/wavio.py", line 164, in read
wav = _wave.open(file)
File "/usr/lib/python2.7/wave.py", line 511, in open
return Wave_read(f)
File "/usr/lib/python2.7/wave.py", line 164, in init
self.initfp(f)
File "/usr/lib/python2.7/wave.py", line 144, in initfp
self._read_fmt_chunk(chunk)
File "/usr/lib/python2.7/wave.py", line 274, in _read_fmt_chunk
raise Error, 'unknown format: %r' % (wFormatTag,)
wave.Error: unknown format: 65534

The linux 'file' command however correctly identifies the file format:

file 000042B1-0005294207.wav
000042B1-0005294207.wav: RIFF (little-endian) data, WAVE audio, stereo 96000 Hz

Is 96 kHz / 24 bit audio format a doable thing?

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