transcribeLocal

fun transcribeLocal(audioBytes: ByteArray, port: Int, language: String?): String

Invia byte audio all'endpoint /inference del server sussurro locale.

Return

Il testo trascritto.

Parameters

audioBytes

Raw audio bytes (WebM/Opus, WAV, etc.).

port

Local whisper-server port.

language

Optional BCP-47 language hint (e.g. "en", "de"), or null for auto-detect.

Throws

If the server returns a non-2xx HTTP status.