MATLAB Function Reference
  Go to function:
    Search    Help Desk 
sound    See Also

Convert vector into sound

Syntax

Description

sound(y,Fs), sends the signal in vector y (with sample frequency Fs) to the speaker on PC, Macintosh, and most UNIX platforms. Values in y are assumed to be in the range . Values outside that range are clipped. Stereo sound is played on platforms that support it when y is an n-by-2 matrix.

sound(y) plays the sound at the default sample rate or 8192 Hz.

sound(y,Fs,bits) plays the sound using bits bits/sample if possible. Most platforms support bits = 8 or bits = 16.

Remarks

MATLAB supports all Windows-compatible sound devices.

See Also

auread      Read NeXT/SUN (.au) sound file

auwrite     Write NeXT/SUN (.au) sound file

soundsc     Scale data and play as sound

wavread     Read Microsoft WAVE (.wav) sound file

wavwrite    Write Microsoft WAVE (.wav) sound file



[ Previous | Help Desk | Next ]