wavwritewrites .wav sound fileCalling Sequencewavwrite(y, wavfile)
wavwrite(y, Fs, wavfile)
wavwrite(y, Fs, nbits, wavfile)
Argumentsyreal vector or matrix with entries in [-1,1].wavfilestring (The .wav extension is appended if no extension is
given)
Fsinteger, frequency sampling in Hz. 22500 is the default value.nbitsbit-depth 8, 16, 24, 32 bits. it describes the number of bits of information recorded for each sample.
16 is the default value.
Description
Utility function to save .wav sound file.
wavwrite(y,wavfile) writes a sound file specified by
the string wavfile. The data should be arranged with one channel per
column. Amplitude values outside the range [-1,+1] are ignored.
wavwrite(y,Fs,wavfile) specifies in
Fs the sample rate of the data in Hertz.
ExamplesSee Also
auread
wavread
savewave
analyze
mapsound