# Repository Briefing: royshil/obs-localvocal
> Source: https://repoforai.com/repo/royshil/obs-localvocal (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/royshil/obs-localvocal
- **Official Docs / Website**: https://obsproject.com/forum/resources/localvocal-live-stream-ai-assistant.1769/
- **Category**: Voice, Vision & Video (语音 / 视觉 / 视频生成)
- **Primary Language**: C++
- **License**: GPL-2.0
- **Engineering Health**: B+ (71/100 · Maintenance 31/35 · Adoption 15/25 · Releases 14/20 · License 11/20)
- **Latest Release**: 0.6.2 (2026-04-21) — https://github.com/royshil/obs-localvocal/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Local AI, GPU
- **Momentum**: 1,686 ★ total (+2 24h / +9 7d) · 133 forks
- **Topics**: `ai`, `live-streaming`, `livestream`, `obs`, `obs-studio`, `obs-studio-plugin`, `openai-whisper`, `plugin`, `real-time-transcription`, `realtime-transcribe`, `realtime-translator`, `speech-recognition`
- **When to Use**: Best for: OBS production teams that want local speech recognition, live overlays, recording-aligned subtitles, or multilingual captions and can validate performance on the production machine. Skip if: You need transcription independent of OBS, have no local compute headroom, or prefer a managed service to maintaining models and runtimes.

## Overview
```text
### Architecture & Core Mechanics
LocalVocal is a native C++ OBS Studio extension, not a separately deployed transcription server. An OBS audio filter passes source audio to Whisper.cpp for local Whisper inference. The plugin can route the resulting text to an OBS text source, a subtitle file, or RTMP captions. Translation can use Whisper’s built-in translation path, local neural machine translation via CTranslate2, or an optional cloud provider.

Whisper backends load dynamically at plugin startup, so the supported compute paths depend on the package and the host’s hardware and runtimes. The CMake project includes presets, CI build scripts, and Flatpak extension packaging. Since the plugin runs inside OBS, backend and library compatibility matter to the host application as well as to transcription; the ONNX Runtime collision with BackgroundRemoval fixed in 0.6.2 is a concrete example.

### Key Capabilities & Differentiators
The plugin supports real-time transcription in about 100 languages and can emit partial results before a segment is finalized. Caption text can be filtered or replaced, displayed through an OBS text source, written to TXT or SRT with optional aggregation, synchronized to OBS recording timestamps, or sent over RTMP. An on-screen overlay and stream-native captions are distinct outputs; verify the latter against the intended playback platform.

Tiny.en is bundled for English. Other Whisper models can be downloaded from the model selector or loaded from external GGML files, including fine-tuned models. On Apple systems using CoreML, the plugin can download the matching encoder. Translation options include Whisper’s built-in translation, local CTranslate2-based NMT, and cloud integrations such as DeepL and OpenAI. Available target languages depend on the translation route, not on the transcription language count.

### Trade-offs & Limitations
Compared with running Whisper.cpp separately, LocalVocal removes the work of feeding OBS audio to another process and routing text back into overlays, subtitle files, or the stream. The trade-off is that inference shares the production machine with OBS rendering and encoding, and the plugin shares OBS’s library environment. Start with the smallest model that meets your language needs and rehearse with the actual scene and encoder. Model, backend, and concurrent workload determine caption delay and resource use; GPU acceleration can shift load off the CPU but still competes for GPU capacity.

Compared with hosted captioning, the local path avoids a per-use recognition API and can run without a network after model provisioning. It also leaves hardware sizing, model selection, and rehearsal to the operator. Cloud translation is a separate data path: do not enable it if captions must stay on the production machine. The plugin is GPL-2.0, making redistribution terms relevant when shipping it as part of a commercial bundle.

### Hardware & Deployment Guide
Choose a release matching Windows, Linux x86_64, or Intel or Apple Silicon macOS. Windows requires the MSVC runtime. Windows and Linux offer generic, NVIDIA, and AMD variants; CUDA and ROCm paths require compatible drivers and runtimes, with CUDA 12.8 or newer listed for NVIDIA. The generic macOS package compiles embedded Metal shaders at runtime; OS-specific variants provide precompiled shaders. Provision model files, including the matching CoreML encoder if used, before taking the system offline. Cloud translation requires network access.

Source builds use CMake presets and platform scripts. Windows CUDA builds can select `ACCELERATION=cuda` to use a prebuilt Whisper.cpp dependency; on Linux, `-DLINUX_SOURCE_BUILD=ON` builds Whisper.cpp alongside the plugin. Release 0.6.1 added support for building an OBS Flatpak extension but deferred prebuilt Flatpak releases. Release 0.6.2 fixed the BackgroundRemoval ONNX Runtime collision and changed Ubuntu builds to use the CI preset rather than system ICU.
```

## Key Capabilities
```text
- OBS integration: An audio filter feeds text-source overlays, timestamp-synced subtitle files, and RTMP captions.
- Model selection: Bundled Tiny.en for English, automatic Whisper model downloads, and external GGML model files.
- Live output: Partial transcriptions, caption filtering and replacement, and optional aggregation for TXT or SRT output.
- Translation paths: Built-in Whisper translation, local CTranslate2-based translation, and optional DeepL or OpenAI integration.
- Hardware backends: Dynamically loaded Whisper backends include CPU variants, Vulkan, CUDA, ROCm hipBLAS, and Apple Metal or CoreML, depending on the build.
- Release maintenance: 0.6.2 addresses an ONNX Runtime clash with BackgroundRemoval and switches Ubuntu builds to the CI preset to avoid system ICU.
```

## Quick Start / Clone
```bash
$ MACOS_ARCH="x86_64" ./.github/scripts/build-macos -c Release
```
