GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - melody0709/vox_mic: Use your Android phone's microphone as a Windows system microphone via ADB + VB-CABLE + Raw WASAPI. Supports on-demand activation: streaming only when a Windows app is using CABLE Output, DSP bypassed when idle.

BranchesTags
Open more actions menu

Latest commit

 

History

56 Commits
56 Commits

Folders and files

NameName
Last commit message
Last commit date
.plan
.plan
 
 
android_app
android_app
 
 
cmake
cmake
 
 
doc/zh-CN
doc/zh-CN
 
 
icons
icons
 
 
packaging/windows
packaging/windows
 
 
plan/completed
plan/completed
 
 
scripts
scripts
 
 
src
src
 
 
tests
tests
 
 
third_party
third_party
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
AGENTS.md
AGENTS.md
 
 
ARCHITECTURE.md
ARCHITECTURE.md
 
 
Audio_Settings_Guide.md
Audio_Settings_Guide.md
 
 
BUILD.md
BUILD.md
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CMakeLists.txt
CMakeLists.txt
 
 
CMakePresets.json
CMakePresets.json
 
 
FUTURE_ROADMAP.md
FUTURE_ROADMAP.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build.bat
build.bat
 
 

Repository files navigation

VoxMic

简体中文 | English

Use your Android phone's microphone as a Windows system microphone via ADB + VB-CABLE + Raw WASAPI. Supports on-demand activation: streaming only when a Windows app is using CABLE Output, DSP bypassed when idle. Noise reduction can use the built-in RNNoise backend or the optional DPDFNet 48 kHz backend.

How It Works

Android Phone Mic -> [VoxMic Source App] -> ADB -> This Program -> VB-CABLE -> Windows App
                                                              |
                                    [Phase 3] Event-driven gate <- MicUsageMonitor (COM callback)
                                    [DSP] RNNoise/DPDFNet -> HPF -> EQ -> Comp -> Limiter

v0.7.1 Settings window paint fixes

The Settings window could open completely blank and only fill in once the mouse moved over it, and switching to the DSP page could show an empty page. Both are fixed. The window is created hidden and shown from the tray, and ShowWindow on a parent does not queue WM_PAINT for children whose own visibility never changed - so the page's visibility and its invalidation are now a single operation. Separately, IsDialogMessage was consuming WM_NOTIFY as part of its own dialog navigation, so TCN_SELCHANGE never reached the window procedure and the page never switched; WM_NOTIFY and WM_COMMAND are now exempt from it. Tab traversal and Enter/Escape are unaffected.

v0.7.0 Settings UI regularization, Light Theme & C++23 Modernization

Settings interface has been completely regularized with a declarative field specification and a unified DPI-aware layout engine. Windows application manifest integrates Common-Controls v6 for modern Win10/Win11 control rendering and PerMonitorV2 high-DPI scaling. Introduced a native light theme with design tokens, high contrast mode support, standard keyboard tab navigation, and optimized typography (Section: 15px, Body: 14px, Hint: 12px). The codebase is upgraded to ISO C++23, eliminating all global extern declarations, hardening worker threads with std::jthread / stop_token, and adding on-demand lazy loading for the DPDFNet neural denoising runtime.

v0.6.8 Demand Mode memory stability

Demand Mode uses one observer per Windows capture session. Existing sessions are enumerated once and later sessions arrive through Core Audio notifications; a 200 ms pass refreshes only already tracked states to repair missed or reordered state callbacks. Deactivation has a 400 ms grace period so rapid stop/start sequences do not discard the next recording. Signal amplitude is never used as an activity decision: a silent user is still an active capture session.

Periodic Stats report active/tracked sessions, reconciliation corrections, source blocks received/discarded/pushed, and render underruns. The Android source also reports PCM RMS, peak, and exact-zero ratio once per second when the updated app is installed.

v0.6.5 DPDFNet worker hardening

The DPDFNet worker now converges cleanly after a hard failure: it clears its ready state, stops polling, and exits quickly when the processor is destroyed. Epoch hand-off now uses the input block's epoch tag so a new-epoch first block is reset and processed instead of being discarded; superseded epochs and stale inference results remain filtered. Invalid, oversized, or non-finite model output causes a hard fallback to RNNoise. Diagnostics and Settings distinguish disabled noise reduction (off) from RNNoise and DPDFNet.

The failure smoke test covers failed-worker lifecycle, setEpoch() short-circuiting, and the sub-100 ms normal destructor path. A native DLL call that never returns remains a documented limitation; it is not handled by unsafe thread detachment.

v0.6.4 DPDFNet resilience

DPDFNet stream resets now preserve the first block submitted for the new epoch. Its worker output is also watched: up to four 10 ms warm-up blocks may be silent after a reset to keep the delayed stream aligned, but a steady worker that produces no output for three consecutive blocks automatically falls back to RNNoise instead of muting the microphone indefinitely. The Settings status and periodic diagnostics report the degraded state; clicking OK retries a ready-but-stalled worker, while a hard session failure requires a fresh prepare.

v0.6.2 Fix

Fixed the Denoise Backend status label so switching between RNNoise and DPDFNet cannot leave overlapping text. The status control now repaints opaquely and reserves room for two-line availability messages.

v0.6.1 Highlights

