Add local GPU preset voices with dropdown selection.
Generate ChatTTS sample_random_speaker presets without cloud APIs; choose clone or preset in synthesize UI. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
# 生成本地 GPU 预设音色(ChatTTS 内置说话人,无需 API)
|
||||
# 用法: bash scripts/generate_voice_presets.sh
|
||||
set -euo pipefail
|
||||
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
VENV_PY="${ROOT}/venv/bin/python"
|
||||
|
||||
if [[ ! -x "${VENV_PY}" ]]; then
|
||||
echo "[ERROR] 未找到 venv,请先 bash deploy.sh deps"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "[INFO] 正在生成 ChatTTS 预设音色(本地 GPU)..."
|
||||
"${VENV_PY}" "${ROOT}/scripts/generate_voice_presets.py"
|
||||
echo "[OK] 预设音色已写入 ${ROOT}/voices/presets/"
|
||||
echo "[OK] 在 Web UI「配音合成」处可从下拉框选择"
|
||||
Reference in New Issue
Block a user