video_translate/.env.example
Song367 85065cbca3
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m8s
Build multi-stage subtitle and dubbing pipeline
2026-03-20 20:55:40 +08:00

70 lines
2.8 KiB
Plaintext

# GEMINI_API_KEY: Required when the editor LLM is set to Gemini.
GEMINI_API_KEY="MY_GEMINI_API_KEY"
# ARK_API_KEY: Required when the editor LLM is set to Doubao.
ARK_API_KEY="YOUR_ARK_API_KEY"
# VOLCENGINE_ASR_APP_KEY: Required for Stage 1 audio transcription when using Doubao.
VOLCENGINE_ASR_APP_KEY="YOUR_VOLCENGINE_ASR_APP_KEY"
# VOLCENGINE_ASR_ACCESS_KEY: Required for Stage 1 audio transcription when using Doubao.
VOLCENGINE_ASR_ACCESS_KEY="YOUR_VOLCENGINE_ASR_ACCESS_KEY"
# VOLCENGINE_ASR_RESOURCE_ID: Optional override for flash ASR resource id.
# Defaults to volc.bigasr.auc_turbo.
# VOLCENGINE_ASR_RESOURCE_ID="volc.bigasr.auc_turbo"
# VOLCENGINE_ASR_BASE_URL: Optional override for flash ASR endpoint.
# Defaults to https://openspeech.bytedance.com/api/v3/auc/bigmodel/recognize/flash
# VOLCENGINE_ASR_BASE_URL="https://openspeech.bytedance.com/api/v3/auc/bigmodel/recognize/flash"
# VOLCENGINE_ASR_MODEL_NAME: Optional override for flash ASR model_name.
# Defaults to bigmodel.
# VOLCENGINE_ASR_MODEL_NAME="bigmodel"
# VOLCENGINE_ASR_TIMEOUT_MS: Optional timeout for flash ASR requests in milliseconds.
# Defaults to DOUBAO_TIMEOUT_MS or 600000.
# VOLCENGINE_ASR_TIMEOUT_MS="600000"
# DEFAULT_LLM_PROVIDER: Optional editor default. Supported values: doubao, gemini.
# Defaults to doubao.
DEFAULT_LLM_PROVIDER="doubao"
# DOUBAO_MODEL: Optional override for the Ark model used by Doubao subtitle generation.
# Defaults to doubao-seed-2-0-pro-260215.
DOUBAO_MODEL="doubao-seed-2-0-pro-260215"
# DOUBAO_TIMEOUT_MS: Optional timeout for Doubao subtitle requests in milliseconds.
# Defaults to 600000 (10 minutes).
# DOUBAO_TIMEOUT_MS="600000"
# VITE_API_BASE_PATH: Optional frontend API base path.
# Defaults to /api.
# Set to /video_translate/api when the app is served under /video_translate.
# VITE_API_BASE_PATH="/video_translate/api"
# VITE_ALLOWED_HOSTS: Optional comma-separated hostnames allowed by the Vite dev server.
# Useful when exposing the dev server through a tunnel such as cpolar.
# VITE_ALLOWED_HOSTS="ced4302.r20.vip.cpolar.cn"
# MINIMAX_API_KEY: Required for MiniMax TTS API calls.
# Use a MiniMax API secret key that has TTS access enabled.
MINIMAX_API_KEY="YOUR_MINIMAX_API_KEY"
# MINIMAX_API_HOST: Optional override for the MiniMax API host.
# Defaults to https://api.minimaxi.com
MINIMAX_API_HOST="https://api.minimaxi.com"
# FFMPEG_PATH: Optional absolute path to ffmpeg binary.
# If omitted, the server resolves ffmpeg from system PATH.
# FFMPEG_PATH="/usr/bin/ffmpeg"
# FFPROBE_PATH: Optional absolute path to ffprobe binary.
# If omitted, the server resolves ffprobe from system PATH.
# FFPROBE_PATH="/usr/bin/ffprobe"
# APP_URL: The URL where this applet is hosted.
# AI Studio automatically injects this at runtime with the Cloud Run service URL.
# Used for self-referential links, OAuth callbacks, and API endpoints.
APP_URL="MY_APP_URL"