Skip to content

Automatic Processing Configuration Mode

MSDK 12.0.0 offers a new mechanism to configure the ProcessingSession for compatible devices: "Automatic Processing Configuration",

Note

Automatic Processing Configuration is not compatible with older existing Mimi Processors; if you need to support both types of Processors, then your application should use appropriate heuristics to determine which mode to use for each device.

Overview

Automatic Processing Configuration allows the capabilities and state of the Processor to be automatically detected by the MSDK, and used to initialize the ProcessingSession.

Configuration Definition

The definition of the MimiProcessingConfiguration.Automatic simply includes the Applicator configuration to allow the MSDK to communicate with the Processor.

Example

Define MimiProcessingConfiguration.Automatic:

val configuration = MimiProcessingConfiguration.Automatic(
        processor = MimiAutomaticProcessorConfiguration(
            applicator =
                MimiProcessorApplicatorConfiguration.Protobuf(timeout = YOUR_APPLICATOR_TIMEOUT) { request ->
                    TODO("Send request ByteArray to Processor and return response ByteArray payload as a kotlin.Result")
                }
        )
    )
)