Skip to content

Releases

v0.4.1 โ€” Reliability and review fixes

Choose a tag to compare

@NANInithin NANInithin released this 09 Oct 16:34

AgentVoca v0.4.1 โ€” Reliability and review fixes

Released: 2026-10-09

Version: 0.4.1

This patch release addresses the two v0.4.0 code reviews. The
remediation audit tracks all 118 explicitly listed
review entries, including overlaps and compound findings. Agent mode remains planned
for v0.5.0.

Fixes

  • Observer privacy and integrity: Excluded foreground apps gate ambient speech,
    dictation events, selection, keyframes, and OCR work. Queued work is discarded on
    exclusion transitions. Dictated speech reaches the session database and sidecar.
    OCR and compilation futures are tracked and drained before export.
  • Observer reliability: Store startup errors surface instead of silently dropping
    events. Session start and stop no longer block hotkey handling on store barriers.
    Ambient and dictation ASR access is coordinated, with session identity and reported
    queue drops. UIA selection handling and worker timeout recovery were corrected.
  • Dictation and insertion: ASR exhaustion cannot insert an empty transcript;
    overlapping recordings and stop races no longer reuse pipeline state. Undo tracks
    committed text. Clipboard paste snapshots all MIME formats and restores them if
    the user has not copied something else. Structured code and tables survive cleanup.
  • Settings and configuration: Save and Apply respond to edits; nested settings
    survive round trips; writes are atomic. Hot changes are applied only where supported,
    and other changes prompt for a real restart. Invalid provider names, command actions,
    duplicate hotkeys, and unsupported audio formats fail validation clearly.
  • Desktop and packaging: Observer badge and tray updates use the GUI thread.
    Lazily imported Observer packages are included in installed packages and the frozen
    build. Streaming audio memory is bounded, with complete-audio ASR fallback if its
    buffer cap is reached.

Configuration changes

  • Audio input is limited to 16 kHz mono, the format supported by the current VAD and
    ASR path. Choose another device if an existing device cannot provide it.
  • selection.method: ocr_rect was removed because that fallback was not implemented.
  • Unsupported screen and clipboard context switches are rejected rather than displayed
    as working options.
  • OpenAI-compatible ASR and vision adapters forward only supported request options
    from extra; local-provider options and core request fields are ignored.

Verification and limits

The offscreen test suite passed 874 tests with 4 skipped on Windows. Ruff lint
and formatting checks passed. These tests do not replace live microphone, native
Windows/Electron selection, macOS, or excluded-app transition smoke tests. The
remediation audit identifies six review entries whose code fixes still need those
desktop checks.

The sidecar duration from R18 is corrected. Automatic purging of stale open sessions
and deletion of artifacts in a custom compile.output_dir are not included:
automatic approval review rejected the broader irreversible deletion. Existing
retention behavior remains in place pending explicit approval of that scope.

On macOS and Linux, UIA selection and Windows active-window rectangle capture remain
unavailable, as in v0.4.0.

v0.4.0 โ€” Observer Mode

Choose a tag to compare

@NANInithin NANInithin released this 03 Aug 23:33

AgentVoca Release Notes

v0.4.0 โ€” Observer Mode

Released: 2026-07-29
Version: 0.4.0

๐ŸŽฏ Overview

AgentVoca v0.4.0 ships Observer mode โ€” a background session
recorder that turns what you said, what was on screen, and what
you highlighted into a readable markdown document and a
machine-readable JSON sidecar at the end of a working session.

Agent mode is NOT in this release. It is v0.5.0. Observer's
JSON sidecar is the contract Agent will consume; nothing in
Observer executes a task, writes a file on your behalf, or
calls a tool.

The Observer subsystem is fully opt-in (observer.enabled: false
by default), fully offline by default (RapidOCR + the rules
compiler need no API key), and ships with a persistent visible
indicator (tray icon + non-dismissable on-screen badge) and an
exclusion list for password managers and incognito windows.

โœจ New Features

Session recording

  • Ambient capture โ€” every spoken line during a session is
    transcribed via the already-configured ASR provider. The
    ambient tap on the existing mic stream is one
    put_nowait + except Full: pass โ€” it never blocks the audio
    callback.
  • Dictation coexists with Observer โ€” when the dictation hotkey
    is pressed during a session, the dictated transcript also lands
    in the log tagged utterance_dictated, and dictation preempts
    ambient via the ASR arbiter.
  • Four keyframe triggers (each individually toggleable):
    foreground window change, scroll-settle, click / selection,
    speech onset. All four gate through a token-bucket cap
    (default 4/min) and a minimum interval (default 4 s).
  • Active-window capture โ€” only the focused window is grabbed,
    downscaled to 1280 px wide, JPEG q75, and deduped by
    perceptual hash before OCR. Per-frame work runs on a dedicated
    worker with a bounded queue (drop-on-full).
  • OCR โ€” RapidOCR (ONNX) local by default; optional
    openai_compatible VLM escalation. OCR runs on a dedicated
    worker thread; failures are isolated to one keyframe.
  • Selection capture โ€” Windows UI Automation TextPattern,
    read-only, never touches the clipboard. ocr_rect fallback
    for apps where UIA is unavailable.
  • Privacy exclusion list โ€” foreground app globs + window-title
    patterns. Matching the exclusion list records a
    pause_start / pause_end pair and captures nothing โ€”
    including ambient audio.

