Skip to content

feat(types): add short_file_diarization_method to SpeakerOptions - #220

Open
ccampbell-aai wants to merge 1 commit into
masterfrom
ccampbell/short-file-diarization-method
Open

feat(types): add short_file_diarization_method to SpeakerOptions#220
ccampbell-aai wants to merge 1 commit into
masterfrom
ccampbell/short-file-diarization-method

Conversation

@ccampbell-aai

Copy link
Copy Markdown
Contributor

Summary

Supersedes #161 (with credit — the field definition and tests are carried over from @zkleb-aai's PR).

Adds short_file_diarization_method: Optional[Literal["deliberate", "balanced", "conservative", "aggressive"]] to SpeakerOptions.

Why supersede: #161 added two fields, but its long_file_diarization_method half already landed via the #162 internal sync (merged the same day #161 was opened), which is also what left #161 permanently conflicted. This PR carries over only the missing half, rebased on current master.

Verified real: both diarization-method params are fully implemented API-side (async_api handlers, DTOs, TRS converter, and integration tests in the internal repo) — the SDK just never exposed the short-file one.

Testing

🤖 Generated with Claude Code

Exposes the short-file diarization method API parameter (deliberate |
balanced | conservative | aggressive), completing the pair started in
PR #161 — its long_file_diarization_method half already landed via the
#162 sync, which is also what left #161 conflicted. Field definition
and tests carried over from #161. Supersedes and closes #161.

Co-Authored-By: zack <[email protected]>
Co-Authored-By: Claude Fable 5 <[email protected]>
@ccampbell-aai

Copy link
Copy Markdown
Contributor Author

Live E2E verification

Verified end-to-end against the production API (beyond the unit tests):

Request — real transcription submitted with the new field via this branch's SDK code; serialized request body contained:

"speaker_options": {"short_file_diarization_method": "aggressive", "long_file_diarization_method": "experimental"}

Accepted & echoed — transcript 69501616-30c5-4d77-9576-b4e263e7378d completed successfully (speakers A/B diarized), and the completed transcript resource echoes the parameter back:

"speaker_options": {"short_file_diarization_method": "aggressive", "long_file_diarization_method": "experimental", ...}

Parsed & applied server-side — confirmed via internal API logs that the raw request body arrived with the parameter, the diarization routing evaluated it (this job took the short-file path, so short_file_diarization_method was the governing option), and it was forwarded to the diarization stage. Internal reviewers can look up the transcript ID above in the logs for the full pipeline trace.

🤖 Generated with Claude Code

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.

1 participant