Audio Playback

Play audio on the device speaker


The block input accepts an N-by-2 int16 matrix, where N is the number of samples per frame and the columns represent the left and right channels, respectively. The value of N is determined by the number of audio samples per frame.

During simulations, this block does nothing. See Block Produces Zeros or Does Nothing in Simulation (Simulink).

Dialog Box

Audio sampling frequency (Hz)

Specify the audio sampling frequency of the device speaker. The default value is 44100 Hz.

Introduced in R2015a