この記事のもくじ
必要なものをインストールする
✔ Visual Studio Build Tools(必須)
Whisper.cpp のビルドには MSVC(Microsoft C++コンパイラ) が必要。
手順
公式ページへ
(visualstudio.microsoft.com in Bing)
Microsoft C++ Build Tools - Visual Studio
ダウンロードしてインストール
インストール時に 「C++ Build Tools」 にチェック
Windows SDK と MSVC v143 を必ず入れる
これで C++ のビルド環境が整う。
CMake をインストールする
Whisper.cpp は CMake でビルドする。
手順
https://cmake.org/download/
Windows x64 Installer をダウンロード
インストール時に Add CMake to PATH を選ぶ
Whisper.cpp を取得する
PowerShell で任意のフォルダへ移動して:
git clone https://github.com/ggerganov/whisper.cpp
または ZIP をダウンロードして展開してもOK。
Whisper.cpp をビルドする
Whisper.cpp のフォルダへ移動:
cd whisper.cpp
✔ ビルドフォルダを作成
cmake -B build
✔ Release ビルドを実行
cmake --build build --config Release
これで以下の exe が生成される:
build/bin/Release/whisper-cli.exe
build/bin/Release/whisper-simple.exe
build/bin/Release/whisper-server.exe


コメント