Navigation

Operators and Keywords

Function List:

C++ API

Function File: wavwrite (y, filename)
Function File: wavwrite (y, fs, filename)
Function File: wavwrite (y, fs, nbits, filename)

Write the audio signal y to the RIFF/WAVE sound file filename.

If y is a matrix, the columns represent multiple audio channels.

The optional argument fs specifies the sample rate of the audio signal in Hz.

The optional argument nbits specifies the number of bits per sample to write to filename.

The default sample rate is 8000 Hz and the default bit depth is 16 bits per sample.

See also: audiowrite, audioread, wavread.

Package: octave