Skip to content

feat(speech): add AppTek Call-Center Dialogues ASR benchmark#1486

Open
pzelasko wants to merge 4 commits into
mainfrom
speech/apptek-callcenter-dialogues
Open

feat(speech): add AppTek Call-Center Dialogues ASR benchmark#1486
pzelasko wants to merge 4 commits into
mainfrom
speech/apptek-callcenter-dialogues

Conversation

@pzelasko

@pzelasko pzelasko commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Migration note

Supersedes #1443. Recreated from the NVIDIA-NeMo/Skills branch speech/apptek-callcenter-dialogues so repository CI can run.

Summary

Adds the AppTek Call-Center Dialogues ASR benchmark, sourced from apptek-com/apptek_callcenter_dialogues on HuggingFace.

The benchmark covers long-form English call-center audio: 1,746 split-channel WAVs, roughly 129 hours, across 14 accents and 16 domains.

What Changed

  • Added the apptek-callcenter-dialogues dataset package and preparation CLI.
  • Added metadata-only and full-audio preparation modes, including --audio-prefix support.
  • Added apptek_callcenter ASR normalization that follows the official scoring protocol:
    • Whisper English normalizer
    • AppTek word/number mappings
    • reference-specific half-word cleanup
    • prediction-specific filler cleanup
  • Integrated AppTek normalization into the audio evaluator with empty-reference handling.
  • Added AppTek evaluation docs and dataset registration.
  • Added a standalone Parakeet v3 reproduction script under recipes/apptek-callcenter-dialogues/.
  • Added focused tests for AppTek normalization behavior.

PR Stack

This PR contains only the AppTek benchmark work.

Validation

  • python -m py_compile on changed Python files.
  • Direct AppTek normalization smoke checks for prediction cleanup and hesitation handling.
  • CI lint/DCO/copyright checks are passing.

Follow-Up

  • Add metrics for multi-speaker recognition.

Summary by CodeRabbit

  • New Features
    • Added AppTek Call-Center Dialogues benchmark support, including dataset preparation (with optional audio) and audio-evaluation configuration.
    • Introduced apptek_callcenter text normalization for end-to-end ASR scoring and improved WER/CER handling (including empty references).
    • Added Parakeet v3 validation workflow with direct transcription and optional Silero-VAD segmentation.
  • Documentation
    • Expanded speech/audio evaluation docs for AppTek Call-Center Dialogues and updated evaluation example commands.
    • Added a benchmark README with reproduction instructions.
  • Tests
    • Added AppTek Call-Center normalization/WER tests (including error cases and empty-reference behavior).
    • Updated dataset lists and excluded the benchmark from GPU prepare-all tests.

pzelasko added 2 commits June 15, 2026 08:29
Signed-off-by: Piotr Żelasko <pzelasko@nvidia.com>
Signed-off-by: Piotr Żelasko <pzelasko@nvidia.com>
@pzelasko
pzelasko force-pushed the speech/apptek-callcenter-dialogues branch from 0bb1cdb to 50b9afd Compare June 15, 2026 15:29
@coderabbitai

coderabbitai Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 1b7b34d0-0155-46ad-ab29-3cd125a480fc

📥 Commits

Reviewing files that changed from the base of the PR and between 26acf20 and 27d3b14.

📒 Files selected for processing (1)
  • nemo_skills/evaluation/evaluator/audio.py
🚧 Files skipped from review as they are similar to previous changes (1)
  • nemo_skills/evaluation/evaluator/audio.py

📝 Walkthrough

Walkthrough

Adds the AppTek Call-Center Dialogues ASR benchmark to NeMo Skills. This includes a word-mapping normalization module integrated into the existing audio evaluator, a dataset preparation script with HuggingFace download support, a standalone Parakeet v3 reproduction recipe with direct and Silero VAD transcription modes, evaluator tests, and updated documentation.

Changes

AppTek Call-Center Dialogues ASR Benchmark

