Contents

assetInstallationRequest(supporting:)

Returns an installation request object, which is used to initiate the asset download and monitor its progress.

Declaration

static func assetInstallationRequest(supporting modules: [any SpeechModule]) async throws -> AssetInstallationRequest?

Discussion

If the current status is .installed, returns nil, indicating that nothing further needs to be done.

If some of the assets require locales that aren’t reserved, it automatically reserves those locales. If that would exceed maximumReservedLocales, then it throws an error.