asr4memory/asr-evaluate

ASR evaluate

1

stars

66

commits

Python

primary language

Jun 10, 2026

updated

README

asr-evaluate

linting: pylint

Requirements

  • Python >= 3.12
uv sync

Install mac-only dependencies if you have a Mac:

uv pip install -r requirements_mac.txt

Create the configuration file.

cp config.example.toml config.toml

Usage

Right now, only Whisper can be used for evaluation.

Evaluating datasets

Login with huggingface_hub token, requires a token generated from https://huggingface.co/settings/tokens (not required for custom dataset use).

huggingface-cli login

Use evaluate_dataset.py to evaluate either the Fleurs, the CommonVoice or a locally saved custom dataset.

python evaluate_dataset.py fleurs

Use the length option to reduce the number of data points.

python evaluate_dataset.py cv --length=100

Use the variant option to choose a Whisper variant: whisper (default), transformers, whisperx, whisper_timestamped or whisper_mlx (only compatible with Apple Silicon chips).

python evaluate_dataset.py cv --variant=whisperx

Use the test_size option to split the dataset (default: test_size=0.2). Works only on custom dataset.

python evaluate_dataset.py custom --test_size=0.4

Use the seed option to randomize the test split (default: seed=42). Works only on custom dataset.

python evaluate_dataset.py custom --seed=84

Evaluating larger files and transcripts

Clean up (normalize) VTT files with vtt_cleaning.py.

python vtt_cleaning.py

Calculate WERs (word error rates) based on reference and hypothesis text files.

python wer_calculation.py

Contributors

marcaltmann

40 commits

pkompiel

26 commits

asr4memory/asr-evaluate

ASR evaluate

1

stars

66

commits

Python

primary language

Jun 10, 2026

updated

README

asr-evaluate

linting: pylint

Requirements

  • Python >= 3.12
uv sync

Install mac-only dependencies if you have a Mac:

uv pip install -r requirements_mac.txt

Create the configuration file.

cp config.example.toml config.toml

Usage

Right now, only Whisper can be used for evaluation.

Evaluating datasets

Login with huggingface_hub token, requires a token generated from https://huggingface.co/settings/tokens (not required for custom dataset use).

huggingface-cli login

Use evaluate_dataset.py to evaluate either the Fleurs, the CommonVoice or a locally saved custom dataset.

python evaluate_dataset.py fleurs

Use the length option to reduce the number of data points.

python evaluate_dataset.py cv --length=100

Use the variant option to choose a Whisper variant: whisper (default), transformers, whisperx, whisper_timestamped or whisper_mlx (only compatible with Apple Silicon chips).

python evaluate_dataset.py cv --variant=whisperx

Use the test_size option to split the dataset (default: test_size=0.2). Works only on custom dataset.

python evaluate_dataset.py custom --test_size=0.4

Use the seed option to randomize the test split (default: seed=42). Works only on custom dataset.

python evaluate_dataset.py custom --seed=84

Evaluating larger files and transcripts

Clean up (normalize) VTT files with vtt_cleaning.py.

python vtt_cleaning.py

Calculate WERs (word error rates) based on reference and hypothesis text files.

python wer_calculation.py

Contributors

marcaltmann

40 commits

pkompiel

26 commits

Languages

Python

99.3%