All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.transcribestreaming.model.TranscriptResultStream.kt Maven / Gradle / Ivy

The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.transcribestreaming.model



/**
 * Contains detailed information about your streaming session.
 */
public sealed class TranscriptResultStream {
    /**
     * Contains `Transcript`, which contains `Results`. The `` object contains a set of transcription results from one or more audio segments, along with additional information per your request parameters.
     */
    public data class TranscriptEvent(val value: aws.sdk.kotlin.services.transcribestreaming.model.TranscriptEvent) : aws.sdk.kotlin.services.transcribestreaming.model.TranscriptResultStream() {
    }

    public object SdkUnknown : aws.sdk.kotlin.services.transcribestreaming.model.TranscriptResultStream() {
    }

    /**
     * Casts this [TranscriptResultStream] as a [TranscriptEvent] and retrieves its [aws.sdk.kotlin.services.transcribestreaming.model.TranscriptEvent] value. Throws an exception if the [TranscriptResultStream] is not a
     * [TranscriptEvent].
     */
    public fun asTranscriptEvent(): aws.sdk.kotlin.services.transcribestreaming.model.TranscriptEvent = (this as TranscriptResultStream.TranscriptEvent).value

    /**
     * Casts this [TranscriptResultStream] as a [TranscriptEvent] and retrieves its [aws.sdk.kotlin.services.transcribestreaming.model.TranscriptEvent] value. Returns null if the [TranscriptResultStream] is not a [TranscriptEvent].
     */
    public fun asTranscriptEventOrNull(): aws.sdk.kotlin.services.transcribestreaming.model.TranscriptEvent? = (this as? TranscriptResultStream.TranscriptEvent)?.value
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy