whisper.cpp/tests
Fujimoto Seiji b9d27b1358
tests : add a new benchmark test for long-form audio (#3185)
* tests : add a new benchmark test for long-form audio

Based on "Earnings-21" corpus by Del Rio et al.

    Earnings-21: A Practical Benchmark for ASR in the Wild (2021)
    https://arxiv.org/abs/2104.11348

This dataset contains 39 hours of long-form speech, sourced from public
earning calls. Each recording contains roughly 50 minutes of English
dialogues between multiple speakers (2-20 persons).

This benchmark suite should allow us to evaluate the performance of
whisper.cpp on long-form audio data.

Signed-off-by: Fujimoto Seiji <fujimoto@ceptord.net>

* tests : apply PR feedback to 'earnings21/README.md'

Based on feedback from Daniel Bevenius.

 - Simplify how to download & prepare a Silero VAD model.
 - Fix typo: inferece -> inference

Signed-off-by: Fujimoto Seiji <fujimoto@ceptord.net>

* tests : avoid crashing on non-UTF-8 characters

Based on feedback from Daniel Bevenius.

Add 'errors' parameter to open() in order to avoid unhandled
exception on invalid UTF-8 bytes.

Signed-off-by: Fujimoto Seiji <fujimoto@ceptord.net>

* tests : try to interpret the hypothesis as Windows-1252

Based on the discussion in PR#3185.

Evidently Whisper.cpp can represent a quotation mark as '0x93', which
implifies Windows-1252 (Microsoft's ASCII excention), and cannot be
decoded by UTF-8.

Add an explicit decoding loop to address the issue.

Signed-off-by: Fujimoto Seiji <fujimoto@ceptord.net>

---------

Signed-off-by: Fujimoto Seiji <fujimoto@ceptord.net>
2025-05-28 07:08:44 +02:00
..
earnings21 tests : add a new benchmark test for long-form audio (#3185) 2025-05-28 07:08:44 +02:00
librispeech tests : add script to benchmark whisper.cpp on LibriSpeech corpus (#2999) 2025-04-04 19:51:26 +03:00
.gitignore tests : adding transcription tests 2022-12-02 21:40:02 +02:00
CMakeLists.txt vad : add initial Voice Activity Detection (VAD) support (#3065) 2025-05-12 16:10:11 +02:00
en-0-ref.txt tests : adding transcription tests 2022-12-02 21:40:02 +02:00
en-1-ref.txt tests : adding transcription tests 2022-12-02 21:40:02 +02:00
en-2-ref.txt tests : adding transcription tests 2022-12-02 21:40:02 +02:00
es-0-ref.txt tests : adding transcription tests 2022-12-02 21:40:02 +02:00
run-tests.sh whisper : rename binaries + fix install (#2648) 2024-12-21 09:43:49 +02:00
test-c.c whisper : reorganize source code + improve CMake (#2256) 2024-06-26 19:34:09 +03:00
test-vad-full.cpp vad : add initial Voice Activity Detection (VAD) support (#3065) 2025-05-12 16:10:11 +02:00
test-vad.cpp vad : add initial Voice Activity Detection (VAD) support (#3065) 2025-05-12 16:10:11 +02:00
test-whisper.js Node.js package (#260) 2022-12-12 20:17:27 +02:00