voices
list voices and languages
what an agent’s ttsConfig.model, ttsConfig.voice, ttsConfig.description and language may be set to, per voice engine — the menus the dashboard’s voice picker renders. phoneCalls says whether agents on that engine can take phone calls.
GET
/
v1
/
voices
list voices and languages
curl --request GET \
--url https://silk-api.rumik.ai/v1/voices \
--header 'Authorization: Bearer <token>'import requests
url = "https://silk-api.rumik.ai/v1/voices"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://silk-api.rumik.ai/v1/voices', 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://silk-api.rumik.ai/v1/voices",
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://silk-api.rumik.ai/v1/voices"
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://silk-api.rumik.ai/v1/voices")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://silk-api.rumik.ai/v1/voices")
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{
"defaultModel": "muga",
"models": [
{
"id": "muga",
"label": "silk muga 1",
"disabled": false,
"badge": null,
"voices": [],
"languages": [
{
"id": "hinglish",
"label": "Hinglish",
"disabled": false
},
{
"id": "english",
"label": "English",
"disabled": false
}
],
"defaultLanguage": "hinglish",
"descriptions": [],
"phoneCalls": true
},
{
"id": "mulberry",
"label": "silk mulberry 1.5",
"disabled": false,
"badge": null,
"voices": [
"Emma",
"Mia",
"Sophia",
"Ava",
"speaker_1",
"speaker_2",
"speaker_3",
"speaker_4",
"Lucas",
"Noah",
"Theo",
"Adam"
],
"languages": [
{
"id": "english",
"label": "English (US)",
"disabled": false
},
{
"id": "hinglish",
"label": "Hinglish",
"disabled": false
},
{
"id": "hindi",
"label": "Hindi (IN)",
"disabled": false
}
],
"defaultLanguage": "english",
"descriptions": [
{
"id": "warm-support-us",
"label": "Warm Support",
"subtitle": "American · 30s · conversational",
"description": "a female 30s american voice, normal pitch, warm timbre, conversational pacing, calm and reassuring, professional register, like a customer support agent."
}
],
"phoneCalls": true
}
]
}{
"error": "Invalid API key",
"code": "unauthorized"
}{
"error": "This API key lacks the 'agent' scope",
"code": "forbidden_scope"
}{
"error": "Rate limit exceeded",
"code": "rate_limited",
"limit": 100,
"current": 101
}Authorizations
your rumik api key, e.g. rk_live_.... create one in the rumik dashboard.
⌘I
list voices and languages
curl --request GET \
--url https://silk-api.rumik.ai/v1/voices \
--header 'Authorization: Bearer <token>'import requests
url = "https://silk-api.rumik.ai/v1/voices"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://silk-api.rumik.ai/v1/voices', 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://silk-api.rumik.ai/v1/voices",
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://silk-api.rumik.ai/v1/voices"
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://silk-api.rumik.ai/v1/voices")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://silk-api.rumik.ai/v1/voices")
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{
"defaultModel": "muga",
"models": [
{
"id": "muga",
"label": "silk muga 1",
"disabled": false,
"badge": null,
"voices": [],
"languages": [
{
"id": "hinglish",
"label": "Hinglish",
"disabled": false
},
{
"id": "english",
"label": "English",
"disabled": false
}
],
"defaultLanguage": "hinglish",
"descriptions": [],
"phoneCalls": true
},
{
"id": "mulberry",
"label": "silk mulberry 1.5",
"disabled": false,
"badge": null,
"voices": [
"Emma",
"Mia",
"Sophia",
"Ava",
"speaker_1",
"speaker_2",
"speaker_3",
"speaker_4",
"Lucas",
"Noah",
"Theo",
"Adam"
],
"languages": [
{
"id": "english",
"label": "English (US)",
"disabled": false
},
{
"id": "hinglish",
"label": "Hinglish",
"disabled": false
},
{
"id": "hindi",
"label": "Hindi (IN)",
"disabled": false
}
],
"defaultLanguage": "english",
"descriptions": [
{
"id": "warm-support-us",
"label": "Warm Support",
"subtitle": "American · 30s · conversational",
"description": "a female 30s american voice, normal pitch, warm timbre, conversational pacing, calm and reassuring, professional register, like a customer support agent."
}
],
"phoneCalls": true
}
]
}{
"error": "Invalid API key",
"code": "unauthorized"
}{
"error": "This API key lacks the 'agent' scope",
"code": "forbidden_scope"
}{
"error": "Rate limit exceeded",
"code": "rate_limited",
"limit": 100,
"current": 101
}