Get the original file and audio tracks
curl --request GET \
--url https://api.studio.us.phrase.com/v1/projects/{projectId}/recordings/{recordingId}/source-files \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.studio.us.phrase.com/v1/projects/{projectId}/recordings/{recordingId}/source-files"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.studio.us.phrase.com/v1/projects/{projectId}/recordings/{recordingId}/source-files', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.studio.us.phrase.com/v1/projects/{projectId}/recordings/{recordingId}/source-files",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.studio.us.phrase.com/v1/projects/{projectId}/recordings/{recordingId}/source-files"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.studio.us.phrase.com/v1/projects/{projectId}/recordings/{recordingId}/source-files")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.studio.us.phrase.com/v1/projects/{projectId}/recordings/{recordingId}/source-files")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"sourceFileUrl": "https://storage.googleapis.com/bucket/video.mp4?X-Goog-Signature=...",
"audioTracks": [
{
"language": "source_language",
"kind": "original",
"url": "https://storage.googleapis.com/bucket/a.mp3?X-Goog-Signature=...",
"waveform": "https://storage.googleapis.com/bucket/w.json?X-Goog-Signature=..."
}
]
}Exports
Get the original file and audio tracks
Signed links, valid for three hours, to the original file of the recording and to its audio tracks: the original audio and one dubbed track per language. Dubbed tracks of languages outside your share are left out. Needs read access to the transcription step.
GET
/
v1
/
projects
/
{projectId}
/
recordings
/
{recordingId}
/
source-files
Get the original file and audio tracks
curl --request GET \
--url https://api.studio.us.phrase.com/v1/projects/{projectId}/recordings/{recordingId}/source-files \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.studio.us.phrase.com/v1/projects/{projectId}/recordings/{recordingId}/source-files"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.studio.us.phrase.com/v1/projects/{projectId}/recordings/{recordingId}/source-files', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.studio.us.phrase.com/v1/projects/{projectId}/recordings/{recordingId}/source-files",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.studio.us.phrase.com/v1/projects/{projectId}/recordings/{recordingId}/source-files"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.studio.us.phrase.com/v1/projects/{projectId}/recordings/{recordingId}/source-files")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.studio.us.phrase.com/v1/projects/{projectId}/recordings/{recordingId}/source-files")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"sourceFileUrl": "https://storage.googleapis.com/bucket/video.mp4?X-Goog-Signature=...",
"audioTracks": [
{
"language": "source_language",
"kind": "original",
"url": "https://storage.googleapis.com/bucket/a.mp3?X-Goog-Signature=...",
"waveform": "https://storage.googleapis.com/bucket/w.json?X-Goog-Signature=..."
}
]
}Authorizations
apiKeyAuthbearerAuth
Was this page helpful?