Skip to content

PrepareRequest

PrepareRequest = object

Optional scope for IndeRunApi.prepare (ADR 019). Every field is optional: an empty request covers every registered provider and task. It carries no user content.

[property: string]: unknown

optional allowDownload?: boolean

Lets this call start a platform’s own download, whatever autoDownload says at registration. Call it from a user’s decision. Absent follows autoDownload.


optional locale?: string

BCP 47 tag of the language to prepare. Absent lets a speech provider use the device’s own language.


optional localeMatch?: LocaleMatch

How locale compares: ‘language’ (default) or ‘exact’.


optional privacy?: Privacy

The privacy policy of the runs this precedes.


optional requestId?: string

Fixes the run id, for correlation.


optional tasks?: string[]

Task kinds to prepare. Absent means every task a registered provider can prepare.


optional voice?: PrepareVoice

A voice to prepare, as for a speech request.