add openvoice backend (#2334)

Wip openvoice
This commit is contained in:
Ettore Di Giacinto
2024-05-19 16:27:08 +02:00
committed by GitHub
parent a10a952085
commit 8ad669339e
11 changed files with 377 additions and 3 deletions

View File

@ -0,0 +1,25 @@
.DEFAULT_GOAL := install
.PHONY: install
install: protogen
bash install.sh
.PHONY: protogen
protogen: backend_pb2_grpc.py backend_pb2.py
.PHONY: protogen-clean
protogen-clean:
$(RM) backend_pb2_grpc.py backend_pb2.py
backend_pb2_grpc.py backend_pb2.py:
python3 -m grpc_tools.protoc -I../.. --python_out=. --grpc_python_out=. backend.proto
.PHONY: clean
clean: protogen-clean
rm -rf venv __pycache__
.PHONY: test
test: protogen
@echo "Testing openvoice..."
bash test.sh
@echo "openvoice tested."