-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.json
More file actions
75 lines (75 loc) · 2.49 KB
/
config.example.json
File metadata and controls
75 lines (75 loc) · 2.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
"whisper_model": "medium",
"device": "auto",
"compute_type": "auto",
"video_language": null,
"max_video_height": 1080,
"ytdlp_cookies": "",
"ytdlp_cookies_by_host": {
"youtube.com": "./cookies/youtube.txt",
"gamedev.tv": "./cookies/gamedev.txt"
},
"ytdlp_client": "",
"subtitle_max_gap_ms": 2000,
"subtitle_max_chars": 120,
"subtitle_advanced": {
"target_chars_ratio": 0.82,
"min_chars_ratio": 0.38,
"hard_max_chars_ratio": 1.35,
"hard_max_chars_bias": 18,
"soft_max_duration_sec": 4.8,
"hard_max_duration_sec": 6.4,
"min_words": 3,
"merge_max_gap_sec": 0.35,
"merge_max_duration_sec": 6.0,
"merge_max_chars_ratio": 1.35,
"merge_max_chars_bias": 24,
"short_tail_max_words": 3,
"short_tail_max_chars": 18,
"short_tail_max_duration_sec": 1.4,
"split_max_duration_sec": 6.8
},
"qwen_api_key": "sk-xxxxxxxxxxxxxxxxxxxxxxxx",
"qwen_base_url": "https://your-api-endpoint/v1",
"qwen_model": "qwen3.5-plus",
"translate_batch_size": 50,
"translate_concurrency": 10,
"api_retry": 3,
"api_sleep": 0.5,
"font_size": 20,
"subtitle_font": "Microsoft YaHei",
"subtitle_primary_color": "&H00FFFFFF",
"subtitle_outline_color": "&H00000000",
"subtitle_outline": 1,
"subtitle_shadow": 0,
"subtitle_margin_v": 30,
"tts_provider": "edge",
"tts_voice": "zh-CN-YunjianNeural",
"tts_rate": "+0%",
"tts_volume": "+0%",
"tts_bg_volume": 0.5,
"tts_max_speed": 1.5,
"tts_merge_gap_ms": 280,
"tts_merge_max_chars": 90,
"qwen_tts_api_key": "sk-xxxxxxxxxxxxxxxxxxxxxxxx",
"qwen_tts_base_url": "https://dashscope.aliyuncs.com/api/v1",
"qwen_tts_model": "qwen3-tts-flash",
"qwen_tts_voice": "Cherry",
"cosyvoice_api_url": "http://127.0.0.1:9880",
"cosyvoice_port": 9880,
"cosyvoice_mode": "preset",
"cosyvoice_voice": "中文男",
"cosyvoice_prompt_audio_path": "",
"cosyvoice_prompt_text": "",
"cosyvoice_device": "cpu",
"cosyvoice_repo_url": "https://github.com/FunAudioLLM/CosyVoice.git",
"cosyvoice_model_id": "FunAudioLLM/CosyVoice-300M-SFT",
"cosyvoice_ttsfrd_id": "FunAudioLLM/CosyVoice-ttsfrd",
"cosyvoice_model_source": "auto",
"cosyvoice_start_timeout": 900,
"cosyvoice_request_timeout": 180,
"cosyvoice_merge_max_chars": 72,
"cosyvoice_fp16": true,
"enhance_model": "RealESRGAN_x4plus",
"enhance_outscale": 4
}