Add XTTS primary voice with Piper fallback
This commit is contained in:
Executable
+20
@@ -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
|
||||
Reference in New Issue
Block a user