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
+2 -2
View File
@@ -5,8 +5,8 @@ import random
from PIL import Image, ImageDraw, ImageFilter, ImageFont
W, H = 1080, 1920
FONT = "/home/ubuntu/SoundGame/app/src/reflex/gen/NotoSansSC-Bold.ttf"
OUT = "/home/ubuntu/SoundGame/web/space/cover.png"
FONT = "/home/xsl/SoundGame/app/src/reflex/gen/NotoSansSC-Bold.ttf"
OUT = "/home/xsl/SoundGame/web/space/cover.png"
random.seed(42)
+3 -3
View File
@@ -1,9 +1,9 @@
#!/bin/bash
# 盲航 SFX 批量生成(Stable Audio 3 small-sfx),单 flock 会话内串行跑完
set -e
source /home/ubuntu/SoundGame/env.d/sfx.sh
cd /home/ubuntu/SoundGame/tools/stable-audio-3
OUT=/home/ubuntu/SoundGame/web/space/audio/build
source /home/xsl/SoundGame/env.d/sfx.sh
cd /home/xsl/SoundGame/tools/stable-audio-3
OUT=/home/xsl/SoundGame/web/space/audio/build
mkdir -p "$OUT"
gen() { # $1=name $2=duration $3=prompt
+3 -3
View File
@@ -1,11 +1,11 @@
"""盲航(space)TTS 对白批量生成:教学旁白 + 游戏内提示 + 数字播报。
用法:flock /home/ubuntu/SoundGame/.gpu.lock .venv-tts/bin/python gen_voice.py
用法:flock /home/xsl/SoundGame/.gpu.lock .venv-tts/bin/python gen_voice.py
输出 24kHz wav 到 web/space/audio/build/voice/,随后由 ffmpeg 转 ogg/m4a。
"""
import os
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")
import numpy as np
@@ -13,7 +13,7 @@ import soundfile as sf
import torch
from qwen_tts import Qwen3TTSModel
OUT = "/home/ubuntu/SoundGame/web/space/audio/build/voice"
OUT = "/home/xsl/SoundGame/web/space/audio/build/voice"
os.makedirs(OUT, exist_ok=True)
CALM = "冷静、沉稳的飞船导航合成语音,吐字清晰"