惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

小众软件
小众软件
IT之家
IT之家
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Security Archives - TechRepublic
Security Archives - TechRepublic
P
Proofpoint News Feed
C
CERT Recently Published Vulnerability Notes
阮一峰的网络日志
阮一峰的网络日志
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Cloudflare Blog
P
Palo Alto Networks Blog
Know Your Adversary
Know Your Adversary
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Cisco Talos Blog
Cisco Talos Blog
L
Lohrmann on Cybersecurity
AWS News Blog
AWS News Blog
J
Java Code Geeks
博客园_首页
Scott Helme
Scott Helme
WordPress大学
WordPress大学
有赞技术团队
有赞技术团队
T
The Exploit Database - CXSecurity.com
Security Latest
Security Latest
V
Visual Studio Blog
Cloudbric
Cloudbric
Jina AI
Jina AI
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
博客园 - 叶小钗
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 聂微东
人人都是产品经理
人人都是产品经理
A
Arctic Wolf
C
Cybersecurity and Infrastructure Security Agency CISA
S
SegmentFault 最新的问题
The Last Watchdog
The Last Watchdog
SecWiki News
SecWiki News
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
W
WeLiveSecurity
K
Kaspersky official blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Hacker News: Ask HN
Hacker News: Ask HN
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
宝玉的分享
宝玉的分享
Hugging Face - Blog
Hugging Face - Blog
量子位
Google Online Security Blog
Google Online Security Blog
博客园 - Franky
Simon Willison's Weblog
Simon Willison's Weblog
博客园 - 三生石上(FineUI控件)
Recent Commits to openclaw:main
Recent Commits to openclaw:main

Hacker News - Newest: "AI"

