klyn.genai.stt.SpeechRecognizer.transcribe
method
public transcribe(notnull audio as AudioClip, notnull language as String = "auto") as Transcription
Description

Transcribes finite PCM, downmixing/resampling to mono 16 kHz. Long clips use consecutive 30 s windows; segment bounds are audio-window bounds, not word alignments. The input clip is never modified or played.

Parameters
ParameterDescription
audioOriginal PCM at its actual sample rate/channel count.
languageauto, or an available language code (fr/en for multilingual).
Returns

Independent text, detected/selected language and immutable segments.

Throws
  • IOException if closed/busy; ValueException for invalid PCM/language or decoder context exhaustion. @example result = speech.transcribe(clip, "auto")