Scilab Function

auwrite - writes .au sound file

Calling Sequence

auwrite(y,aufile)
auwrite(y,Fs,aufile)
auwrite(y,Fs,bits,aufile)
auwrite(y,Fs,bits,method,aufile)

Parameters

Description

Utility function to save .au sound file. auwrite(y,aufile) writes a sound file specified by the string aufile. The data should be arranged with one channel per column. Amplitude values outside the range [-1,+1] are ignored. Supports multi-channel data for 8-bit mu-law, and 8- and 16-bit linear formats.

auwrite(y,Fs,aufile) specifies in Fs the sample rate of the data in Hertz.

auwrite(y,Fs,bits,aufile) selects the number of bits in the encoder. Allowable settings are bits=8 and bits=16. auwrite(y,Fs,bits,method,aufile) allows selection of the encoding method, which can be either 'mu' or 'linear'. Note that mu-law files must be 8-bit. By default, method='mu'.

See Also