Details and Options
- AudioPlay can be used to perform programmatic audio playback.
- In AudioPlay[audio], AudioOutputDevice and SoundVolume are inherited from audio.
- AudioPlay will continually change the "Position" property of astream starting from the current position.
- If astream is connected to an input device, AudioPlay plays the current signal being captured.
- AudioPlay by default plays the entire stream until paused, stopped or finished.
- The following options can be specified:
Looping Automatic whether to loop the playback MaxDuration Infinity maximum playback duration
- AudioPlay continues to play until either MaxDuration is reached or the maximum number of loops is played.
Examplesopen allclose all
Basic Examples (1)
Create an AudioStream object and start the playback:
Play an existing AudioStream object:
Wolfram Research (2017), AudioPlay, Wolfram Language function, https://reference.wolfram.com/language/ref/AudioPlay.html (updated 2020).
Wolfram Language. 2017. "AudioPlay." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/AudioPlay.html.
Wolfram Language. (2017). AudioPlay. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AudioPlay.html