On September 25th, 2024, we released v2 of the Apps SDK. To learn what’s new and how to upgrade, see Migration FAQ and Migration guide.

addAudioTrack

API reference for the addAudioTrack method.
This version of the API is a preview. Preview APIs are unstable and may change without warning. You can't release public apps using this API until it's stable.

Adds an audio track to the user's design.

Parameters

audioTrackAudioTrackRequired

The audio track to add to the user's design.

refAudioRefRequired

A unique identifier that points to an audio asset in Canva's backend.

Returns

Promise<void>