Signature
Building an AudioInput
Input constructors hang off the facade asRunAnywhere.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
Checking readiness
Microphone permission
On macOS, recording needsNSMicrophoneUsageDescription 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.