TranscriptionOptions

data class TranscriptionOptions(val language: String? = null, val translate: Boolean = false, val initialPrompt: String? = null, val noContext: Boolean = true, val singleSegment: Boolean = false, val noTimestamps: Boolean = false, val maxTokens: Int = 0, val temperature: Float = 0.0f, val temperatureIncrement: Float = 0.2f)(source)

Per-call decoding options of WhisperEngine.transcribe.

Constructors

Link copied to clipboard
constructor(language: String? = null, translate: Boolean = false, initialPrompt: String? = null, noContext: Boolean = true, singleSegment: Boolean = false, noTimestamps: Boolean = false, maxTokens: Int = 0, temperature: Float = 0.0f, temperatureIncrement: Float = 0.2f)

Types

Link copied to clipboard
object Companion

Constants and factory functions of TranscriptionOptions.

Properties

Link copied to clipboard

optional decoder prompt (vocabulary hints, previous text).

Link copied to clipboard

ISO 639-1 code (e.g. "en", "de"), "auto" to detect, or null for the model default ("en" for English-only models, otherwise auto-detection).

Link copied to clipboard

maximum tokens per segment, 0 for no limit.

Link copied to clipboard

do not carry decoder text context over from the previous call on this engine.

Link copied to clipboard

do not decode timestamp tokens (segment times are then coarse).

Link copied to clipboard

force a single output segment (useful for short streaming slices).

Link copied to clipboard

initial sampling temperature, 0 for greedy decoding.

Link copied to clipboard

temperature fallback increment; 0 disables temperature fallback.

Link copied to clipboard

translate the speech to English.