---
title: "transcribe"
sidebar_label: "transcribe"
description: "Kotlin binding reference: transcribe."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.modelverse](../index.md)/[SttModel](index.md)/[transcribe](transcribe.md)

# transcribe

[common]\
fun [transcribe](transcribe.md)(pcm16: [ShortArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-short-array/index.html), sampleRate: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html), options: [TranscribeOptions](../TranscribeOptions/index.md), listener: [TranscribeListener](../TranscribeListener/index.md)): [TranscribeHandle](../TranscribeHandle/index.md)

Transcribe [pcm16](transcribe.md), mono 16-bit samples at [sampleRate](transcribe.md) hertz (the clip is resampled to the model's rate), under [options](transcribe.md). Returns at once; the worker runs the request and calls [listener](transcribe.md) on its thread: the clip's text as one [TranscriptSegment](../TranscriptSegment/index.md) spanning the clip, then [TranscribeListener.onDone](../TranscribeListener/onDone.md) with the [TranscribeReport](../TranscribeReport/index.md), 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.