Initial commit

This commit is contained in:
xuwei 2026-03-01 22:54:27 +08:00
commit 9469142d5b
5 changed files with 285 additions and 0 deletions

17
generation_config.json5 Normal file
View file

@ -0,0 +1,17 @@
{
// 可以在这里控制各种生成字幕的参数, 下面这个链接里的参数都可以控制
// https://github.com/SYSTRAN/faster-whisper/blob/dea24cbcc6cbef23ff599a63be0bbb647a0b23d6/faster_whisper/transcribe.py#L733
// 默认只在这里写了少量参数, 有需要改别的参数的话可以直接加到下面
"vad_parameters": {
// VAD检测阈值
// 太大会导致漏翻, 太小可能会导致时间轴不准或文本质量下降(幻听)
"threshold": 0.5,
},
// 避免时间轴向前偏移过长的问题
"max_initial_timestamp": 30,
"repetition_penalty": 1.1,
}