Function used in sound files:
The MATLAB has numerous other functions which let you read and play sound or audio files. In the audio files, sampled data for each audio channel is stored. There are numerous audio file formats which are used in industry, on various computer platforms. The Audio files with extension .au were developed by the Sun Microsystems, and usually are used with Java and UNIX, while the Windows PCs usually use .wav files which were developed by Microsoft.
The MATLAB has functions wavread which will read a .wav file, wavrecord which will record, wavwrite which will write a sound file and wavplay which will play one. The default frequency for such functions is 11025 Hz.
For .au files, there are functions auread to read and auwrite to write in this format.