Live Japanese voice → Japanese text → VRChat chatbox. Speech recognition runs
in a local Python service with two selectable backends, chosen via model in
config.toml:
kotoba-whisper— best at picking homophone kanji from context; heavier, prefers a GPU.reazonspeech— a lighter FastConformer transducer that never hallucinates/loops on short clips, but picks kanji less reliably.
The shipped config.toml uses kotoba-whisper; reazonspeech is the built-in
fallback when model is unset. See Requirements for model sizes
and the full trade-offs.
This is the transcribe-only fork of vrc-translate-typhoon: no translation
layer, just clean Japanese text into the chatbox.
Needs Rust 1.85+, Python 3.12, and VRChat open with OSC enabled.
git clone https://github.com/ph-sophanat/vrc-jp-scribe
cd vrc-jp-scribe
# One-time: create the ASR service venv (downloads the model on first run)
cd service
py -3.12 -m venv .venv
.venv\Scripts\python -m pip install --index-url https://download.pytorch.org/whl/cpu torch
.venv\Scripts\python -m pip install -r requirements.txt
cd ..
# Run — auto-launches the ASR service and opens the status window
cargo run --releaseThen speak Japanese — it appears in the VRChat chatbox. For CUDA/GPU, set
device = "cuda" in config.toml and install the CUDA build of torch instead.
Full details below.
cpal mic → resample 16k → Silero VAD ─(utterance WAV, HTTP)→ ASR service (Python)
│ Japanese text (kotoba-whisper | reazonspeech)
VRChat OSC chatbox ←────┘
The Rust app has no whisper-rs — STT is the local Python service it POSTs to.
| OS | Windows 10/11. Windows-first (system-tray icon, kill-on-close Job Object, cp1252 console handling); not tested on Linux/macOS. |
| VRChat | Running, with OSC enabled (Action Menu → Options → OSC → Enabled). |
| Build toolchain | Rust 1.85+ (2024 edition). The crate has no native deps (no whisper-rs / LLVM / cmake), so it compiles in seconds. |
| ASR service | Python 3.12 — NeMo pins numpy 1.26, which has no 3.14 wheel. Deps installed from service/requirements.txt into service/.venv. |
| Disk | First run downloads model weights: ~2.5 GB (ReazonSpeech) or ~1.5 GB (kotoba-whisper), cached under your HuggingFace home. |
| RAM | ~4 GB free for the loaded model. |
| GPU (optional) | NVIDIA GPU + CUDA build of torch in the venv for real-time latency (device = "cuda"). CPU works but is slower (~5.7 s vs ~1.3 s for a multi-sentence clip on an RTX 3070 with kotoba-whisper). |
| Network | Internet for the one-time model download only — capture, ASR, and OSC then run fully local/offline. |
ASR backend is selectable via model in config.toml — two equally supported options:
kotoba-whisper—kotoba-tech/kotoba-whisper-v2.0(Whisper large-v3 distilled on ReazonSpeech). Chooses homophone kanji from context far better; phantom-phrase hallucinations are filtered server-side. Heavier (~1.5 GB) and slower on CPU — preferdevice = "cuda". This is what the shippedconfig.tomluses.reazonspeech—reazon-research/reazonspeech-nemo-v2, a FastConformer RNN-T transducer (~2.5 GB). Robust and never hallucinates on short clips, but picks homophone kanji less reliably. The built-in default whenmodelis unset.
With VRChat open + OSC enabled:
cd C:\dev\vrc-jp-scribe
cargo run --release
The app auto-launches the Python ASR service itself (and stops it on exit), so there's no second terminal. A small status window opens:
- Health dots — Mic / ASR / VRChat.
- Input level meter + a big Mute toggle.
- Latest transcript — the Japanese it heard, with latency.
- System-tray icon — right-click for Show/Hide · Toggle mute · Quit. Closing the window (✕) hides it to the tray; use Quit to actually exit.
On a cold start the window shows “loading the ASR model…” (naming the active backend; first run downloads ~1.5–2.5 GB depending on backend), then “listening — speak Japanese.” If a service is already running on port 8765 it's reused instead of starting a second copy.
Headless (console-only, no window/tray): cargo run --release -- --headless
osc_addr = "127.0.0.1:9000" # VRChat OSC listener
asr_url = "http://127.0.0.1:8765" # local ASR service
device = "cpu" # "cpu" or "cuda" (NVIDIA + CUDA torch)
model = "kotoba-whisper" # "kotoba-whisper" or "reazonspeech"- The service needs Python 3.12 (NeMo pins numpy 1.26, which has no 3.14 wheel).
Venv lives at
service/.venv. Recreate with:py -3.12 -m venv .venv; .venv\Scripts\pip install --index-url https://download.pytorch.org/whl/cpu torch; .venv\Scripts\pip install -r requirements.txt - GPU: set
device = "cuda"inconfig.tomlonce CUDA torch is installed in the venv.kotoba-whisper(Whisper large-v3) is much heavier thanreazonspeechand noticeably laggy on CPU — use CUDA for it.reazonspeech(619M) is usable on CPU; measure and switch if it feels laggy in VRChat. - Quick service check (no mic):
cargo run --release --example post