Skip to navigation

Get a dialogue edit job

Returns the job status and, once it completed, the preview audio url, the retimed transcript and the edited regions. COMPLETED, COMPLETED_PARTIAL and FAILED are terminal; error.code says why a job failed.

Authentication

x-api-keystring
API Key authentication via header

Path parameters

idstringRequired
Dialogue edit job id.

Response

Dialogue edit job retrieved successfully
idstring

Job id. Poll GET /v2/dialogue-edits/{id} with it.

statusenum

Job status. COMPLETED, COMPLETED_PARTIAL and FAILED are terminal. COMPLETED_PARTIAL means the preview is playable but shipped without something that was requested; treat it as completed.

Allowed values:
sourceVideoUrlstring
The source video the job was created from.
sourceStartMsinteger
Start of the edited window, in source milliseconds.
editslist of objects
The edits that were applied, exactly as submitted.
segmentLipsyncEnabledboolean

Whether the preview was cut for per-region lipsync (true) or for re-lipsyncing the whole window (false). Decided when the job is created and fixed for its lifetime. For jobs created with an API key, the rollout is evaluated against the organization's members.

sectionExpansionEnabledboolean

Whether the preview was made under the section-expansion policy. Decided when the job is created and fixed for its lifetime. For jobs created with an API key, the rollout is evaluated against the organization's members.

createdAtdatetime
When the job was created.
sourceEndMsintegerOptional
End of the edited window, in source milliseconds. Null when the job runs to the end of the source.
previewAudioUrlstringOptional

Hosted WAV of the edited audio for the whole window: the original recording with only the edited spans re-synthesized. Null until the job completes.

previewAssetIdstringOptional

Asset id of the registered preview after completion, when available. Null or absent before completion or for an unregistered preview. To lipsync the edit, pass the job id as dialogueEdit: { id } on POST /v2/generate.

previewDurationMsintegerOptional
Length of the preview audio in milliseconds. Differs from the window length by however much the edits grew or shrank it. Null until the job completes.
sourceTranscriptobjectOptional
The transcript the edits were made against, exactly as submitted. Returned in every status.
resultTranscriptobjectOptional
The transcript as it reads after the edits, with every word timed against the preview audio. Null until the job completes.
resultSlotslist of objectsOptional

The edited regions in order, each located on the preview timeline (outputStartMs, outputDurationMs) and in the source video (sourceStartMs, sourceDurationMs). Everything between two slots is untouched source. Null until the job completes.

voiceIdstringOptional

Opaque id of the voice cloned from the source and used for synthesis. Pass it as voiceId on the next dialogue-edit job of the same source to skip cloning. Null until the voice exists.

errorobjectOptional
Why the job failed. Null unless status is FAILED.
startedAtdatetimeOptional
When the job started processing. Null until it starts.
finishedAtdatetimeOptional
When the job reached a terminal status. Null until it finishes.

Errors

401
Unauthorized Error
404
Not Found Error
500
Internal Server Error