Add source segment

Enterprise only. Add a new source segment to the transcript. Its span must lie within the source media, last between 0.1 and 25 seconds, and not overlap another segment by the same speaker. Bumps the project's `revision`, discards the affected translations in every language target, and marks any target that had already completed `stale`. No audio changes until you regenerate a target.

Path parameters

project_idstringRequired
Identifier of the dubbing project.

Headers

xi-api-keystringOptional

Request

This endpoint expects an object.
textstringRequired
The text of the new segment.
speaker_idstringRequired
Identifier of the segment's speaker.
start_sdoubleRequired
Start time of the segment, in seconds.
end_sdoubleRequired
End time of the segment, in seconds.

Response

Successful Response
segmentobject
The segment in its updated state.
revisioninteger

The project’s source-transcript revision after this edit.

Errors

422
Unprocessable Entity Error