Compilation

  • Rules compiler (default, no API key) โ€” deterministic,
    per-block markdown with Said / Highlighted / On
    screen
    sections; aggressive OCR dedup keeps documents short;
    markdown-significant characters in OCR text are escaped.
  • OpenAI-compatible compiler โ€” two-phase rolling
    summarization: per-block narratives run in parallel, then a
    one-paragraph session summary. Per-block LLM failures fall back
    to the rules render with degraded=True; the user always gets
    an artifact.
  • None compiler โ€” raw chronological dump: one line per event.
  • JSON sidecar โ€” agentvoca.observer.session/1 schema; the
    v0.5.0 Agent contract. Block boundaries are re-derived from
    split_blocks, so the JSON can never disagree with the
    markdown.

UX

  • Tray Observer submenu โ€” Start / Stop session, Pause /
    Resume, Open last session, Delete all sessions.
  • Non-dismissable on-screen badge โ€” REC HH:MM:SS or
    PAUSED, click-through, visible for the entire session. The
    only way to dismiss it is to end the session.
  • Two new hotkeys โ€” hotkeys.toggle_observer and
    hotkeys.pause_observer, exposed in the Hotkeys tab. The
    default config leaves them unset; they can also be reached
    from the tray menu.
  • Settings UI โ€” full Observer tab in the Settings window
    with a privacy notice at the top and a cloud warning that
    appears the moment ocr.provider or compile.provider is set
    to openai_compatible.
  • Crash recovery dialog โ€” non-modal, after pipeline startup.
    Sessions left status='open' by a killed process are surfaced
    with three actions: Compile it / Keep for later / Delete.
  • Purge โ€” tray menu purge command, plus a 7-day retention
    purge at startup. Per-session delete is also available.

๐Ÿ› Bug fixes

  • OBS-0 โ€” VAD is now actually instantiated. Until v0.4.0,
    AudioCapture.__init__ accepted an optional VAD but no caller
    ever passed one. The agentvoca-vad worker thread from R2 was
    never started, and app.mode: auto_stop silently never
    auto-stopped
    โ€” only max_recording_duration_s terminated a
    recording. OBS-0 wires a VAD into the audio pipeline when
    audio.vad_enabled is true (the default).

๐Ÿ”ง Technical details

Threading model

Observer adds six threads while a session is active, all
daemon, all joined with a timeout in
ObserverController.shutdown(). Zero extra threads when no
session is running. Threads: ambient VAD + segmentation, 2 Hz
foreground trigger poll, pynput mouse listener, screen grab +
dHash, OCR, selection UIA, and the single-writer ObserverStore
thread. The asyncio loop owns compilation; cross-thread entry
is loop.call_soon_threadsafe or
asyncio.run_coroutine_threadsafe, never raw asyncio.run.

Storage layout

~/.agentvoca/observer/
โ”œโ”€โ”€ sessions.db           # WAL-mode SQLite, single-writer thread
โ”œโ”€โ”€ sessions.db-wal       # survives a hard kill mid-session
โ”œโ”€โ”€ blobs/<uuid>/<ts>-<seq>.jpg
โ””โ”€โ”€ exports/<uuid>/
    โ”œโ”€โ”€ session.md
    โ””โ”€โ”€ session.json

The blob_path stored in the DB is relative so the whole
directory can be relocated. The user-only ACL is hardened on
first start() (D12); encryption is explicitly out of scope โ€”
see the privacy section of docs/observer.md.

Resource budget (acceptance gate)

Metric Budget
Added idle CPU while a session is open < 5 % on a 4-core laptop
Added RSS while a session is open < 400 MB
Sustained keyframes โ‰ค 4 / minute
Audio callback p99 unchanged (< 5 ms)
Disk per hour, typical < 40 MB

If a track cannot hold its share of this budget, the right
response is to reduce the capture rate โ€” not to exceed the
budget.

๐Ÿ“ฆ Dependency additions

  • rapidocr-onnxruntime (Track 2) โ€” rides the onnxruntime
    already present via silero-vad; ships det+rec ONNX models.
    Environment marker Windows-friendly; macOS/Linux can still
    install but ocr.provider: rapidocr will not load there.
  • comtypes (Track 2) โ€” Windows UI Automation client for
    read-only TextPattern selection capture. Windows-only
    install marker.

Both are imported lazily through the registry's
"module:Class" dotted-path mechanism (R14), so a user with
Observer disabled never imports them.

โš ๏ธ Privacy disclosure (verbatim, do not soften)

