---
title: "Flush the STT buffer on a leg without stopping STT"
method: POST
path: "/legs/{id}/stt/finalize"
tags: ["Legs"]
---

# Flush the STT buffer on a leg without stopping STT

`POST /legs/{id}/stt/finalize`

Forces the provider to emit a final transcript for the audio buffered so far while the session keeps running, so a caller that knows the speaker has finished does not have to wait for the provider's own endpointing. Only the `deepgram` provider supports this; `deepgram_flux`, `azure` and `elevenlabs` answer 501 — /v2/listen has no flush message, and Flux reports turn ends itself on stt.turn. The flushed transcript arrives on the usual stt.text event with is_final true — a segment containing no speech produces no event at all, so do not block on one.

## Response `200`

Final transcript requested

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

## Other responses

- `404` — No STT in progress
- `409` — STT session not connected or the flush failed
- `501` — The active STT provider does not support finalize

---

[API](https://skmtc.net/voiceblender/apis/voiceblender-api.md) · [All operations](https://skmtc.net/voiceblender/apis/voiceblender-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/voiceblender/voiceblender-api/revisions/bd583fca5230/schema)
