commonMain.aws.sdk.kotlin.services.transcribestreaming.model.TranscriptResultStream.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of transcribestreaming-jvm Show documentation
Show all versions of transcribestreaming-jvm Show documentation
The AWS SDK for Kotlin client for Transcribe Streaming
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