New: AI video tools. Cut, clip, caption and dub your videos. See all video tools →
Voices

Align a saved voice's transcript to its audio

POST
/api/v1/voices/{voice_id}/align

Find word timings for a saved voice's transcript, transcribing the audio when the voice has none. Waits until the voice is aligned. A voice that is already aligned, or holds no speech, returns at once unless force is set.

Path Parameters

voice_id*Voice Id

Request Body

application/json
  1. body
force?Force

Align again even if the voice is already aligned or was found to hold no speech

Defaultfalse

Response Body

Successful Response

application/json
  1. response
state*State

Where the voice's alignment stands once the call returns

Value in"done""no_speech""failed""pending"
Example Request
curl -X POST 'http://127.0.0.1:8100/api/v1/voices/string/align' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "state": "done"}