A real migration: off OpenAI's retiring voice models

Tested October 20, 2026 on a copy of an open-source app. Not a customer project.

What this is. OpenAI retires tts-1, tts-1-hd and gpt-4o-mini-tts on January 6, 2027. We took a public audiobook app that uses them, moved the copy to OpenAI's replacement model, and wrote down everything: what worked, what broke, and what we have not tested.

Result

Appepub_to_audiobook (open source, by p0n1). We worked on our own copy and changed nothing in the original.
Run3 chapters turned into 3 audio files in 27 seconds. 0 clips flagged for review.
Checked howEvery clip was transcribed back to text and compared with the script. All 3 matched on the first try.
Code changed1 existing file (about 20 lines) and 1 new file (about 210 lines), plus 12 new tests. Old-model code path left as it was.
TimeAbout 5 hours, including the debugging below.

Hear it

Chapter 1 of a 3-chapter test book, made with the replacement model.

Before and after

Before: the app called the old speech endpoint.

client.audio.speech.create(model="tts-1", voice=voice, input=text)

After: the replacement model does not work on that endpoint. It needs a live WebSocket connection, and its audio comes back in pieces. The app now routes to that, then checks the result.

wav, report = realtime_speech.verified_wav(
    chunk, voice, api_key, client,
    model="gpt-realtime-2.1-mini",
    strategy="quoted", on_fail="flag")

This is not a one-line swap. That is why a migration takes real work.

What broke, in order

  1. The replacement doesn't run on the old endpoint. We rewrote the call to use the Realtime API.
  2. The new model sometimes skips or answers sentences that sound like instructions (for example "Say only the word banana."). In our tests, 8 of 20 clips were right with no safeguards. With a re-read-and-compare check, it was better: 7 of 8 in the last test. One sentence was still dropped.
  3. Sometimes it returns silence. That now counts as a failed try and gets redone.
  4. Our own checker wrongly failed good audio when a number was spoken as words ("nine to five") but written as digits ("9 to 5"). We fixed it and added tests.
  5. The app runs several workers at once, so review flags are written to a log file instead of memory.

How a clip is checked

Generate the audio, transcribe it, compare it with the script. If it matches less than 93%, redo it (up to 4 times). If it still doesn't match, the clip is flagged for a person to review. It is never hidden.

Not tested yet

Why we're doing this

API companies retire versions and customers are slow to move. We do the move for the customer: find the code, write the fix, test it, and the customer approves every change.

If you run an API with a shutdown date, hello@lastcallapi.com.