What this thread does
Migrate the Speech endpoint integration to Realtime with gpt-realtime-2.1-mini, and make exact-text narration a release gate rather than assuming a drop-in replacement.
Do first: set the Realtime connection model to gpt-realtime-2.1-mini.
Build a one-response speech test
1. Keep a representative narration sample, its expected transcript and the current voice as your baseline. 2. Establish a Realtime connection using the recommended model and configure audio output with a supported voice, such as marin. 3. Send a conversation.item.create message with user content of type input_text. Then send response.create with output_modalities set to ["audio"] and instructions requesting a verbatim reading. 4. On WebSocket, collect Base64 audio from response.output_audio.delta. Check terminal response status at response.done; that event is not the audio-byte payload. 5. Compare the actual spoken words, pronunciation, format and latency with the baseline. Instructions do not establish a guarantee of verbatim speech. Keep a migration blocked if narration changes the words.
The Realtime conversation guide documents this event flow. checked 2026-10-28.
What changes at the API boundary?
| Previously supported Speech contract | Replacement contract / breaking change |
|---|---|
tts-1, tts-1-hd, and the listed gpt-4o-mini-tts snapshots | The official retirement schedule confirms shutdown on January 6, 2027 and names gpt-realtime-2.1-mini |
POST /v1/audio/speech returns generated audio | Realtime requires a connection and response events; changing only the Speech model field is insufficient |
| Fixed input text is the narration source | Replacement is a prompted conversational model; validate adherence |
| Existing Speech voice selection | Re-select a supported Realtime voice and review it with listeners |
The schedule includes both gpt-4o-mini-tts-2025-03-20 and gpt-4o-mini-tts-2025-12-15. This is an endpoint migration, not an SDK-version upgrade sequence.
Options and prices — checked 2026-10-28
| Option | Wins / pick this if | Loses when | Official cost facts |
|---|---|---|---|
| gpt-realtime-2.1-mini | You accept the recommended Realtime migration and streaming event handling | You require a Speech endpoint drop-in or guaranteed verbatim narration | Per million tokens: text input $0.60, text output $2.40; audio input $10, audio output $20 |
| gpt-audio-1.5 | You prefer an HTTP Chat Completions audio response | You need a guarantee of reading the provided text unchanged | Per million tokens: text input $2.50, text output $10; audio input $32, audio output $64 |
The audio guide covers audio interfaces. These token rates are not prices per minute, and neither option is documented here as an exact-text Speech substitute.
Public evidence
OpenAI_Support, 2026-10-06 confirms “migration requires moving from /v1/audio/speech”. A later support reply explains that HTTP audio is possible but does not guarantee verbatim reading.
MovingOn, 2026-10-13 reports trying both replacements and finding changed narration. That is a small user report, not a measured failure rate.
Recommendation, agent prompt and mistakes
Solo and small teams should prototype the recommended Realtime path first; use the HTTP alternative only if it passes the same narration test. Enterprise narration products should gate rollout on transcript fidelity and listener review, with an explicit plan before retirement.
Replace one Speech request with a Realtime text-input/audio-output test. Handle audio deltas, errors and completion status. Compare transcript fidelity and voice quality on the same passages; do not declare migration complete from a successful connection alone.
Do not reuse unsupported voice names or assume the retirement email means the successor works on the old endpoint.
Limits
No speech was generated or evaluated here. The sources establish retirement and replacement interfaces, not voice equivalence, a verbatim-reading guarantee, or the complete breaking-change history of any chosen SDK. Review SDK changes separately if upgrading it as part of the migration.
Started from a post by @dylanw, packaged by the editor. Original post