Add XTTS primary voice with Piper fallback

This commit is contained in:
Mikei386
2026-08-23 12:22:59 +02:00
parent 16a6288a4d
commit f90fc93f9c
18 changed files with 715 additions and 28 deletions
+20
View File
@@ -0,0 +1,20 @@
#!/bin/sh
set -eu
backup_dir=${1:?usage: rollback-tts-production.sh BACKUP_DIR}
case "$backup_dir" in
/data/backups/mike-ai/*) ;;
*) echo "refusing unexpected backup path" >&2; exit 2 ;;
esac
test -f "$backup_dir/compose.yaml"
test -f "$backup_dir/stack.env"
cp -a "$backup_dir/compose.yaml" /opt/mike-ai/stack/compose.yaml
cp -a "$backup_dir/stack.env" /etc/mike-ai/stack.env
chmod 0600 /etc/mike-ai/stack.env
cd /opt/mike-ai/stack
docker compose --env-file /etc/mike-ai/stack.env up -d --no-deps --force-recreate router
docker rm -f mike-ai-tts-gateway mike-ai-xtts >/dev/null 2>&1 || true