bastibe / python-soundfile

SoundFile is an audio library based on libsndfile, CFFI, and NumPy
BSD 3-Clause "New" or "Revised" License
701 stars 108 forks source link

How to save stereo file? #392

Closed mbledkowski closed 1 year ago

mbledkowski commented 1 year ago

Hello, How can I save a stereo sound (2 elements on 0 axis) to a file using this library? Best regards, Maciej Błędkowski

bastibe commented 1 year ago

Your data needs to be formatted frames x channels. Channels is always the second dimention in soundfile. Transpose your data if needed.