pipertts - v1.3.0
    Preparing search index...

    Function resolveModelPathFromOptions

    • Resolves a usable local model path from PiperTTSOptions.

      • Direct modelUrl: downloads .onnx (+ config) once into modelsDir.
      • Catalog model id: rhasspy id/alias, hub:<slug>, piperhub.org page URL, or bare PiperHub slug (auto-downloads into modelsDir).
      • custom/unset model: uses modelPath.

      Delegates to resolveModelFiles (see model-source.ts); only the .onnx path is returned, the sibling .onnx.json lands next to it.

      Parameters

      Returns Promise<string>

      Absolute path to a local .onnx model file.

      When options are invalid or model resolution fails.