Skip to main content
POST
Correct a transcript
For the guide, see Speech to Text.

Overview

When a transcript comes back wrong, send the text it should have been. Morph keeps the correction with that request’s audio and transcript, and uses them to find and fix recognition errors.

Which transcript

  • File transcriptions: request_id is the x-request-id header of the /v1/audio/transcriptions response.
  • Realtime turns: item_id is the turn’s item_id from conversation.item.input_audio_transcription.completed.
Send exactly one. text is the whole corrected transcript, not a diff, and "" when nothing was said. A dictation app can send the text the user ended up with. You can send again for the same request, and the newest correction is the one that counts.

Limits and errors

Bodies up to 1 MB; note up to 2,000 characters. Errors use the OpenAI envelope: 400 invalid body, 401 invalid_api_key, 403 zero_data_retention (Morph keeps nothing for those keys, so there is nothing to correct), 429 rate_limit_exceeded.

Authorizations

Authorization
string
header
required

Morph API key, passed as Authorization: Bearer sk-.... Create keys at https://www.morphllm.com/dashboard/api-keys.

Body

application/json

The request or turn, and what its transcript should have said.

The transcript a request or realtime turn should have returned, named by exactly one of request_id or item_id.

text
string
required

The full transcript the request or turn should have returned. An empty string means nothing was said.

Example:

"He hoped there would be stew for dinner."

request_id
string

The x-request-id header of the transcription to correct. Send this or item_id.

Example:

"78078d1a-75e4-4c87-904b-925eb943ab3a"

item_id
string

A realtime turn's item_id, from its conversation.item.input_audio_transcription.completed event. Send this or request_id.

Example:

"item_2033d174d01849c3ac234c22"

note
string

What went wrong, in your words. Up to 2,000 characters.

Maximum string length: 2000
Example:

"Dropped the last three words."

Response

The correction was stored.

A stored correction.

id
string
required
Example:

"corr_2454dab71ec47f08b0cf1cf6"

object
enum<string>
required
Available options:
transcription.correction
Example:

"transcription.correction"

created_at
integer
required

Unix seconds.

Example:

1796074557

request_id
string
Example:

"78078d1a-75e4-4c87-904b-925eb943ab3a"

item_id
string
Example:

"item_2033d174d01849c3ac234c22"