Resolves a usable local model path from PiperTTSOptions.
PiperTTSOptions
modelUrl
.onnx
modelsDir
model
hub:<slug>
custom
modelPath
Delegates to resolveModelFiles (see model-source.ts); only the .onnx path is returned, the sibling .onnx.json lands next to it.
resolveModelFiles
model-source.ts
.onnx.json
Creation options passed to PiperTTS.create.
PiperTTS.create
Absolute path to a local .onnx model file.
When options are invalid or model resolution fails.
Resolves a usable local model path from
PiperTTSOptions.modelUrl: downloads.onnx(+ config) once intomodelsDir.modelid: rhasspy id/alias,hub:<slug>, piperhub.org page URL, or bare PiperHub slug (auto-downloads intomodelsDir).custom/unset model: usesmodelPath.Delegates to
resolveModelFiles(seemodel-source.ts); only the.onnxpath is returned, the sibling.onnx.jsonlands next to it.