简体中文
cURL
curl --request POST \ --url https://api.sunoapi.org/api/v1/generate/get-timestamped-lyrics \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "taskId": "5c79****be8e", "audioId": "5c79****be8e", "musicIndex": 0 }'
{ "code": 200, "msg": "success", "data": { "alignedWords": [ { "word": "[Verse]\nWaggin'", "success": true, "start_s": 1.36, "end_s": 1.79, "p_align": 0 } ], "waveformData": [ 0, 1, 0.5, 0.75 ], "hootCer": 0.3803191489361702, "isStreamed": false } }
获取带时间戳的歌词,用于音频播放时的同步显示。
所有接口都需要通过 Bearer Token 方式进行认证。
在请求头中添加:
Authorization: Bearer YOUR_API_KEY
⚠️ 注意: 请妥善保管您的 API Key,不要泄露给他人 如果怀疑 API Key 泄露,请立即在管理页面重置
⚠️ 注意:
请求成功
The response is of type object.
object