Skip to main content

Signature

Building an AudioInput

Input constructors hang off the facade as RunAnywhere.audio, so renderer code builds the same values main-process code does:
file is the desktop path: point it at a recording on disk with no reading step of your own.

With options

See STT options.

Checking readiness

Microphone permission

On macOS, recording needs NSMicrophoneUsageDescription in the app’s Info.plist and the user’s consent. Electron surfaces the prompt on first use, and a denial is permanent until the user changes it in System Settings, so handle the refusal rather than retrying.