AudioInput

org.llm4s.llmconnect.model.AudioInput
See theAudioInput companion object
@Stable
final case class AudioInput extends MMInput

Audio as mono float32 PCM with sample rate.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait MMInput
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def bytesApprox: Long

Approximate payload size in bytes (for logging/back-pressure).

Approximate payload size in bytes (for logging/back-pressure).

Attributes

Definition Classes
def withSampleRate(sampleRate: Int): AudioInput

Sets the sample rate in Hz.

Sets the sample rate in Hz.

Attributes

def withSamples(samples: Array[Float]): AudioInput

Sets the samples, normalized to [-1, 1].

Sets the samples, normalized to [-1, 1].

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product