Get RTTM
curl --request GET \
--url https://api.aircaps.com/v1/diarizations/{id}/rttm \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aircaps.com/v1/diarizations/{id}/rttm"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aircaps.com/v1/diarizations/{id}/rttm', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));SPEAKER dia_01k72p0x9h6t3b8r1n4m7q2w5e 1 0.480 5.640 <NA> <NA> speaker_0 <NA> <NA>
{
"error": {
"type": "authentication_error",
"code": "unauthorized",
"message": "invalid API key",
"param": null,
"request_id": "req_01k6z3m4q8w7e5r2t1y0u9i8o7"
}
}{
"error": {
"type": "permission_error",
"code": "account_disabled",
"message": "this account is disabled",
"param": null,
"request_id": "req_01k6z3m4q8w7e5r2t1y0u9i8o7"
}
}{
"error": {
"type": "invalid_request_error",
"code": "not_found",
"message": "diarization not found",
"param": null,
"request_id": "req_01k6z3m4q8w7e5r2t1y0u9i8o7"
}
}{
"error": {
"type": "invalid_request_error",
"code": "diarization_not_ready",
"message": "diarization is processing",
"param": null,
"request_id": "req_01k6z3m4q8w7e5r2t1y0u9i8o7"
}
}{
"error": {
"type": "api_error",
"code": "internal_error",
"message": "internal error",
"param": null,
"request_id": "req_01k6z3m4q8w7e5r2t1y0u9i8o7"
}
}{
"error": {
"type": "api_error",
"code": "service_unavailable",
"message": "temporarily unavailable; please retry",
"param": null,
"request_id": "req_01k6z3m4q8w7e5r2t1y0u9i8o7"
}
}Diarizations
Get RTTM
The segments of a completed diarization as an RTTM file (one SPEAKER line per segment), the format diarization scoring tools read.
GET
/
v1
/
diarizations
/
{id}
/
rttm
Get RTTM
curl --request GET \
--url https://api.aircaps.com/v1/diarizations/{id}/rttm \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aircaps.com/v1/diarizations/{id}/rttm"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aircaps.com/v1/diarizations/{id}/rttm', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));SPEAKER dia_01k72p0x9h6t3b8r1n4m7q2w5e 1 0.480 5.640 <NA> <NA> speaker_0 <NA> <NA>
{
"error": {
"type": "authentication_error",
"code": "unauthorized",
"message": "invalid API key",
"param": null,
"request_id": "req_01k6z3m4q8w7e5r2t1y0u9i8o7"
}
}{
"error": {
"type": "permission_error",
"code": "account_disabled",
"message": "this account is disabled",
"param": null,
"request_id": "req_01k6z3m4q8w7e5r2t1y0u9i8o7"
}
}{
"error": {
"type": "invalid_request_error",
"code": "not_found",
"message": "diarization not found",
"param": null,
"request_id": "req_01k6z3m4q8w7e5r2t1y0u9i8o7"
}
}{
"error": {
"type": "invalid_request_error",
"code": "diarization_not_ready",
"message": "diarization is processing",
"param": null,
"request_id": "req_01k6z3m4q8w7e5r2t1y0u9i8o7"
}
}{
"error": {
"type": "api_error",
"code": "internal_error",
"message": "internal error",
"param": null,
"request_id": "req_01k6z3m4q8w7e5r2t1y0u9i8o7"
}
}{
"error": {
"type": "api_error",
"code": "service_unavailable",
"message": "temporarily unavailable; please retry",
"param": null,
"request_id": "req_01k6z3m4q8w7e5r2t1y0u9i8o7"
}
}
