Skip to content

Instantly share code, notes, and snippets.

@eepytofu
eepytofu / bridge.py
Created May 24, 2026 04:25
Windows Live Captions → WebSocket bridge
import asyncio
import uiautomation as auto
import websockets
PORT = 6677
def get_caption_text():
try:
window = auto.WindowControl(searchDepth=1, Name="Live Captions")
text_el = window.TextControl(searchDepth=20, AutomationId="CaptionsTextBlock")