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, val startOffset: Duration? = null, val endOffset: Duration? = 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, startOffset: Duration? = null, endOffset: Duration? = null)

Properties

Link copied to clipboard
@Serializable(with = DurationStringSerializer::class)
val endOffset: Duration? = null

End offset in time of the transcription relative to the start of the audio.

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
@Serializable(with = DurationStringSerializer::class)
val startOffset: Duration? = null

Start offset in time of the transcription relative to the start of the audio.

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.