Mevcut sesleri getirme
curl --request GET \
--url https://app.whattalk.ai/api/user/assistants/voicesimport requests
url = "https://app.whattalk.ai/api/user/assistants/voices"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.whattalk.ai/api/user/assistants/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://app.whattalk.ai/api/user/assistants/voices",
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://app.whattalk.ai/api/user/assistants/voices"
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://app.whattalk.ai/api/user/assistants/voices")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.whattalk.ai/api/user/assistants/voices")
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[
{
"id": 1,
"name": "Alloy",
"language_id": 1,
"gender": "female",
"preview_url": "https://cdn.openai.com/API/voice-previews/alloy.flac",
"accent": null,
"age": "Middle aged",
"synthesizer_provider_id": null
},
{
"id": 10,
"name": "Zephyr",
"language_id": 1,
"gender": "female",
"preview_url": "https://gstatic.com/aistudio/voices/samples/Zephyr.wav",
"accent": null,
"age": "Middle aged",
"synthesizer_provider_id": 1
},
{
"id": 11,
"name": "Puck",
"language_id": 1,
"gender": "male",
"preview_url": "https://gstatic.com/aistudio/voices/samples/Puck.wav",
"accent": null,
"age": "Middle aged",
"synthesizer_provider_id": 1
}
]
Asistanlar
Mevcut sesleri getirme
Asistan yapilandirmasi icin mevcut tum sesleri alma
GET
/
user
/
assistants
/
voices
Mevcut sesleri getirme
curl --request GET \
--url https://app.whattalk.ai/api/user/assistants/voicesimport requests
url = "https://app.whattalk.ai/api/user/assistants/voices"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.whattalk.ai/api/user/assistants/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://app.whattalk.ai/api/user/assistants/voices",
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://app.whattalk.ai/api/user/assistants/voices"
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://app.whattalk.ai/api/user/assistants/voices")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.whattalk.ai/api/user/assistants/voices")
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[
{
"id": 1,
"name": "Alloy",
"language_id": 1,
"gender": "female",
"preview_url": "https://cdn.openai.com/API/voice-previews/alloy.flac",
"accent": null,
"age": "Middle aged",
"synthesizer_provider_id": null
},
{
"id": 10,
"name": "Zephyr",
"language_id": 1,
"gender": "female",
"preview_url": "https://gstatic.com/aistudio/voices/samples/Zephyr.wav",
"accent": null,
"age": "Middle aged",
"synthesizer_provider_id": 1
},
{
"id": 11,
"name": "Puck",
"language_id": 1,
"gender": "male",
"preview_url": "https://gstatic.com/aistudio/voices/samples/Puck.wav",
"accent": null,
"age": "Middle aged",
"synthesizer_provider_id": 1
}
]
Bu endpoint, asistan olusturulurken veya guncellenirken kullanilabilecek tum mevcut seslerin listesini, istege bagli olarak asistan modu ve dile gore filtreleme secenegiyle birlikte dondurur.
Sorgu Parametreleri
string
Sesleri asistan moduna gore filtreleyin. Secenekler:
pipeline, multimodal, dualplexinteger
Sesleri dil kimligine gore filtreleyin. Mevcut dil kimliklerini almak icin Dilleri Getir endpointini kullanin.
Yanit alanlari
array
Göster properties
Göster properties
integer
Sesin benzersiz tanimlayicisi
string
Sesin gorunen adi
integer
Bu sesin iliskilendirildigi dil kimligi
string
Sesin cinsiyeti (male/female)
string
Sesin ses orneginin URL’si. Kullanicilarin secim yapmadan once sesleri onizlemesine olanak tanimak icin kullanilabilir.
string
Sesin aksani (ornegin, “American”, “British”).
null olabilir.string
Sesin yas kategorisi (ornegin, “Young”, “Middle aged”).
null olabilir.integer
Bu sesin ait oldugu TTS saglayici kimligi. Saglayici adlarini cozumlemek icin Sentezleyici Saglayicilarini Getir endpointini kullanin.
null olabilir.[
{
"id": 1,
"name": "Alloy",
"language_id": 1,
"gender": "female",
"preview_url": "https://cdn.openai.com/API/voice-previews/alloy.flac",
"accent": null,
"age": "Middle aged",
"synthesizer_provider_id": null
},
{
"id": 10,
"name": "Zephyr",
"language_id": 1,
"gender": "female",
"preview_url": "https://gstatic.com/aistudio/voices/samples/Zephyr.wav",
"accent": null,
"age": "Middle aged",
"synthesizer_provider_id": 1
},
{
"id": 11,
"name": "Puck",
"language_id": 1,
"gender": "male",
"preview_url": "https://gstatic.com/aistudio/voices/samples/Puck.wav",
"accent": null,
"age": "Middle aged",
"synthesizer_provider_id": 1
}
]
Notlar
- Asistan olusturulurken veya guncellenirken
idalaninivoice_idolarak kullanin - Yalnizca hedeflediginiz asistan turuyle uyumlu sesleri almak icin
modeile filtreleyin - Belirli bir dil icin sesleri almak icin
language_idile filtreleyin - Hicbir filtre saglanmazsa, mevcut tum sesler dondurulur
- Yalnizca herkese acik olan veya kimlik dogrulamasi yapilmis kullaniciya ait sesler dondurulur
⌘I

