This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

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