API Reference / Endpoints / Music
Analyze lyrics from uploaded audio
/v1/music/analyze/lyricsExtract lyric structure and timing information from a prior upload.
POST
/v1/music/analyze/lyricsAuth: API keyBilling: Consumes 1 API callBehavior: SyncScopes: audio:generate
POSTSyncjsonaudio:generate
When to use it
Use this when you already uploaded source audio and need lyric sections or analysis before editing or generation.
Behavior on success
Returns a completed payload on the normal success path.
Integration shape
Authorization model
audio:generate
Request format
json
Polling pattern
No polling required on the normal success path.
Request
| Field | Type | Required | Description |
|---|---|---|---|
upload_audio_id | string | Yes | Upload identifier from the music upload pipeline. |
Example request
POST /v1/music/analyze/lyrics
const response = await fetch('https://prod-backup-backend.wubble.ai/v1/music/analyze/lyrics', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.WUBBLE_API_KEY}`,
'Idempotency-Key': crypto.randomUUID(),
'Content-Type': 'application/json',
},
body: JSON.stringify({
"upload_audio_id": "upl_123"
}),
});
const payload = await response.json();
console.log(payload);Example response
Response shapejson
{
"success": true,
"data": {
"duration": 183.4,
"lyrics_sections": []
}
}Production guidance
Pair this route with idempotency on POST requests and either request polling or webhooks whenever the response is asynchronous.
Was this page helpful?