PALATINELABSDocsENES

Pages

↑↓ to moveEnter to openEsc to close

Play sound package guide

Play a beep or local audio file on Windows.

Version 2.17.1. Installed versions can differ. Examples are illustrative and not tested.

Jump to actions

Packages

Prerequisites

The next step waits until the sound ends. The Device needs speakers or headphones. The package writes no file and gives no output.

WAV files need no codec. MP3 and other formats need a Windows codec; a file that plays in another app may still fail here. A stopped Run stops MP3 playback, but not WAV playback.

Prepare a short test file samples/notice.wav for the file example. The package does not control volume, pick speakers, set the beep pitch or repeat audio.

Actions

Play beep (playSoundBeep)

Plays the Windows beep. No input changes its pitch or length.

Inputs

No inputs.

Outputs

No output variables.

Example

Add Play beep after the final test step.

Expected result

The Device beeps once if its sound output supports it, then the next step runs.

Back to actions

Play media file (playSoundMediaFile)

Plays an existing local audio file and waits for it to end.

Inputs

InputEditor fieldType and runtime defaultUse
filePathSelect a file to play:String⁠; ""Required. Path to an existing WAV or MP3 file, for example samples/notice.wav⁠. A relative path starts in the Run folder.

Outputs

No output variables.

Example

Prepare a short WAV file at samples/notice.wav. Set Select a file to play:=samples/notice.wav.

Expected result

The audio plays once, then the next step starts. A blank or missing path fails. A damaged WAV file or a format without a Windows codec can fail.

Back to actions