File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ WHISPER_CPP_VERSION?=85ed71aaec8e0612a84c0b67804bde75aa75a273
2828BERT_VERSION? =6abe312cded14042f6b7c3cd8edf082713334a4d
2929
3030# go-piper version
31- PIPER_VERSION? =56b8a81b4760a6fbee1a82e62f007ae7e8f010a7
31+ PIPER_VERSION? =16167b4b8edc00d8456aec58e089fd7637a5e797
3232
3333# stablediffusion version
3434STABLEDIFFUSION_VERSION? =d89260f598afb809279bc72aa0107b4292587632
@@ -120,6 +120,8 @@ endif
120120ifeq ($(findstring tts,$(GO_TAGS ) ) ,tts)
121121# OPTIONAL_TARGETS+=go-piper/libpiper_binding.a
122122# OPTIONAL_TARGETS+=backend-assets/espeak-ng-data
123+ CGO_CXXFLAGS+=-I$(shell pwd)/go-piper/piper/src/cpp -I$(shell pwd)/go-piper/piper/build/fi/include -I$(shell pwd)/go-piper/piper/build/pi/include -I$(shell pwd)/go-piper/piper/build/si/include
124+ CGO_LDFLAGS+=-L$(shell pwd)/go-piper/piper/build/fi/lib -L$(shell pwd)/go-piper/piper/build/pi/lib -L$(shell pwd)/go-piper/piper/build/si/lib -lfmt -lspdlog
123125 OPTIONAL_GRPC+=backend-assets/grpc/piper
124126endif
125127
@@ -503,7 +505,7 @@ backend-assets/grpc/stablediffusion: backend-assets/grpc
503505 fi
504506
505507backend-assets/grpc/piper : backend-assets/grpc backend-assets/espeak-ng-data go-piper/libpiper_binding.a
506- CGO_LDFLAGS=" $( CGO_LDFLAGS) " LIBRARY_PATH=$(shell pwd) /go-piper \
508+ CGO_CXXFLAGS= " $( CGO_CXXFLAGS ) " CGO_LDFLAGS=" $( CGO_LDFLAGS) " LIBRARY_PATH=$(shell pwd) /go-piper \
507509 $(GOCMD ) build -ldflags " $( LD_FLAGS) " -tags " $( GO_TAGS) " -o backend-assets/grpc/piper ./cmd/grpc/piper/
508510
509511backend-assets/grpc/whisper : backend-assets/grpc whisper.cpp/libwhisper.a
You can’t perform that action at this time.
0 commit comments