Skip to content

Conversation

@zkleb-aai
Copy link
Contributor

Add two new fields to SpeakerOptions to support advanced diarization methods:

  • short_file_diarization_method: "deliberate" (default) | "balanced" | "conservative" | "aggressive"
  • long_file_diarization_method: "standard" (default) | "experimental"

This resolves an issue where the SDK was not properly passing speaker_options to the API, causing experimental diarization to fail. The new fields are now properly serialized and included in API requests.

Changes:

  • Added Literal type import to types.py
  • Extended SpeakerOptions class with new optional fields
  • Added comprehensive test coverage for both new fields
  • Verified serialization to API payload works correctly

zkleb-aai and others added 2 commits January 28, 2026 16:25
Add two new fields to SpeakerOptions to support advanced diarization methods:
- short_file_diarization_method: "deliberate" (default) | "balanced" | "conservative" | "aggressive"
- long_file_diarization_method: "standard" (default) | "experimental"

This resolves an issue where the SDK was not properly passing speaker_options
to the API, causing experimental diarization to fail. The new fields are now
properly serialized and included in API requests.

Changes:
- Added Literal type import to types.py
- Extended SpeakerOptions class with new optional fields
- Added comprehensive test coverage for both new fields
- Verified serialization to API payload works correctly

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.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.

2 participants