AI can't read an investor deck AI as an attorney? Student uses ChatGPT, Gemini to sue UW over alleged racial discrimination Hacking MCP Servers in AI Systems – The Rug Pull: Tool Changes After Approval GitHub - MeepCastana/KubeezCut: Free Web based video editor GitHub - GenAI-Gurus/awesome-eu-ai-act: Curated tools, official sources, OSS, templates, and guides for EU AI Act compliance. Can AI judge journalism? A Thiel-backed startup says yes, even if it risks chilling whistleblowers Coming soon: 10 Things That Matter in AI Right Now DARPA built an AI to fact-check enemy weapons claims What explains heterogeneity in AI adoption? When AI Meets Muscle: Context-Aware Electrical Stimulation Promises a New Way to Guide Human Movements - Department of Computer Science AI Changed How We Build. It Did Not Change What Matters. Linux rules on using AI-generated code - Copilot is OK, but humans must take 'full responsibility for the… Meta spins up AI version of Mark Zuckerberg to engage with employees Code Mode: Let Your AI Write Programs, Not Just Call Tools | TanStack Blog GitHub - Delavalom/graft: Go framework for building AI agents. Type-safe tools, multi-provider (OpenAI, Anthropic, Gemini, Bedrock), zero vendor SDKs. India's TCS tops estimates, says new AI models did not dent services demand Gen Z's fading AI hype Strong feeling: we are in a folded AI reality GitHub - machinarii/total-recall-catalog: A reference catalog of latest knowledge retrieval, memory & RAG systems GitHub - mensfeld/code-on-incus: Give each AI agent its own isolated machine with root, Docker, and systemd. Active defense detects and stops threats automatically.. Quantization, LoRA, and the 8% Problem: Benchmarking Local LLMs for Production AI Iran war: We spoke to the man making Lego-style AI videos that experts say are powerful propaganda Powell, Bessent discussed Anthropic's Mythos AI cyber threat with major U.S. banks GitHub - immartian/bellamem: Persistent belief-graph memory for AI agents. Retrieves decisive context by importance — not recency, not RAG, not /compact. recursive-mode: The Repo-Native Operating System for AI Engineering After the attack on Sam Altman's home, will AI CEO's go on the offensive? The biggest advance in AI since the LLM Opus 4.6 vs GPT 5.4 One Prompt Unity World Generation Test “AI polls” are fake polls Client Challenge Can AI be a 'child of God'? Inside Anthropic's meeting with Christian leaders How to Switch AI Chatbots and Why You Might Want To GitHub - MattMessinger1/agentic_refund_guardrail: Safe refund policy layer for AI agents — Python + TypeScript. Same behavior, shared tests. Adam/papers/emergent_values_whitepaper.md at master · strangeadvancedmarketing/Adam Ask HN: How do you stop playing 20 questions with your AI coding tools How far can automation and AI support psychotherapy? - @theU GitHub - stagas/rtdiff: realtime git diff gui and AI-assisted commits A Mac Studio for Local AI — 6 Months Later A History of the Early Years of AI at the University of Edinburgh Why AI Coding Tools Still Feel Stuck on Localhost MSN AI Datacenters Are Becoming Strategic Targets twitter.com Penn Researchers Use AI to Surface Unreported GLP-1 Side Effects in Reddit Posts Show HN: MoodSense AI (ML and FastAPI and Gradio, Deployed on Hugging Face) Moodsense Ai - a Hugging Face Space by aman179102 AI models are terrible at betting on soccer—especially xAI Grok GitHub - xialeistudio/echoic GitHub - HimashaHerath/github-dev-wrapped: AI-powered weekly GitHub activity reports deployed to GitHub Pages GitHub - alejandrobalderas/claude-code-from-source: Architecture, patterns & internals of Anthropic's AI coding agent — reverse-engineered from source maps AI and Tech brief: Ireland ascendant GitHub - Titovilal/context0: Context0 - Never Surrender Training for a Marathon with an AI Coach: What Worked and What Didn't Cyber Pulse: Agentic Intel - Apps on Google Play I Built an AI PR Reviewer That Catches Bugs by Not Looking for Bugs Gen Z workers are so fearful AI will take their job they’re intentionally sabotaging their company’s AI rollout | Fortune How AI Is Reimagining the Game of Golf–For Both Players and Courses GitHub - nattergabriel/reseed: A CLI tool for managing and distributing agent skills across projects Is SVG the final frontier? My AI workflow evolved from prompts to a near-autonomous workflow MLSharp Help - 3DGS Viewer & Generator I put my cognitive field based AI's runtime on GitHub Is Numble the first AI-proof game? A3: Kubernetes for autonomous AI agent fleets | Emergent Principles Deepali Vyas ("The Elite Recruiter") GitHub - msmarkgu/RelayFreeLLM: A restful API designed to route user prompts to various AI model providers. Unionized ProPublica staff are on strike over AI, layoffs, and wages Unleashing the Advantage of Quantum AI We're heading for an AI-fueled 'dementia crisis,' brain scientist warns The AI-Assisted Breach of Mexico's Government Infrastructure [pdf] GitHub - stef41/lmscan: 🔍 Detect AI-generated text and fingerprint which LLM wrote it. Open-source GPTZero alternative. Zero dependencies, works offline. MSN GitHub - visionscaper/collabmem: Enabling long-term collaboration with Agentic AI - building up episodic and world model memory over time with in-context awareness We gave an AI a 3 year retail lease in SF and asked it to make a profit | Andon Labs AI Code is Hollowing Out Open Source, and Maintainers are Looking the Other Way What leaked "SteamGPT" files could mean for the PC gaming platform's use of AI AI is the boss at this retail store. What could go wrong? GitHub - Wuzu11517/agentic-proxy: Local proxy meant to help reduce With Drones, Geophysics and ArtificiaI Intelligence, Researchers Prepare to Do Battle Against Land Mines A Single Operator, Two AI Platforms, Nine Government Agencies: The Full Technical Report 在 Steam 上购买 FriedrichAI: Offline AI 立省 10% GitHub - inevolin/resume-cli: Hit Claude usage limits? Resume any AI coding session elsewhere. Switch tools at zero friction. GitHub - atripati/ark: AI Runtime Kernel — a context operating system for AI agents. Eliminates tool bloat, loads only what’s needed, and gives LLMs their reasoning space back. How to Build a Secure AI PR Reviewer with Claude, GitHub Actions, and JavaScript This Startup Wants You to Pay Up to Talk With AI Versions of Human Experts Intel Arc Pro B70 Brings 32GB VRAM to Local AI for $949 WordPress 7.0: The Good, the AI, and the Still Missing AI on the couch: Anthropic gives Claude 20 hours of psychiatry IatroBench: Pre-Registered Evidence of Iatrogenic Harm from AI Safety Measures AI Agents Know About Supabase. They Don't Always Use It Right. The history and future of AI at Google, with Sundar Pichai Inside an AI‑enabled device code phishing campaign How Meta Used AI to Map Tribal Knowledge in Large-Scale Data Pipelines AI for Systems: Using LLMs to Optimize Database Query Execution Forecasting the Economic Effects of AI Introducing Tinker: Play with AI, bring your ideas to life AI sheds light on an ancient gaming mystery People really hate AI but not as much as Iran—or Democrats | Fortune What is an AI Product Engineer? Phoebe Gates wants her $185 million AI startup to succeed with 'no ties to my privilege or my last name': 'I have a chip on my shoulder' | Fortune
GitHub - MohammdKopa/kami-subs: Live AI-generated subtitles overlay for any browser video — Whisper transcription + translation, running locally.
mohamedkeba · 2026-05-18 · via Hacker News - Newest: "AI"

