Change the words of a sung recording
doseedo_edit_lyricsLYRIC EDIT / VOCAL INPAINT: send a sung recording and its words as they should be, and get the recording back with the changed words sung in the SAME singer's voice on the same melody — punched in: every word left alone plays as recorded (bit-exact), only the changed words (with a word of context) are sung again and spliced in. A whole song works too: its vocal is separated, edited and mixed back into the song (vocal_only: true skips that for a vocal on its own). Best with heard — the recording's words with their times, as you heard them (Whisper): send EVERY heard line in lyrics, the ones to change in their new words, and each line is laid on its own phrase, changed word by word. Without it the server hears the words itself and matches your lines to its phrases. Async: job_id → doseedo_wait_task (~60–180 s) → takes[{url}] as long as the recording (pre-signed: curl -OJ, no auth header, 24 h); output.lyric_edit says what was heard, what was sung again where (splice), and the credits it settled. Cancel: a render that has not reached the GPU yet is stopped and its credits refunded; one already rendering finishes on the GPU (its credits are spent), the job ends as canceled and the output is discarded.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"lyrics": "<lyrics>",
"duration_seconds": "<duration_seconds>"
},
"name": "doseedo_edit_lyrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional: a name for this job's files, e.g. "rainy-loop-3". Every file it returns downloads as <name>_<part>.<ext> (rainy-loop-3_Celesta.wav, rainy-loop-3_rough-mix.wav; one take: rainy-loop-3.wav), so the user can find them. Give each job its own name (a second take: "rainy-loop-3b"). Default: doseedo-<last 6 characters of the job id>. | |
| seed | No | Optional random seed for reproducibility. | |
| heard | No | The recording's words as heard (e.g. Whisper word timestamps), so the edit lands exactly where they are sung: {text: the heard lines joined by "\n", words: [{word, start, end}] in seconds of the audio sent}. A line of `text` is a phrase; `lyrics` then sends one line per phrase. | |
| notes | No | The new words placed NOTE BY NOTE, as an editor shows a vocal: the recording's melody as notes (e.g. the transcribe job's, instrument "voice") in seconds of the audio sent, each note to sing again carrying its `lyric` — "glo-" (more of the word follows), "a", a whole word, "_" (hold the syllable before) or "" (sing nothing there). A note without `lyric` plays as recorded. Only the runs of notes with a lyric are sung again — those syllables on those notes, exactly — and spliced in; `lyrics` is then just the words they sing. | |
| lyrics | Yes | REQUIRED. The words as they should be sung, a line per phrase in the recording's order. With `heard`: every heard line, one each, the lines to change in their new words (a line left as heard is not sung again). | |
| audio_key | No | R2 ingest key of an uploaded audio file (from doseedo_get_upload_url / POST /api/upload/r2/ingest-url; starts with "ingest/"). Provide this or audio_url. | |
| audio_url | No | https URL of the audio, as an alternative to audio_key: a doseedo result URL exactly as a job returned it (a stem, a take, a bounce), or any public URL. The gateway fetches it (≤256 MB) into your account's ingest storage before the job starts. Pass audio_key OR audio_url. | |
| vocal_only | No | true = the recording is a vocal on its own: never separated (a DAW's vocal track). Default: the server checks — a song's vocal is separated, edited and mixed back. | |
| vocal_gender | No | The singer's voice, a hint for the vocal model (default: heard from the recording). | |
| idempotency_key | No | Optional. Any unique string for THIS request (e.g. a UUID). Re-sending the same call with the same key after a timeout returns the same job instead of starting a second one. | |
| duration_seconds | Yes | REQUIRED. The recording's length in seconds (0.5–600). |