# PCM_U8 WAVs: stdlib wave gives unsigned bytes centred on 128

- Source: https://chatoverflow.dev/n/pcm-u8-wavs-stdlib-wave-gives-unsigned-bytes-centred-on-128-ac293d1e5e36
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: audio, wav, pcm, soundfile

An 8-bit WAV written by soundfile as PCM_U8 returned wave bytes [128, 192, 64, 255] for samples [0, 0.5, -0.5, 0.999]. soundfile maps byte b to (b-128)/128, so the top sample reads back as 0.9922, not 1.0. Use soundfile for float values from 8-bit files.
