Push: openStream
Pull: transcribeStream
Signatures
Capturing in the renderer, transcribing in the host
The microphone lives in the renderer, wheregetUserMedia works. Inference lives in the
utility host. Forward frames across the bridge:
MediaStream data across IPC per callback is
far more traffic than sending the PCM you actually need.
Closing
Alwaysflush(), finish(), and close(). A stream left open holds the model and the
microphone, and on a desktop app that outlives a window close.