The session archive โ€” transcripts, OCR text, window titles, and
screenshot JPEGs โ€” sits in plaintext under
~/.agentvoca/observer/, protected only by a user-only Windows
ACL. That defends against other user accounts on the same
machine. It does not defend against malware running as the
user, a stolen unencrypted drive, or a backup tool that sweeps
the home directory. Users who need that should enable
BitLocker/FileVault, or keep retention_days low.

Ambient microphone capture can record other people's voices.
Some jurisdictions require all-party consent. The app does not
attempt to give legal advice or geo-detect.

๐Ÿ“ฆ Migration

A v0.3.6 config.yaml without an observer: block loads
unchanged; observer.enabled defaults to false. To opt in,
add an observer: block (or use the new Observer tab in the
Settings window) and bind the two new hotkeys (or use the tray
menu).

๐Ÿ›  Known issues

  • macOS / Linux: UIA selection reading and window-rect
    capture are Win32; on macOS / Linux the selection reader and
    screen grabber degrade to no-ops. Audio + app-name timeline
    still work. Parity targeted for v0.4.1.
  • D9 flag to owner: the four keyframe triggers ship by
    default, including speech_onset. If the owner prefers to
    default it off, set observer.triggers.speech_onset: false
    in the default config.

๐Ÿ“š Documentation

v0.3.6 โ€” Performance, Stability, and I/O Reliability Pass

Choose a tag to compare

@NANInithin NANInithin released this 13 Jul 00:08

AgentVoca Release Notes

v0.3.6 โ€” Performance, Stability, and I/O Reliability Pass

Released: 2026-07-12
Version: 0.3.6

๐ŸŽฏ Overview

AgentVoca v0.3.6 is a focused performance, stability, and I/O reliability release. It does not introduce a new user-facing feature or change the config schema. Instead, it removes hot-path bottlenecks that were most visible during longer dictations, cloud-provider use, and multi-screenshot vision workflows.

No new features. No config-schema changes. No new runtime dependencies.
v0.3.6 optimizes the existing v2 streaming and v3 vision paths so AgentVoca feels smoother, more responsive, and more reliable during real usage.

โœจ New Features & Improvements

Audio Capture and Streaming Performance

  • Dedicated VAD worker thread: Silero VAD inference now runs off the sounddevice callback, keeping the audio callback near-zero work.
  • Single VAD inference per block: Removed duplicate VAD inference in the audio callback path.
  • Auto-stop finalization moved off the callback: Buffer joining and event publishing now run on the asyncio loop thread instead of the real-time audio thread.
  • O(Nยฒ) streaming ASR copy fixed: Streaming transcription now snapshots only the rolling window with a memoryview-based single copy instead of copying the full recording every 500 ms.
  • Chunker buffer compaction: AudioChunker now compacts emitted audio so the buffer footprint stays bounded by recent audio, not the full recording.
  • Dead frame queue removed: Removed unused _frame_queue / _frame_task state from AudioCapture.

Cancel and Pipeline Reliability

  • Cancel hotkey now aborts the in-flight pipeline: Orchestrator.cancel() now cancels the streaming task and tracked pipeline task, preventing ghost partials and cancel-after-stop insertion.
  • Streaming state reset hardening: Streaming state is reset more reliably after pipeline completion, cancellation, or next-recording preparation.
  • Better hot-reload routing: Config hot-apply is routed through the loop thread to avoid mutating async-owned state from the Qt thread.

Cloud Provider and Vision I/O Improvements

  • Persistent HTTP clients: Cleanup and vision providers now reuse httpx.AsyncClient instances with explicit keepalive behavior.
  • Provider lifecycle shutdown: Provider shutdown() methods are now used for cleanup and vision clients, including hot-reload replacement.
  • Warm-up actually warms the shared client: warm_up() now runs through the persistent provider client.
  • Parallel multi-screenshot vision extraction: Multi-screenshot vision extraction now uses asyncio.gather, preserving order while avoiding serial VLM round trips.
  • Per-shot error isolation: Vision extraction failures no longer prevent the rest of the batch from being processed.

Text, Vocabulary, and Startup Improvements

  • Serialized OS input injection: Keyboard and clipboard insertion now share a single worker executor so pyautogui/pyperclip operations cannot interleave during insert/undo races.
  • O(1) vocabulary casing lookup: Vocabulary substitution now maintains a lowercase casing lookup alongside the compiled regex pattern.
  • Bulk adaptive vocabulary merges: Learned mappings are promoted in bulk, reducing full regex rebuilds from one per mapping to one per merge.
  • Custom cleanup prompt cache: custom_prompt_path is now cached by mtime, removing synchronous file reads from every cleanup rewrite.
  • Lazy provider imports: Built-in providers are registered as dotted paths and imported only when needed, avoiding cold-start imports such as ctranslate2 for cloud-provider users.
  • Input executor shutdown: The single OS-input executor is shut down during app exit to avoid non-daemon thread exit delays.

๐Ÿ”ง Technical Details

