PeumeAPI

AI generation

Forced Alignment

Align a known transcript to its audio recording, returning precise word-level timestamps (subtitles, audiobook timings, karaoke).

$0.33 per call

Call it

curl https://api.peume.com/v1/call/forced-alignment \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "audio_url": "your audio url",
    "text": "your text"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: forced-alignment.

Parameters

audio_urlRequiredstring

HTTPS URL of the audio file (public or presigned link; max 20MB). fetches it server-side and relays it to ElevenLabs.

textRequiredstring

The transcript to align — a PLAIN string (no JSON wrapping, no diarization markup).

expected_duration_minutesnumber

only billing hint (NOT sent upstream): expected audio length in minutes, used to size the admission hold. Settlement bills the actual aligned duration. Omitted → a 60-minute hold.

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.