게임 중 GPU 아끼기: 게임(발로란트 실행 중 · 롤 경기 중)이 켜져 있으면 정밀 모델을 내리고 정밀 변환은 게임을 끈 뒤로 (16GB 카드는 경기 중에도 large-v3 를 올려 두고 다음 경기 중에도 지난 경기 정밀 변환을 돌리던 것, 메뉴에서는 새 발화를 large-v3 빔 5 로 변환하던 것) · 실시간 변환은 빔 1 · 발화 사이에 변환한 만큼 쉼 · 설정 토글 · 앱 창 하드웨어 가속 끔

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-31 03:36:03 +09:00
parent d0371fa0ac
commit 9e1875b237
11 changed files with 195 additions and 5 deletions

View File

@@ -152,6 +152,10 @@ class SttEngine:
if noise.judge_vad(speech_ratio, speech_s, sensitivity):
return done("vad")
# 앱이 게임 중에는 빔 1(가장 가벼움)을 보낸다. 없으면 슬롯 기본값
beam = req.get("beam_size")
beam = int(beam) if isinstance(beam, (int, float)) and 1 <= int(beam) <= 10 else BEAM.get(slot, 5)
hotwords = req.get("hotwords") or None
hotwords = hotwords if isinstance(hotwords, str) and hotwords.strip() else None
@@ -161,7 +165,7 @@ class SttEngine:
prep.audio,
language="ko",
task="transcribe",
beam_size=BEAM.get(slot, 5),
beam_size=beam,
word_timestamps=True,
vad_filter=True,
vad_parameters={"min_silence_duration_ms": VAD_MIN_SILENCE_MS},