OpenGithubs / OpenGithubs/weekly

【开源自荐】游戏语音本地实时翻译悬浮字幕

Open
#141 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
1.7k
Forks
71
PR merge metrics
No merged PRs in 30d

Description

推荐我自己AI的一个开源项目:

游戏语音本地实时翻译悬浮字幕(game-subtitle-cpp)
https://github.com/JFHSHX/game-subtitle-cpp

这是一个游戏语音本地实时翻译悬浮字幕工具(C++ / Qt 6 版)。它捕获系统回环音频,通过本地语音识别 + 本地机器翻译,在桌面悬浮窗实时显示双语字幕。全程离线运行,音频不落盘,隐私数据不出本机。

主要特点:

  1. 全程离线:语音识别与翻译都在本机完成,不依赖任何云端服务。
  2. 隐私优先:音频流仅用于实时识别,不写盘、不上传。
  3. 实时优先:「流式 + 精准」两遍识别,兼顾出字速度与翻译准确率。
  4. 低资源占用:原生 C++ / Qt,无 WebView 依赖,内存与 CPU 占用更低。
  5. GPU 加速:支持 DirectML(DX12)推理,可开关,失败自动回退 CPU。
  6. GTCRN 降噪:语音增强,降噪档位(关/低/高)可调。
  7. 进程联动:可指定目标游戏进程,自动开始/停止字幕。
  8. 术语表:支持自定义专有名词翻译(翻译前掩码、翻译后还原)。
  9. 历史记录:SQLite 持久化,支持查看、清空、导出 CSV。

技术栈方面,采用 Qt 6.8 桌面 UI,sherpa-onnx 做语音识别(C++ API 直链),MTranServer(Bergamot) 做本地机器翻译。

这是我之前 Rust/Tauri 版的 C++ 重写版,相比原版更轻量、性能更好。非常适合打外服游戏、看生放送、或者任何需要实时听懂外语语音的场景。

项目地址:https://github.com/JFHSHX/game-subtitle-cpp

欢迎感兴趣的朋友 Star、试用、提 Issue!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

This issue is a self-recommendation for the external game-subtitle-cpp project, not a requested change to the weekly repository. No file, test, or entry point is named; clarify whether an editorial listing is wanted and what format or acceptance criteria would define completion.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, rust, sqlite, tauri
Domain
content
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.