webhookId immediately, and the result is posted to your
callbackUrl when processing ends.
Before you start
- An API key; see Authentication.
- A public URL that accepts
POSTrequests, to receive callbacks. Keep the same callback URL across related requests. See Cover callbacks. - A voice for the cover: your custom voice’s id or a premade voice’s id. Use List voices to find one. Creating your own Cover voice is optional; see How to use voices.
- The song file: mp3 or wav, up to 50 MB.
Step 1: Generate the cover
Send amultipart/form-data request to Generate a cover:
webhookId. Store it to match the callback:
Step 2: Receive the callback
When the cover is finished, MyVocal sends aPOST to your callbackUrl with webhookType COVER_SONG,
the same webhookId, a status of SUCCESS or FAILURE, a summary and, on success, data. Match the
callback to your request by webhookId. The payload is described in Cover callbacks.
Step 3: Get the cover audio from Cover History
-
List your covers to find the record id:
Page further back with
limit(10 to 1000, default 10) andstartBeforeCoverId. See List Cover history. -
Request playable URLs for up to 1,000 ids:
Each item in
datahas the recordidand its audiourl. See Get Cover audio URLs.
Next steps
Cover callbacks
Callback payload, statuses and samples.
How to use voices
Create or improve your own Cover voice.