Live AI-generated subtitles, overlaid on any browser video, translated into any language — running locally on your machine.

Captures the audio of whatever's playing in your browser tab, transcribes it with faster-whisper, translates the output, and overlays it on the video. No cloud, no API keys, no per-minute fees. Works on anything that isn't DRM-protected — YouTube, Twitch, podcasts, lectures, vimeo embeds, news streams.

MIT License Platform Manifest


Why this exists

Chrome's built-in Live Caption is English-only and doesn't translate. Whisper desktop apps work on files, not live audio. Most "translate any video" tools are paid SaaS that don't work on private content. There's no good free option for "live subs, your language, any video, running on your own GPU."

This is that.


How it works

┌────────────────────────┐    PCM 16k mono      ┌──────────────────────────┐
│ Chrome extension       │ ──── WebSocket ────▶ │ Python backend           │
│  • tabCapture audio    │                      │  • faster-whisper        │
│  • chunk + resample    │                      │  • translate → target    │
│  • overlay subtitles   │ ◀── JSON transcripts │  • FastAPI WS @ :8765    │
└────────────────────────┘                      └──────────────────────────┘
        ▲                                                  ▲
        │  click Start                       launches via  │
        └─────────────  Native Messaging ──────────────────┘

The backend stays on your machine. The extension talks to it over ws://127.0.0.1:8765/ws. The Native Messaging host lets the extension itself spawn the backend when you click Start, so you don't have to run a separate terminal.


