Files
ViGent/backend/.env.example
2026-01-14 14:39:02 +08:00

40 lines
1.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ViGent 环境配置示例
# 复制此文件为 .env 并填入实际值
# 调试模式
DEBUG=true
# Redis 配置 (Celery 任务队列)
REDIS_URL=redis://localhost:6379/0
# =============== TTS 配置 ===============
# 默认 TTS 音色
DEFAULT_TTS_VOICE=zh-CN-YunxiNeural
# =============== MuseTalk 配置 ===============
# GPU 选择 (0=第一块GPU, 1=第二块GPU)
MUSETALK_GPU_ID=1
# 使用本地模式 (true) 或远程 API (false)
MUSETALK_LOCAL=true
# 远程 API 地址 (仅 MUSETALK_LOCAL=false 时使用)
# MUSETALK_API_URL=http://localhost:8001
# 模型版本 (v1 或 v15推荐 v15)
MUSETALK_VERSION=v15
# 推理批次大小 (根据 GPU 显存调整RTX 3090 可用 8-16)
MUSETALK_BATCH_SIZE=8
# 使用半精度加速 (推荐开启,减少显存占用)
MUSETALK_USE_FLOAT16=true
# =============== 上传配置 ===============
# 最大上传文件大小 (MB)
MAX_UPLOAD_SIZE_MB=500
# =============== FFmpeg 配置 ===============
# FFmpeg 路径 (如果不在系统 PATH 中)
# FFMPEG_PATH=/usr/bin/ffmpeg