Transcription

@Serializable
data class Transcription(    val text: String,     val language: String? = null,     val duration: Double? = null,     val segments: List<Segment>? = null,     val words: List<Word>? = null)

Create transcription response.

text format depends on TranscriptionRequest's responseFormat. Remaining field are provided only in case of response format verbose_json.

Constructors

Link copied to clipboard
constructor(text: String, language: String? = null, duration: Double? = null, segments: List<Segment>? = null, words: List<Word>? = null)

Properties

Link copied to clipboard
@SerialName(value = "duration")
val duration: Double? = null
Link copied to clipboard
@SerialName(value = "language")
val language: String? = null
Link copied to clipboard
@SerialName(value = "segments")
val segments: List<Segment>? = null
Link copied to clipboard
@SerialName(value = "text")
val text: String

Transcription text. The format depends on TranscriptionRequest's responseFormat.

Link copied to clipboard
@SerialName(value = "words")
val words: List<Word>? = null