Transcribe an audio or video file by importing the recording to Transcript LOL.
You can import using these 2 options:
A public url to the media
Upload the media to Transcript using our API
API ReferenceTranscript
Transcribe an audio or video file by importing the recording to Transcript LOL.
You can import using these 2 options:
A public url to the media
Upload the media to Transcript using our API
/spaces/{spaceId}/recordingsAuthorization API key in the x-api-key header
spaceIdstringrequiredID of the workspace. You can find from the url in dashboard when you open the workspace or using the list workspaces endpoint.
application/json · object
titlestringrequiredlanguageLanguageCoderequiredLanguage 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 LanguageCodeOptional. 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"
mediaTypeMediaTyperequiredOne of"AUDIO""VIDEO"
sourceMediaSourcerequiredPlease 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"
sourceUrlstringOnly public urls to audio / video files are acceptable.
autoDeletePolicyobjectAuto deletion policy to apply to this recording. Useful if you prefer your data to be deleted automatically. If not set, no auto deletion occurs.
mediaDeleteAfterDaysintegerNumber of days after which the recording media is auto deleted. If not set, media is retained until you delete it manually.
speakerDiarizationbooleanSet this to true to enable speaker diarization - detection of speakers for each part of the transcript
speakerCountnumberRelavent 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.
recordingFolderIdstringOptional. 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.
externalIdstringThis 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
200Recording metadataapplication/json · Recording
idstringrequiredcreatedAtstringrequiredupdatedAtstringrequiredworkspaceIdstringrequiredtitlestringrequiredsourceUrlstringrequiredOnly when recording is created using a URL
mediaTypeMediaTyperequiredOne of"AUDIO""VIDEO"
sourcestringrequireddurationnumberstatusRecordingStatusrequiredOne of"MEDIA_IMPORT_UPLOADING""MEDIA_IMPORT_PENDING""MEDIA_IMPORT_COMPLETE""MEDIA_IMPORT_FAILED""TRANSCRIPTION_QUEUED""TRANSCRIPTION_PENDING""TRANSCRIPTION_COMPLETE""TRANSCRIPTION_FAILED"
recordingFolderIdstringOnly if it is part of a folder
isMediaDeletedbooleancreatedByIdstringrequiredautoDeleteMediaAfterstringIf set, media of the recording will be auto-deleted after this date
400Invalid inputapplication/json · ApiError
errorstringrequiredshort description of the error
errorDetailsobjectadditional details for the cause of the error if available
401Authentication failedapplication/json · ApiError
errorstringrequiredshort description of the error
errorDetailsobjectadditional details for the cause of the error if available
402Insufficient credits or need paymentapplication/json · ApiError
errorstringrequiredshort description of the error
errorDetailsobjectadditional details for the cause of the error if available
403You don't have accessapplication/json · ApiError
errorstringrequiredshort description of the error
errorDetailsobjectadditional details for the cause of the error if available
404Not found or don't have accessapplication/json · ApiError
errorstringrequiredshort description of the error
errorDetailsobjectadditional 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": {}
}