Skip to main content
POST
Cut clip ranges by transcript word indices

Authorizations

Authorization
string
header
required

API key obtained from your Tella account settings

Path Parameters

id
string
required

Video identifier

Example:

"vid_abc123def456"

clipId
string
required

Clip identifier

Example:

"cl_xyz789ghi012"

Body

application/json

Cut one or more ranges from the clip by referencing word indices in the transcript. Indices are stable across cuts (already-cut words are simply absent). The server resolves each range to exact word times and merges the resulting cuts.

wordRanges
object[]
required

Word ranges to cut. Each range is cut as deleting those words in the editor's script panel cuts them: from its first word to its last, reaching into the pauses on either side up to 50 ms from the neighbouring words. Then each edge moves up to 200 ms to where the voice track goes quiet: out of a kept word's sound, and back past a scrap of a cut word, breath or click next to it. A sound further away is left and reported in seams.

Minimum array length: 1

Response

OK

The updated clip, and the joins left to check

clip
object
required

A section of a video

seams
object[]

Joins on the clip that still play speech into a cut or leave a sound in the gap, after the cuts were cleaned up: a kept stretch under 300 ms with no kept word, between a cut this call made and another cut, is folded into them. A clipped_word_* join has no quiet spot within reach, so moving its edge by milliseconds can't fix it: cut the words its trimToPause* names, or keep the join when they are needed. Empty when every join is clean; absent when more than one voice is heard on the clip, its transcript or voice track can't be read, or remove_silences found nothing to cut.