Feature Description
Selectable denoiser Keep RNNoise as the default, or select DPDFNet from the DSP settings.
Streaming DPDFNet adapter Uses the pinned 48 kHz / 480-sample model through a worker and FIFO, without blocking the WASAPI render thread.
Safe fallback Missing DLLs, model files, ABI symbols, initialization failures, or a stalled worker keep the application on RNNoise.
Rebuildable payload The pinned DPDFNet runtime, model, C API header, metadata, and notices live under third_party/dpdfnet; build/ can be deleted and regenerated.

v0.5.0 Core Features

Feature Description
Event-driven Monitor IAudioSessionNotification + IAudioSessionEvents callbacks, zero polling, zero COM overhead
Demand Mode toggle Tray context menu controls on-demand activation, persisted to registry
Socket on-demand connection When Always Hot OFF, idle 5s disconnects socket, Android AudioRecord stops, zero power draw; reconnect in 0.3-0.8ms
Always Hot toggle Tray context menu controls socket keep-alive, persisted to registry
On-demand activation latency ~200ms cold start, event-driven instant detection
Idle CPU 0-0.1% Event-driven + DSP on-demand bypass, on par with Python version
RNNoise Neural Network Denoising Official xiph/rnnoise v0.2, 3-layer GRU, 22 Bark band independent denoising, BSD-3
DSP Pipeline HPF 80Hz + 6-band EQ + RMS Compressor + Peak Limiter
Low Latency ~40ms (measured)

System Requirements

  • Windows 10/11
  • Android device (USB debugging enabled)
  • VB-Audio Virtual Cable installed
  • ADB in PATH

Usage

Launch directly, the program auto-hides to system tray:

build\run\x64-release\voxmic.exe
  • Left-click tray icon -> Open settings window
  • Right-click tray icon -> Demand Mode / Always Hot / Settings / Exit menu
  • Close window [X] -> Hide to tray (does not exit)
  • Select CABLE Output as microphone in Windows apps.

Build

Windows

git lfs pull
build.bat
build.bat --dpdfnet --test-dpdfnet
build.bat --rnnoise-only
build.bat --package

Requires Visual Studio 2022 (C++ Desktop Development).

build.bat produces the full DPDFNet-enabled development payload by default. The model/runtime payload is vendored in third_party/dpdfnet/ and managed with Git LFS; after cloning, run git lfs pull once so the model and DLLs are materialized. The build verifies those files and stages them into build/cmake/x64-release/_deps/dpdfnet before configuring CMake, so a clean build/ can be rebuilt without network access. Use build.bat --rnnoise-only for the explicit single-executable payload, or build.bat --package for the default Portable and MSI packages. The preparation script retains a verified download/cache fallback only when the vendored directory is unavailable.

The vendored payload contains the sherpa-onnx C API header, three Windows x64 runtime DLLs, and dpdfnet2_48khz_hr.onnx; its SHA-256 values are recorded in third_party/dpdfnet/metadata.json. Third-party license notices are in third_party/DPDFNET_THIRD_PARTY_NOTICES.txt.

Android App

cd android_app
.\gradlew.bat assembleDebug --no-daemon --console=plain
adb -s <serial> install -r "app\build\outputs\apk\debug\VoxMic_Source-v0.7.1.apk"

Performance

Metric v0.7.1
CPU Idle 0-0.1%
CPU Active ~0.1% (DSP)
Memory ~15 MB
End-to-end Latency ~40ms
Cold Start Latency ~200ms
Binary Size ~1.5 MB

The DPDFNet worker smoke test on the reference machine reports about 1.7 ms inference EMA per 480-sample block. This is an adapter measurement, not a promise of identical end-to-end latency on every Windows system. The pipeline-switch smoke also verifies RNNoise ↔ DPDFNet switching, repeated epoch resets, and the stalled-worker downgrade path.

Latency Budget

Component Latency
Android ADC + HAL ~10ms
AudioRecord read (480fr) ~10ms
ADB + Socket ~2ms
Ring Buffer ~10ms (1-2 blocks)
RNNoise + EQ + Comp + Lim ~50us
DPDFNet worker inference ~1.7ms EMA in smoke test; reset warm-up is bounded to four 10ms silent blocks before safe fallback
WASAPI Buffer ~11ms
VB-CABLE ~3ms
Total ~40ms

Pipeline Effects

Stage Parameters Purpose
RNNoise 22-band GRU neural network Background noise reduction + voice preservation
DPDFNet 48 kHz online ONNX model, worker + FIFO + watchdog Optional alternative denoiser; NR Strength applies only to RNNoise; stalled worker safely uses RNNoise
HPF 80Hz 12dB/oct Cut wind noise/vibration
Bass Cut 120Hz shelf + 250Hz attenuation (adjustable -6~0dB) Reduce muddiness
Presence 2.5kHz + 3.2kHz boost (adjustable 0~6dB) Consonant clarity
Compressor 3:1, 5ms attack, 50ms release Even loudness
Limiter -1dBFS ceiling Prevent clipping

Documentation

ARCHITECTURE.md | AGENTS.md | BUILD.md | CHANGELOG.md | FUTURE_ROADMAP.md | .plan/completed/ (historical plans)

About

Use your Android phone's microphone as a Windows system microphone via ADB + VB-CABLE + Raw WASAPI. Supports on-demand activation: streaming only when a Windows app is using CABLE Output, DSP bypassed when idle.

Resources

Readme
BSD-3-Clause license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.