From 5e41ab6779232fc0ad84e33cfe7f2ea129c1c9dd Mon Sep 17 00:00:00 2001 From: timehexon Date: Fri, 5 Jun 2026 12:04:24 -0400 Subject: [PATCH] Makefile: add apt-deps + apt-deps-sox targets for venv path --- Makefile | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 94fdce7..fe5dd73 100644 --- a/Makefile +++ b/Makefile @@ -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 # ============================================================================