Get a project's transcript summary
curl --request GET \
--url https://api.rask.ai/v3/projects/{project_id}/transcript \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.rask.ai/v3/projects/{project_id}/transcript"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.rask.ai/v3/projects/{project_id}/transcript', 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.rask.ai/v3/projects/{project_id}/transcript",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.rask.ai/v3/projects/{project_id}/transcript"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.rask.ai/v3/projects/{project_id}/transcript")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rask.ai/v3/projects/{project_id}/transcript")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "transcript",
"id": "6f1c2b7e-8a4d-4e3f-9b5c-1d0a7e2f3c58",
"project_id": "6f1c2b7e-8a4d-4e3f-9b5c-1d0a7e2f3c58",
"source_language": "en",
"target_language": "es-es",
"media_duration_seconds": 10,
"segment_count": 3,
"speaker_ids": [
"SPEAKER_00",
"SPEAKER_01"
],
"counts": {
"translating": 0,
"voicing": 0,
"translation_failed": 0,
"needs_attention": 0,
"needs_redub": 1
}
}Transcript
Get a project's transcript summary
Returns the transcript summary: languages, segment count, speakers and counts of segments that are translating, voicing, failed, flagged or need a redub.
GET
/
projects
/
{project_id}
/
transcript
Get a project's transcript summary
curl --request GET \
--url https://api.rask.ai/v3/projects/{project_id}/transcript \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.rask.ai/v3/projects/{project_id}/transcript"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.rask.ai/v3/projects/{project_id}/transcript', 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.rask.ai/v3/projects/{project_id}/transcript",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.rask.ai/v3/projects/{project_id}/transcript"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.rask.ai/v3/projects/{project_id}/transcript")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rask.ai/v3/projects/{project_id}/transcript")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "transcript",
"id": "6f1c2b7e-8a4d-4e3f-9b5c-1d0a7e2f3c58",
"project_id": "6f1c2b7e-8a4d-4e3f-9b5c-1d0a7e2f3c58",
"source_language": "en",
"target_language": "es-es",
"media_duration_seconds": 10,
"segment_count": 3,
"speaker_ids": [
"SPEAKER_00",
"SPEAKER_01"
],
"counts": {
"translating": 0,
"voicing": 0,
"translation_failed": 0,
"needs_attention": 0,
"needs_redub": 1
}
}Segments are listed by listSegments.
When to use: to see a transcript’s size, speakers and how many segments need attention before listing them.
Side effects: None.
Cost: Free.
Idempotency: safe and pure (never writes); retry freely.
Paid text: on a project created through v3, 409
dub_payment_required until a dub of that project is charged.
Required scopes: transcripts:read
Errors: transcript_not_ready (409), dub_payment_required (409)Authorizations
Path Parameters
Response
OK: Transcript.
Transcript summary of a project (languages, speakers, counts); segments are listed by listSegments.