Starts an asynchronous job to identify the most probable language in the audio. Audio can be specified in two ways, either by including a public url to the media via the source_config
option or by uploading a local file as part of a multipart/form request.
Language Identification Job Options
metadata | string or null <= 512 characters Optional metadata that was provided during job submission. |
callback_url | string or null <= 1024 characters Deprecated Deprecated. Use notification_config instead. Optional callback url to invoke when processing is complete.
If this parameter is used to pass in the callback url, the callback url will be visible in the response.
It is recommended to provide webhooks with the |
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 or null Optional authorization headers, if they are needed to access the resource at the URL. Headers could be
a single | |
media_url | string <= 2048 characters Deprecated [HIPAA unsupported] Deprecated. Use source_config instead.
Direct download media url.
If this parameter is used to pass in the media url, the media url will be visible in the response.
It is recommended to use the |
Language Identification Job Details
Bad Request
Request Unauthorized
Request forbidden or user does not have permission to access this deployment
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>"
}
}
}
{- "id": "Umx5c6F7pH7r",
- "status": "in_progress",
- "created_on": "2018-05-05T23:23:22.29Z",
- "type": "language_id"
}
Gets a list of language identification 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 Language Identification 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": "language_id"
}, - {
- "id": "6BxQYGa638Yt",
- "status": "completed",
- "created_on": "2018-05-05T23:23:22.29Z",
- "completed_on": "2018-05-05T23:45:13.41Z",
- "type": "language_id"
}
]
Returns information about a language identification job.
Language Identification 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": "language_id"
}
Deletes a language identification 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 language identification job.
Rev AI API Language Identification Result
Request Unauthorized
User does not have permission to access this deployment
Job Not Found
Conflict
{- "top_language": "en",
- "language_confidences": [
- {
- "language": "en",
- "confidence": 0.907
}, - {
- "language": "nl",
- "confidence": 0.023
}, - {
- "language": "ar",
- "confidence": 0.023
}, - {
- "language": "de",
- "confidence": 0.023
}, - {
- "language": "cmn",
- "confidence": 0.023
}
]
}