An instance of a speech-to-text adapter.

Remarks

This class is abstract, and as such cannot be used directly. Instead, use a provider plugin that exports its own child STT class, which inherits this class's methods.

Hierarchy (view full)

Constructors

Properties

label: string = 'deepgram.STT'

Accessors

  • get capabilities(): STTCapabilities
  • Returns this STT's capabilities

    Returns STTCapabilities

  • get model(): string
  • Get the model name/identifier for this STT instance.

    Returns string

    The model name if available, "unknown" otherwise.

    Remarks

    Plugins should override this property to provide their model information.

  • get provider(): string
  • Get the provider name for this STT instance.

    Returns string

    The provider name if available, "unknown" otherwise.

    Remarks

    Plugins should override this property to provide their provider information.

Methods

  • Receives an audio buffer and returns transcription in the form of a SpeechEvent

    Parameters

    Returns Promise<SpeechEvent>