Starts an asynchronous job to obtain precise word timings for an audio file and text transcript. Audio can be specified by including a public url to the media via the source_config
. A transcript can be specified by including a public url to the text file via the source_transcript_config
or by submitting the text directly in the transcript_text
field. Transcripts should contain only the words of a transcript (punctuation is omitted) separated by spaces.
Forced Alignment Job Options
metadata | string or null <= 512 characters Optional metadata that was provided during job submission. |
object or null Optional configuration for a callback url to invoke when processing is complete, in addition to auth
headers if they are needed to invoke the callback url.
Cannot be set if | |
delete_after_seconds | integer or null [ 0 .. 2592000 ] Amount of time after job completion when job is auto-deleted. Present only when preference set in job request. |
object URL to a media resource, and optional authorization headers if they are needed to access the resource at the URL. Headers could be
a single | |
object or null URL to a text transcript resource, and optional authorization headers if they are needed to access the resource at the URL. Transcript should be a text file containing only the words of the transcript (no punctuation). Headers could be
a single | |
transcript_text | string or null The text of the transcript to be aligned. Should contain only words, no punctuation. One of either |
language | string or null Default: "en" The language of the submitted audio and transcript |
Alignment Job Details
Bad Request
Request Unauthorized
Payload Too Large
{- "metadata": "sample user provided metadata",
- "notification_config": {
- "auth_headers": {
- "Authorization": "Bearer <notification-url-token>"
}
}, - "delete_after_seconds": 1000000,
- "source_config": {
- "auth_headers": {
- "Authorization": "Bearer <source-url-token>"
}
}, - "source_transcript_config": {
- "auth_headers": {
- "Authorization": "Bearer <source-url-token>"
}
}
}
{- "id": "Umx5c6F7pH7r",
- "status": "in_progress",
- "created_on": "2018-05-05T23:23:22.29Z",
- "type": "alignment"
}
Gets a list of alignment jobs submitted within the last 30 days in reverse chronological order up to the provided limit
number of jobs per call. Note: Jobs older than 30 days will not be listed. Pagination is supported via passing the last job id
from a previous call into starting_after
.
List of Rev AI Forced Alignment Jobs
Bad Request
Request Unauthorized
User does not have permission to access this deployment
Job Not Found
[- {
- "id": "Bmx5c8F5pH7a",
- "status": "in_progress",
- "created_on": "2018-05-05T23:23:22.29Z",
- "type": "alignment"
}, - {
- "id": "6BxQYGa638Yt",
- "status": "completed",
- "created_on": "2018-05-05T23:23:22.29Z",
- "completed_on": "2018-05-05T23:45:13.41Z",
- "language": "es",
- "type": "alignment"
}
]
Returns information about a forced alignment job.
Forced Alignment Job Details
Request Unauthorized
User does not have permission to access this deployment
Job Not Found
{- "id": "Umx5c6F7pH7r",
- "status": "in_progress",
- "created_on": "2018-05-05T23:23:22.29Z",
- "type": "alignment"
}
Deletes a forced alignment job. All data related to the job will be permanently deleted. A job can only be deleted once it's completed (either with success or failure).
Job was successfully deleted
Request Unauthorized
User does not have permission to access this deployment
Job Not Found
Conflict
{- "title": "Authorization has been denied for this request",
- "status": 401
}
Returns the results for a completed forced alignment job.
Rev AI API Forced Alignment Transcript
Request Unauthorized
User does not have permission to access this deployment
Job Not Found
Conflict
{- "monologues": [
- {
- "speaker": 0,
- "elements": [
- {
- "type": "text",
- "value": "this",
- "ts": 0.25,
- "end_ts": 0.5
}, - {
- "type": "text",
- "value": "is",
- "ts": 0.6,
- "end_ts": 0.75
}, - {
- "type": "text",
- "value": "a",
- "ts": 0.75,
- "end_ts": 0.85
}, - {
- "type": "text",
- "value": "transcript",
- "ts": 0.95,
- "end_ts": 1.85
}
]
}
]
}