Add support for speaker diarization
Confirm this is a feature request for the Python library and not the underlying OpenAI API.
- [x] This is a feature request for the Python library
Describe the feature or improvement you're requesting
https://huggingface.co/blog/asr-diarization
Additional context
No response
Hi, I just wanted to follow up on this feature request.
Currently, the Python library supports transcription (e.g., with Whisper), but native speaker diarization is not yet available. Most users combine Whisper with external libraries like pyannote.audio to separate speakers, which works but adds complexity.
It would be very useful if the SDK could directly return speaker-labeled transcriptions, for example in this format:
[ {"speaker": "Speaker 1", "text": "Hello everyone.", "start": 0.0, "end": 2.3}, {"speaker": "Speaker 2", "text": "Hi! How are you?", "start": 2.4, "end": 4.1} ]
This would simplify workflows for meetings, interviews, podcasts, and call center recordings.
Thanks!
Thanks for requesting this! Speaker-labelled transcription support shipped in v2.4.0 using gpt-4o-transcribe-diarize with response_format="diarized_json". That model was deprecated on August 26, 2026 and is scheduled for removal on February 26, 2027. Please consult the transcription guide and deprecation notice when planning your integration. Closing this SDK feature request as implemented.