Audio

An audio track from Wix Media, carried at runtime as an object with the URL to play along with its metadata. Use it for a field that plays sound the Wix user picks from the Media Manager, such as a background track or a podcast episode.

Component

In your component code, import the Audio type from @wix/editor-react-types:

Copy

An Audio object has the following properties:

urlstringRequired

The fully resolved audio URL. Play this.


artiststring

The audio artist name.


titlestring

The audio track title.


durationnumber

The audio duration in seconds.


namestring

The audio file name.


audioAudioSource[]

All available sources at different quality levels and formats. Each is one file at a specific quality and format.

Usage

Your code either consumes a value of type Audio or produces one:

Manifest

In your manifest, declare the field with the audio dataType:

Copy

Declaration

Declare an audio field in one of these ways, depending on where the value comes from:

Last updated: 2 November 2026

Did this help?