mirror of
https://github.com/chidiwilliams/buzz.git
synced 2026-03-14 22:55:46 +01:00
Build adjustments
This commit is contained in:
parent
a86c3d8155
commit
3046ba8a72
3 changed files with 15 additions and 7 deletions
|
|
@ -48,9 +48,11 @@ binaries = [
|
|||
(shutil.which("ffprobe"), "."),
|
||||
]
|
||||
|
||||
if platform.system() != "Windows":
|
||||
if platform.system() == "Linux":
|
||||
binaries.append(("buzz/whisper_cpp/*.so", "buzz/whisper_cpp"))
|
||||
binaries.append(("buzz/whisper_cpp_vulkan/*.so", "buzz/whisper_cpp_vulkan"))
|
||||
|
||||
if platform.system() == "Darwin"
|
||||
binaries.append(("buzz/whisper_cpp/*.dylib", "buzz/whisper_cpp"))
|
||||
binaries.append(("buzz/whisper_cpp_vulkan/*.dylib", "buzz/whisper_cpp_vulkan"))
|
||||
|
||||
|
|
|
|||
16
Makefile
16
Makefile
|
|
@ -30,10 +30,14 @@ endif
|
|||
|
||||
clean:
|
||||
ifeq ($(OS), Windows_NT)
|
||||
-rmdir /s /q buzz\whisper_cpp 2> nul
|
||||
-rmdir /s /q buzz\whisper_cpp_vulkan 2> nul
|
||||
-rmdir /s /q whisper.cpp\build 2> nul
|
||||
-rmdir /s /q dist 2> nul
|
||||
rmdir /s /q buzz\whisper_cpp 2> nul
|
||||
rmdir /s /q buzz\whisper_cpp_vulkan 2> nul
|
||||
rmdir /s /q whisper.cpp\build 2> nul
|
||||
rmdir /s /q dist 2> nul
|
||||
Remove-Item -Recurse -Force buzz\whisper_cpp
|
||||
Remove-Item -Recurse -Force buzz\whisper_cpp_vulkan
|
||||
Remove-Item -Recurse -Force whisper.cpp\build
|
||||
Remove-Item -Recurse -Force dist\*
|
||||
rm -rf buzz/whisper_cpp || true
|
||||
rm -fr buzz/whisper_cpp_vulkan || true
|
||||
rm -rf whisper.cpp/build || true
|
||||
|
|
@ -67,7 +71,7 @@ ifeq ($(OS), Windows_NT)
|
|||
cmake -S whisper.cpp -B whisper.cpp/build/ -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_RPATH='$$ORIGIN' -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON
|
||||
cmake --build whisper.cpp/build -j --config Release --verbose
|
||||
|
||||
mkdir buzz\whisper_cpp || true
|
||||
mkdir buzz/whisper_cpp
|
||||
cp dll_backup/SDL2.dll buzz/whisper_cpp
|
||||
cp whisper.cpp/build/bin/Release/whisper.dll buzz/whisper_cpp
|
||||
cp whisper.cpp/build/bin/Release/ggml.dll buzz/whisper_cpp
|
||||
|
|
@ -78,7 +82,7 @@ ifeq ($(OS), Windows_NT)
|
|||
cmake -S whisper.cpp -B whisper.cpp/build/ -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_RPATH='$$ORIGIN' -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DGGML_VULKAN=1
|
||||
cmake --build whisper.cpp/build -j --config Release --verbose
|
||||
|
||||
mkdir buzz\whisper_cpp_vulkan || true
|
||||
mkdir buzz/whisper_cpp_vulkan
|
||||
cp dll_backup/SDL2.dll buzz/whisper_cpp_vulkan
|
||||
cp whisper.cpp/build/bin/Release/whisper.dll buzz/whisper_cpp_vulkan/whisper-vulkan.dll
|
||||
cp whisper.cpp/build/bin/Release/ggml.dll buzz/whisper_cpp_vulkan
|
||||
|
|
|
|||
|
|
@ -11,6 +11,8 @@ from buzz.model_loader import LOADED_WHISPER_CPP_BINARY
|
|||
from buzz.transcriber.transcriber import Segment, Task, TranscriptionOptions
|
||||
|
||||
|
||||
# TODO - Test and maybe refactor to https://github.com/fann1993814/whisper.cpy
|
||||
|
||||
IS_COREML_SUPPORTED = False
|
||||
if platform.system() == "Darwin" and platform.machine() == "arm64":
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue