Skip to main content
For a runnable client, see Speech to Text.

Connect

intent=transcription is required. Optional query parameters: model (morph-transcribe-live, the default, or morph-transcribe) and chunk_ms. A missing key, a bad query or full capacity is refused before the upgrade with the HTTP error (401, 400, 429). Client events are JSON text frames; every server event carries an event_id.

Session

The server sends session.created on connect. Change settings any time with session.update; the server answers with session.updated and the full session.
transcription.prompt and transcription.keywords are refused: the streaming model takes no context. noise_reduction and include are ignored.

Dictation: upload while speaking, transcribe on release

Set the model to morph-transcribe and turn_detection to null. Send input_audio_buffer.append while the microphone is open and input_audio_buffer.commit when it closes. The audio is already on the server when the turn ends, so nothing is left to upload: the turn is transcribed by the file model when it ends and comes back as delta events followed by completed.
Each turn is billed as morph-transcribe for the audio in that turn, and completed carries usage in tokens. A turn longer than about 45 seconds is cut where the speaker pauses and its pieces are transcribed at the same time, so the wait after release stops growing with the turn. Such a turn appears as several requests in your usage, for the same total audio. A turn holds up to 60 minutes of audio. With server_vad instead of null, each detected stretch of speech becomes its own turn. If capacity is full when a turn ends, that turn fails with rate_limit_exceeded and the session stays open.

Client events

Server events

Deltas arrive while the turn is still open, so text shows up as the speaker talks.

Billing

A session bills every second of audio appended, silence included, at $4.40 per 1M input tokens (12.5 tokens per second, $0.198 per audio hour), as one usage row when the session closes.