Skip to content

Whisper_CPP Speech Recognition Integration

Whisper_CPP is a C++ high-performance implementation of the OpenAI Whisper model. Compared to the native Python implementation, it offers faster inference and lower memory usage.

Supported Models

Whisper_CPP uses GGML format model files (.bin extension). Supported models:

Model FileParametersVRAMQualityRecommended For
ggml-tiny.bin39M~1GBFairQuick testing
ggml-base.bin74M~1GBGoodEveryday simple use
ggml-small.bin244M~2GBGoodMulti-language recognition
ggml-medium.bin769M~5GBVery goodHigh-accuracy recognition
ggml-large-v1.bin1550M~10GBGoodLarge model v1
ggml-large-v2.bin1550M~10GBVery goodLarge model v2
ggml-large-v3.bin1550M~10GBBestHighest accuracy
ggml-large-v3-turbo.bin1550M~10GBBalanced speed/qualityRecommended

Windows

Since v4.08, the Windows version will auto-download the pre-compiled GPU version on first use and extract it to app_dir/whisper-cpp/.

To use a different version, open https://github.com/ggml-org/whisper.cpp/releases/tag/v1.9.1, download an archive labeled Win32 or x64, extract it, and copy all files from Releases/ to app_dir/whisper-cpp/.

macOS or Linux

For these systems, download the corresponding pre-compiled package for your OS. Copy the extracted binaries and dependencies to app_dir/whisper-cpp/, and grant executable permission to the whisper-cli file.

If no pre-compiled package exists, compile locally according to the repository documentation, then copy the build artifacts and shared libraries (.so etc.) to app_dir/whisper-cpp/. Ensure the whisper-cli executable exists.

Downloading Model Files

Models are auto-downloaded when needed from:

Place the .bin file in app_dir/models/.

Additional Custom Parameters

Create a pyvideotrans.txt text file in the pyVideoTrans root directory (same folder as sp.exe) to add custom parameters.

FAQ

IssuePossible CauseSolution
whisper-cli.exe won't startMissing VC++ runtimeInstall Microsoft Visual C++ Redistributable
Model file not foundModel not downloaded or wrong pathPlace .bin file in models/
GPU acceleration not workingCUDA/Vulkan not configuredInstall matching CUDA Toolkit version or update GPU driver
Very slow recognitionUsing CPU versionDownload the CUDA-accelerated version and configure correctly
Poor recognition resultsModel too small or wrong languageUse a larger model, verify language setting
Chinese path errorsPath contains Chinese charactersExtract pyVideoTrans to a path without Chinese characters