Skip to content

Fastest and only macOS Dictation app with on-device STT and custom trained AI enhancement model. Windows, iOS testflight! Android, Linux waitlist open! A local Wispr Flow alternative. Follow https://x.com/fluidvoiceapp for more

1.0 KB
Raw Blame
import AppKit
import Foundation

if CommandLine.arguments.contains(MeetingReferenceSynchronizerReplayCLI.argument)
    || ProcessInfo.processInfo.environment[MeetingReferenceSynchronizerReplayCLI.environmentKey] == "1"
{
    let status = MeetingReferenceSynchronizerReplayCLI.run(
        arguments: CommandLine.arguments,
        // A path-selected replay does not need stdin. Avoid waiting on an attached
        // terminal before the CLI opens the explicitly supplied local fixture.
        inputData: CommandLine.arguments.contains("--input")
            ? Data() : (MeetingReferenceSynchronizerReplayCLI.readBoundedStandardInput() ?? Data()),
        output: { data in
            FileHandle.standardOutput.write(data)
            FileHandle.standardOutput.write(Data([0x0a]))
        }
    )
    exit(status)
}

assert(
    Bundle.main.bundleIdentifier == "com.FluidApp.ASRBaselineHost",
    "FluidASRBaselineHost must run as com.FluidApp.ASRBaselineHost"
)

let app = NSApplication.shared
app.setActivationPolicy(.prohibited)
app.run()