Skip to main content
PUT
Change the speed of a segment

Authorizations

X-API-Key
string
header
required

Your Phrase Platform API token in the X-API-Key header. A missing, invalid or expired token is answered with 401. 403 means the token is valid but the action is not allowed for it.

Path Parameters

projectId
string<uuid>
required

Project ID.

recordingId
string<uuid>
required

Recording ID.

Body

application/json

A new duration for the dubbed audio of one segment.

language
string
required

Dubbing language.

segmentId
string
required

Segment to change.

ttsDuration
number
required

New duration of the audio in seconds. Shorter is faster speech.

Required range: x >= 0
originalTtsDuration
number
required

Duration of the audio before any speed change, in seconds. Read it from metadata.dubbing.originalTtsDuration of the dubbing subtitles.

Required range: x >= 0
reset
boolean

Restore the original speed. Send originalTtsDuration as ttsDuration with it.

segmentStart
number

Start of the segment in seconds.

Required range: x >= 0
segmentEnd
number

End of the segment in seconds.

Required range: x >= 0

Response

Speed changed

The segment whose audio was changed.

segmentId
string
required

Segment ID.

url
string<uri>
required

Signed link to the new audio.