Navigation

Operators and Keywords

Function List:

C++ API

: sound (y)
: sound (y, fs)
: sound (y, fs, nbits)

Play audio data y at sample rate fs to the default audio device.

The audio signal y can be a vector or a two-column array, representing mono or stereo audio, respectively.

If fs is not given, a default sample rate of 8000 samples per second is used.

The optional argument nbits specifies the bit depth to play to the audio device and defaults to 8 bits.

For more control over audio playback, use the audioplayer class.

See also: soundsc, record.

Package: octave