Requirements

  • OS: Windows 10/11 (Linux/macOS support hasn't been written — see Contributing)
  • Chrome or Edge (Chromium ≥ 116)
  • Python 3.10+ on PATH
  • GPU strongly recommended for real-time performance — an NVIDIA card with CUDA 12 + cuDNN 9 gets you sub-second latency. CPU works but introduces 3-5s delay with the small model.
  • ~500 MB disk for the small Whisper model (downloaded on first run). Larger models up to ~3 GB.

Install

Clone the repo, then:

1. Backend dependencies (one-time)

cd kami-subs\backend
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -r requirements.txt

First Whisper run downloads model weights into your local cache.

2. Load the extension

  1. Open chrome://extensions
  2. Toggle Developer mode (top right)
  3. Click Load unpacked
  4. Pick the extension/ folder of this repo
  5. Pin the Kami Subs action button to your toolbar

The extension ID is pinned to cbahglicegngghebkgnegbbgbpfdncka via the manifest key, so it stays stable across reloads.

3. Register the Native Messaging host (one-time)

This lets the extension auto-start the backend when you click Start.

powershell -ExecutionPolicy Bypass -File extension\native\install.ps1

That writes extension\native\com.kamisubs.host.json and registers it under HKCU\Software\Google\Chrome\NativeMessagingHosts\com.kamisubs.host (plus the Edge equivalent). No admin needed — current-user registry only.

To remove, run uninstall.ps1 from the same folder.


Use

  1. Open a tab with a video
  2. Click the Kami Subs icon → pick model + device → Start
  3. Backend boots in the background, popup shows Backend: up (pid …)
  4. Subtitles appear over the video within a chunk or two
  5. Hit Stop when done — backend is killed automatically

Skip step 3 (Native Messaging install) if you prefer manual control — just run python server.py in backend/ yourself. The popup will say Backend: native host missing but capture still works.


Settings (popup)

Field Default Notes
Source language Auto detect Set explicitly to skip Whisper's lang detection
Target language Arabic Translation target
Whisper model small tiny for speed, large-v3 for quality (GPU only realistically)
Device GPU (CUDA) cpu if you don't have an NVIDIA GPU
Font size 28px Slider 14–56
Position Bottom Bottom / Top
Backend URL ws://127.0.0.1:8765/ws Change if running the backend remotely

Env vars (backend)

Set these before running server.py manually if you want to override defaults. The Native Messaging launcher reads them from the popup settings, so these only matter if you start the backend yourself.

Var Default Options
KAMI_MODEL small tiny, base, small, medium, large-v3
KAMI_DEVICE cpu cpu, cuda
KAMI_COMPUTE int8 int8 (CPU), float16 (GPU), int8_float16 (low VRAM GPU)
KAMI_TRANSLATOR google google (deep-translator), none
KAMI_HOST 127.0.0.1 bind host
KAMI_PORT 8765 bind port
KAMI_VAD false Enable Silero VAD pre-filtering

Troubleshooting

Backend: native host missing — run install.ps1 The Native Messaging host isn't registered. Re-run extension\native\install.ps1. If you previously installed it, check that the registry key HKCU\Software\Google\Chrome\NativeMessagingHosts\com.kamisubs.host points to the right path.

cublas64_12.dll not found or cudnn64_9.dll not found when launching with KAMI_DEVICE=cuda The CUDA DLLs need to be in a directory Python can find. The backend tries to locate them automatically inside .venv/Lib/site-packages/nvidia/*/bin (installed as part of nvidia-cublas-cu12 / nvidia-cudnn-cu12). If you installed faster-whisper without those pip packages, install them: pip install nvidia-cublas-cu12 nvidia-cudnn-cu12.

Subtitles are delayed and getting further behind real-time Your model is bigger than your hardware can handle in real-time. Either pick a smaller model in the popup, or switch to GPU device. End-to-end latency on CPU with small is ~3-5s and grows under dense speech.

Subtitles repeat the last word over and over when the video pauses Should be fixed in current version (silence gate). If it returns, check that backend/server.py has the SILENCE_RMS constant and the _handle_chunk helper.

Nothing happens — no transcripts, no errors

  • Confirm the video is playing audio: the extension passes captured audio through, so you should hear normal sound. Silence means tab capture didn't get the audio stream.
  • DRM-protected sites (Netflix, Disney+, Shahid, most paid streamers) return silence via tabCapture because Widevine encrypts the audio. Works fine on YouTube, Twitch, free streaming sites, lectures, news.

Specified native messaging host not found. The host JSON has allowed_origins baked in for extension ID cbahglicegngghebkgnegbbgbpfdncka. If you changed the manifest key and got a different ID, edit extension/native/com.kamisubs.host.json (or the .template) to match, then re-run install.ps1.


Known limitations

  • Windows only for the auto-start launcher. The extension + backend work cross-platform, but the Native Messaging install script is PowerShell + Windows registry. Linux/macOS users can run the backend manually.
  • DRM sites are silent — fundamental tab capture limitation, not solvable from this extension.
  • Google Translate rate-limits — the free deep-translator endpoint will throttle if you burn through a lot of long videos. Argos Translate (fully offline) is on the roadmap.
  • Single tab at a time — Chrome's tabCapture only allows one active capture per extension instance.
  • ScriptProcessorNode is deprecated but works reliably in offscreen documents today.

Roadmap

  • Argos Translate offline mode (no internet needed for translation)
  • AudioWorklet replacement for ScriptProcessorNode
  • macOS / Linux Native Messaging installer
  • Bilingual mode (original + translation stacked)
  • Per-site overlay position memory
  • Whisper streaming mode (partial transcripts before chunk-end)
  • VAD-aware adaptive chunking instead of fixed 1.5s

File map

kami-subs/
├── extension/
│   ├── manifest.json
│   ├── background.js          # MV3 service worker — orchestrates everything
│   ├── offscreen.html         # required host for getUserMedia in MV3
│   ├── offscreen.js           # tab audio capture + chunking + WebSocket client
│   ├── content.js             # subtitle overlay mounted on the active video
│   ├── content.css            # overlay styling (RTL-aware)
│   ├── popup/                 # extension popup UI
│   ├── icons/                 # 16/48/128 PNG — drop your own
│   └── native/                # Native Messaging host (auto-start backend)
│       ├── launcher.bat
│       ├── launcher.py
│       ├── com.kamisubs.host.json.template
│       ├── install.ps1
│       └── uninstall.ps1
└── backend/
    ├── server.py              # FastAPI + WebSocket + whisper + translator
    ├── config.py              # env-driven runtime config
    └── requirements.txt

Contributing

PRs welcome, especially:

  • Cross-platform installers (macOS / Linux Native Messaging)
  • Argos Translate integration for fully-offline mode
  • Better resampler than the current linear-interpolation hack
  • Streaming partial transcripts

Open an issue first if you're planning anything substantial so we can align.


License

MIT — do what you want, just don't blame me if it breaks. ✨