Skip to content

Whisper_CPP Speech Recognition Integration

What is this?

Whisper_CPP is a high-performance C++ implementation of OpenAI's Whisper model, integrated with pyVideoTrans via pythonnet and the Whisper.net library. Compared to the native Python implementation, Whisper_CPP offers faster inference speed and lower memory usage.

Key advantages:

  • Native C++ implementation for high runtime efficiency
  • Supports CUDA (NVIDIA) and Vulkan (AMD) GPU acceleration
  • No complex Python dependency installation required
  • GGML model file format — smaller file sizes

Supported Models

Whisper_CPP uses GGML format model files (.bin extension) and supports the following models:

Model FileParametersVRAMQualityRecommended For
ggml-tiny.bin39M~1 GBBasicQuick testing
ggml-base.bin74M~1 GBGoodSimple daily scenarios
ggml-small.bin244M~2 GBVery goodMultilingual recognition
ggml-medium.bin769M~5 GBExcellentHigh-accuracy recognition
ggml-large-v1.bin1550M~10 GBVery goodLarge model v1
ggml-large-v2.bin1550M~10 GBExcellentLarge model v2
ggml-large-v3.bin1550M~10 GBBestHighest accuracy
ggml-large-v3-turbo.bin1550M~10 GBBest and fasterRecommended first choice

Recommendation: ggml-large-v3-turbo.bin maintains the highest accuracy while being faster — it's the best choice for most users.

System Requirements

Windows

  • Windows 10/11 64-bit
  • For GPU acceleration:
    • NVIDIA GPU: Requires the corresponding version of CUDA Toolkit (supports CUDA 11.x or 12.x)
    • AMD GPU: Requires Vulkan-capable drivers

macOS

  • macOS 12.0 or higher
  • Supports Apple Silicon (M1/M2/M3) and Intel processors

Installation Steps

Step 1: Download the whisper-cli executable

Based on your operating system and hardware, download the corresponding pre-compiled version:

Download: https://github.com/ggml-org/whisper.cpp/releases/tag/v1.8.2

System ConfigurationDownload FileNotes
Windows (no NVIDIA GPU)whisper-bin-x64.zipCPU version
Windows (NVIDIA GPU, CUDA 12.x)whisper-cublas-12.4.0-bin-x64.zipCUDA 12 GPU-accelerated
Windows (NVIDIA GPU, CUDA 11.x)whisper-cublas-11.8.0-bin-x64.zipCUDA 11 GPU-accelerated
macOSwhisper-v1.8.2-xcframework.zipApple native framework

Step 2: Extract and Organize Files

  1. Extract the downloaded archive to a short path without Chinese characters or spaces

    Recommended path: D:\whispercpp or C:\whispercpp

    Note: Paths containing Chinese characters or spaces may cause the program to malfunction. Avoid this.

  2. After extraction, verify that whisper-cli.exe is present

  3. Ensure the dependency folder structure is correct:

    whispercpp/
    ├── whisper-cli.exe           (main program)
    ├── deps/
    │   ├── Whisper.net.dll       (.NET bindings)
    │   └── native/
    │       └── whisper.cpp native library files
    └── models/
        └── ggml-*.bin            (model files — download separately)

Step 3: Download Model Files

Download GGML format model files from:

Place the downloaded .bin files in the models folder inside the Whisper_CPP installation directory.

Step 4: Configure in pyVideoTrans

  1. Open pyVideoTrans
  2. Click Menu → Speech Recognition SettingsWhisper_CPP
  3. Click the "Select whisper-cli" button
  4. In the file browser, locate the extracted whisper-cli.exe file
  5. Click OK to save the configuration

Key Parameters

Whisper_CPP supports the following adjustable parameters (configurable in source code):

ParameterDefaultDescription
no_speech_threshold-0.8Speech detection threshold — lower values are more sensitive
logprob_threshold-1.0Log probability threshold for filtering low-confidence results
condition_on_previous_texttrueWhether to use previous text as context — enables better coherence

Common Issues

IssuePossible CauseSolution
whisper-cli.exe won't startMissing VC++ runtimeInstall Microsoft Visual C++ Redistributable
Model file not found errorModel not downloaded or wrong pathPlace .bin model files in the models/ directory
GPU acceleration not workingCUDA/Vulkan environment not configuredInstall the corresponding CUDA Toolkit or update GPU drivers
Very slow recognitionUsing the CPU versionDownload the CUDA-accelerated version and configure correctly
Inaccurate recognitionModel too small or wrong language settingUse a larger model and confirm language settings are correct
Path error with Chinese charactersProgram doesn't support Chinese pathsMove whisper-cli to a path without Chinese characters