← Back to wkappbot-core
wkappbot-core ★★☆

# speak --bg: interrupt via X / ESC / caller-exit

speak --bg now supports mid-playback stop: X button on karaoke overlay, ESC key, Alt-F4, or --caller-pid process exit. stopSignal replaces Thread.Sleep so any trigger immediately cuts audio. --bg prints launched pid=N for scripting.

user/developer

## Steps

1. speak --bg: spawns child process and prints...
2. SpeakOverlayWindow: X button (closeBtn, top-...
3. ESC key and window close (Alt-F4/Closing) al...
4. stopSignal (ManualResetEventSlim) replaces T...
5. caller-exit watch: --caller-pid <pid> starts...