TranscriptionEvent

@Serializable
data class TranscriptionEvent(val type: String, val delta: String? = null, val text: String? = null, val logprobs: List<AudioLogprob>? = null, val usage: AudioUsage? = null, val segmentId: String? = null, val languages: List<TranscriptionLanguage>? = null, val id: String? = null, val speaker: String? = null, val start: Double? = null, val end: Double? = null)

Incremental transcription event, including delta, done and speaker segment events.

Constructors

Link copied to clipboard
constructor(type: String, delta: String? = null, text: String? = null, logprobs: List<AudioLogprob>? = null, usage: AudioUsage? = null, segmentId: String? = null, languages: List<TranscriptionLanguage>? = null, id: String? = null, speaker: String? = null, start: Double? = null, end: Double? = null)

Properties

Link copied to clipboard
val delta: String? = null

Incremental text.

Link copied to clipboard
val end: Double? = null

Segment end in seconds.

Link copied to clipboard
val id: String? = null

Speaker segment identifier.

Link copied to clipboard

Detected languages on completion.

Link copied to clipboard
val logprobs: List<AudioLogprob>? = null

Token confidence information.

Link copied to clipboard
@SerialName(value = "segment_id")
val segmentId: String? = null

Identifier linking a text delta to its speaker segment.

Link copied to clipboard
val speaker: String? = null

Speaker label.

Link copied to clipboard
val start: Double? = null

Segment start in seconds.

Link copied to clipboard
val text: String? = null

Completed transcript or segment text.

Link copied to clipboard

Event discriminator returned by the API.

Link copied to clipboard
val usage: AudioUsage? = null

Request usage, when returned on completion.