curl --request POST \
--url https://api.studio.us.phrase.com/v1/projects/{projectId}/recordings/{recordingId}/exports \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"type": "dubbed_audio",
"dubbingLanguage": "es-es"
}
'{
"type": "source_audio",
"status": "done",
"downloadUrl": "https://storage.googleapis.com/bucket/file.mp3?X-Goog-Signature=..."
}Export a recording
Ask for a file that Studio makes from a recording: a video with the subtitles burned in, a dubbed video or dubbed audio, the dubbed audio as stems or per speaker, or the original audio. A file that is ready at once (the original audio, a bilingual Word document) answers 200 with downloadUrl. Anything that has to be rendered answers 202 with statusUrl: poll it until status is done and take downloadUrl, or failed and read errorMessage. Asking again for the same file while it renders returns the same exportId. Subtitle files are not rendered by a job; read them with GET .../exports/subtitles. Needs read access to the steps and languages the file is made from.
curl --request POST \
--url https://api.studio.us.phrase.com/v1/projects/{projectId}/recordings/{recordingId}/exports \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"type": "dubbed_audio",
"dubbingLanguage": "es-es"
}
'{
"type": "source_audio",
"status": "done",
"downloadUrl": "https://storage.googleapis.com/bucket/file.mp3?X-Goog-Signature=..."
}Authorizations
Body
What to export. type decides which other fields are needed; a request that lacks one is refused with 400.
burned_in_video: the original video with the subtitles of language burned in (needs language). dubbed_video: the video with the dubbing of dubbingLanguage, optionally with subtitleLanguage burned in. dubbed_videos: one dubbed video per entry of languages, up to 5. dubbed_audio: the mixed dubbed audio of dubbingLanguage. dubbed_audio_stems: the dubbed speech and the background as separate files. dubbed_audio_by_speaker: one dubbed audio file per speaker. source_audio: the audio of the original recording. bilingual_docx: a Word document with the source text next to its translation (needs language, the translation language; includeTimecode adds a time column). It is made on the spot, so it answers 200 with its link.
burned_in_video, dubbed_video, dubbed_videos, dubbed_audio, dubbed_audio_stems, dubbed_audio_by_speaker, source_audio, bilingual_docx Response
The file is ready at once
An export of a recording: either ready, with its download link, or running, with the url to poll.
Was this page helpful?