Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
从已有人声片段训练自定义 AI 歌手音色,用于生成保持一致风格的音乐
POST /api/v1/music/persona
persona_id
name
"我的歌手"
"My Artist"
clip_id
{ "code": 0, "message": "ok", "request_id": "req-1710000000000", "data": { "taskBatchId": "batch-xyz789", "items": [ { "id": "persona-abc123", "status": "complete" } ] } }
taskBatchId
items
items[].id
items[].status
"complete"
curl -X POST https://api.example.com/api/v1/music/generate \ -H "Authorization: Bearer sk-mm-your-key" \ -H "Content-Type: application/json" \ -d '{ "prompt": "[主歌]\n月光照在窗台\n风轻轻吹来\n[副歌]\n你是我心中的光", "title": "心中的光", "tags": "流行 抒情 女声", "persona_id": "persona-abc123" }'
prompt
tags
gpt_description_prompt
1. 准备或生成一段具有目标人声风格的源片段 ↓ 2. (推荐)执行人声分离,提取干净的人声轨道 ↓ 3. POST /api/v1/music/persona → 获得 persona_id ↓ 4. POST /api/v1/music/generate + persona_id → task_id ↓ 5. 轮询 GET /api/v1/task/{task_id} → audio_url
curl -X POST https://api.example.com/api/v1/music/persona \ -H "Authorization: Bearer sk-mm-your-key" \ -H "Content-Type: application/json" \ -d '{ "name": "我的专属歌手", "clip_id": "abc123def456" }'