start Async
fun startAsync(preferredPort: Int, whisperRelease: String, whisperReleaseBaseUrl: String, modelUrl: String, modelsDir: File, binDir: File, whisperDir: File, noGpu: Boolean, threadCount: Int?, maxRAMPercent: Double, maxComputePercent: Double, onReady: (port: Int) -> Unit)
Starts background initialization: downloads the whisper-server binary and model, ensures ffmpeg, launches the server, and starts the resource monitor.
Parameters
preferred Port
The TCP port to try first.
whisper Release
whisper.cpp release tag (e.g. "v1.7.6").
whisper Release Base Url
Base URL prefix for whisper.cpp release downloads.
model Url
URL of the GGML model to download.
models Dir
Directory to store downloaded models.
bin Dir
Directory to store extracted binaries.
whisper Dir
Root directory for all Whisper artifacts.
no Gpu
When true, GPU acceleration is disabled.
thread Count
Explicit thread count, or null to auto-detect.
max RAMPercent
RAM usage threshold for resource gating.
max Compute Percent
Compute usage threshold for resource gating.
on Ready
Called when the server is fully ready (for updating static port fields).