Transcripts

Get sentences in transcript

GET
Get the transcript split by sentences. The API will attempt to semantically segment the transcript into sentences to create more reader-friendly transcripts.

Path parameters

transcript_idstringRequired
ID of the transcript

Response

This endpoint returns an object
id
string
confidence
double
audio_duration
double
sentences
list of objects
GET
1curl https://api.assemblyai.com/v2/transcript/transcript_id/sentences \
2 -H "Authorization: <apiKey>"
200
Retrieved
1{
2 "id": "d5a3d302-066e-43fb-b63b-8f57baf185db",
3 "confidence": 0.9579390654205628,
4 "audio_duration": 281,
5 "sentences": [
6 {
7 "text": "Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US.",
8 "start": 250,
9 "end": 6350,
10 "confidence": 0.72412,
11 "words": [
12 {
13 "confidence": 0.72412,
14 "start": 250,
15 "end": 650,
16 "text": "Smoke"
17 },
18 {
19 "confidence": 0.99996,
20 "start": 730,
21 "end": 1022,
22 "text": "from"
23 },
24 {
25 "confidence": 0.99992,
26 "start": 1076,
27 "end": 1466,
28 "text": "hundreds"
29 },
30 {
31 "confidence": 1,
32 "start": 1498,
33 "end": 1646,
34 "text": "of"
35 }
36 ],
37 "speaker": "speaker"
38 },
39 {
40 "text": "Skylines from Maine to Maryland to Minnesota are gray and smoggy.",
41 "start": 6500,
42 "end": 11050,
43 "confidence": 0.99819,
44 "words": [
45 {
46 "confidence": 0.99819,
47 "start": 6500,
48 "end": 7306,
49 "text": "Skylines"
50 },
51 {
52 "confidence": 0.99987,
53 "start": 7338,
54 "end": 7534,
55 "text": "from"
56 },
57 {
58 "confidence": 0.9972,
59 "start": 7572,
60 "end": 7962,
61 "text": "Maine"
62 },
63 {
64 "confidence": 1,
65 "start": 8026,
66 "end": 8206,
67 "text": "to"
68 },
69 {
70 "confidence": 0.5192,
71 "start": 8228,
72 "end": 8650,
73 "text": "Maryland"
74 },
75 {
76 "confidence": 1,
77 "start": 8730,
78 "end": 8926,
79 "text": "to"
80 }
81 ],
82 "speaker": "speaker"
83 }
84 ]
85}