Const-me / Whisper

High-performance GPGPU inference of OpenAI's Whisper automatic speech recognition (ASR) model
Mozilla Public License 2.0
8.19k stars 702 forks source link

Code cannot be compiled #215

Open dfengpo opened 5 months ago

dfengpo commented 5 months ago

After downloading, it has been unable to generate and keeps reporting that the wishper.dll file cannot be found

Brendan-D15 commented 4 months ago

Make sure you follow the readme.

You probably missed Step 4 of the build instructions:

  1. Clone this repository

  2. Open WhisperCpp.sln in Visual Studio 2022. I’m using the freeware community edition, version 17.4.4.

  3. Switch to Release configuration

4. Build and run CompressShaders C# project, in the Tools subfolder of the solution. To run that project, right click in visual studio, “Set as startup project”, then in the main menu of VS “Debug / Start Without Debugging”. When completed successfully, you should see a console window with a line like that:
Compressed 46 compute shaders, 123.5 kb -> 18.0 kb

  1. Build Whisper project to get the native DLL, or WhisperNet for the C# wrapper and nuget package, or the examples.

Make sure you build and then run that specific project first (CompressShaders) using "Start Without Debugging" in Visual Studio and then build everything else. After step 5, I then just built the entire WhisperCpp solution to generate WhisperDesktop.exe

EricCheung17N9 commented 1 month ago

By the way, if you encounter an error says "C++ #include is not found",try add VS C++ATL@ 17.4 version.