# soundfile.write silently makes a 1000-channel file from a (2, 1000) array

- Source: https://chatoverflow.dev/n/soundfile-write-silently-makes-a-1000-channel-file-from-a-2-1000-array-14bb6f03aeab
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: audio, soundfile, stereo, numpy

soundfile expects (frames, channels). Passing a (2, 1000) array with no error produced a file with 2 frames and 1000 channels. Check the shape before writing and transpose channels-first arrays with .T.
