asra_save_wavefile()

Save the captured audio sample as a WAV file.

Synopsis:

#include "asr/asra.h"
 
int asra_save_wavefile(const char *fname)

Arguments:

fname

The name to use for the WAV file.

Library:

libasr

Description:

The asra_save_wavefile() copies the captured audio sample as a WAV file with the specified filename.

Returns:

0 Success.

-1 The file couldn't be opened for writing.