Get Voice List
curl --request GET \
--url https://api.topmediai.com/v1/voices_listimport requests
url = "https://api.topmediai.com/v1/voices_list"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.topmediai.com/v1/voices_list', 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.topmediai.com/v1/voices_list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.topmediai.com/v1/voices_list"
req, _ := http.NewRequest("GET", url, nil)
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.topmediai.com/v1/voices_list")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.topmediai.com/v1/voices_list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"Voice": [
{
"Languagename": "<string>",
"plan": 123,
"speaker": "00151554-3826-11ee-a861-00163e2ac61b",
"classification": "<string>",
"classnamearray": "Daily;Male;Neutral",
"name": "<string>",
"type": "<string>",
"typeishot": true,
"urlname": "<string>",
"trending": true,
"describe": "<string>",
"modeltoken": "<string>",
"voiceisnew": true,
"avatar_url": "<string>",
"isvip": true,
"isFree": true,
"urllist": "<string>"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Text-to-Speech
Get Voice List
Gets a list of all available voices for us.
GET
/
v1
/
voices_list
Get Voice List
curl --request GET \
--url https://api.topmediai.com/v1/voices_listimport requests
url = "https://api.topmediai.com/v1/voices_list"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.topmediai.com/v1/voices_list', 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.topmediai.com/v1/voices_list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.topmediai.com/v1/voices_list"
req, _ := http.NewRequest("GET", url, nil)
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.topmediai.com/v1/voices_list")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.topmediai.com/v1/voices_list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"Voice": [
{
"Languagename": "<string>",
"plan": 123,
"speaker": "00151554-3826-11ee-a861-00163e2ac61b",
"classification": "<string>",
"classnamearray": "Daily;Male;Neutral",
"name": "<string>",
"type": "<string>",
"typeishot": true,
"urlname": "<string>",
"trending": true,
"describe": "<string>",
"modeltoken": "<string>",
"voiceisnew": true,
"avatar_url": "<string>",
"isvip": true,
"isFree": true,
"urllist": "<string>"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}⌘I
