tjbot-ce - v3.0.0
    Preparing search index...

    Class ModelRegistry

    Unified singleton registry for all TJBot models (STT, TTS, VAD, Vision) Handles model metadata, registration, downloading, extraction, and caching

    Index

    Methods

    • Download and extract a model

      Parameters

      • modelKey: string

        The model key

      Returns Promise<{ cachePath: string; primaryPath: string } | undefined>

      Error if download or extraction fails

    • Get model cache directory for a specific type

      Parameters

      • modelType: ModelType | "vision"

        The model type (stt, tts, vad, vision.*)

      Returns string

      The cache directory path for the specified model type

    • Check if a model is downloaded in the specified cache directory

      Parameters

      • modelKey: string

        The model key

      Returns boolean

      True if the model is downloaded, false otherwise