loadAudioClip
Use the loadAudioClip command in the audioClip namespace to schedule an audio clip for playback. The command returns immediately, indicating whether the audio clip was successfully scheduled or not.
The player can handle multiple audio clips and implements a simple priority system to determine playback order:
A High priority audio clip can interrupt another high priority audio clip if the latter has played for more then 10 seconds. A high priority audio clip can interrupt a low priority audio clip at any time. A low priority audio clip can interrupt a low priority audio clip at any time.
Request
- Base URLhttps://api.ws.sonos.com/control/api/v1
- URLhttps://api.ws.sonos.com/control/api/v1/players/{playerId}/audioClip
- AuthOAuth 2 and HTTP bearer and API key in header X-Sonos-Api-KeyAuthorization code: https://api.sonos.com/login/v3/oauthToken URL: https://api.sonos.com/login/v3/oauth/access scopes: playback-control-all
Request body
Response
Returns an audioClip object, which list characteristics, including the id, of the enqueued audio clip.
Changes
No recorded changes to this operation across all 1 revision of this API.