Play Audio Action Icon

Play Audio Action

Declaration

<AMPLAYAUDIO FILE="text">

See Also

Speak, CD Player

Description

Plays the audio file specified. Supported audio formats are .WAV, .MP3, .AU and any other media player supported formats. The step will not return until the file has finished playing.

Practical Usage

Used to play an audible alert. Common uses include: alarm clock, server audio notification, school bell system or any other application that requires audio to be played.

Parameters

General Tab

Source
Text, Required
MARKUP: SOURCE="C:\foldername\myfavoritesong.mp3"

Specifies the filename of the the audio file that should be played. The file type can be any type supported by your version of Windows and installed media services. Wildcards may be specified which will cause the files in the folder matching the specified mask to play one after another (as a playlist).

Notes

Standard Error Handling Options
This action also includes the standard "Error Causes" and "On Error" failure handling options/tabs

More on Error Handling Options

Variables and Expressions
All text fields allow the use of expressions by surrounding the expression in percentage signs (example: %MYVARIABLE%, %Left('Text',2)%). To help construct these expressions, a popup expression builder is available in all these fields by pressing F2.
More on variables...

More on expressions...

More on the expression builder...

Example

<AMPLAYAUDIO SOURCE="C:\foldername\mysong.mp3">

<AMPLAYAUDIO SOURCE="C:\myfavoriteband\*.*">