chore: 环境迁移至本机(/home/ubuntu→/home/xsl 共28文件55处)+ tools/node、tools/bin 符号链接接入 + setup.md 补 torch cu128 钉版本踩坑(cu130 轮子驱动不兼容)+ tts_smoke_test 自建输出目录 + .gitignore 补 .venv-asr/tools-chrome

This commit is contained in:
xsl
2026-09-02 18:52:17 +08:00
parent 06d86d04e9
commit 3537610130
29 changed files with 77 additions and 57 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ import subprocess
import numpy as np
import soundfile as sf
ROOT = "/home/ubuntu/SoundGame"
ROOT = "/home/xsl/SoundGame"
STAGING = os.path.join(ROOT, "web", "rpg", "gen", "staging", "sfx")
OUT = os.path.join(ROOT, "web", "rpg", "audio", "sfx")
FFMPEG = os.path.join(ROOT, "tools", "bin", "ffmpeg")
+4 -4
View File
@@ -2,12 +2,12 @@
# R6 缺口 sfx:victory(Stable Audio 3,英文 prompt 照录 docs/design/11 §5)。
# 用法: bash web/rpg/gen/gen_gap_sfx.sh (内部 flock 串行 GPU;输出 staging)
set -u
source /home/ubuntu/SoundGame/env.d/sfx.sh
cd /home/ubuntu/SoundGame/tools/stable-audio-3
OUT=/home/ubuntu/SoundGame/web/rpg/gen/staging/sfx
source /home/xsl/SoundGame/env.d/sfx.sh
cd /home/xsl/SoundGame/tools/stable-audio-3
OUT=/home/xsl/SoundGame/web/rpg/gen/staging/sfx
mkdir -p "$OUT"
flock /home/ubuntu/SoundGame/.gpu.lock bash -c '
flock /home/xsl/SoundGame/.gpu.lock bash -c '
if [ -s "'"$OUT"'/victory.wav" ]; then echo "skip victory"; else
uv run stable-audio --model small-sfx \
-p "triumphant short brass fanfare, 3 rising notes, wuxia style, under 1.5 seconds" \
+2 -2
View File
@@ -19,10 +19,10 @@ import os
import subprocess
import sys
os.environ.setdefault("HF_HOME", "/home/ubuntu/SoundGame/models/hf")
os.environ.setdefault("HF_HOME", "/home/xsl/SoundGame/models/hf")
os.environ.setdefault("HF_ENDPOINT", "https://hf-mirror.com")
ROOT = "/home/ubuntu/SoundGame"
ROOT = "/home/xsl/SoundGame"
sys.path.insert(0, os.path.join(ROOT, "tools"))
from gen_voice_dual import split_text, valid_wav, PEAK_NORM, GAP_SEC # noqa: E402 只读复用主管线