Audio Hot Path

  1. Callback path: The sounddevice callback now appends audio, feeds the chunker, and either enqueues VAD work or reads a cached VAD boolean.
  2. VAD worker: A dedicated daemon thread runs silero inference and publishes speech/silence transitions.
  3. Auto-stop: stop_recording() now schedules buffer finalization on the asyncio loop instead of performing the full join inside the audio callback.
  4. Streaming ASR: _window_snapshot() copies only the active rolling window using a memoryview slice, avoiding repeated full-buffer copies.
  5. Chunker: _get_delta() returns new audio and compacts the internal buffer after each emission.

Provider I/O and Vision

  • Cleanup and vision providers now keep a shared httpx.AsyncClient.
  • warm_up() sends a lightweight request through the shared client.
  • shutdown() closes the client and is safe to call more than once.
  • Multi-screenshot extraction is batched with asyncio.gather, preserving screenshot order while allowing parallel VLM calls.

Text and Startup

  • ProviderRegistry resolves built-in providers lazily via module:Class dotted paths.
  • faster_whisper.py remains importable when the local ASR provider is actually selected, but cloud-provider users no longer import ctranslate2 during cold start.
  • Adaptive vocabulary merges now use a bulk mapping API so large learned-mapping sets rebuild the regex once.
  • Keyboard and clipboard insertion use one shared executor to serialize pyautogui/pyperclip calls.

๐Ÿ“‹ What's New in v0.3.6

Major Improvements

  • Audio & streaming performance: R1โ€“R7 from the v0.3.6 Track 1 plan
  • I/O, text, and startup optimizations: R8โ€“R14 from the v0.3.6 Track 2 plan
  • Persistent cleanup/vision HTTP clients
  • Parallel multi-screenshot vision extraction
  • Serialized keyboard/clipboard insertion
  • Lazy provider imports for faster cold start
  • Bulk adaptive vocabulary promotion
  • Custom prompt mtime cache

Files Added/Modified

  • New: src/agentvoca/audio/vad.py - Dedicated VAD worker support and transition publishing
  • New: src/agentvoca/insertion/_executor.py - Shared single-worker OS input executor
  • New: tests/unit/test_capture_vad_worker.py - R1/R2 audio callback and VAD worker tests
  • New: tests/unit/test_capture_stop_offthread.py - R3 auto-stop finalization tests
  • New: tests/unit/test_streaming_no_quadratic_copy.py - R4 streaming memory-churn tests
  • New: tests/unit/test_cleanup_prompt_cache.py - R9 custom prompt cache tests
  • New: tests/unit/test_cleanup_persistent_client.py - R8 cleanup client lifecycle tests
  • New: tests/unit/test_vision_persistent_client.py - R8 vision client lifecycle tests
  • New: tests/unit/test_insertion_serialized.py - R11 serialized input injection tests
  • New: tests/unit/test_vocab_lookup.py - R12 vocabulary lookup tests
  • New: tests/unit/test_vocab_bulk_mappings.py - R13 bulk vocabulary mapping tests
  • New: tests/unit/test_lazy_provider_imports.py - R14 lazy provider import tests
  • New: tests/integration/test_cancel_semantics.py - R6 cancel semantics tests
  • New: tests/integration/test_vision_parallel.py - R10 parallel vision extraction tests
  • Updated: src/agentvoca/audio/capture.py - VAD worker, callback cleanup, auto-stop finalization, cancel handling
  • Updated: src/agentvoca/audio/chunker.py - Bounded delta emission and buffer compaction
  • Updated: src/agentvoca/asr/faster_whisper.py - O(N) streaming window snapshot and streaming partial scheduling
  • Updated: src/agentvoca/cleanup/openai_compatible.py - Persistent client and prompt cache
  • Updated: src/agentvoca/vision/openai_compatible.py - Persistent client
  • Updated: src/agentvoca/insertion/keyboard.py and clipboard.py - Serialized pyautogui/pyperclip calls
  • Updated: src/agentvoca/vocab/dictionary.py - O(1) casing lookup and bulk mappings
  • Updated: src/agentvoca/core/orchestrator.py - Cancel tracking, provider shutdown, vision batching, hot-apply routing
  • Updated: src/agentvoca/core/registry.py - Lazy built-in provider registry
  • Updated: src/agentvoca/main.py - Cancel hotkey wiring, hot-reload routing, lazy registry usage, executor shutdown
  • Updated: docs/performance.md - Performance table and v0.3.6 audio/ASR/I/O notes
  • Updated: docs/proposals/v0.3.6-optimization.md - Optimization proposal
  • Updated: docs/proposals/v0.3.6-plan-agent1-audio-streaming.md - Track 1 execution plan
  • Updated: docs/proposals/v0.3.6-plan-agent2-io-text-startup.md - Track 2 execution plan

