NeuralSpeechBootstrapOptions
Bootstrap options for one neural speech provider: a developer-supplied speech model package
(its speech block names the pipeline, graphs and voices) and the runtime that executes it.
Each entry registers one provider, with id local.onnx.speech.<platform>:<modelPackage.id>
(apple, android or web) unless id is set, so one app can register several models side
by side. It plays through the platform’s audio output and writes audio/wav artifacts.
runtimedefaults to"onnx"(ONNX Runtime, every platform)."coreai"runs aformat: "coreai"package on Apple Core AI and is iOS only: its provider id defaults tolocal.coreai.speech.apple:<modelPackage.id>, below iOS 27 the provider reports itself unavailable and routing skips it, and preparing the model on a device needs the app’s consent (autoDownload, orprepare({ allowDownload: true })).configure()rejects"coreai"on Android and the web.autoDownloadletsprepare(), explicit or on the first run, start this provider’s download on its own. Off by default, because a download can use mobile data; a single call can still allow one withprepare({ allowDownload: true }).timeoutMsbounds the synthesis until the run commits; a request’sconstraints.timeoutMswins.
On iOS and Android the package’s source names files on the device, see
the model file paragraph on OnnxProviderBootstrapOptions. On the web the package
files must be reachable by URL (bundled or app_managed): configure() has to stay JSON, so
the runtime is chosen by name, and a runtime that reads a package the app installed into OPFS
cannot be passed across. The web runtime also needs the optional onnxruntime-web peer
dependency, which this plugin does not declare: the app installs it.
Properties
Section titled “Properties”autoDownload?
Section titled “autoDownload?”
optionalautoDownload?:boolean
Lets prepare() start this provider’s download on its own. Off by default.
optionalid?:string
Provider id. See the id rule above.
modelPackage
Section titled “modelPackage”modelPackage:
ModelPackage
The model package. List a sha256 per file in integrity.checksums; the provider verifies
each file before loading it.
runtime?
Section titled “runtime?”
optionalruntime?:"onnx"|"coreai"
"onnx" (default, every platform) or "coreai" (iOS 27+ only).
timeoutMs?
Section titled “timeoutMs?”
optionaltimeoutMs?:number
Bounds the synthesis until the run commits, in milliseconds.
IndeRun — open-source AI execution for cross-platform apps. Built and maintained by Independo GmbH (opens in new tab), supported by netidee (opens in new tab).
MIT-licensed SDK · Documentation under CC BY-SA 4.0 (opens in new tab) · No SDK usage telemetry.
© 2025–2026 Independo GmbH