获取可用音色列表
curl --request GET \
--url https://api.mountsea.ai/eleven/voices \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mountsea.ai/eleven/voices"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.mountsea.ai/eleven/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://api.mountsea.ai/eleven/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://api.mountsea.ai/eleven/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://api.mountsea.ai/eleven/voices")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mountsea.ai/eleven/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{
"voices": [
{
"voiceId": "JBFqnCBsd6RMkjVDRZzb",
"name": "George",
"category": "premade",
"description": "Warm, narrative male voice",
"previewUrl": "<string>",
"labels": {
"accent": "american",
"gender": "male"
}
}
],
"total": 20
}ElevenLabs
获取音色列表
获取可用于对话合成的音色
GET
/
eleven
/
voices
获取可用音色列表
curl --request GET \
--url https://api.mountsea.ai/eleven/voices \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mountsea.ai/eleven/voices"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.mountsea.ai/eleven/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://api.mountsea.ai/eleven/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://api.mountsea.ai/eleven/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://api.mountsea.ai/eleven/voices")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mountsea.ai/eleven/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{
"voices": [
{
"voiceId": "JBFqnCBsd6RMkjVDRZzb",
"name": "George",
"category": "premade",
"description": "Warm, narrative male voice",
"previewUrl": "<string>",
"labels": {
"accent": "american",
"gender": "male"
}
}
],
"total": 20
}获取可用的 ElevenLabs 音色列表。同步返回
voiceId、name、previewUrl 和标签等信息 — 将 voiceId 用于多角色对话合成 的 inputs[].voiceId。
此端点为同步接口。不创建任务,也不消耗 character credits。
查询过滤
| 参数 | 说明 |
|---|---|
category | 按分类过滤:premade、cloned、generated 或 professional |
search | 按名称、description 或 voiceId 模糊搜索 |
先调用此端点选择音色 ID,再传入
POST /eleven/dialogue。可用返回的 previewUrl 试听后再合成。授权
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
查询参数
按分类过滤:premade / cloned / generated / professional
示例:
"premade"
按名称 / description / voiceId 模糊搜索
示例:
"George"
⌘I