v3

latestOpenAPI 3.1.02026-08-011057254.3 KB
transcript

Get sentences in transcript

<Note>To retrieve your transcriptions on our EU server, replace api.assemblyai.com with api.eu.assemblyai.com.</Note> Get the transcript split by sentences. The API will attempt to semantically segment the transcript into sentences to create more reader-friendly transcripts.

get/v2/transcript/{transcript_id}/sentences

Path parameters

transcript_idstring required

ID of the transcript

Response

Exported sentences

idstring uuid required

The unique identifier for the transcript

confidencenumber double required

The confidence score for the transcript

audio_durationnumber required

The duration of the audio file in seconds

Example response

{
  "sentences": [
    {
      "text": "Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US.",
      "start": 250,
      "end": 6350,
      "confidence": 0.72412,
      "words": [
        {
          "text": "Smoke",
          "start": 250,
          "end": 650,
          "confidence": 0.72412,
          "speaker": null
        },
        {
          "text": "from",
          "start": 730,
          "end": 1022,
          "confidence": 0.99996,
          "speaker": null
        },
        {
          "text": "hundreds",
          "start": 1076,
          "end": 1466,
          "confidence": 0.99992,
          "speaker": null
        },
        {
          "text": "of",
          "start": 1498,
          "end": 1646,
          "confidence": 1,
          "speaker": null
        }
      ],
      "speaker": null
    },
    {
      "text": "Skylines from Maine to Maryland to Minnesota are gray and smoggy.",
      "start": 6500,
      "end": 11050,
      "confidence": 0.99819,
      "words": [
        {
          "text": "Skylines",
          "start": 6500,
          "end": 7306,
          "confidence": 0.99819,
          "speaker": null
        },
        {
          "text": "from",
          "start": 7338,
          "end": 7534,
          "confidence": 0.99987,
          "speaker": null
        },
        {
          "text": "Maine",
          "start": 7572,
          "end": 7962,
          "confidence": 0.9972,
          "speaker": null
        },
        {
          "text": "to",
          "start": 8026,
          "end": 8206,
          "confidence": 1,
          "speaker": null
        },
        {
          "text": "Maryland",
          "start": 8228,
          "end": 8650,
          "confidence": 0.5192,
          "speaker": null
        },
        {
          "text": "to",
          "start": 8730,
          "end": 8926,
          "confidence": 1,
          "speaker": null
        }
      ],
      "speaker": null
    }
  ],
  "id": "d5a3d302-066e-43fb-b63b-8f57baf185db",
  "confidence": 0.9579390654205628,
  "audio_duration": 281
}