Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
This PR introduces a reusable PyannoteAI engine and adds support for PyannoteAI's new STT orchestration feature, which combines speaker diarization with transcription in a single API call.
Changes
New Engine (
src/openbench/engine/pyannote_engine.py)PyannoteAIApiengine class that supports both diarization-only and diarization+transcription modesPyannoteApiDiarizationOutput- diarization-only responsesPyannoteApiOrchestrationOutput- responses withwordLevelTranscriptionandturnLevelTranscriptionRefactored Diarization Pipeline
PyannoteApiPipelineto use the new engine instead of duplicating API logicNew Pipelines
PyannoteTranscriptionPipeline- Uses PyannoteAI with STT but ignores speaker attribution (for transcription-only datasets)PyannoteOrchestrationPipeline- Uses PyannoteAI with STT and includes speaker attributionPipeline Aliases
pyannote-transcription- Transcription without speaker labelspyannote-orchestration- Full diarization + transcription with speaker attributionUsage
Transcription only (no speaker labels)
openbench-cli evaluate -p pyannote-transcription -d <dataset-name> -m werOrchestration (with speaker labels)
openbench-cli evaluate -p pyannote-orchestration -d <dataset-name> -m wer -m cpwer -m wder