Language Translation 🌐
Word count
472 words
Reading time
3 minutes
Translate between multiple languages with the ability to switch translation providers and fine-tune advanced parameters to optimize translation quality—making it easy to overcome language barriers.

Debug Mode
After Subtitles recognition is completed, click Continue and then Execute. When Debug Mode is enabled, subsequent execution will be interrupted.
log
2025-04-11 01:12:30.420 | INFO 12868 response.py:28 - {"task_id":"806c875f7d89405c91318515fafffa3ee"}
2025-04-11 01:12:30.422 | INFO 12868 cbutils.py:310 - File already exists. webapp/dubb/test/test.mp4
2025-04-11 01:12:30.426 | INFO 12868 cbaudio.py:59 - Audio extracted and saved to: webapp/dubb/test/test.wav duration 30.570666666666668s
2025-04-11 01:12:30.426 | INFO 12868 spleeter_.py:73 - Audio separate file already exists. (webapp/dubb/test/stems/vocals.wav , webapp/dubb/test/stems/instrumental.wav)
2025-04-11 01:12:34.485 | INFO 12868 trans_.py:39 - {'provider': 'Gemini', 'model': 'gemini-2.0-flash', 'json_path': 'webapp/dubb/test/zh/test.json', 'language': 'zh-CN', 'kwargs': {'temperature': 0.1, 'top_p': 0.1, 'cache': True, 'debug': True}}
2025-04-11 01:12:34.486 | INFO 12868 trans_.py:41 - language: zh-CN
2025-04-11 01:12:34.487 | INFO 12868 llm.py:43 - {'provider': 'Gemini', 'model': 'gemini-2.0-flash', 'kwargs': {'temperature': 0.1, 'top_p': 0.1, 'cache': True}}
2025-04-11 01:12:35.519 | INFO 12868 llm.py:81 - LLM provider Gemini model gemini-2.0-flash
2025-04-11 01:12:35.527 | INFO 12868 llm.py:115 - cache miss prompt md5(c71541dbcc2e1911bfe99377113cbb3a)...
2025-04-11 01:12:36.129 | INFO 10992 task.py:34 - current time: 2025-04-11 01:12:36.129094
2025-04-11 01:12:38.237 | INFO 12868 llm.py:119 - cache update for prompt md5(c71541dbcc2e1911bfe99377113cbb3a) ...
2025-04-11 01:12:38.252 | INFO 12868 llm.py:92 - Gemini token usage: input tokens: 475, output tokens: 370, total tokens: 845
2025-04-11 01:12:38.587 | INFO 12868 trans_.py:71 - Translated transcription:
Hello everyone. You may not have seen these amazing gadgets before. Many people don’t even know they exist. Today, I’ll show you six awesome egg-related kitchen tools...
2025-04-11 01:12:38.588 | INFO 12868 trans_.py:79 - Translated data complete and saved to: webapp/dubb/test/zh/test.jsonView Content
Click the icon in the bottom-right corner to view the currently recognized content.
Manual Editing

Modify the text values of different properties, then click the top-right icon to save your changes.
Provider Selection

Ignore
- Use manually adjusted translations by selecting
Ignore - Use the original text without translation by enabling
Use Original Text

LLM
Starting from version 1.0.25, extended via LiteLLM, using OpenAI and Gemini as examples:
| Provider | Environment Variable | Model | Proxy |
|---|---|---|---|
| OpenAi | OPENAI_API_KEY | gpt-4.1-mini | ✅ |
| Gemini | GEMINI_API_KEY | gemini/gemini-2.5-pro | ✅ |
- Configuration

- Validate Configuration

- Supported models and providers
- Third-party proxy calls are supported; configure the
Proxy Address
Configuration Options
Prompt
Not limited to translation—users can customize the prompt.
text
You are a translation expert. Based on the information I provide, accurately translate it into the target language of {{lang}}.
Requirements:
1. 'text' is the source text, 'text_trans' is the translated text
2. Conform to local cultural norms and natural conversational expressions
Content:
{{text}}Batch Processing
Controls the length of returned content by processing long texts in batches.