Bytes

data class Bytes(val value: ByteArray) : AudioSource

Audio data encoded in base64.

Constructors

Link copied to clipboard
constructor(value: ByteArray)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String

Inherited functions

Link copied to clipboard

Casts this AudioSource as a Bytes and retrieves its kotlin.ByteArray value. Throws an exception if the AudioSource is not a Bytes.

Link copied to clipboard

Casts this AudioSource as a Bytes and retrieves its kotlin.ByteArray value. Returns null if the AudioSource is not a Bytes.

Link copied to clipboard

Casts this AudioSource as a S3Location and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.S3Location value. Throws an exception if the AudioSource is not a S3Location.

Link copied to clipboard

Casts this AudioSource as a S3Location and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.S3Location value. Returns null if the AudioSource is not a S3Location.