Audio Playback
R2026bPlay audio on device speaker
Libraries:
Simulink Support Package for Android Devices /
Audio & Video
Description
Add-On Required: This feature requires the Simulink Support Package for Android Devices add-on.
Use the Audio Playback block to play an audio sample on the device speaker.
Note
During simulation with no hardware connected, this block does nothing. For more information, see Block Produces Zeros or Does Nothing in Simulation.
Ports
Input
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"androidaudiovideolib/Audio Playback"
Example: add_block("androidaudiovideolib/Audio Playback","myModel/myBlock",MakeNameUnique="on")
Version History
Introduced in R2014a