Skip to content

SpeakerKit: pass --diarizer instead of --engine to speakerkitpro-cli - #105

Merged
EduardoPach merged 1 commit into
mainfrom
eduardo/speakerkit-cli-diarizer-flag
Sep 22, 2026
Merged

EduardoPach merged 1 commit into
mainfrom
eduardo/speakerkit-cli-diarizer-flag

Conversation

@EduardoPach

@EduardoPach EduardoPach commented Sep 22, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • speakerkitpro-cli diarize selects the diarization backend with --diarizer pyannote|sortformer. openbench's SpeakerKitPipelineConfig.generate_cli_args still passed --engine, which a CLI built from current argmax-sdk-swift@main rejects:

    RuntimeError: Diarization CLI failed with error: Error: Unknown option '--engine'
    

    so every speakerkit / speakerkit-sortformer-compressed evaluation failed on sample 0 (seen in argmaxinc/OpenBench-internal Argmax Diarization Benchmark run 35771963344 on a Mac Studio with Xcode 26.5).

  • Switch the flag to --diarizer and add tests/pipeline/test_speakerkit_cli_args.py covering both backends, --model-path, --num-speakers and --api-key.

whisperkitpro_engine.py already passes --diarizer to whisperkitpro-cli since #103; this PR brings the SpeakerKit pipeline in line with it.

Test plan

  • uv run pytest tests/pipeline/test_speakerkit_cli_args.py (2 passed)
  • uv run ruff check / ruff format --check on the touched files
  • Argmax Diarization Benchmark smoke test (speakerkit on callhome_hf) against an SDK build from main, from OpenBench-internal PR Add tests workflow #78 pinned to this branch

🤖 Generated with Claude Code

speakerkitpro-cli `diarize` selects the backend with `--diarizer pyannote|sortformer`;
the `--engine` flag openbench sent is rejected with "Unknown option '--engine'", so
every `speakerkit*` evaluation against a current argmax-sdk-swift build failed on the
first sample. Add unit tests for the generated CLI arguments.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@EduardoPach
EduardoPach merged commit 923e954 into main Sep 22, 2026
2 checks passed
@EduardoPach
EduardoPach deleted the eduardo/speakerkit-cli-diarizer-flag branch September 22, 2026 23:34
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