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 | Timeout | Bad Inference
Reason of error
webhook_url string
The webhook URL provided by the user in the request.
results Array [
List of file results
object
duration string
Duration of the file
filename string
Name of the file
status string
success | failed
Inference status of the file
results Array [
List of file result
object
start_time string
Start time in HH:mm:ss.sss format
end_time string
Start time in HH:mm:ss.sss format
speaker string
Speaker in SPEAKER_{number} format
transcript string
The transcribed text
]
]
{
    "id": "<job-id>",
    "status": "COMPLETED",
    "result": [
        {
            "duration": 10.856,
            "filename": "record.wav",
            "result": [
                {
                    "end_time": 3.9122188091278076,
                    "speaker": "SPEAKER_00",
                    "start_time": 1.9040937423706055,
                    "transcript": "วิสัย"
                },
                {
                    "end_time": 7.860968589782715,
                    "speaker": "SPEAKER_00",
                    "start_time": 4.772843837738037,
                    "transcript": "บริษัท"
                },
                {
                    "end_time": 9.480968475341797,
                    "speaker": "SPEAKER_00",
                    "start_time": 8.485343933105469,
                    "transcript": "ผู้พัฒนาแพลตฟอร์ม"
                },
            ],
            "status": "success"
        }
    ],
    "error": null,
    "webhook_url": "https://<your-webhook-url>"
}
Loading...