add whisper

This commit is contained in:
2026-08-16 15:52:40 +08:00
parent 6e4d93cea6
commit 53cbcde543
6 changed files with 323 additions and 9 deletions

14
whisper/.env.example Normal file
View File

@@ -0,0 +1,14 @@
# 模型选择:
# Systran/faster-whisper-large-v3 准确率最高float16 约 6 GB 显存)
# Systran/faster-whisper-large-v3-turbo 速度快约 8 倍float16 约 3 GB 显存)
WHISPER_MODEL=Systran/faster-whisper-large-v3
# 服务只监听本机,避免暴露公网
WHISPER_PORT=9000
WHISPER_DEVICE=cuda
WHISPER_COMPUTE_TYPE=float16
WHISPER_CPU_THREADS=4
# -1 表示模型常驻显存;空闲自动卸载可改为 600
WHISPER_TTL=-1