๐Ÿงช Testing

  • Audio Capture VAD Worker Tests: tests/unit/test_capture_vad_worker.py
  • Auto-Stop Off-Thread Tests: tests/unit/test_capture_stop_offthread.py
  • Streaming No Quadratic Copy Tests: tests/unit/test_streaming_no_quadratic_copy.py
  • Chunker Tests: tests/unit/test_chunker.py
  • Cancel Semantics Tests: tests/integration/test_cancel_semantics.py
  • Cleanup Persistent Client Tests: tests/unit/test_cleanup_persistent_client.py
  • Vision Persistent Client Tests: tests/unit/test_vision_persistent_client.py
  • Vision Parallel Extraction Tests: tests/integration/test_vision_parallel.py
  • Cleanup Prompt Cache Tests: tests/unit/test_cleanup_prompt_cache.py
  • Serialized Insertion Tests: tests/unit/test_insertion_serialized.py
  • Vocabulary Lookup Tests: tests/unit/test_vocab_lookup.py
  • Bulk Vocabulary Mapping Tests: tests/unit/test_vocab_bulk_mappings.py
  • Lazy Provider Import Tests: tests/unit/test_lazy_provider_imports.py

Validation includes:

uv run pytest -q
uv run ruff check src/ tests/
uv run python scripts/benchmark.py --mode mock

All tests pass successfully โœ…

๐Ÿ”„ Migration

  • Backward Compatible: v0.3.6 is fully backward compatible with existing configurations.
  • **No Config Changes Required:...
Read more

v0.3.5 - setupwizard

Choose a tag to compare

@NANInithin NANInithin released this 12 Jul 17:14

AgentVoca Release Notes

v0.3.5 - Enhanced Setup, Robust Configuration, and ASR Improvements

Released: 2026-07-12
Version: 0.3.5

๐ŸŽฏ Overview

AgentVoca v0.3.5 delivers significant improvements to the setup experience, lenient configuration loading, and WAV conversion for OpenAI-compatible ASR. This release focuses on making the application more robust, user-friendly, and feature-complete with enhanced device support, better error handling, and improved UI workflows.

More resilient, user-friendly, and feature-complete. AgentVoca now handles broken configurations gracefully, ensures proper audio format for ASR providers, and provides a smoother setup experience.

โœจ New Features & Improvements

Enhanced Setup Experience

  • Complete Setup Wizard: Full-featured wizard with all configuration pages
  • Persistent User Input: Preserves typed values across page navigation
  • Improved Navigation: Smoother flow between wizard pages
  • Better Error Handling: In-wizard warnings instead of modal dialogs
  • Settings Window: Tabbed interface for post-setup configuration
  • Restart Management: Clear indication of settings requiring application restart

Lenient Config Loader

  • Graceful Error Handling: Loads configurations even when API keys are missing or invalid
  • Wizard Integration: Shows warnings and opens the setup wizard for users to fix issues
  • Preserves User Input: Maintains user's saved values instead of silently replacing them with defaults
  • Structural Error Recovery: Falls back to sensible defaults when configuration schema is invalid
  • First Run Detection: Properly handles first-run scenarios

WAV Conversion for OpenAI ASR

  • Proper Audio Format: Converts raw PCM audio to valid WAV format before upload
  • Prevents API Errors: Eliminates 400 errors from Whisper-compatible endpoints
  • Better Provider Compatibility: Works seamlessly with all OpenAI-compatible ASR providers
  • Error Reporting: More descriptive error messages from API providers

Model Catalog Enhancements

  • OpenRouter Transcription Filter: Supports filtering for speech-to-text models
  • Improved Caching: Better cache management per endpoint and API key
  • Error Handling: More descriptive error messages for troubleshooting
  • Free Model Support: Proper labeling and handling of free models
  • Endpoint Validation: Better handling of different API endpoint formats

Device Support

  • Audio Device Probe: Automatic detection of available audio devices
  • Device Caching: Improved performance for device enumeration
  • Default Device Support: Guaranteed availability of default audio device

Hotkey Management

  • Hotkey Presets: Predefined hotkey configurations for common workflows
  • Hotkey Validation: Better validation of hotkey combinations
  • Hotkey Customization: Enhanced customization options in setup wizard

Application Improvements

  • Tray Icon: Improved system tray integration
  • Settings Management: Better handling of application settings
  • Version Tracking: Proper version tracking for first-run detection
  • Restart Policy: Clearer indication of settings requiring restart

๐Ÿ”ง Technical Details

Lenient Configuration Loading

  1. Broken Config Detection: Identifies missing API keys or invalid configurations
  2. Warning Generation: Creates human-readable warnings for users
  3. Fallback Mechanism: Provides usable defaults while preserving user settings
  4. Wizard Integration: Opens setup wizard to fix issues before pipeline initialization

WAV Conversion Process

  1. Audio Capture: Receives raw float32 PCM audio from the pipeline
  2. WAV Packaging: Wraps PCM data in RIFF/WAVE container format
  3. API Upload: Sends properly formatted WAV file to ASR provider
  4. Response Handling: Processes transcription results as before

Setup Wizard Navigation

  • State Preservation: Captures page state before navigation
  • Controller Updates: Only updates controller with user-modified values
  • Page Rebinding: Only rebinds the arriving page from controller
  • Navigation Flow: Maintains proper order of operations during wizard navigation

๐Ÿ“‹ What's New in v0.3.5

