video_translate/README.md
2026-03-18 11:42:00 +08:00

1.2 KiB

GHBanner

Run and deploy your AI Studio app

This contains everything you need to run your app locally.

View your app in AI Studio: https://ai.studio/apps/a38a3cd5-7f82-49f0-a26e-99be4d77f863

Run Locally

Prerequisites: Node.js

  1. Install dependencies: npm install
  2. Configure .env with: ARK_API_KEY GEMINI_API_KEY MINIMAX_API_KEY
  3. Optional defaults: DEFAULT_LLM_PROVIDER=doubao DOUBAO_MODEL=doubao-seed-2-0-pro-260215
  4. Run the app: npm run dev

Model Switching

  1. Subtitle generation now runs through the server and supports Doubao and Gemini.
  2. The editor shows an LLM selector and defaults to Doubao.
  3. TTS stays fixed on MiniMax regardless of the selected LLM.
  4. All provider keys are read from .env; the browser no longer calls LLM providers directly.

Subtitle Generation

  1. Subtitle generation is now driven by server-side multimodal LLM calls on the uploaded video file.
  2. No separate local alignment/ASR backend is required for /api/generate-subtitles.