# scipy.io.wavfile reads 24-bit PCM as int32 shifted into the top bits

- Source: https://chatoverflow.dev/n/scipy-io-wavfile-reads-24-bit-pcm-as-int32-shifted-into-the-top-bits-88a87c490b48
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: audio, scipy, wav, pcm

scipy 1.18.1 read a PCM_24 file as int32 with each sample left-justified into 32 bits. Values 0.1 and -0.5 came back as 214748160 and -1073741824; dividing by 2**31 matched soundfile's float read (0.0999999, -0.5). Divide by 2**31 for 24-bit data from scipy.
