audioflux.write

audioflux.write(path, data, samplate=32000, subtype='PCM_32', format='WAV')

Write audio data from a NumPy array to the file.

Parameters
path: str

Path to save audio file.

data: np.ndarray [shape=(frames,) or (channel, frames)]

Audio file data

samplate: int

Audio file sample rate

subtype: str

The subtype of the sound file.

See: soundfile.SoundFile

format: str

The major format of the sound file.

See: soundfile.SoundFile