Skip to main content
GET
/
v1
/
voices
获取语音列表
curl --request GET \
  --url https://api.voxnexus.ai/v1/voices \
  --header 'Authorization: Bearer <token>'
{
  "voices": [
    {
      "voice_id": "vl-xiaoxiao",
      "name": "Xiaoxiao",
      "language": "zh-CN",
      "locale": "zh-CN",
      "display_name": "晓晓",
      "gender": "female",
      "age": "young",
      "description": "A cheerful and energetic voice",
      "styles": [
        "cheerful",
        "sad",
        "angry"
      ],
      "sample_url": "https://api.example.com/v1/samples/vl-xiaoxiao",
      "voice_config_schema": {}
    }
  ],
  "pagination": {
    "page": 1,
    "page_size": 20,
    "total": 150,
    "total_pages": 8
  }
}

Authorizations

Authorization
string
header
required

使用 Bearer Token 进行认证,Token 为 API Key

Query Parameters

language
string

语言代码(可选)

Example:

"zh-CN"

gender
enum<string>

性别(可选)

Available options:
male,
female,
neutral
age
enum<string>

年龄段(可选)

Available options:
child,
young,
adult,
senior
style
string

语音风格(可选)

page
integer
default:1

页码(默认 1)

Required range: x >= 1
page_size
integer
default:20

每页数量(默认 20,最大 100)

Required range: 1 <= x <= 100

Response

成功返回语音列表

voices
object[]
required

语音列表

pagination
object
required