startListening

abstract suspend fun startListening(vpaIdentifier: VpaIdentifier? = null)

Ask the VPA to start listening for audio. This should be called, for example, when the user wants to speak to the VPA and has indicated this by pressing a push-to-talk button.

Parameters

vpaIdentifier

Optional parameter: the VPA that should start listening. This is the identifier given by the VPA in VpaProperties.vpaIdentifier. If this parameter is not specified, the default VPA (provided by VpaMediatorSettingsService.defaultVpa) will be invoked.