Makefile: add apt-deps + apt-deps-sox targets for venv path

This commit is contained in:
timehexon 2026-06-05 12:04:24 -04:00
parent 3b58f0c867
commit 5e41ab6779

View file

@ -3,7 +3,7 @@
CONTAINER_NAME ?= uncloseai-speech-server-1
.PHONY: help deploy restart logs test clean stop start voices voices-qwen voices-f5 voices-piper voices-xtts voices-kokoro test-kokoro voices-silero test-silero voices-chatterbox test-chatterbox push-all hydrate load-test test-qwen test-f5 venv venv-run local local-cpu whisper-refs
.PHONY: help deploy restart logs test clean stop start voices voices-qwen voices-f5 voices-piper voices-xtts voices-kokoro test-kokoro voices-silero test-silero voices-chatterbox test-chatterbox push-all hydrate load-test test-qwen test-f5 venv venv-run local local-cpu whisper-refs apt-deps apt-deps-sox
help:
@echo "Raccoon TTS Mission - Development Commands"
@ -18,8 +18,10 @@ help:
@echo " make logs - Tail container logs"
@echo ""
@echo "No Docker:"
@echo " make venv - Create Python virtual environment"
@echo " make venv-run - Run server in virtual environment"
@echo " make apt-deps - Install required system packages (ffmpeg, curl, git)"
@echo " make apt-deps-sox - Install optional sox (silences torchaudio warning)"
@echo " make venv - Create Python virtual environment"
@echo " make venv-run - Run server in virtual environment"
@echo ""
@echo "Testing (default engines):"
@echo " make test - Test TTS endpoint (Qwen3-TTS)"
@ -106,6 +108,18 @@ venv-run:
venv-clean:
rm -rf $(VENV_DIR)
# Required system packages for the venv path (mirrors Dockerfile apt install).
# Skip if you only ever use the Docker path — the image carries these itself.
apt-deps:
sudo apt-get update
sudo apt-get install -y --no-install-recommends curl ffmpeg git
# Optional. Silences torchaudio's "SoX could not be found" warning at startup.
# F5-TTS + Qwen3-TTS work without it; ffmpeg covers every audio op we use today.
# Install only if a future engine pulls in torchaudio.sox_effects.
apt-deps-sox:
sudo apt-get install -y --no-install-recommends sox libsox-fmt-all
# ============================================================================
# Testing
# ============================================================================