Skip to main content

//clika-runtime/io.clika.modelverse/TranscribeOptions

TranscribeOptions

[common]
data class TranscribeOptions(val language: String? = null, val translate: Boolean = false, val targetLanguage: String? = null)

How a clip is transcribed: language names the spoken language as an ISO code (en), null lets the model detect it; targetLanguage names the language of the text, null keeps the spoken one (a transcription) and a code asks a model that translates as it transcribes for the text in it; a model that cannot translate refuses a target that differs from the spoken language, naming what it lacks, and the request ends in TranscribeListener.onError. translate is the English shorthand: true reads as targetLanguage = "en" where no target is named.

Constructors​

TranscribeOptions[common]
constructor(language: String? = null, translate: Boolean = false, targetLanguage: String? = null)

Properties​

NameSummary
language[common]
val language: String? = null
targetLanguage[common]
val targetLanguage: String? = null
translate[common]
val translate: Boolean = false