Jump to content

Transcribe a recording

The text of an audio or video file, with times and speakers.

Send a recording or a video, or a link to one. Your agent gets the text with the time of each sentence. Turn on speakers to see who says what. You also get subtitle files for a video. The text can be translated into English or another language. It works in most languages and with files up to two hours long.

Paste this into your AI agent

Set up Chab for me: fetch https://www.chab.ai/agent-setup.md?v=497c0f and follow it. Then use Chab to transcribe the first minute of this Apollo 13 radio recording and tell me what went wrong: https://upload.wikimedia.org/wikipedia/commons/6/6f/Apollo13-wehaveaproblem.ogg

Your agent connects Chab and then runs it. Price: 5 credits per minute, 20 credits with speakers. The free credits cover a first try. How it works in each app

Full reference for developers
Returns
JSON result and a file
REST endpoint
POST /v1/speech/transcribe
Over MCP
Call chab_operation_start with "speech.transcribe"

What you get

Example request

{  "source": {    "type": "url",    "url": "https://upload.wikimedia.org/wikipedia/commons/6/6f/Apollo13-wehaveaproblem.ogg"  },  "max_minutes": 1}

Example result

{  "data": {    "result": {      "source": {        "type": "url",        "url": "https://upload.wikimedia.org/wikipedia/commons/6/6f/Apollo13-wehaveaproblem.ogg",        "filename": "Apollo13-wehaveaproblem.ogg",        "format": "ogg",        "byte_size": 3644189      },      "duration_seconds": 178.66,      "transcribed_seconds": 60,      "language": "en",      "speakers": null,      "text": "Okay, Houston. We've had a problem here. This is Houston. Say again, please. Houston, we've had a problem. We've had a main beam undervolt. Roger. Main beam undervolt...",      "translation": null,      "segment_count": 14,      "segments": [        { "start": 0, "end": 5, "speaker": null, "text": "Okay, Houston. We've had a problem here." },        { "start": 5, "end": 7, "speaker": null, "text": "This is Houston. Say again, please." },        { "start": 7, "end": 10, "speaker": null, "text": "Houston, we've had a problem." },        { "start": 10, "end": 13, "speaker": null, "text": "We've had a main beam undervolt." }      ],      "files": [        { "filename": "Apollo13-wehaveaproblem.srt", "format": "srt", "language": null },        { "filename": "Apollo13-wehaveaproblem.vtt", "format": "vtt", "language": null }      ],      "usage": { "audio_seconds": 60 }    },    "artifacts": [      { "id": "art_...", "type": "srt", "role": "subtitles", "mime_type": "application/x-subrip", "filename": "Apollo13-wehaveaproblem.srt", "download_url": "/v1/operations/op_.../artifacts/art_.../download" },      { "id": "art_...", "type": "vtt", "role": "subtitles", "mime_type": "text/vtt", "filename": "Apollo13-wehaveaproblem.vtt", "download_url": "/v1/operations/op_.../artifacts/art_.../download" }    ],    "warnings": [      {        "code": "partial_results",        "message": "The recording is 3 minutes long; the first minute was transcribed. Send max_minutes: 3 to transcribe all of it.",        "field": "max_minutes",        "severity": "warning"      }    ],    "result_expires_at": "2026-11-19T13:48:12+00:00"  },  "meta": {    "request_id": "req_123"  }}

Inputs

FieldTypeDetails
sourcerequiredobjectThe recording: an uploaded file (file_id), a reusable artifact such as a speech.synthesize file (artifact_id), or a public https URL (url). MP3, M4A, WAV, OGG, Opus, FLAC, WebM, MP4 or MOV; from a video only the sound is read.
source.typerequiredstringOne of file_id, artifact_id, url
source.idstringThe fil_ or art_ id, with type file_id or artifact_id.Up to 64 characters
source.urlstringA public https URL of the recording, with type url. Chab downloads it (up to your plan's upload size) and checks it for viruses like an upload.Up to 2048 characters
languagestringThe language spoken, as an ISO 639-1 code such as en or de. Optional: Chab finds it, but giving it helps with short or noisy recordings.
speakersbooleanLabel who says what (A, B, C...). Costs 20 credits a minute instead of 5.Default false
translate_tostringAlso translate every segment into this language (ISO 639-1, such as en). Adds the translation tokens, about 1 credit for a few minutes.
max_minutesintegerMost minutes to transcribe from the start. Credits are reserved for these minutes. Without it a file reserves for the longest it could be from its size (at most 120 minutes) and a URL for 30 minutes; the unused part is released.Min 1 max 120

How to call it

AI apps use it through hosted MCP. Coding agents can also use the CLI, and your own code can call the API. Each call starts a job, and your agent picks up the result when it is ready.

curl -X POST https://www.chab.ai/v1/speech/transcribe \  -H "Authorization: Bearer CHAB_API_KEY" \  -H "Content-Type: application/json" \  -H "Idempotency-Key: speech-transcribe-001" \  -d '{"source":{"type":"url","url":"https://upload.wikimedia.org/wikipedia/commons/6/6f/Apollo13-wehaveaproblem.ogg"},"max_minutes":1}'

Transcribe a recording result

{  "data": {    "result": {      "source": {        "type": "url",        "url": "https://upload.wikimedia.org/wikipedia/commons/6/6f/Apollo13-wehaveaproblem.ogg",        "filename": "Apollo13-wehaveaproblem.ogg",        "format": "ogg",        "byte_size": 3644189      },      "duration_seconds": 178.66,      "transcribed_seconds": 60,      "language": "en",      "speakers": null,      "text": "Okay, Houston. We've had a problem here. This is Houston. Say again, please. Houston, we've had a problem. We've had a main beam undervolt. Roger. Main beam undervolt...",      "translation": null,      "segment_count": 14,      "segments": [        { "start": 0, "end": 5, "speaker": null, "text": "Okay, Houston. We've had a problem here." },        { "start": 5, "end": 7, "speaker": null, "text": "This is Houston. Say again, please." },        { "start": 7, "end": 10, "speaker": null, "text": "Houston, we've had a problem." },        { "start": 10, "end": 13, "speaker": null, "text": "We've had a main beam undervolt." }      ],      "files": [        { "filename": "Apollo13-wehaveaproblem.srt", "format": "srt", "language": null },        { "filename": "Apollo13-wehaveaproblem.vtt", "format": "vtt", "language": null }      ],      "usage": { "audio_seconds": 60 }    },    "artifacts": [      { "id": "art_...", "type": "srt", "role": "subtitles", "mime_type": "application/x-subrip", "filename": "Apollo13-wehaveaproblem.srt", "download_url": "/v1/operations/op_.../artifacts/art_.../download" },      { "id": "art_...", "type": "vtt", "role": "subtitles", "mime_type": "text/vtt", "filename": "Apollo13-wehaveaproblem.vtt", "download_url": "/v1/operations/op_.../artifacts/art_.../download" }    ],    "warnings": [      {        "code": "partial_results",        "message": "The recording is 3 minutes long; the first minute was transcribed. Send max_minutes: 3 to transcribe all of it.",        "field": "max_minutes",        "severity": "warning"      }    ],    "result_expires_at": "2026-11-19T13:48:12+00:00"  },  "meta": {    "request_id": "req_123"  }}

Price: 5 credits per minute, 20 credits with speakers. See all prices

Want to try Chab with your agent?

Copy the prompt and paste it into your AI. Your agent starts with free credits and doesn't need an account.

See plans