Speech to Text
Transcription Corrections API
Tell Morph what a transcript should have said, for a file transcription or a realtime turn.
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_idis thex-request-idheader of the/v1/audio/transcriptionsresponse. - Realtime turns:
item_idis the turn’sitem_idfromconversation.item.input_audio_transcription.completed.
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
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.
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."
Response
The correction was stored.
A stored correction.