Martin McBride, 2021-10-03
Tags python open source github pysound soundfile
Categories pysound pysound reference

Pysound soundfile module

The Pysound soundfile module stores a buffer as an uncompressed WAV file.

A future version will support reading WAV files, and may support other formats.

save

Saves a sound buffer as a WAV file.

save(params, filename, source)
Parameter Type Description
params BufferParams Length and sample rate of output sound
filename String File path of sound file to be created
source Sound buffer Buffer containing sound to be saved

Save the data in teh sound buffer as a WAV file. params specifies the sample rate.


Join me on substack to keep up to date with this blog