klyn.genai.stt.SpeechRecognizer.SpeechRecognizer
constructor
public SpeechRecognizer(notnull path as FilePath, notnull projector as FilePath, notnull device as Device = Device.auto, verbose as Boolean = false)
Description

Opens a GGUF speech decoder with its matching audio projector.

Parameters
ParameterDescription
pathComplete model GGUF. @param projector Complete audio mmproj.
deviceConcrete/automatic execution selector.
verboseDisplay loading progress.
Throws
  • ValueException for mismatched weights; NotSupportedException for an unsupported architecture/device. @example speech = SpeechRecognizer(FilePath("model-Q8_0.gguf"), FilePath("mmproj-model-Q8_0.gguf"))