b = audio_name.play(ʃmessageʅ);
The
Audio.play function launches an audio player to play the audio in an
Audio object. Before calling this function, the Audio object must contain audio data recorded using
Audio.recordInteractive,
Audio.record, or loaded using
Audio.load. If the optional argument
message is provided, the message text is displayed over the audio player.
CSPro can load and play most audio files in any of the following formats: m4a, mp4, mp3, wav, 3gp, flac, ogg, mkv. However, only m4a files (AAC encoded audio in an MPEG-4 container) can be used with the functions
Audio.concat,
Audio.length,
Audio.record, and
Audio.recordInteractive.
The function returns a logical value of 1 (true) if the audio can be played and a logical value of 0 (false) otherwise.