SpeechToText

org.llm4s.speech.stt.SpeechToText
trait SpeechToText

Abstraction for speech-to-text conversion providers.

Implementations should handle various audio formats and provide optional features like word-level timestamps and speaker diarization.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def name: String

Unique identifier/name of this provider

Unique identifier/name of this provider

Attributes

def supportedFormats: List[String]

List supported audio formats (e.g., "audio/wav", "audio/mp3")

List supported audio formats (e.g., "audio/wav", "audio/mp3")

Attributes

Transcribe audio to text.

Transcribe audio to text.

Value parameters

input

Audio data to transcribe

options

Configuration for transcription

Attributes

Returns

Result containing Transcription or STTError

Throws
STTError

if transcription fails (wrapped in Result)

Concrete methods

def isAvailable: Result[Boolean]

Check if this provider is available/healthy. Useful for failover logic and availability checks.

Check if this provider is available/healthy. Useful for failover logic and availability checks.

Attributes