Main Content
play
Play audio from audio device connected to Raspberry Pi
Add-On Required: This feature requires the MATLAB Support Package for Raspberry Pi Hardware add-on.
Syntax
Description
play(
plays audio from the audio output device connected to the Raspberry Pi® hardware. This function uses the Advanced Linux Sound Architecture
(ALSA) driver framework to read audio data.audioPlayObj
,audio
)
Simulating this function results in an error. The function is supported only for deployment.
Note
To play audio data with more than two channels, you must have Audio Toolbox™ license.
Input Arguments
Examples
Limitations
MATLAB Connected I/O on the player
function is not
supported.