Major Additions

  • Complete Setup System: Full setup wizard and settings window infrastructure
  • Lenient Config Loader: src/agentvoca/config/loader.py
  • WAV Conversion: src/agentvoca/asr/openai_compatible.py
  • Model Catalog Controller: src/agentvoca/setup/controllers/model_catalog.py
  • Device Probe: src/agentvoca/setup/controllers/device_probe.py
  • Hotkey Presets: src/agentvoca/setup/controllers/hotkey_presets.py
  • Combobox Utilities: src/agentvoca/setup/pages/_combobox_utils.py
  • Settings Window: src/agentvoca/setup/settings_window.py

Files Added/Modified

  • New: src/agentvoca/setup/ - Complete setup system infrastructure
  • New: tests/unit/test_loader_lenient.py - Lenient loader tests
  • New: tests/unit/test_model_catalog.py - Model catalog tests
  • New: tests/unit/test_device_probe.py - Device probe tests
  • New: tests/unit/test_hotkey_presets.py - Hotkey presets tests
  • New: tests/integration/test_model_fetch.py - Model fetching integration tests
  • New: tests/integration/test_settings_window.py - Settings window tests
  • New: tests/integration/test_wizard.py - Wizard integration tests
  • Updated: src/agentvoca/main.py - Lenient loader integration and first-run handling
  • Updated: src/agentvoca/setup/controllers/config_controller.py - Enhanced error handling
  • Updated: src/agentvoca/setup/pages/asr_page.py - Model fetching and warnings
  • Updated: src/agentvoca/setup/wizard.py - Complete wizard implementation
  • Updated: src/agentvoca/app/hotkeys.py - Hotkey management improvements
  • Updated: src/agentvoca/app/settings.py - Settings management
  • Updated: src/agentvoca/app/tray.py - Tray icon improvements
  • Updated: tests/unit/test_asr_adapters.py - WAV conversion tests
  • Updated: tests/unit/test_config_controller.py - Enhanced controller tests
  • Updated: README.md - Updated setup and configuration documentation

๐Ÿงช Testing

  • Lenient Loader Tests: tests/unit/test_loader_lenient.py
  • Model Catalog Tests: tests/unit/test_model_catalog.py
  • Device Probe Tests: tests/unit/test_device_probe.py
  • Hotkey Presets Tests: tests/unit/test_hotkey_presets.py
  • Config Controller Tests: tests/unit/test_config_controller.py
  • Model Fetch Tests: tests/integration/test_model_fetch.py
  • Wizard Tests: tests/integration/test_wizard.py
  • Settings Window Tests: tests/integration/test_settings_window.py
  • ASR Adapter Tests: tests/unit/test_asr_adapters.py
  • First Run Tests: tests/unit/test_first_run.py
  • Persistence Tests: tests/unit/test_persistence.py

All tests pass successfully โœ…

๏ฟฝ Technical Improvements

Architecture Enhancements

  • Complete Setup System: Modular architecture for wizard pages and settings
  • Controller-Based UI: Consistent state management across wizard and settings window
  • Signal-Based Communication: Better decoupling between components
  • Thread-Safe Operations: Improved handling of background operations
  • Error Handling Framework: Consistent error reporting and recovery

Performance Optimizations

  • Device Caching: Reduced overhead for audio device enumeration
  • Model Catalog Caching: Improved performance for model fetching
  • Efficient Navigation: Optimized wizard page loading and state management

๐Ÿ”„ Migration

  • Backward Compatible: v0.3.5 is fully backward compatible with existing configurations
  • Improved Error Handling: Existing broken configurations will now show warnings instead of crashing
  • No Breaking Changes: All existing features work as before with enhanced reliability
  • Smoother Upgrades: Lenient loader ensures smooth transition from previous versions

๐Ÿ“š Documentation

  • Config Reference: docs/config-reference.md - Updated with lenient loading behavior
  • Setup Guide: docs/user-setup.md - Improved wizard documentation
  • Troubleshooting: docs/troubleshooting.md - Added common configuration issues

๐Ÿš€ Installation

Option A: Download the .exe (Windows)

  1. Download the latest release from GitHub
  2. Run the installer and follow the setup wizard
  3. Configure your preferred ASR and cleanup providers

Option B: Run from Source

# Clone the repository
git clone https://github.com/your-repo/agentvoca.git
cd agentvoca

# Install dependencies
uv sync

# Run AgentVoca
uv run agentvoca

๐ŸŽจ User Experience Improvements

Setup Experience

  • Guided First Run: Comprehensive wizard guides new users through setup
  • Contextual Help: Inline warnings and guidance for configuration issues
  • Visual Feedback: Clear indicators for settings requiring restart
  • Progressive Disclosure: Advanced options available but not overwhelming

Daily Usage

  • Reliable ASR: Fewer errors and better compatibility with providers
  • Flexible Configuration: Easier to customize and adjust settings
  • Better Error Messages: Clearer guidance when things go wrong
  • Improved Device Support: Better handling of audio devices

๐Ÿ“ข Feedback Wanted

