updateActiveLocales

abstract suspend fun updateActiveLocales(vpaIdentifier: VpaIdentifier, locales: List<Locale>)

Asks the VPA to update the active locales. These are the languages that will be spoken and recognized by the VPA.

Note: updating the active locales is optional. The default value is configured as part of the VPA's dynamic configuration.

Parameters

vpaIdentifier

The VPA whose locales should be updated. This is the identifier given by the VPA in VpaProperties.vpaIdentifier.

locales

The list of new active locales. It needs to be either a single element out of the VpaProperties.supportedLocales or one of the VpaProperties.supportedLocaleCombinations. The order in the list defines the priority of the language used by the VPA, if the VPA supports prioritization of active locales.