1. 子密钥管理
MyVocal AI语音大模型API文档
  • 文字转语音大模型
    • 多语种语音合成
      • Voices
        • 创建声音
        • 获取声音列表
        • 删除声音
      • Text-to-Speech
        • 多线程全双工通道 (Mutiple-websocket)
        • 单线程全双工通信(WebSocket)
        • 流式文字转语音(Streaming TTS)
        • 非流式文字转语音
      • 查询接口
        • 查询主key用量
        • Request_id客户端查询
        • 发音人用量查询
      • 子密钥管理
        • 创建子 Key
          POST
        • 查询子 Key 列表
          GET
        • 获取单个子 Key 详情
          GET
        • 更新子 Key
          PATCH
        • 查询子 Key 用量
          GET
  • 金融行业定制TTS模型
    • 文字转语音 Skyblight
      • 创建声音
      • 获取声音列表
      • 流式文字转语音(Streaming)
      • 文字转语音(非流式返回)
      • 删除声音
      • 用量查询
    • 全双工通信
      • websocket接入说明
  • 语音转文字ASR
    • 语音转文字
      • 实时语音转文字(Realtime ASR)
      • 语音转文字ASR
      • 客户用量查询
  • 企业客户声音定制服务
    • 定制属于你的专属声音
  1. 子密钥管理

创建子 Key

POST
https://api.voicelibrary.co/enterprise/v1/sub_keys
## 创建子密钥 — POST /sub_keys
创建一个新的子级 API 密钥,并可指定其功能权限与过期时间。

请求参数

Header 参数

Body 参数application/json

示例

返回响应

🟢200成功
application/json
Bodyapplication/json

请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location 'https://api.voicelibrary.co/enterprise/v1/sub_keys' \
--header 'api-key: 112233445566' \
--header 'Content-Type: application/json' \
--data '{
  "name": "this is a test",
  "description": "hi, this is a test",
  "permissions": {
    "add_voice": true,
    "list_voices": true,
    "del_voices": true,
    "tts_wss": true,
    "tts_stream": true,
    "tts": true
  },
  "expires_at": null
}'
响应示例响应示例
{}
上一页
子密钥管理
下一页
查询子 Key 列表
Built with