POST
/v2/timestamped-lyricsタイムスタンプ付き歌詞 API
生成されたトラックのワードレベルの歌詞のタイムスタンプ、波形データ、およびアライメントの洞察を取得します。
POST
https://udioapi.pro/api/v2/timestamped-lyricstips
生成が完了した後にこのエンドポイントを呼び出し、時間指定された歌詞を取得します。
audio_id と task_id を指定します。
requestHeaders
| name | required | description |
|---|---|---|
Authorization | yes | 認証用ベアラートークン |
Content-Type | yes | application/json |
requestBody
アライメント検索用に両方の識別子を提供します
commonParams
| paramName | paramType | required | description | example |
|---|---|---|---|---|
audio_id | string | yes | フィードまたはコールバックからのオーディオ アセット ID | fc490335-ad97-4444-ac64-0fb21c0d4308 |
task_id | string | yes | 生成または拡張によって返される生成タスク識別子 | gen2b9bb36e6c0cc44567aa34fbcff3afa64bksv |
responses
json
{
"code": 200,
"message": "success",
"data": {
"lyricAlignment": {
"words": [
{
"text": "[Verse]\nLola ",
"aligned": true,
"startTime": 0.55851,
"endTime": 0.87766,
"confidence": 0
},
{
"text": "Chouch, ",
"aligned": true,
"startTime": 0.91755,
"endTime": 1.91489,
"confidence": 0
}
]
},
"audioWaveform": [
0.00006,
0,
0.0339
],
"alignmentScore": 0.175,
"isStreaming": false
}
}codeExamples
curl
curl -X POST "https://udioapi.pro/api/v2/timestamped-lyrics" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"audio_id": "fc490335-ad97-4e08-ac64-0fb91c0d4308",
"task_id": "gen2b9bb36e6c0cc47969aa34fbcff3afa64bksv"
}'