---
name: transkriba
description: Transcribe Russian audio and video to text with timestamps and speaker labels through the Transkriba API (transkriba.ru), then turn the transcript into meeting minutes, interview quotes, lecture notes or SRT/VTT subtitles. Use when the user has a recording, voice message, call, lecture, interview, podcast or video (file or YouTube/VK/Rutube link) in Russian and wants text from it. Triggers: transcribe, transcript, subtitles, SRT, meeting notes, расшифровка, транскрибация, расшифровать аудио, аудио в текст, видео в текст, протокол созвона, субтитры, голосовое в текст.
---

# Transkriba: Russian speech to text

Transkriba is a hosted transcription service for Russian speech (model GigaAM v3, Whisper for other languages). It returns punctuated text split into segments with start/end timestamps and optional `SPEAKER_00`-style labels. Billing is per minute of audio from a prepaid balance; there is no subscription.

## Setup

1. The user needs an API key from https://transkriba.ru/keys (sign in, top up minutes, create a key). The secret (`sk_live_…`) is shown once.
2. Read it from the environment, never hard-code it:

```bash
export TRANSKRIBA_API_KEY=sk_live_...
```

If the key is missing, stop and ask the user for it. Do not invent one.

Base URL: `https://transkriba.ru/api/v1`. Every request sends `Authorization: Bearer $TRANSKRIBA_API_KEY`.

## Check the balance first

```bash
curl -s https://transkriba.ru/api/v1/balance -H "Authorization: Bearer $TRANSKRIBA_API_KEY"
# {"minutes_remaining": 120, "minutes_used": 30, "minutes_granted": 150}
```

Minutes are charged after recognition, by measured duration rounded up to the minute. A failed job charges nothing. If the recording is longer than `minutes_remaining`, tell the user before starting; top-up is at https://transkriba.ru/pricing.

## Option A: a public link

Works for one public video or episode on YouTube, VK Video, Rutube, Dzen, OK, Castbox or SoundCloud. Private pages, playlists and cloud-drive links are not imported.

```bash
curl -s -X POST https://transkriba.ru/api/v1/transcribe \
  -H "Authorization: Bearer $TRANSKRIBA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://www.youtube.com/watch?v=...", "language": "ru", "diarize": true}'
# 202 {"job_id": "cm4x...", "status": "queued"}
```

## Option B: a local file (up to 256 MB per file through the API)

```bash
FILE="meeting.m4a"
SIZE=$(wc -c < "$FILE" | tr -d ' ')

# 1. Ask for an upload URL
curl -s -X POST https://transkriba.ru/api/v1/uploads \
  -H "Authorization: Bearer $TRANSKRIBA_API_KEY" \
  -H "Content-Type: application/json" \
  -d "{\"file_name\":\"$FILE\",\"content_type\":\"audio/mp4\",\"size_bytes\":$SIZE}"
# {"upload_url": "...", "s3_key": "...", "method": "PUT", "content_type": "audio/mp4", "content_length": 1234567, "expires_in": 1800}

# 2. PUT the bytes with exactly the content_type and content_length from step 1
curl -s -X PUT "<upload_url>" -H "Content-Type: <content_type>" -H "Content-Length: <content_length>" --upload-file "$FILE"

# 3. Start the job
curl -s -X POST https://transkriba.ru/api/v1/transcribe \
  -H "Authorization: Bearer $TRANSKRIBA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"s3_key": "<s3_key>", "file_name": "meeting.m4a", "diarize": true}'
```

The upload URL lives 30 minutes. Each `s3_key` starts one job. For a video over 256 MB, extract the audio first; it is usually tens of times smaller:

```bash
ffmpeg -i video.mp4 -vn -c:a copy audio.m4a   # when the track is AAC
ffmpeg -i video.mov -vn -ac 1 audio.flac      # any other codec
```

Do not convert MP3 or M4A to WAV before uploading: it makes the file bigger and does not improve recognition.

## Wait for the result

```bash
curl -s https://transkriba.ru/api/v1/jobs/<job_id> -H "Authorization: Bearer $TRANSKRIBA_API_KEY"
```

`status` is `queued`, `processing`, `completed` or `failed`. Poll every 10–20 seconds. Server-side recognition usually takes a few seconds for a clip under 10 minutes and about two minutes for an hour of audio, plus upload and queue time. Alternatively pass `"webhook": "https://..."` to `/transcribe`; it is sent once, so the job endpoint stays the source of truth.

A completed job:

```json
{
  "id": "cm4x...",
  "status": "completed",
  "duration_sec": 1861,
  "billed_minutes": 32,
  "segments": [
    { "start": 4.1, "end": 9.8, "speaker": "SPEAKER_00", "text": "Начнём с того, что сроки…" }
  ]
}
```

Ready-made files: `GET /api/v1/jobs/<job_id>.txt`, `.srt`, `.vtt` or `.json` (409 until the job is completed).

## Turn the transcript into what the user actually wants

Fetch the `.txt` or the segments, then do the work the user asked for. Quote the transcript; do not invent what was said. Speaker labels are automatic and can be wrong when people interrupt each other, so ask the user to map `SPEAKER_00`/`SPEAKER_01` to names when it matters.

- **Meeting minutes:** decisions, action items with owner and deadline, open questions, each with the timestamp where it was said.
- **Interview to article:** key quotes verbatim with timestamps, then a draft in the user's style. Flag names, numbers and terms to check against the audio.
- **Lecture notes:** an outline by topic with timestamps, definitions, and questions for revision.
- **Subtitles:** download `.srt` or `.vtt`. For Reels/Shorts keep lines short; split long cues before burning them in.
- **Search across past recordings:** `GET /api/v1/jobs?limit=50` lists earlier jobs (`next_cursor` for more).

## Errors

| Code | Meaning | What to do |
|---|---|---|
| 401 | Key wrong or revoked | Ask the user to check `TRANSKRIBA_API_KEY` |
| 402 | Out of minutes | Tell the user; top up at https://transkriba.ru/pricing |
| 409 | Export requested before completion | Keep polling the job |
| 429 | Daily limit of the key reached | Raise the limit in the dashboard or wait until midnight UTC |
| 502/503 | Temporary | Retry with a delay; keep the `job_id` |

## MCP alternative

Remote agents (Claude.ai, ChatGPT and other MCP clients) can connect the MCP server instead: `https://transkriba.ru/api/mcp` with header `Authorization: Bearer <api key>`. Tools: `transcribe_url`, `create_upload`, `transcribe_file`, `get_transcript`, `list_transcripts`, `search_transcripts`, `get_balance`. Setup guide: https://transkriba.ru/mcp

Docs: https://transkriba.ru/razrabotchikam · Pricing: https://transkriba.ru/pricing
