Ir para a navegação

Cut a face track for a segment

Cuts frames [startFrame, endFrame) at fps from a matched speaker’s face track and returns a bounding-boxes file for that segment. Pass the url as the segment’s active_speaker_detection.bounding_boxes_url so the segment lipsyncs that speaker. url is null when the face is on none of those frames; leave that segment unlipsynced or use auto-detect. 60 requests per minute.

Autenticação

x-api-keystring
Autenticação de chave de API via cabeçalho

Parâmetros de caminho

idstringObrigatório
Transcription job id.

Solicitação

This endpoint expects an object.
revisionstringObrigatório
The revision of the transcription job.
speakerIdstringObrigatório
Id of a matched speaker.
startFrameintegerObrigatório
First frame of the segment.
endFrameintegerObrigatório
Frame after the last frame of the segment. Must be greater than startFrame.
fpsdoubleObrigatório
Frame rate of your source frame grid.
skipobjectOpcional
Frames inside the segment that its footage no longer holds, for example because a cut removed them. Must lie strictly inside the segment.

Resposta

Face track slice created
urlstringOpcional

URL of a JSON file with a bounding_boxes array, one entry per frame of the segment. Pass it as the segment’s active_speaker_detection.bounding_boxes_url. Null when the face is on none of the segment’s frames.

Erros

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error
429
Speaker Analysis Too Many Requests Error
500
Internal Server Error