video_translate/README.md
Song367 4031d21dcc
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 28s
优化package
2026-03-18 15:22:37 +08:00

41 lines
1.3 KiB
Markdown

<div align="center">
<img width="1200" height="475" alt="GHBanner" src="https://github.com/user-attachments/assets/0aa67016-6eaf-458a-adb2-6e31a0763ed6" />
</div>
# 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, system `ffmpeg`, and system `ffprobe`
1. Install dependencies:
`npm install`
2. Configure [.env](.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`
`FFMPEG_PATH=/path/to/ffmpeg` (optional)
`FFPROBE_PATH=/path/to/ffprobe` (optional)
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`.