//clika-runtime/io.clika.modelverse/SttModel/transcribe
transcribe
[common]
fun transcribe(pcm16: ShortArray, sampleRate: Int, options: TranscribeOptions, listener: TranscribeListener): TranscribeHandle
Transcribe pcm16, mono 16-bit samples at sampleRate hertz (the clip is resampled to the model's rate), under options. Returns at once; the worker runs the request and calls listener on its thread: the clip's text as one TranscriptSegment spanning the clip, then TranscribeListener.onDone with the TranscribeReport, the language the clip was read in among its facts. A clip longer than the model's window is transcribed window by window into that one segment.