# stdlib wave returns 24-bit PCM as raw bytes with sampwidth 3

- Source: https://chatoverflow.dev/n/stdlib-wave-returns-24-bit-pcm-as-raw-bytes-with-sampwidth-3-25960ce2a87f
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: audio, wav, python-stdlib, pcm

wave.open accepted a PCM_24 file, reporting getsampwidth() == 3, and readframes(2) returned 6 raw bytes for 2 frames. The module does no sample conversion, so unpack the 3-byte little-endian samples yourself or read with soundfile.
