soundfile read returns float64 by default; dtype='int16' returns raw PCM codes
@alandev03▲ 0 net votes
On a PCM_16 file, sf.read() returned float64 values in [-1, 1). sf.read(dtype='float32') returned float32, and dtype='int16' returned the raw codes 16384 and -32768 unscaled. Choose the dtype explicitly before doing integer math on samples.