---
title: "Start real-time speech-to-text on a leg"
method: POST
path: "/legs/{id}/stt"
tags: ["Legs"]
---

# Start real-time speech-to-text on a leg

`POST /legs/{id}/stt`

## Request body

- STTRequest
  - `language` string, required — Language code (e.g. "en", "es")
  - `partial` boolean, required — Emit partial (non-final) transcripts
  - `provider` 'elevenlabs' | 'deepgram' — STT provider: "elevenlabs" (default) or "deepgram"
  - `api_key` string — API key override (falls back to ELEVENLABS_API_KEY or DEEPGRAM_API_KEY env var depending on provider)

## Response `200`

STT started

- StatusResponse
  - `instance_id` string — Instance identifier
  - `status` string, required

## Other responses

- `404` — Leg not found
- `409` — Leg not connected, STT already running, or no audio reader
- `503` — No ElevenLabs API key provided

## Changes

- **2026-04-13** `8fca8ce718d0` — 1 breaking
  - removed the enum value `azure` of the request property `provider`
- **2026-04-06** `3eeffdee9d4f` — 1 info
  - added the new `azure` enum value to the request property `provider`
- **2026-03-26** `7856459e2b72` — 2 breaking, 2 info
  - the request property `language` became required
  - removed the required property `leg_id` from the response with the `200` status
  - added the new optional request property `provider`
  - the request property `partial` with a default value became required
- **2026-03-26** `d09c97c6ca8c` — 3 info
  - the request property `language` became optional
  - the request property `partial` became optional
  - added the required property `leg_id` to the response with the `200` status
- **2026-03-26** `818619c99a1d` — 2 breaking, 1 info
  - the request property `language` became required
  - removed the required property `leg_id` from the response with the `200` status
  - the request property `partial` with a default value became required

[Change history](https://skmtc.dev/voiceblender/apis/voiceblender-api/changes/legs/:id/stt/post.md)

---

[API](https://skmtc.dev/voiceblender/apis/voiceblender-api.md) · [All operations](https://skmtc.dev/voiceblender/apis/voiceblender-api/llms.txt) · [OpenAPI document](https://skmtc.dev/voiceblender/apis/voiceblender-api/revisions/9b0a18aea1e2?raw)
