Passer à la 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.

Authentification

x-api-keystring
Authentification par clé API via en-tête

Paramètres de chemin

idstringRequis
Dialogue edit job id.

Réponse

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.

Valeurs autorisées:
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.
sourceEndMsintegerOptionnel
End of the edited window, in source milliseconds. Null when the job runs to the end of the source.
previewAudioUrlstringOptionnel

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.

previewAssetIdstringOptionnel

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.

previewDurationMsintegerOptionnel
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.
sourceTranscriptobjectOptionnel
The transcript the edits were made against, exactly as submitted. Returned in every status.
resultTranscriptobjectOptionnel
The transcript as it reads after the edits, with every word timed against the preview audio. Null until the job completes.
resultSlotslist of objectsOptionnel

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.

voiceIdstringOptionnel

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.

errorobjectOptionnel
Why the job failed. Null unless status is FAILED.
startedAtdatetimeOptionnel
When the job started processing. Null until it starts.
finishedAtdatetimeOptionnel
When the job reached a terminal status. Null until it finishes.

Erreurs

401
Unauthorized Error
404
Not Found Error
500
Internal Server Error