Transcripts

Get paragraphs in transcript

GET
Get the transcript split by paragraphs. The API will attempt to semantically segment your transcript into paragraphs 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
paragraphs
list of objects
GET
1curl https://api.assemblyai.com/v2/transcript/transcript_id/paragraphs \
2 -H "Authorization: <apiKey>"
200
Retrieved
1{
2 "id": "d5a3d302-066e-43fb-b63b-8f57baf185db",
3 "confidence": 0.9578730257009361,
4 "audio_duration": 281,
5 "paragraphs": [
6 {
7 "text": "Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what's happening here and why, so we called Peter Decarlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University. Good morning, professor.",
8 "start": 250,
9 "end": 26950,
10 "confidence": 0.73033,
11 "words": [
12 {
13 "confidence": 0.73033,
14 "start": 250,
15 "end": 650,
16 "text": "Smoke"
17 },
18 {
19 "confidence": 1,
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": "Good morning. So what is it about the conditions right now that have caused this round of wildfires to affect so many people so far away? Well, there's a couple of things. The season has been pretty dry already, and then the fact that we're getting hit in the US. Is because there's a couple of weather systems that are essentially channeling the smoke from those Canadian wildfires through Pennsylvania into the Mid Atlantic and the Northeast and kind of just dropping the smoke there.",
41 "start": 27850,
42 "end": 56190,
43 "confidence": 0.99667,
44 "words": [
45 {
46 "confidence": 0.99667,
47 "start": 27850,
48 "end": 28262,
49 "text": "Good"
50 },
51 {
52 "confidence": 0.99742,
53 "start": 28316,
54 "end": 28920,
55 "text": "morning."
56 },
57 {
58 "confidence": 0.94736,
59 "start": 29290,
60 "end": 29702,
61 "text": "So"
62 }
63 ],
64 "speaker": "speaker"
65 }
66 ]
67}