Properties
| Name | Type | Description |
|---|---|---|
| text | string | The translated text in English. |
| task | string | The task performed, always translate. |
| language | string | The detected language of the input audio. |
| duration | number | The duration of the input audio in seconds. |
| segments | array | Segments of the translated text with timestamps. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "TranslationResponse",
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "The translated text in English."
},
"task": {
"type": "string",
"description": "The task performed, always translate."
},
"language": {
"type": "string",
"description": "The detected language of the input audio."
},
"duration": {
"type": "number",
"description": "The duration of the input audio in seconds."
},
"segments": {
"type": "array",
"description": "Segments of the translated text with timestamps."
}
}
}