File size: 467 Bytes
adabee1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | #!/usr/bin/env bash
# Render scripts/en_probes.txt with the original English tiny-voca (voices F2, M2).
set -euo pipefail
for VOICE in M2 F2; do
OUT="out/en-ref-$VOICE"; mkdir -p "$OUT"; n=0
while IFS= read -r line; do
n=$((n + 1))
python -m tiny_voca.infer --checkpoint weights/tiny-voca.pt --voice "$VOICE" \
--text "$line" --output "$OUT/en_$(printf %02d $n).wav" > /dev/null
done < scripts/en_probes.txt
echo "$VOICE: $n clips -> $OUT"
done
|