List a project's speakers
curl --request GET \
--url https://api.rask.ai/v3/projects/{project_id}/speakers \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.rask.ai/v3/projects/{project_id}/speakers"
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}/speakers', 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}/speakers",
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}/speakers"
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}/speakers")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rask.ai/v3/projects/{project_id}/speakers")
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": "list",
"data": [
{
"object": "speaker",
"id": "SPEAKER_00",
"label": "Speaker 1",
"number": 1,
"project_id": "6f1c2b7e-8a4d-4e3f-9b5c-1d0a7e2f3c58",
"voice": {
"id": "a7c3e9b1-2d5f-4a8c-9e1b-6f3d8a2c5e01",
"type": "stock",
"name": "Lucia",
"language": "es-es",
"voice_clone_id": null,
"selectable": true
},
"voice_origin": "suggested",
"instant_clone_settings": null,
"segment_count": 2,
"speech_seconds": 5.8,
"voice_pending": false,
"instant_clone": {
"eligible": true,
"reason": null,
"min_speech_seconds": 1.5
},
"etag": "\"v-1a2b3c4d5e6f7a8b\""
},
{
"object": "speaker",
"id": "SPEAKER_01",
"label": "Speaker 2",
"number": 2,
"project_id": "6f1c2b7e-8a4d-4e3f-9b5c-1d0a7e2f3c58",
"voice": {
"id": "c1e5a9d3-7b2f-4c6e-8a4d-2f9b1e5c7a02",
"type": "stock",
"name": "Diego",
"language": "es-es",
"voice_clone_id": null,
"selectable": true
},
"voice_origin": "suggested",
"instant_clone_settings": null,
"segment_count": 1,
"speech_seconds": 3.4,
"voice_pending": false,
"instant_clone": {
"eligible": true,
"reason": null,
"min_speech_seconds": 1.5
},
"etag": "\"v-8b7a6f5e4d3c2b1a\""
}
],
"next_cursor": null,
"has_more": false
}Speakers
List a project's speakers
Lists the project’s speakers (one page) with their assigned voice, instant-clone settings and eligibility, segment count, speech duration and ETag.
GET
/
projects
/
{project_id}
/
speakers
List a project's speakers
curl --request GET \
--url https://api.rask.ai/v3/projects/{project_id}/speakers \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.rask.ai/v3/projects/{project_id}/speakers"
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}/speakers', 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}/speakers",
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}/speakers"
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}/speakers")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rask.ai/v3/projects/{project_id}/speakers")
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": "list",
"data": [
{
"object": "speaker",
"id": "SPEAKER_00",
"label": "Speaker 1",
"number": 1,
"project_id": "6f1c2b7e-8a4d-4e3f-9b5c-1d0a7e2f3c58",
"voice": {
"id": "a7c3e9b1-2d5f-4a8c-9e1b-6f3d8a2c5e01",
"type": "stock",
"name": "Lucia",
"language": "es-es",
"voice_clone_id": null,
"selectable": true
},
"voice_origin": "suggested",
"instant_clone_settings": null,
"segment_count": 2,
"speech_seconds": 5.8,
"voice_pending": false,
"instant_clone": {
"eligible": true,
"reason": null,
"min_speech_seconds": 1.5
},
"etag": "\"v-1a2b3c4d5e6f7a8b\""
},
{
"object": "speaker",
"id": "SPEAKER_01",
"label": "Speaker 2",
"number": 2,
"project_id": "6f1c2b7e-8a4d-4e3f-9b5c-1d0a7e2f3c58",
"voice": {
"id": "c1e5a9d3-7b2f-4c6e-8a4d-2f9b1e5c7a02",
"type": "stock",
"name": "Diego",
"language": "es-es",
"voice_clone_id": null,
"selectable": true
},
"voice_origin": "suggested",
"instant_clone_settings": null,
"segment_count": 1,
"speech_seconds": 3.4,
"voice_pending": false,
"instant_clone": {
"eligible": true,
"reason": null,
"min_speech_seconds": 1.5
},
"etag": "\"v-8b7a6f5e4d3c2b1a\""
}
],
"next_cursor": null,
"has_more": false
}When to use: to review voices before a dub, or to choose a speaker to re-voice.
Side effects: None.
Cost: Free.
Idempotency: safe and pure (never writes); retry freely.
Required scopes:
voices:read
Errors: transcript_not_ready (409)Authorizations
Path Parameters
Response
OK: SpeakerList.
A page of Speaker (the list envelope shared by every list).