@@ -5,9 +5,6 @@ BINARY_NAME=local-ai
5
5
6
6
DETECT_LIBS? =true
7
7
8
- # llama.cpp versions
9
- CPPLLAMA_VERSION? =496957e1cbcb522abc63aa18521036e40efce985
10
-
11
8
# whisper.cpp version
12
9
WHISPER_REPO? =https://github.com/ggml-org/whisper.cpp
13
10
WHISPER_CPP_VERSION? =032697b9a850dc2615555e2a93a683cc3dd58559
@@ -16,10 +13,6 @@ WHISPER_CPP_VERSION?=032697b9a850dc2615555e2a93a683cc3dd58559
16
13
PIPER_REPO? =https://github.com/mudler/go-piper
17
14
PIPER_VERSION? =e10ca041a885d4a8f3871d52924b47792d5e5aa0
18
15
19
- # bark.cpp
20
- BARKCPP_REPO? =https://github.com/PABannier/bark.cpp.git
21
- BARKCPP_VERSION? =5d5be84f089ab9ea53b7a793f088d3fbf7247495
22
-
23
16
# stablediffusion.cpp (ggml)
24
17
STABLEDIFFUSION_GGML_REPO? =https://github.com/richiejp/stable-diffusion.cpp
25
18
STABLEDIFFUSION_GGML_VERSION? =53e3b17eb3d0b5760ced06a1f98320b68b34aaae
@@ -255,23 +248,6 @@ endif
255
248
256
249
all : help
257
250
258
- # # bark.cpp
259
- sources/bark.cpp :
260
- git clone --recursive $(BARKCPP_REPO ) sources/bark.cpp && \
261
- cd sources/bark.cpp && \
262
- git checkout $(BARKCPP_VERSION ) && \
263
- git submodule update --init --recursive --depth 1 --single-branch
264
-
265
- sources/bark.cpp/build/libbark.a : sources/bark.cpp
266
- cd sources/bark.cpp && \
267
- mkdir -p build && \
268
- cd build && \
269
- cmake $(CMAKE_ARGS ) .. && \
270
- cmake --build . --config Release
271
-
272
- backend/go/bark-cpp/libbark.a : sources/bark.cpp/build/libbark.a
273
- $(MAKE ) -C backend/go/bark-cpp libbark.a
274
-
275
251
# # go-piper
276
252
sources/go-piper :
277
253
mkdir -p sources/go-piper
@@ -327,7 +303,7 @@ sources/whisper.cpp/build/src/libwhisper.a: sources/whisper.cpp
327
303
cd sources/whisper.cpp && cmake $(WHISPER_CMAKE_ARGS ) . -B ./build
328
304
cd sources/whisper.cpp/build && cmake --build . --config Release
329
305
330
- get-sources : sources/go-piper sources/stablediffusion-ggml.cpp sources/bark.cpp sources/ whisper.cpp
306
+ get-sources : sources/go-piper sources/stablediffusion-ggml.cpp sources/whisper.cpp
331
307
332
308
replace :
333
309
$(GOCMD ) mod edit -replace github.com/ggerganov/whisper.cpp=$(CURDIR ) /sources/whisper.cpp
@@ -359,7 +335,6 @@ clean: ## Remove build related file
359
335
rm -rf release/
360
336
rm -rf backend-assets/*
361
337
$(MAKE ) -C backend/cpp/grpc clean
362
- $(MAKE ) -C backend/go/bark-cpp clean
363
338
$(MAKE ) -C backend/go/image/stablediffusion-ggml clean
364
339
$(MAKE ) dropreplace
365
340
$(MAKE ) protogen-clean
@@ -690,13 +665,6 @@ ifneq ($(UPX),)
690
665
$(UPX) backend-assets/grpc/huggingface
691
666
endif
692
667
693
- backend-assets/grpc/bark-cpp : protogen-go replace backend/go/bark-cpp/libbark.a backend-assets/grpc
694
- CGO_LDFLAGS=" $( CGO_LDFLAGS) " C_INCLUDE_PATH=$(CURDIR ) /backend/go/bark-cpp/ LIBRARY_PATH=$(CURDIR ) /backend/go/bark-cpp/ \
695
- $(GOCMD ) build -ldflags " $( LD_FLAGS) " -tags " $( GO_TAGS) " -o backend-assets/grpc/bark-cpp ./backend/go/bark-cpp/
696
- ifneq ($(UPX ) ,)
697
- $(UPX) backend-assets/grpc/bark-cpp
698
- endif
699
-
700
668
backend-assets/grpc/piper : protogen-go replace sources/go-piper sources/go-piper/libpiper_binding.a backend-assets/grpc backend-assets/espeak-ng-data
701
669
CGO_CXXFLAGS=" $( PIPER_CGO_CXXFLAGS) " CGO_LDFLAGS=" $( PIPER_CGO_LDFLAGS) " LIBRARY_PATH=$(CURDIR ) /sources/go-piper \
702
670
$(GOCMD ) build -ldflags " $( LD_FLAGS) " -tags " $( GO_TAGS) " -o backend-assets/grpc/piper ./backend/go/tts/
@@ -791,6 +759,9 @@ backend-images:
791
759
docker-build-llama-cpp :
792
760
docker build -t local-ai-backend:llama-cpp -f backend/Dockerfile.llama-cpp .
793
761
762
+ docker-build-bark-cpp :
763
+ docker build -t local-ai-backend:bark-cpp -f backend/Dockerfile.go --build-arg BACKEND=bark-cpp .
764
+
794
765
docker-save-llama-cpp : backend-images
795
766
docker save local-ai-backend:llama-cpp -o backend-images/llama-cpp.tar
796
767
0 commit comments