Skip to content

fix: add diarized JSON transcription response handling#801

Open
wskr00 wants to merge 1 commit into
openai:mainfrom
wskr00:fix/diarized-json-as-json
Open

fix: add diarized JSON transcription response handling#801
wskr00 wants to merge 1 commit into
openai:mainfrom
wskr00:fix/diarized-json-as-json

Conversation

@wskr00

@wskr00 wskr00 commented Jul 18, 2026

Copy link
Copy Markdown

Summary

Treat diarized_json as a JSON response format when creating audio transcriptions.

AudioResponseFormat.DIARIZED_JSON was missing from isJson(), causing both blocking and async transcription clients to select the string response handler. Consequently, a diarized JSON response was wrapped as Transcription.text instead of being deserialized as TranscriptionCreateResponse.diarized.

This change makes diarized_json use the existing JSON handler, consistently with json and verbose_json.

Testing

  • ./scripts/test

Fixes #800

Signed-off-by: Lucas Christian <lucaschgf7@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Diarized Json does not return as a json

1 participant