Apocrypha

whisper-cpp

Port of OpenAI's Whisper model in C/C++

whisper.cpp is a plain C/C++ implementation of OpenAI's Whisper automatic speech recognition model, built on the ggml tensor library and free of external runtime dependencies. It transcribes and translates audio using quantized models in the GGML format, on CPU or with optional acceleration through CUDA, ROCm/HIP, Vulkan or OpenCL backends. The package provides whisper-cli (one-shot transcription), whisper-server (an HTTP server with an OpenAI-compatible endpoint), whisper-bench and whisper-quantize, plus the parakeet-cli and parakeet-quantize tools for NVIDIA's Parakeet TDT models, which upstream added alongside Whisper in the 1.9 series. With USE=sdl2 the real-time microphone examples whisper-stream, whisper-command, whisper-talk-llama and whisper-lsp are built as well. Models are not shipped with this package and must be downloaded separately, typically from Hugging Face. The CPU backend is tuned through the architecture's CPU_FLAGS: on x86 through CPU_FLAGS_X86, and on ARM through CPU_FLAGS_ARM, which ggml gates at compile time via an accumulated -march string rather than per-feature build options. The ggml libraries this package builds are installed into a private subdirectory rather than the system libdir, because sci-ml/llama-cpp vendors the same ggml tree and owns those paths. Note that the ebuild is adapted from the istitov/stuff overlay (app-accessibility/whisper-cpp).

Available in

OverlayNewestEbuildsLast activity
bentoo GitHub ↗ 1.9.1 1 24 h details ›
phackerlay GitLab ↗ 1.9.1 2 3 d details ›

Versions & arches

VersionOverlay amd64arm64 Committed
1.9.1 bentoo amd64 testing arm64 testing 8 d view · download · history ↗
1.9.1 phackerlay amd64 testing arm64 untested 36 d view · download · history ↗
1.8.7 phackerlay amd64 testing arm64 untested 36 d view · download · history ↗

Use flags of 1.9.1

  • blas Build a BLAS backend against sci-libs/openblas, whose cblas interface ggml-blas requires
  • cuda Enable NVIDIA CUDA support (computation on GPU)
  • ffmpeg Link the examples against media-video/ffmpeg so they accept audio formats other than WAV
  • opencl Build an OpenCL backend, so far only works on Adreno and Intel GPUs
  • hip Build a HIP (ROCm) backend
  • sdl2 Build the real-time capture examples that use media-libs/libsdl2
  • vulkan Add support for 3D graphics and computing via the Vulkan cross-platform API
23 expansion flags (python targets, ABIs, cpu flags…)
  • cpu_flags_x86_sse4_2
  • cpu_flags_x86_avx
  • cpu_flags_x86_avx_vnni
  • cpu_flags_x86_avx2
  • cpu_flags_x86_bmi2
  • cpu_flags_x86_avx512f
  • cpu_flags_x86_avx512cd
  • cpu_flags_x86_avx512vl
  • cpu_flags_x86_avx512dq
  • cpu_flags_x86_avx512bw
  • cpu_flags_x86_avx512vbmi
  • cpu_flags_x86_avx512_vnni
  • cpu_flags_x86_avx512_bf16
  • cpu_flags_x86_fma3
  • cpu_flags_x86_f16c
  • cpu_flags_x86_amx_tile
  • cpu_flags_x86_amx_int8
  • cpu_flags_x86_amx_bf16
  • cpu_flags_arm_asimddp
  • cpu_flags_arm_asimdhp
  • cpu_flags_arm_sve
  • cpu_flags_arm_i8mm
  • cpu_flags_arm_sve2

Runtime dependencies of 1.9.1

show 21 lines