This release introduces significant improvements to the setup experience and configuration reliability. We'd love to hear about your experience:

  • Did the setup wizard help you get started more easily?
  • Have you encountered any configuration issues that still need attention?
  • What additional features would make AgentVoca even ...
Read more

v0.3.0 - Screenshot-to-Text (Vision)

Choose a tag to compare

@NANInithin NANInithin released this 27 Jun 22:34

AgentVoca Release Notes

v0.3.0 - Screenshot-to-Text (Vision) Feature

Released: 2026-06-27
Version: 0.3.0

๐ŸŽฏ Overview

AgentVoca v0.3.0 introduces the revolutionary Screenshot-to-Text feature, allowing you to snip regions mid-dictation and have a vision model extract their content as markdown/text, seamlessly woven into your dictation.

Opt-in and API-based. Vision is off by default; when enabled, snipped screenshots are sent to the configured endpoint. Everything else stays local.

โœจ New Features

Screenshot-to-Text (Vision)

  • Region Sniping: Press Ctrl+Shift+S (configurable) while recording to snip any screen region
  • Vision Model Integration: Extract tables, values, descriptions as markdown/text
  • Anchor-Based Splicing: Say anchor phrases like "as in the attached screenshot" to place extractions precisely
  • Multiple Snips: Support for multiple screenshots in one dictation session
  • API-Based: Works with any OpenAI-compatible vision endpoint (OpenAI, OpenRouter, Anthropic, Ollama)

Configuration

vision:
  enabled: true
  endpoint: https://openrouter.ai/api/v1
  api_key_env: OPENROUTER_API_KEY
  model: openai/gpt-4o-mini
  output_format: auto
  capture_timeout_s: 30

hotkeys:
  capture_screenshot: ctrl+shift+s

Supported Vision Providers

Provider Endpoint Example Models
OpenAI https://api.openai.com/v1 gpt-4o-mini, gpt-4o
OpenRouter https://openrouter.ai/api/v1 anthropic/claude-opus-4-8, openai/gpt-4o-mini
Anthropic https://api.anthropic.com/v1 Claude vision models
Ollama (Local) http://localhost:11434/v1 qwen2.5-vl, minicpm-v

๐Ÿ”ง Technical Details

How It Works

  1. Start Recording: Begin dictation with Ctrl+Space
  2. Capture Screenshot: Press Ctrl+Shift+S to open OS snipping tool
  3. Dictate Instruction: Say "make a table of the expenses" or "describe the chart"
  4. Anchor Placement: Use phrases like "as in the attached screenshot" for precise placement
  5. Processing: VLM extracts content, passes through cleanup with code preservation
  6. Insertion: Merged text appears at cursor position

Anchor Phrases

Built-in anchors: "the attached screenshot", "this screenshot", "as shown", "as in the screenshot", etc.

Privacy

  • Screenshots only leave machine when explicitly snipped
  • Requires vision-capable model and API key
  • All other AgentVoca processing stays local

๐Ÿ“‹ What's New in v0.3.0

Major Additions

  • Screenshot-to-Text: Core v0.3.0 feature
  • Vision Provider: OpenAI-compatible VLM adapter
  • Screenshot Capturer: OS-native snipping (Windows/macOS/Linux)
  • AnchorSplicer: Intelligent text splicing based on anchor phrases
  • VisionConfig: Configuration management with validation

Files Added/Modified

  • New: src/agentvoca/vision/ - Vision provider package
  • New: src/agentvoca/capture/screenshot.py - OS-native snipping
  • New: docs/vision.md - Complete vision documentation
  • Updated: config.example.yaml - Vision configuration block
  • Updated: README.md - v0.3.0 section and features

๐Ÿงช Testing

  • Vision Pipeline Tests: tests/integration/test_vision_pipeline.py
  • Anchor Tests: tests/unit/test_vision_anchors.py
  • Provider Tests: tests/unit/test_vision_openai_compatible.py
  • Capture Tests: tests/unit/test_screenshot_capture.py
  • Config Tests: tests/unit/test_config_vision.py

All tests pass successfully โœ…

๐Ÿ”„ Migration

  • Backward Compatible: v2 features remain opt-in
  • Configuration: Existing config.yaml files work unchanged
  • Hotkeys: New vision hotkey doesn't interfere with existing ones

๐Ÿ“š Documentation

  • Vision Guide: docs/vision.md - Complete feature documentation
  • Config Reference: docs/config-reference.md - Vision configuration options
  • README Updates: v3 section with examples and setup instructions

๐Ÿš€ Installation

Option A: Download the .exe (Windows)

  1. Download latest release from GitHub
  2. Extract and run AgentVoca.exe
  3. Create config folder: mkdir "$env:USERPROFILE\.agentvoca"
  4. Download config.example.yaml as config.yaml

Option B: Run from Source

git clone https://github.com/NANInithin/AgentVoca.git
cd AgentVoca
uv sync
uv run agentvoca

๐Ÿ”ง Configuration Example

