Rest API
Get Transcript
Get a single transcript for an event
GET /events/{event_id}/transcript
Parameter | Where | Type | Description |
---|---|---|---|
linguistics | query | boolean | Whether or not to include linguistic extras in data |
pricing | query | boolean | Whether to include price reaction information |
improved_only | query | boolean | Whether or not to only return the post-realtime improved transcripts |
word_offsets | query | boolean | Whether to include word-by-word durations and offsets |
Response
[
{
"transcript_item_id": 123456789,
"transcript": "Hello, and welcome to Aiera's test event.",
"timestamp": "2023-06-26T14:26:50-04:00",
"start_ms": 0,
"duration_ms": 4616,
"pretty_word_durations_ms": [420, 190],
"pretty_word_offsets_ms": [40, 460],
"word_durations_ms": [420, 190],
"word_offsets_ms": [40, 460],
"speaker_id": 1234567,
"speaker_type": "dia",
"audio_url": "https://audio-dev.aiera.com/api/events/1234567/transcript/123456789/audio?api_key={API_KEY}",
"is_improved": true,
"is_edited": false,
"modified": "2023-06-26T14:28:00",
"linguistics": {
"topics": [],
"sentiment": {
"average": 0.0,
"median": 0.0,
"minimum": 0.0,
"maximum": 0.0
},
"sentiment_breakouts": []
}
}
]
Code Samples
Bash
curl --request GET \
--url 'null/api/speech-v1/events/{event_id}/transcript' \
--header 'X-API-Key: xxx'
Python
import requests
requests.get(
"null/api/speech-v1/events/{event_id}/transcript/",
headers={"X-API-Key": "xxx"}
)