API ReferenceTranscript

Create recording

Transcribe an audio or video file by importing the recording to Transcript LOL.

You can import using these 2 options:

  1. A public url to the media

  2. Upload the media to Transcript using our API

POST/spaces/{spaceId}/recordings

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.

Body

application/json · object

  • titlestringrequired
  • languageLanguageCoderequired

    Language of the audio/video content. This will be used for transcription.

    One of"bg""ca""zh""zh-CN""zh-Hans""zh-TW""zh-Hant""cs""da""da-DK""nl""en""en-US""en-AU""en-GB""en-NZ""en-IN""et""fi""nl-BE""fr""fr-CA""de""de-CH""el""hi""hu""id""it""ja""ko""lv""lt""ms""multi""no""pl""pt""pt-BR""ro""ru""sk""es""es-419""sv""th""tr""uk""vi"

  • translationLanguagesarray of LanguageCode

    Optional. List of language codes to automatically create translations for this recording. Translations will be queued after transcription completes.

    Each item one of"bg""ca""zh""zh-CN""zh-Hans""zh-TW""zh-Hant""cs""da""da-DK""nl""en""en-US""en-AU""en-GB""en-NZ""en-IN""et""fi""nl-BE""fr""fr-CA""de""de-CH""el""hi""hu""id""it""ja""ko""lv""lt""ms""multi""no""pl""pt""pt-BR""ro""ru""sk""es""es-419""sv""th""tr""uk""vi"

  • mediaTypeMediaTyperequired

    One of"AUDIO""VIDEO"

  • sourceMediaSourcerequired

    Please set this based on how your media content (audio/video) is being imported to Transcript:

    • FILE_UPLOAD: If you are going to upload a file

    • UNKNOWN: If none of the other values are suitable

    One of"FILE_UPLOAD""YOUTUBE""VIMEO""INSTAGRAM""X""FACEBOOK""TIKTOK""UNKNOWN"

  • sourceUrlstring

    Only public urls to audio / video files are acceptable.

  • autoDeletePolicyobject

    Auto deletion policy to apply to this recording. Useful if you prefer your data to be deleted automatically. If not set, no auto deletion occurs.

    Show 1 property
    • mediaDeleteAfterDaysinteger

      Number of days after which the recording media is auto deleted. If not set, media is retained until you delete it manually.

  • speakerDiarizationboolean

    Set this to true to enable speaker diarization - detection of speakers for each part of the transcript

  • speakerCountnumber

    Relavent only when speakerDiarization is enabled.

    If you know the number of speakers in the audio, pass it here to improve diarization accuracy.

    NOTE:

    • Speaker diarization is not perfect. But passing this value can help to some extent.

    • Further, our speaker diarization model is not good at overlaping conversations - where multiple speakers are speaking at the same time.

  • recordingFolderIdstring

    Optional. ID of the folder to place this recording in. Use the List Folders endpoint to get available folder IDs. If not set, the recording will be placed in the root of the workspace.

  • externalIdstring

    This id also acts an as idempotency key.

    This could be a unique id you maintain in your system for this recording or file or url.

    **Idempotency Key Behaviour: **

    • This is relavent only when you set a value for externalId

    • When set, this id must be unique across all recordings in this workspace

    • A new recording will be created only if there is no existing recording in this workspace with the same external id

    • If there is an existing recording in this workspace with the same externalId, we will respond with the existing recording

Responses

  • 200Recording metadata

    application/json · Recording

    • idstringrequired
    • createdAtstringrequired
    • updatedAtstringrequired
    • workspaceIdstringrequired
    • titlestringrequired
    • sourceUrlstringrequired

      Only when recording is created using a URL

    • mediaTypeMediaTyperequired

      One of"AUDIO""VIDEO"

    • sourcestringrequired
    • durationnumber
    • statusRecordingStatusrequired

      One of"MEDIA_IMPORT_UPLOADING""MEDIA_IMPORT_PENDING""MEDIA_IMPORT_COMPLETE""MEDIA_IMPORT_FAILED""TRANSCRIPTION_QUEUED""TRANSCRIPTION_PENDING""TRANSCRIPTION_COMPLETE""TRANSCRIPTION_FAILED"

    • recordingFolderIdstring

      Only if it is part of a folder

    • isMediaDeletedboolean
    • createdByIdstringrequired
    • autoDeleteMediaAfterstring

      If set, media of the recording will be auto-deleted after this date

  • 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' \
  --request POST \
  --header 'x-api-key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "title": "My Audio",
  "language": "en",
  "mediaType": "AUDIO",
  "source": "UNKNOWN"
}'
const response = await fetch("https://transcript.lol/api/v1/spaces/string/recordings", {
  method: "POST",
  headers: {
    "x-api-key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    "title": "My Audio",
    "language": "en",
    "mediaType": "AUDIO",
    "source": "UNKNOWN"
  }),
});
const text = await response.text();
import requests

response = requests.post(
    "https://transcript.lol/api/v1/spaces/string/recordings",
    headers={
        "x-api-key": "YOUR_API_KEY",
        "Content-Type": "application/json"
    },
    data="{\n  \"title\": \"My Audio\",\n  \"language\": \"en\",\n  \"mediaType\": \"AUDIO\",\n  \"source\": \"UNKNOWN\"\n}",
)
print(response.text)
{
  "id": "string",
  "createdAt": "string",
  "updatedAt": "string",
  "workspaceId": "string",
  "title": "string",
  "sourceUrl": "string",
  "mediaType": "AUDIO",
  "source": "string",
  "duration": 0,
  "status": "MEDIA_IMPORT_UPLOADING",
  "recordingFolderId": "string",
  "isMediaDeleted": true,
  "createdById": "string",
  "autoDeleteMediaAfter": "string"
}
{
  "error": "string",
  "errorDetails": {}
}
{
  "error": "string",
  "errorDetails": {}
}
{
  "error": "string",
  "errorDetails": {}
}
{
  "error": "string",
  "errorDetails": {}
}
{
  "error": "string",
  "errorDetails": {}
}