---
title: "playSound"
canonical: "https://help.vicon.com/space/Shogun112/31228198/playSound"
format: markdown
---
# Description

Plays the default system beep, or a .wav file if one is specified.

Note that the sound plays asynchronously. i.e. script execution continues as the sound plays.

## Functional area

System

# Command syntax

## Syntax

|  |
| --- |
| `playSound [-file string]` |

### Arguments

None

### Flags

> Macro (scroll-tablelayout)

| **Name** | **Flag arguments** | **Argument type** | **Exclusive to** | **Comments** |
| --- | --- | --- | --- | --- |
| `file` | 1 | string | — | Plays the specified .wav file, instead of the default system beep. |

## Return value

void

## Examples

```plaintext
// Sound the system beep to indicate the end of a script
// ... long script ...
playSound;
```