26 lines
1.4 KiB
Bash
26 lines
1.4 KiB
Bash
#!/bin/bash
|
|
# 盲航 SFX 批量生成(Stable Audio 3 small-sfx),单 flock 会话内串行跑完
|
|
set -e
|
|
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
|
|
if [ -s "$OUT/$1.wav" ]; then echo "skip $1"; return; fi
|
|
echo "=== gen $1 ==="
|
|
uv run stable-audio --model small-sfx -p "$3" --duration "$2" -o "$OUT/$1.wav"
|
|
}
|
|
|
|
gen whoosh_base 2.5 "large asteroid whooshing past in deep space, deep airy doppler pass-by whoosh, cinematic sci-fi"
|
|
gen whoosh_up 2.5 "high pitched descending whistle shriek from above, piercing falling whistle, airy sci-fi tone"
|
|
gen whoosh_down 2.5 "deep low frequency rumble approaching from below, sub bass growl swelling louder, ominous"
|
|
gen alarm 1 "short spaceship proximity alarm, two quick urgent electronic warning beeps"
|
|
gen hit 1.5 "heavy metallic impact thud on spaceship hull, deep clang with debris rattle"
|
|
gen crash 3 "massive spaceship explosion, deep catastrophic boom with crackling debris"
|
|
gen shield 1.5 "sci-fi energy shield activating, rising electronic shimmer, force field hum"
|
|
gen shield_block 1.5 "energy shield absorbing an impact, electric zap ripple, force field deflection"
|
|
gen boost 1.8 "rocket thruster burst, short powerful engine acceleration blast"
|
|
gen dodge 1.2 "fast airy swoosh pass-by, quick smooth evasive whoosh"
|
|
echo ALL_DONE
|