WordTimestamp

org.llm4s.speech.stt.WordTimestamp
See theWordTimestamp companion class
object WordTimestamp

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def validate(word: String, startSec: Double, endSec: Double, speakerId: Option[Int], confidence: Option[Double]): Result[WordTimestamp]

Create WordTimestamp with typed validation (Result-based).

Create WordTimestamp with typed validation (Result-based).

Attributes

Returns

Right(WordTimestamp) if valid, Left(STTError.InvalidInput) otherwise