AudioConverter

org.llm4s.speech.processing.AudioConverter
See theAudioConverter companion object
trait AudioConverter[From, To]

Generic audio converter trait for transforming audio between different formats. This provides a more flexible and extensible design for audio processing.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class CompositeConverter[A, B, C]
class FilteredConverter[A, B]
class FlatMappedConverter[A, B, C]
class MappedConverter[A, B, C]
Show all

Members list

Value members

Abstract methods

def convert(input: From): Result[To]
def name: String

Concrete methods

def andThen[C](next: AudioConverter[To, C]): AudioConverter[From, C]

Compose this converter with another converter

Compose this converter with another converter

Attributes

def filter(predicate: To => Boolean, errorMsg: String): AudioConverter[From, To]

Filter results based on a predicate

Filter results based on a predicate

Attributes

def flatMap[C](f: To => Result[C]): AudioConverter[From, C]

FlatMap for chaining converters that might fail

FlatMap for chaining converters that might fail

Attributes

def map[C](f: To => C): AudioConverter[From, C]

Map over the result of this converter

Map over the result of this converter

Attributes