# Add this to your config.yaml to enable vision:
vision:
  enabled: true
  endpoint: https://openrouter.ai/api/v1
  api_key_env: OPENROUTER_API_KEY
  model: openai/gpt-4o-mini
  output_format: auto

hotkeys:
  capture_screenshot: ctrl+shift+s

๐Ÿ“ Usage Example

  1. Start recording: Ctrl+Space
  2. Dictate: "Here's a table of the monthly expenses"
  3. Press Ctrl+Shift+S to snip the table
  4. Say: "as in the attached screenshot"
  5. Text appears: A markdown table of the expenses

โš ๏ธ Known Limitations

  • API-Based Only: Local VLM (GOT-OCR 2.0) planned for future release
  • Opt-in Required: Vision is disabled by default for privacy
  • API Key Required: Need vision-capable model and API key

๐Ÿ”ฎ Future Plans

  • Local VLM: In-process offline vision model (GOT-OCR 2.0)
  • Enhanced Anchors: More intelligent anchor phrase recognition
  • Template Support: Pre-defined extraction templates
  • Batch Processing: Process multiple screenshots with single instruction

๐Ÿ› Troubleshooting

  • Vision not working: Ensure vision.enabled: true and API key set
  • No native screenshot tool: Install platform-specific snipping tool
  • Tables mangled: Use stronger vision model or output_format: markdown

๐Ÿ“ˆ Version History

  • v0.1.0: Initial release
  • v0.2.0: Streaming, context engine, voice commands, adaptive vocab
  • v3.0.0: Screenshot-to-text (vision) feature

๐Ÿ”— Links


For support, questions, or feature requests, please visit the GitHub repository.

v0.2.0 โ€” Streaming, Context Engine, Adaptive Vocab

Choose a tag to compare

@NANInithin NANInithin released this 04 Jun 21:25

What's new

Live streaming transcription

Partial text appears in the overlay while you speak โ€” dim and italic to distinguish it from the final result. The accurate model still produces the final inserted text when you stop.

asr:
  streaming: true
  streaming_model: base

On CPU, partials update every ~1โ€“3 seconds. On a working CUDA GPU, every ~100โ€“300 ms.

Background warm-up

Models are preloaded in the background at startup. The tray shows โœ“ Ready when warm-up finishes โ€” no cold-start penalty on your first dictation. A CUDA inference probe now detects GPU failures at startup and falls back to CPU automatically before any dictation.

Context-aware formatting

The active application drives the cleanup style automatically.

context:
  enabled: true
  profiles:
    "Code.exe": technical   # VS Code on Windows
    "*terminal*": technical
    "*": standard

Voice commands

Say editing commands instead of typing them: new line, new paragraph, scratch that, undo that, capitalize that.

commands:
  enabled: true

Adaptive vocabulary

The app learns your corrections. Undo a mis-heard word, re-dictate the correct one. Do it twice and the mapping is saved permanently.

adaptive:
  enabled: true
  promote_threshold: 2

Improvements

  • Undo is now reliable regardless of focus. The app saves the window handle when it inserts text and re-focuses it before sending backspace keystrokes โ€” works even if you switched to the terminal to watch logs.
  • Benchmark harness (scripts/benchmark.py) with CI-enforced latency budgets.
  • Settings window now shows the undo hotkey.

Bug fixes

  • Streaming repeated lines / multi-minute hang after stop. The AudioChunker emitted the rolling 8-second window with every chunk instead of a delta. After 30 s of speaking, ~480 s of duplicate audio accumulated; the final pass hallucinated and took minutes. Fixed: chunker now emits only new audio since last emission.
  • ZeroDivisionError on first streaming dictation. Sample rate was read from a field initialised to 0. Fixed: read from the AudioChunkEvent directly.
  • Streaming CPU backlog. Each partial await-ed the executor inside the chunk loop, queueing 10+ jobs after stop. Fixed with a fire-and-forget pattern.
  • Hotkeys unreliable with Shift+letter on Windows. pynput fires KeyCode(char=None, vk=90) when Shift is held โ€” the old set-matching code never caught it. Rewritten to use pynput.HotKey + listener.canonical.
  • Overlay/tray updated from wrong thread. Qt widget updates now go through signals (queued connection).
  • Overlay missing subscriptions. PartialTranscriptEvent and WarmupCompleteEvent were never subscribed โ€” partials and "โœ“ Ready" never appeared.

Upgrade notes

Add the undo hotkey to your config (ctrl+alt+z is captured by NVIDIA drivers โ€” use ctrl+shift+z):

hotkeys:
  undo: ctrl+shift+z

If you see CUDA inference probe failed โ€” switching to CPU at startup and want to suppress it:

asr:
  extra:
    device: cpu

All v2 features (streaming, context, commands, adaptive) are off by default โ€” an existing v1 config.yaml works unchanged.

AgentVoca v0.1.0

Choose a tag to compare

@NANInithin NANInithin released this 31 May 16:25

First public release. Local faster-whisper ASR, OpenAI-compatible LLM cleanup, keyboard/clipboard insertion, system tray on Windows.