Repository navigation
Add ASR transcription targets and reference-based faithfulness auditing - #116
Open
KushtrimVisoka wants to merge 1 commit into
Open
KushtrimVisoka wants to merge 1 commit into
KushtrimVisoka wants to merge 1 commit into
Conversation
This branch has not been deployed
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 changes
SimpleAudit can now audit speech-to-text systems using plain-text references, without requiring timestamps.
ASRTargetuploads one local audio file through the OpenAI-compatible multipartPOST /audio/transcriptionsendpoint, with OpenAI/OpenRouter helpers and a configurable base URL for compatible local servers. Existing transcriptions can be evaluated throughCallableTarget.The named
asr_faithfulnessjudge checks scenario expectations against reference and transcription text, reports evidence from both texts, explains meaning changes and conditional potential consequences, and derives severity using the existing checklist rules. For example, dropping “not” from “the proposal was not approved” is recorded as a meaning-changing transcription error; faithfully transcribing a speaker's false or harmful statement is not itself an ASR failure.Validation
ruff check --select E9,F821 .), focused lint/format checks, and git whitespace checks passed.openai/whisper-1, withopenai/gpt-4ojudging through OpenRouter. Full upload → transcription → judgment → save/load completed in both normalization modes.evidence_kind="insertion"; this known alias is canonicalized todirectonly for insertion errors, with the original value retained.Scope and limitations
Direct authenticated OpenAI calls were not validated because the available OpenAI key was empty. Compatibility follows its documented multipart contract; live compatibility was established with OpenRouter. Other providers and optional timestamp/diarization formats were not live-tested. This is not a validated harm classifier or WER/CER implementation: consequences remain conditional, reference quality matters, and quote verification does not prove the judge's interpretation. The live sample and controls are smoke tests, not a benchmark of judge accuracy.
No credentials, private audio, source transcripts or live-result artifacts are included in this PR.