Skip to content

fix(audio): preserve empty ASR transcripts when scoring WER - #1722

Merged
Yunnglin merged 1 commit into
modelscope:mainfrom
Excelius-Wang:fix/audio-wer-empty-transcript
Sep 9, 2026
Merged

Yunnglin merged 1 commit into
modelscope:mainfrom
Excelius-Wang:fix/audio-wer-empty-transcript

Conversation

@Excelius-Wang

Copy link
Copy Markdown
Contributor

An ASR response containing {"text": ""} is currently treated as missing text. In Seed-TTS-Eval, the resulting exception is caught and recorded as WER=0, although an empty transcript against a nonempty reference should have WER=1.

Preserve empty primary transcripts and consult fallback fields only when the primary value is None. Add adapter-level coverage, field-precedence tests and error controls. Bump Seed-TTS-Eval's evaluation version to v1.1 because the scoring behavior changes.

Validation: the same expanded suite produces 4 failures and 24 passes with the baseline metric implementation, and 28 passes with the fix. The regressions cover adapter scoring, metric scoring, and empty primary text being overwritten by alternate fields. Missing/null fields, non-object JSON responses, and HTTP errors remain errors at the metric boundary. Applicable pre-commit hooks and git diff --check pass.

The scope is successful /audio/transcriptions responses with string text fields. HTTP responses are mocked; no production incident or live ASR response is claimed. The adapter's general error-to-zero fallback and empty Responses-protocol outputs are separate unresolved issues.

@Yunnglin Yunnglin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. The fix correctly preserves a valid empty ASR transcript and falls back only for None. The evaluation-version bump and regression coverage for field precedence, malformed payloads, and HTTP errors are appropriate; targeted tests and CI are green.

@Yunnglin
Yunnglin merged commit 9ce862d into modelscope:main Sep 9, 2026
3 checks passed
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