Skip to main content
GET
/
v1
/
custom-voices
/
{voice_id}
Get single cloned voice
curl --request GET \
  --url https://supertoneapi.com/v1/custom-voices/{voice_id} \
  --header 'x-sup-api-key: <api-key>'
import requests

url = "https://supertoneapi.com/v1/custom-voices/{voice_id}"

headers = {"x-sup-api-key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'x-sup-api-key': '<api-key>'}};

fetch('https://supertoneapi.com/v1/custom-voices/{voice_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://supertoneapi.com/v1/custom-voices/{voice_id}"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("x-sup-api-key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://supertoneapi.com/v1/custom-voices/{voice_id}",
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-sup-api-key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
HttpResponse<String> response = Unirest.get("https://supertoneapi.com/v1/custom-voices/{voice_id}")
.header("x-sup-api-key", "<api-key>")
.asString();
{
  "voice_id": "voice_123456789",
  "name": "My Custom Voice",
  "description": "A warm and friendly voice for customer service"
}
{
"status": "error",
"message": {
"message": "Invalid API Key",
"error": "Unauthorized"
}
}
{
"status": "error",
"message": {
"message": "Voice not found",
"error": "Not Found"
}
}
{
"status": "error",
"message": {
"message": "Failed to convert text to speech",
"error": "Internal Server Error"
}
}
이 문서는 영어 원문을 기반으로 자동 번역되었습니다. 표현이 어색하거나 모호한 부분이 있을 수 있으니, 정확한 내용은 영어 원문을 함께 확인해 주세요.
계정이 소유한 단일 커스텀 보이스 객체를 반환합니다.

엔드포인트

GET https://supertoneapi.com/v1/custom-voices/{voice_id}

경로 파라미터

NameRequiredDescription
voice_id커스텀 보이스의 ID입니다.

참고사항

  • voice_id가 계정에 존재하지 않으면 404 Not Found를 반환합니다.
  • 보이스가 존재하지만 다른 계정에 속한 경우 403 Forbidden을 반환합니다.

함께 보기

Docs: Custom voices

클론드 보이스의 생성, 관리, 사용 방법입니다.

Edit custom voice

이름 또는 설명을 업데이트합니다.

Authorizations

x-sup-api-key
string
header
required

Path Parameters

voice_id
string
required

Response

Custom voice details

voice_id
string
required

Unique identifier for the voice

Example:

"voice_123456789"

name
string
required

Name of the voice

Example:

"My Custom Voice"

description
string | null

Description of the voice

Example:

"A warm and friendly voice for customer service"