Skip to main content

stt-bench

cli utility for benchmarking transcription models on Indic Datasets. Currently supported models:

ai4bharat/indic-conformer-600m-multilingual, kalpalabs/Menka, gpt-4o-transcribe, deepgram-nova-3

Currently supported datasets:

IndicVoices, Lahaja, Svarah, Fleurs

Usage:

  1. Environment variables: Following environment variables need to be set based on the model on which inference is to be performed:
HF_TOKEN, OPENAI_API_KEY, MENKA_BASE_URL, DEEPGRAM_API_KEY, SARVAM_API_KEY, GEMINI_API_KEY
  1. Run inference of a model on multiple datasets -
stt-bench run --model gpt-4o-transcribe

This command dumps model inference results into inference/{model}/{dataset} directory for each dataset that the inference is run on. Results are stored in csv named *predictions.csv. By default the code will run inference on all supported datasets. To run inference on only selected datasets, use it as:

stt-bench run --model gpt-4o-transcribe --eval-datasets Fleurs
  1. Evaluate WER and CER metrics from the results directory:
stt-bench evaluate --dir inference/{model}

This will create a evaluation_metrics.csv within metrics/{model}/{dataset} that contains wer, cer metrics over all splits of the particular dataset, and the final row contains metrics over the entire dataset.

Requirements

In addition to pyproject.toml, some datasets (like Lahaja and Svarah) also need ffmpeg backend to process audios. Install ffmpeg >= 6.

Metadata

Release files for stt-bench 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stt-bench 0.2.0
File Size Uploaded
stt_bench-0.2.0.tar.gz 10.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for stt-bench 0.2.0
File Interpreter ABI Platform
stt_bench-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.5 kB

Release files / stt_bench-0.2.0.tar.gz

Download URL stt_bench-0.2.0.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a6ca116f268aca04df2aef8fb78899850abbd00f13486881ca8e839b573d71e4
BLAKE2b-256 checksum
How to use checksums
edfbc4f590f7f18776657e825343f1605d1d64c0f5efbae51ac63ba671612dd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.22

Release files / stt_bench-0.2.0-py3-none-any.whl

Download URL stt_bench-0.2.0-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9a751f9c3f3f2e8f30d1ffd0757653884985e6201e563bb8aaf4a91fb4614104
BLAKE2b-256 checksum
How to use checksums
3b7fea560910a455266b8596e4e323d07108a40651ace39e40e40600f9b15e65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.22

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page