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.
Result
| App | epub_to_audiobook (open source, by p0n1). We worked on our own copy and changed nothing in the original. |
|---|---|
| Run | 3 chapters turned into 3 audio files in 27 seconds. 0 clips flagged for review. |
| Checked how | Every clip was transcribed back to text and compared with the script. All 3 matched on the first try. |
| Code changed | 1 existing file (about 20 lines) and 1 new file (about 210 lines), plus 12 new tests. Old-model code path left as it was. |
| Time | About 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
- The replacement doesn't run on the old endpoint. We rewrote the call to use the Realtime API.
- 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.
- Sometimes it returns silence. That now counts as a failed try and gets redone.
- 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.
- 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
- A full-length book. Each test chapter was a single clip.
- Voices other than "alloy", non-English text, and playback speed (the new model does not support speed).
- Real cost per book. We have only a rough estimate.
- The skipped-sentence problem is reduced, not solved. Flagged clips need a human.
- The safety check uses a transcription model that OpenAI also retires on February 26, 2027. We are moving it to the replacement and retesting.
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.