Skip to content

PrepareOptions

Options for prepare. Everything is optional.

[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.

PrepareRequest.allowDownload


optional locale?: string

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

PrepareRequest.locale


optional localeMatch?: LocaleMatch

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

PrepareRequest.localeMatch


optional onProgress?: (progress) => void

Called as an item advances, with a fraction from 0 to 1 when the platform has one.

number

string

string

void


optional privacy?: Privacy

The privacy policy of the runs this precedes.

PrepareRequest.privacy


optional requestId?: string

Fixes the run id, for correlation.

PrepareRequest.requestId


optional tasks?: string[]

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

PrepareRequest.tasks


optional voice?: PrepareVoice

A voice to prepare, as for a speech request.

PrepareRequest.voice