FilteredConverter

org.llm4s.speech.processing.AudioConverter.FilteredConverter
case class FilteredConverter[A, B](underlying: AudioConverter[A, B], predicate: B => Boolean, errorMsg: String) extends AudioConverter[A, B]

Filtered converter for conditional processing

Attributes

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

Members list

Value members

Concrete methods

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

Inherited methods

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

Compose this converter with another converter

Compose this converter with another converter

Attributes

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

Filter results based on a predicate

Filter results based on a predicate

Attributes

Inherited from:
AudioConverter
def flatMap[C](f: B => 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: B => 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