Layer / File(s) Summary
AppTek text normalization engine and audio evaluator integration
nemo_skills/evaluation/evaluator/apptek_callcenter_word_mappings.py, nemo_skills/evaluation/evaluator/apptek_callcenter.py, nemo_skills/evaluation/evaluator/audio.py
Defines hesitations, number_normalisations, word_normalisations, and word_dict_to_map for WER scoring; implements normalize_apptek_callcenter_text with cached Whisper English normalizer and jiwer transforms; extends VALID_NORMALIZATION_MODES, preprocess_asr_text, evaluate_asr, evaluate_asr_pc, and evaluate_cer to dispatch to the new normalizer with is_prediction-aware preprocessing and empty-reference handling.
Dataset configuration and preparation script
nemo_skills/dataset/apptek-callcenter-dialogues/__init__.py, nemo_skills/dataset/apptek-callcenter-dialogues/prepare.py
Adds __init__.py with REQUIRES_DATA_DIR, METRICS_TYPE, EVAL_ARGS, and GENERATION_ARGS constants; adds prepare.py with multi-layout HuggingFace snapshot download, accent-code filtering, optional audio inclusion, audio-duration extraction via soundfile, OpenAI-style message building, JSONL entry formatting, data-dir resolution, and test.jsonl generation.
Parakeet v3 reproduction recipe
recipes/apptek-callcenter-dialogues/reproduce_parakeet_v3.py, recipes/apptek-callcenter-dialogues/README.md
Adds a standalone script with direct and silero transcription modes, resumable JSONL-based intermediate storage, Silero VAD segmentation, segment aggregation, per-accent WER scoring using normalize_apptek_callcenter_text, and metrics.json output; README describes run modes, dependencies, and invocation.
Tests, GPU exclusion, and documentation
tests/test_audio_evaluator.py, tests/gpu-tests/test_eval.py, tests/test_datasets.py, docs/evaluation/speech-audio.md
Adds test_audio_evaluator.py covering WER=0, empty-reference, prediction-filler removal, and hesitation precedence for apptek_callcenter normalization mode; adds apptek-callcenter-dialogues to EXCLUDED_DATASETS and DATASETS; updates speech-audio.md with benchmark description, preparation commands, evaluation examples, data_dir path corrections for ASR Leaderboard and MMAU-Pro, and a results section with per-accent metrics documentation.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

Suggested labels

run GPU tests

Suggested reviewers

  • Jorjeous
  • Kipok
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 66.04% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'feat(speech): add AppTek Call-Center Dialogues ASR benchmark' clearly and concisely summarizes the main change: adding a new ASR benchmark to the repository.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch speech/apptek-callcenter-dialogues

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 4

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@nemo_skills/evaluation/evaluator/audio.py`:
- Around line 453-457: The normalize_apptek_callcenter_text function call
silently defaults is_prediction to False when the kwarg is missing, allowing
callers to inadvertently treat predictions as references. Replace the
.get("is_prediction", False) pattern with explicit access to kwargs (e.g.,
kwargs["is_prediction"]) so the code fails with a clear KeyError if the caller
forgets to provide this required parameter, forcing explicit specification
rather than silent misbehavior.

In `@recipes/apptek-callcenter-dialogues/reproduce_parakeet_v3.py`:
- Around line 441-443: The --skip-transcribe and --force-segment flags should
not be permitted when used with --mode direct, but currently they are silently
ignored in that case. After the parse_args() call in the function that returns
the parser, add validation logic that checks if these mode-incompatible flags
are set when --mode is set to "direct". If they are, raise an error with a
descriptive message explaining that these flags are not compatible with direct
mode, rather than allowing the program to proceed silently with unused
arguments. This ensures the code fails fast and alerts users to their incorrect
command-line arguments.
- Around line 345-359: In the score_predictions function, line 358 uses
prediction_by_file.get(file_name, "") which silently treats missing predictions
as empty strings, masking transcription failures. Replace this .get() call with
direct dictionary access using prediction_by_file[file_name] so that a KeyError
is raised when a file is missing, properly surfacing the broken run instead of
silently reporting misleading metrics.
- Around line 74-100: The code uses fallback patterns with `.get()` and default
values like "unknown" in the `_row_accent_code` function (line 87) and
`_manifest_audio_path` function (lines 91-97) that allow malformed rows to
silently pass through instead of failing immediately. Replace the silent
fallbacks by removing the "unknown" default in `_row_accent_code` so missing
accent codes cause an error, and in `_manifest_audio_path` replace the `.get()`
calls with direct dictionary key access that will raise a KeyError if required
keys like "audio_filepath" or message structure keys are missing. This ensures
data quality issues are caught immediately with clear errors rather than
silently corrupting downstream processing.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 51b24e6d-daab-408a-b697-7bdd1ab8c8b2

📥 Commits

Reviewing files that changed from the base of the PR and between da85a88 and 37186e5.

📒 Files selected for processing (11)
  • docs/evaluation/speech-audio.md
  • nemo_skills/dataset/apptek-callcenter-dialogues/__init__.py
  • nemo_skills/dataset/apptek-callcenter-dialogues/prepare.py
  • nemo_skills/evaluation/evaluator/apptek_callcenter.py
  • nemo_skills/evaluation/evaluator/apptek_callcenter_word_mappings.py
  • nemo_skills/evaluation/evaluator/audio.py
  • recipes/apptek-callcenter-dialogues/README.md
  • recipes/apptek-callcenter-dialogues/reproduce_parakeet_v3.py
  • tests/gpu-tests/test_eval.py
  • tests/test_audio_evaluator.py
  • tests/test_datasets.py

Comment thread nemo_skills/evaluation/evaluator/audio.py
Comment thread recipes/apptek-callcenter-dialogues/reproduce_parakeet_v3.py
Comment thread recipes/apptek-callcenter-dialogues/reproduce_parakeet_v3.py
Comment thread recipes/apptek-callcenter-dialogues/reproduce_parakeet_v3.py Outdated
pzelasko added 2 commits June 15, 2026 08:45
Signed-off-by: Piotr Żelasko <pzelasko@nvidia.com>
Signed-off-by: Piotr Żelasko <pzelasko@nvidia.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.

1 participant