WhisperRequestHandler

Handles incoming Whisper servlet requests: health-check probes, resource gating, audio extraction, and transcription routing (local vs external).

Extracted from Whisper.kt so the servlet class only handles configuration and lifecycle.

Parameters

log

Logging callback (LogLevel, message).

Constructors

Link copied to clipboard
constructor(log: (CodBi.LogLevel, String) -> Unit)

Properties

Link copied to clipboard

When true, request headers/params are logged for debugging. Disable in production.

Functions

Link copied to clipboard
fun handle(params: IPluginServletActionParams, serverManager: WhisperServerManager, isExternalMode: Boolean, externalUrl: String?, externalApiKey: String?, externalModel: String?, modelUrl: String, ffmpegAvailable: Boolean, autoDetectLanguage: Boolean = false, pluginProperties: Properties): IPluginServletActionRetVal

Processes a servlet request for speech-to-text transcription.