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

Transcribes a WAV file without playback. @param path PCM/Float WAV.

Parameters
ParameterDescription
languageauto or model-supported code. @return Independent result.
Throws
  • IOException for file errors; same recognition errors as the PCM overload.
Example

print(speech.transcribe(FilePath("speech.wav"), "en").text)