STTError

org.llm4s.speech.stt.STTError
See theSTTError companion object
sealed trait STTError extends LLMError

Errors that can occur during speech-to-text processing.

EngineNotAvailable is a RecoverableError; UnsupportedFormat and InvalidInput are NonRecoverableErrors. ProcessingFailed carries no marker, so LLMError.isRecoverable and the library's automatic retries treat it as not recoverable: the clients raise it for an empty transcription, audio with no recognisable speech and an unparseable response, which sending the same audio again does not fix. Its retryable flag still says true, for a caller that wants to offer the user a retry.

Attributes

Companion
object
Graph
Supertypes
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Value members

Abstract methods

def userFriendly: String

Concrete methods

def retryable: Boolean

Inherited methods

def code: Option[String]

Optional error code for programmatic handling

Optional error code for programmatic handling

Attributes

Inherited from:
LLMError
def context: Map[String, String]

Additional context information

Additional context information

Attributes

Inherited from:
LLMError
def correlationId: Option[String]

Error correlation IDs for debugging

Error correlation IDs for debugging

Attributes

Inherited from:
LLMError
def formatted: String

Formatted error message with context

Formatted error message with context

Attributes

Inherited from:
LLMError
def productElementName(n: Int): String

Attributes

Inherited from:
Product
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def productPrefix: String

Attributes

Inherited from:
Product

Inherited and Abstract methods

def canEqual(that: Any): Boolean

Attributes

Inherited from:
Equals
def message: String

Human-readable error message

Human-readable error message

Attributes

Inherited from:
LLMError
def productArity: Int

Attributes

Inherited from:
Product
def productElement(n: Int): Any

Attributes

Inherited from:
Product