MappedConverter

org.llm4s.speech.processing.AudioConverter.MappedConverter
case class MappedConverter[A, B, C](underlying: AudioConverter[A, B], f: B => C) extends AudioConverter[A, C]

Mapped converter for applying pure functions

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait AudioConverter[A, C]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def convert(input: A): Result[C]
def name: String

Inherited methods

def andThen[C](next: AudioConverter[C, C]): AudioConverter[A, C]

Compose this converter with another converter

Compose this converter with another converter

Attributes

Inherited from:
AudioConverter
def filter(predicate: C => Boolean, errorMsg: String): AudioConverter[A, C]

Filter results based on a predicate

Filter results based on a predicate

Attributes

Inherited from:
AudioConverter
def flatMap[C](f: C => Result[C]): AudioConverter[A, C]

FlatMap for chaining converters that might fail

FlatMap for chaining converters that might fail

Attributes

Inherited from:
AudioConverter
def map[C](f: C => C): AudioConverter[A, C]

Map over the result of this converter

Map over the result of this converter

Attributes

Inherited from:
AudioConverter
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product