Retrieving Results
Use correct API token
🔑 It is important that the correct API token is used for retrieving results. Only the token that was used for creating and uploading the session can be used for retrieval.
URL:
GET https://api.scriptix.io/api/v3/speech-to-text/session/${sessionId}/result
Request headers
The following headers need to be present:
Parameter | Value | Description |
---|---|---|
x-zoom-s2t-key | Scriptix Batch API Token | API key of type batch needed for authorization |
Response codes
Status code | Description | Payload |
---|---|---|
200 | New session initialized | |
400 | Bad parameter | |
401 | Unauthorized | |
415 | Content Invalid | |
422 | Body Invalid | |
500 | Server Error |
Responses
Content-Type: application/json
{
"count": 1,
"total_results": 1,
"result": {
"duration": 592,
"error": null,
"filename": "media.mp3",
"media_type": "audio",
"media_url": "https://example.com/media.mp3",
"session_id": "49b5b257000004000006ccdfc8",
"status": "done",
"results": [
{
"result": [
[
"word",
0.0,
1.2,
0.95
]
],
"speaker": "unk",
"text": "word",
"sconf": 0.85,
"channel": 0
}
]
}
}