feat: LiveSub 2차 — 자막 on/off, 모니터·위치 선택, GPU 저부하, 게임 용어집
이름을 Hearo → LiveSub 로 변경. 말장난보다 하는 일이 바로 보이는 쪽이 낫다. 자막 on/off - 전역 단축키 Ctrl+Alt+S (자막) / Ctrl+Alt+D (번역) — Windows RegisterHotKey + 네이티브 이벤트 필터라 게임 창이 떠 있어도 동작. 다른 OS 에서는 no-op - 단축키·체크박스·우클릭 메뉴가 모두 같은 경로를 타도록 통합 모니터 선택 + 디스코드식 배치 - placement.py: Qt 비의존 배치 계산 (모니터 목록 → 9분할 좌표) - AnchorGrid 위젯으로 3x3 위치 선택, 드래그하면 자유 배치로 전환 - 모니터 구성이 바뀌어도 자막이 화면 밖으로 사라지지 않도록 클램프 GPU 저부하 모드 (기본 켜짐) - 연산 정밀도 int8 강등, VRAM 상한 35%, 추론 후 60ms 양보, 300초 무음 시 모델 언로드, 중간 결과 비활성 - 기본 티어를 균형(6GB) → 신속(4GB) 으로 하향 - 8GB GPU 기준 자막 2.8GB / 게임 5.2GB 게임 용어집 번들 (304개) - 롤 74 · 발로란트 59 · 오버워치2 49 · FPS공통 46 · 마크 38 · 방송 38 - 체크박스로 켜고 끄며, 사용자가 직접 등록한 항목이 항상 우선 검증: pytest 91개 통과 (배치 14 + 팩 12 + UI 6 신규), ruff clean Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
// hearo_capture.exe — 특정 프로세스(와 그 자식 프로세스)의 렌더 오디오만
|
||||
// livesub_capture.exe — 특정 프로세스(와 그 자식 프로세스)의 렌더 오디오만
|
||||
// 뽑아내 stdout 으로 흘려보내는 보조 프로그램.
|
||||
//
|
||||
// 출력 포맷: 16000Hz / mono / 32-bit float, 헤더 없는 생 PCM.
|
||||
// 사용법: hearo_capture.exe --pid 1234 [--exclude]
|
||||
// 사용법: livesub_capture.exe --pid 1234 [--exclude]
|
||||
// --exclude 를 주면 해당 프로세스 트리를 "제외한" 나머지 소리를 받는다.
|
||||
//
|
||||
// Windows 10 2004(build 19041) 이상에서 동작하는 WASAPI process loopback API를
|
||||
@@ -77,7 +77,7 @@ private:
|
||||
};
|
||||
|
||||
void Fail(const char* what, HRESULT hr) {
|
||||
std::fprintf(stderr, "[hearo_capture] %s (hr=0x%08lX)\n", what, static_cast<unsigned long>(hr));
|
||||
std::fprintf(stderr, "[livesub_capture] %s (hr=0x%08lX)\n", what, static_cast<unsigned long>(hr));
|
||||
}
|
||||
|
||||
int Run(DWORD pid, bool exclude) {
|
||||
@@ -156,7 +156,7 @@ int Run(DWORD pid, bool exclude) {
|
||||
return 4;
|
||||
}
|
||||
|
||||
std::fprintf(stderr, "[hearo_capture] pid=%lu 캡처 시작 (%dHz mono f32)\n",
|
||||
std::fprintf(stderr, "[livesub_capture] pid=%lu 캡처 시작 (%dHz mono f32)\n",
|
||||
static_cast<unsigned long>(pid), kSampleRate);
|
||||
std::fflush(stderr);
|
||||
|
||||
@@ -211,7 +211,7 @@ int main(int argc, char** argv) {
|
||||
}
|
||||
}
|
||||
if (pid == 0) {
|
||||
std::fprintf(stderr, "사용법: hearo_capture.exe --pid <PID> [--exclude]\n");
|
||||
std::fprintf(stderr, "사용법: livesub_capture.exe --pid <PID> [--exclude]\n");
|
||||
return 64;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user