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.
获取与音频同步的逐词时间戳数据
GET /api/v1/music/timeline?clip_id={clip_id}
clip_id
data.clipId
results[].id
{ "code": 0, "message": "ok", "request_id": "req-1710000000000", "data": { "aligned": [ { "word": "你好", "start": 2.14, "end": 2.56 }, { "word": "世界", "start": 2.58, "end": 2.99 }, { "word": "这就是", "start": 3.1, "end": 3.3 }, { "word": "音乐", "start": 3.5, "end": 3.95 } ] } }
aligned
aligned[].word
aligned[].start
aligned[].end
curl "https://api.example.com/api/v1/music/timeline?clip_id=abc123def456" \ -H "Authorization: Bearer sk-mm-your-key"
function getCurrentWord(aligned, currentTime) { return aligned.find(w => currentTime >= w.start && currentTime <= w.end); }