Bridge AAEP event streams to Microsoft Narrator on Windows via UI Automation
Project description
AAEP Narrator Bridge Prototype
A reference Windows bridge that subscribes to AAEP producers and routes events to Microsoft Narrator, the built-in Windows screen reader. Unlike the NVDA add-on, this is a standalone bridge process — Narrator does not have a third-party add-on mechanism, so we use Windows UI Automation (UIA) to surface announcements through a hidden window that Narrator monitors.
Status: Prototype. Demonstrates the integration pattern; not yet a production deployment artifact. See §"Production readiness" below.
Strategic significance: Narrator ships with every Windows machine. If AAEP works with Narrator, the protocol becomes accessible to hundreds of millions of Windows users without requiring them to install third-party screen readers.
Why a bridge instead of an add-on?
Narrator's architecture differs from NVDA's in two important ways:
| Property | NVDA | Narrator |
|---|---|---|
| Add-on mechanism | First-class (.nvda-addon packages) | None for third parties |
| Speech control | Direct Python API (speech.speak()) |
Via UIA accessibility tree |
| Modification scope | Add-ons can deeply customize Narrator-style behavior | Apps expose accessibility info; Narrator decides what to read |
Because Narrator can't load custom code, we use the UI Automation pattern: this bridge runs as a separate Windows process, exposes a hidden window with proper accessibility properties, and updates that window's accessible text when AAEP events arrive. Narrator (when focused on this window or running automatically with announcement-style features) reads the updated text.
This is the same pattern used by browsers (Edge, Chrome) and other apps that need to announce content to Narrator without being Narrator itself.
What this bridge does
- Subscribes to one or more AAEP producers via SSE
- Creates a hidden "announcement" window with proper UIA accessibility properties
- Updates the window's accessible name and live-region property when events arrive
- Plays system notification sounds for critical events to ensure attention
- Provides a tray icon for connection status and configuration
- Logs all events to disk (optional) for debugging and audit
The bridge is opt-in: users explicitly add producer endpoints in the configuration UI.
Architecture
┌──────────────────────────────────────────────────┐
│ Windows host │
│ │
│ ┌──────────────────────────────────────────┐ │
│ │ AAEP Narrator Bridge (standalone proc) │ │
│ │ │ │
│ │ ┌──────────────────────────────────┐ │ │
│ │ │ SSE Client (asyncio + httpx) │ │ │
│ │ └──────────────────────────────────┘ │ │
│ │ │ │ │
│ │ ▼ │ │
│ │ ┌──────────────────────────────────┐ │ │
│ │ │ Event Handler (priority routing) │ │ │
│ │ └──────────────────────────────────┘ │ │
│ │ │ │ │
│ │ ▼ │ │
│ │ ┌──────────────────────────────────┐ │ │
│ │ │ UIA Announcer │ │ │
│ │ │ - Hidden tk window │ │ │
│ │ │ - AccessibleObject updates │ │ │
│ │ │ - Live region notifications │ │ │
│ │ └──────────────────────────────────┘ │ │
│ │ │ │ │
│ └──────────────┼─────────────────────────────┘ │
│ │ │
│ ▼ │
│ ┌──────────────────────────────────────────┐ │
│ │ Narrator (Windows built-in SR) │ │
│ │ Reads accessible text via UIA │ │
│ └──────────────────────────────────────────┘ │
└──────────────────────────────────────────────────┘
The bridge runs as a regular user-space process. Narrator (which runs at a privileged level for some interactions) picks up announcements via Windows' built-in accessibility tree — no special permissions required.
Installation
Requirements
- Windows 10 (version 2004+) or Windows 11
- Python 3.10+
- Narrator enabled (
Settings → Accessibility → Narrator → Turn on Narrator)
Install
cd examples\subscribers\narrator-bridge-prototype
pip install -e .
Optional dependencies:
pip install -e .[ui] # System tray icon and config GUI
pip install -e .[uia] # Production UIA via pywin32 (Windows-only)
Run
aaep-narrator-bridge --endpoint http://localhost:8080
The bridge runs in the background. When AAEP events arrive, Narrator announces them. Press Ctrl+C in the terminal to stop.
Quick start
In one terminal, start an AAEP producer:
python -m aaep_minimal_producer.server --port 8080
In another terminal, start the bridge:
aaep-narrator-bridge --endpoint http://localhost:8080 --verbose
Make sure Narrator is on (Windows key + Ctrl + Enter to toggle). Then trigger an event:
curl -X POST http://localhost:8080/sessions ^
-H "Content-Type: application/json" ^
-d "{\"user_message\": \"Send an email to alice@example.com\"}"
Narrator should announce the agent's activity in real time, including critical confirmations.
Configuration
The bridge reads configuration from %APPDATA%\aaep-narrator-bridge\config.json (created with defaults on first run):
{
"endpoints": ["http://localhost:8080"],
"preferred_languages": ["en"],
"announce_normal_events": true,
"announce_progress": false,
"play_critical_chime": true,
"log_file_path": null,
"auto_connect_on_start": true
}
CLI flags override config file values.
Confirmation flow
Narrator's UIA-based integration is fundamentally different from NVDA's direct gesture access. Confirmation gestures route through:
- The bridge displays a small modal-style dialog window with proper UIA semantics (role=dialog, accessibility name, focus)
- The dialog has
[Accept]and[Reject]buttons with keyboard shortcuts - When the user presses Accept or Reject, the bridge sends the reply to the producer
- Narrator naturally announces the dialog contents because Windows' accessibility tree exposes them
This means confirmations briefly pop a UI window. For unattended deployments, set auto_reject_after_seconds in config to fall through with the safe default.
Limitations
Narrator integration has inherent constraints we can't work around:
- No deep customization. We can't change how Narrator pronounces things, control speech rate per event, or override Narrator's verbosity settings.
- Announcement timing depends on Narrator's behavior. Narrator may queue, interrupt, or skip announcements based on user settings we cannot inspect.
- No braille output integration. Braille support requires lower-level integration than UIA provides.
- Focus-dependent behavior. Some Narrator features only work when our window has focus, which steals focus from the user's actual work.
For users who need richer integration, the NVDA add-on provides deeper control. The Narrator bridge is positioned for users who can't or don't want to install third-party screen readers.
Production readiness
This prototype is a demonstration, not a production artifact. Known gaps:
| Limitation | Plan |
|---|---|
| Tk-based hidden window (heavy dependency) | Switch to a Win32 hidden window with raw UIA in v0.2 |
| No installer | Build MSI installer with WIX in v1.0 |
| No code signing | Add Authenticode signature in v1.0 |
| Limited UIA testing | Validate against Inspect.exe and Accessibility Insights in v0.3 |
| No automatic update mechanism | Add Squirrel.Windows update support in v1.0 |
| Single producer | Multi-producer support in v0.2 |
Target: v1.0 production release with Microsoft Store submission in Q1 2027 (per the ROADMAP).
Future: Narrator-native AAEP support
The long-term goal is for Microsoft to add native AAEP support to Narrator, eliminating the need for this bridge. Such an integration would:
- Subscribe to AAEP producers directly without the UIA workaround
- Use Narrator's full speech and braille capabilities natively
- Honor Narrator's user settings (rate, verbosity, voice)
- Surface AAEP confirmations through Narrator's input gesture system
This bridge serves as a proof of integration concept that a Microsoft Accessibility team can use when evaluating native support. The implementation demonstrates the value, identifies the integration points, and provides a working reference.
If you're at Microsoft and interested in native AAEP support for Narrator, we'd welcome a conversation: Abdulrafiu@izusoft.tech.
Project layout
narrator-bridge-prototype/
├── README.md
├── pyproject.toml
├── aaep_narrator_bridge/
│ ├── __init__.py
│ ├── bridge.py # Main subscriber loop
│ ├── announcer.py # UIA announcement window
│ └── handler.py # AAEP event → Narrator routing
└── tests/
└── test_handler.py
See also
- Windows UI Automation overview
- Narrator user guide
../nvda-addon-prototype/— third-party screen reader subscriber../web-subscriber-react/— browser-based subscriber../cli-debug/— simplest reference subscriber
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aaep_narrator_bridge-0.1.0.tar.gz.
File metadata
- Download URL: aaep_narrator_bridge-0.1.0.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f1e4708948597901a46e9f2df2869292a5926593e0e787e96fbbdae58163673
|
|
| MD5 |
28e18a1502d55cad3e199b73af3a7ecd
|
|
| BLAKE2b-256 |
7f6ba8d5d07ab8116fc18dc56003430a308b03b6421190a496c6706175f6dad3
|
File details
Details for the file aaep_narrator_bridge-0.1.0-py3-none-any.whl.
File metadata
- Download URL: aaep_narrator_bridge-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae317addbde32366d24df303102ac928afd83fed86440baec07f94ee2ad0f8e2
|
|
| MD5 |
cf12e77ace8c62b1d6bdd133b9c98863
|
|
| BLAKE2b-256 |
81ebf77037bf473f4704dde7438a6b35e9ab7dea044704d2a594c56b40e5382a
|