Initial standalone morshu TTS server extracted from the ttstoy bot cog

Self-contained HTTP service with engine, data, start script, systemd unit,
and documentation. Runs independently of the Discord bot on its fixed port.
This commit is contained in:
2026-09-14 14:31:15 -05:00
commit e61a320499
10 changed files with 528 additions and 0 deletions
Executable
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
# Start script for the Morshu TTS server.
# Creates a local venv on first run, installs deps, then runs the server.
set -e
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
cd "$SCRIPT_DIR"
if [ ! -d venv ]; then
echo "Creating virtual environment..."
python3 -m venv venv
./venv/bin/pip install --upgrade pip
./venv/bin/pip install -r requirements.txt
fi
export PORT="${PORT:-33002}"
exec ./venv/bin/python "$SCRIPT_DIR/server.py"