Asynchronous - Speech to Text API
Get job status by ID
POSThttps://longrun-api.visai.ai/v1/job/{job-id}
Header
X-API-Key string required
Your API key
Parameter
job_id string required
Your job ID
Responses
- 200
application/json
Schema
Example (from schema)
object
id string
ID of the inference job
status string
COMPLETED
| FAILED
| QUEUE
| PROCESS
Status of request
error string | null
null
| Timeout
| Bad Inference
Reason of error
webhook_url string | null
The webhook URL provided by the user in the request.
result Array [
List of file results
object
filename string
File name
page number
Page number
status string
success
| failed
Status of request
result Array [
object
page number
The page number corresponding to the retrieved text.
full_text string
The full text content of the specified page. This includes all text present on the page, with newline characters (\n) representing line breaks.
image_size number[]
The size of the original file or the image of the specified page in pixels. The first value specifies the height, and the second value specifies the width (e.g. [1980, 1530]
).
data Array [
object
bbox: [[x1, y1], [x2, y2], [x3, y3], [x4, y4]]
4-pixel coordinate x, y of text box.
text string
The extracted text in each box.
]
]
{
"id": "<job-id>",
"status": "COMPLETED",
"result": [
{
"filename": "filename.pdf",
"page": 1,
"result": [
{
"data": [
{
"bbox": [
[
204,
242
],
[
501,
242
],
[
501,
296
],
[
204,
296
]
],
"text": "เอกสารหน้า 1"
}
],
"full_text": "เอกสารหน้า 1",
"image_size": [
480,
661
],
"page": 1
}
],
"status": "success"
}
],
"error": null,
"webhook_url": null
}
Loading...