Transcription

@Serializable
data class Transcription(val text: String? = null, val finished: Boolean? = null, val languageCode: String? = null, val speakerLabel: String? = null, val words: List<WordInfo>? = null)

Audio transcription in Server Content.

Constructors

Link copied to clipboard
constructor(text: String? = null, finished: Boolean? = null, languageCode: String? = null, speakerLabel: String? = null, words: List<WordInfo>? = null)

Properties

Link copied to clipboard
val finished: Boolean? = null

Optional. The bool indicates the end of the transcription.

Link copied to clipboard
val languageCode: String? = null

The BCP-47 language code of the transcription.

Link copied to clipboard
val speakerLabel: String? = null

A label identifying the speaker of this audio segment (e.g. "spk_1", "spk_2").

Link copied to clipboard
val text: String? = null

Optional. Transcription text.

Link copied to clipboard
val words: List<WordInfo>? = null

Detailed word-level transcriptions and timing details.