whisper.cpp/tests
Dominic Dones 4d4aa7bc46 examples: add HF HTTPS download with cache fall-back to whisper-cli
Enable the network half of the HF cache resolver. whisper_hf_resolve_model
now (unless HF_HUB_OFFLINE is set) lists the repo over the HF API, picks the
primary file (exact --hf-file, else first ggml-*.bin), downloads it into the
blobs/<oid> + snapshots/<commit> layout via a slim hf_cache::download_file,
and falls back to the Phase 1 on-disk cache scan on empty listing or network
failure. HF_TOKEN is honored for the Authorization: Bearer header.

HTTPS is gated behind a new WHISPER_OPENSSL CMake option (find_package OpenSSL,
CPPHTTPLIB_OPENSSL_SUPPORT, link OpenSSL::SSL/Crypto); an https attempt in a
non-SSL build prints the rebuild hint.

download_file follows redirects manually and disables httplib url-encoding:
cpp-httplib 0.20 (whisper's vendored version) both mishandles cross-host
redirects and re-encodes the already-encoded signed xet CDN URL, corrupting
the presigned query string into a 403. The bearer token is dropped on
cross-host (CDN) redirects.

tests/test-hf-resolve.sh gains an offline fall-back case (HF_HUB_OFFLINE=1),
a WHISPER_CLI override, and an optional no-OpenSSL rebuild-hint check.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-02 16:20:52 -04:00
..
earnings21 vad : Silero VAD v6.2.0 (#3524) 2025-11-17 22:26:17 +09:00
librispeech musa: correct MUSA SDK rc4.0.1 download URL (#3217) 2025-06-03 06:02:12 +02:00
librispeech-parakeet parakeet : add support for NVIDIA Parakeet (#3735) 2026-06-16 20:44:10 +02:00
.gitignore tests : adding transcription tests 2022-12-02 21:40:02 +02:00
CMakeLists.txt parakeet : add support for NVIDIA Parakeet (#3735) 2026-06-16 20:44:10 +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
parakeet-expected-diffusion-output.txt parakeet : add support for NVIDIA Parakeet (#3735) 2026-06-16 20:44:10 +02:00
parakeet-expected-gb1-output.txt parakeet : add support for NVIDIA Parakeet (#3735) 2026-06-16 20:44:10 +02:00
parakeet-expected-jfk-output.txt parakeet : add support for NVIDIA Parakeet (#3735) 2026-06-16 20:44:10 +02:00
parakeet-verification.h parakeet : add support for NVIDIA Parakeet (#3735) 2026-06-16 20:44:10 +02:00
run-tests.sh parakeet : add support for NVIDIA Parakeet (#3735) 2026-06-16 20:44:10 +02:00
test-c.c whisper : reorganize source code + improve CMake (#2256) 2024-06-26 19:34:09 +03:00
test-common-utf8.cpp server : merge split utf-8 token text in verbose json (#3850) 2026-06-02 13:10:27 +02:00
test-hf-resolve.sh examples: add HF HTTPS download with cache fall-back to whisper-cli 2026-07-02 16:20:52 -04:00
test-parakeet-full.cpp parakeet : add support for NVIDIA Parakeet (#3735) 2026-06-16 20:44:10 +02:00
test-parakeet.cpp parakeet : add support for NVIDIA Parakeet (#3735) 2026-06-16 20:44:10 +02:00
test-vad-full.cpp whisper : expose internal VAD speech segments (#3916) 2026-07-01 13:10:16 +02:00
test-vad.cpp tests : update VAD tests to use Silero V6.2.0 (#3534) 2025-12-06 10:58:58 +01:00
test-whisper.js Node.js package (#260) 2022-12-12 20:17:27 +02:00