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)
Startet die Hintergrundinitialisierung: lädt die Whisper-Server-Binärdatei und das Whisper-Server-Modell herunter und stellt sicher ffmpeg, startet den Server und startet den Ressourcenmonitor.
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).