API ReferenceTranscript

Get transcript content

This will return the contents of the transcript. Can be called only after transcription job is completed successfully.

GET/spaces/{spaceId}/recordings/{recordingId}/transcript

Authorization API key in the x-api-key header

Path parameters

  • spaceIdstringrequired

    ID of the workspace. You can find from the url in dashboard when you open the workspace or using the list workspaces endpoint.

  • recordingIdstringrequired

    ID of the recording. You can find from the url in dashboard when you open the workspace or using the list recordings endpoint.

Query parameters

  • formatstring

    Format of the transcript content. Can be one of:

    • json

    • text

    • csv

    • pdf

    • word

    • srt

    • vtt

    Defaults to json

  • jsonContentTypestring

    Response format type of JSON contents

    Can be one of

    • words

    • paragraphs

    • segments

    Details on each format:

    • Words: Gives an array of words with timings.

    • Paragraphs: Gives an array of paragraphs - constructed using our own carefully calibrated heuristics.

    • Segments: Gives an array of segments as given by Whisper model.

    Defaults to paragraphs

  • subMaxCharactersPerLineinteger

    Maximum characters per line of subtitle. Lines cannot be shorter than a single word.

    Only relavent for subtitle formats

  • subMaxSecondsPerLineinteger

    Maximum duration in seconds per subtitle block. Subtitle blocks cannot be shorter than a single word.

    Only relevant for subtitle formats

  • subMaxLinesPerSubtitleinteger

    Maximum number of lines per subtitle block. Controls how many lines can appear simultaneously on screen.

    Only relevant for subtitle formats. Defaults to 1

  • docIncludeSpeakersboolean

    If set, document formats will include speaker information for each paragraphs.

    Only relavent for text, csv, word formats. Defaults to true

  • docIncludeTimestampsboolean

    If set, document formats will include time information for each paragraphs.

    Only relavent for text, csv, word formats. Defaults to true

  • docIncludeTlolBrandingstring

    If set, document formats will include limited transcript branding.

    Only relavent for text, pdf, word formats. Defaults to true

  • startTimenumber

    If set, only transcript content from this time onward (in seconds) is returned. Omit for the start of the recording.

    Combine with endTime to fetch a single time window — e.g. the portion around a search match.

  • endTimenumber

    If set, only transcript content up to this time (in seconds) is returned. Omit for the end of the recording.

Responses

  • 200Transcript content in requested format

    application/json · TranscriptJsonContent

    Options passed to the transcript determine which fields are available

    • wordsarray of TranscriptWord
      Show 5 properties
      • wordstringrequired

        A single word with punctuation if applicable

      • startnumberrequired

        Time in original media when this word utterance has started.

        Can be off by a few milliseconds sometimes due to media format and bitrate conversions for transcription. Original media with fixed bitrates tend to do better.

      • endnumberrequired

        Time in original media when this word utterance has finished.

        Can be off by a few milliseconds sometimes due to media format and bitrate conversions for transcription. Original media with fixed bitrates tend to do better.

      • confidencenumberrequired

        Confidence of the model when detecting this word. Ranges between 0.0 to 1.0

      • speakernumberrequired

        Index of the speaker.

        Our models estimate the total number of speakers in the given audio and gives each distinct voice an index starting 0 to total number of speakers - 1.

        For example: If we detect 3 distinct speakers in the audio. The speaker index can be any of 0, 1 or 2.

        NOTE: Additional speakers may be added manually while editing the transcript in our dashboard.

    • paragraphsarray of TranscriptParagraph
      Show 4 properties
      • textstringrequired

        Content of the paragraph

      • startnumberrequired

        Time in original media when this paragraph utterance has started.

        Can be off by a few milliseconds sometimes due to media format and bitrate conversions for transcription. Original media with fixed bitrates tend to do better.

      • endnumberrequired

        Time in original media when this paragraph utterance has finished.

        Can be off by a few milliseconds sometimes due to media format and bitrate conversions for transcription. Original media with fixed bitrates tend to do better.

      • speakernumberrequired

        Index of the speaker.

        Our models estimate the total number of speakers in the given audio and gives each distinct voice an index starting 0 to total number of speakers - 1.

        For example: If we detect 3 distinct speakers in the audio. The speaker index can be any of 0, 1 or 2.

        NOTE: Additional speakers may be added manually while editing the transcript in our dashboard.

    • segmentsarray of TranscriptSegment
      Show 4 properties
      • textstringrequired

        Text in this segment

      • startnumberrequired

        Start time of this segment

      • endnumberrequired

        End time of this segment

      • speakernumber

        Speaker index of the segment speaker.

        NOTE: Available only when transcribed with diarization enabled.

  • 400Invalid input

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

  • 401Authentication failed

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

  • 402Insufficient credits or need payment

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

  • 403You don't have access

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

  • 404Not found or don't have access

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

curl 'https://transcript.lol/api/v1/spaces/string/recordings/string/transcript' \
  --header 'x-api-key: YOUR_API_KEY'
const response = await fetch("https://transcript.lol/api/v1/spaces/string/recordings/string/transcript", {
  method: "GET",
  headers: {
    "x-api-key": "YOUR_API_KEY"
  },
});
const text = await response.text();
import requests

response = requests.get(
    "https://transcript.lol/api/v1/spaces/string/recordings/string/transcript",
    headers={
        "x-api-key": "YOUR_API_KEY"
    },
)
print(response.text)
{
  "words": [
    {
      "word": "string",
      "start": 0,
      "end": 0,
      "confidence": 0,
      "speaker": 0
    }
  ],
  "paragraphs": [
    {
      "text": "string",
      "start": 0,
      "end": 0,
      "speaker": 0
    }
  ],
  "segments": [
    {
      "text": "string",
      "start": 0,
      "end": 0,
      "speaker": 0
    }
  ]
}
{
  "error": "string",
  "errorDetails": {}
}
{
  "error": "string",
  "errorDetails": {}
}
{
  "error": "string",
  "errorDetails": {}
}
{
  "error": "string",
  "errorDetails": {}
}
{
  "error": "string",
  "errorDetails": {}
}