Skip to content

Preset Parameter Data Sources

A preset parameter data source is used by the preset parameter in ProcessingSession to retrieve its preset payload from Mimi's backend. This payload is ultimately what defines a user's Mimified audio experience.

To activate a ProcessingSession, you need to supply a preset data source instance (MimiPresetParameterDataSource).

The SDK currently provides two types of preset data sources: Default and UpDown.

Note: The required Fitting model provides data about the current processing environment and in turn how presets should be generated.

Default Preset Parameter Data Source

The Default preset parameter data source provides only one personalization preset to the ProcessingSession.preset parameter.

The retrieved personalization preset is either associated with the current active user, or the current active group if using the SDK in Group Mode.

val fitting = Fitting(techLevel = 4) // An example fitting, yours will be defined by your Processing system
val defaultPresetDataSourceConfig = MimiPresetParameterDataSourceConfiguration.Default(fitting = fitting)
val defaultPresetDataSource = MimiCore.personalizationController.createPresetParameterDataSource(defaultPresetDataSourceConfig)
MimiCore.processingController.activateSession(presetDataSource = defaultPresetDataSource)

UpDown Preset Parameter Data Source

The UpDown preset parameter data source provides up to three presets (up, down & default) to the ProcessingSession.preset parameter. Activate processing with this data source to enable the Sound Personalization preset selection ("Fine Tuning") feature on the Mimi Profile.

Note: The up & down presets are available depending on the user's hearing assessment. There might be cases where it is not possible to generate both the up & down presets.

val fitting = Fitting(techLevel = 4) // An example fitting, yours will be defined by your Processing system
val upDownDataSourceConfig = MimiPresetParameterDataSourceConfiguration.UpDown(fitting = fitting)
val upDownPresetDataSource = MimiCore.personalizationController.createPresetParameterDataSource(upDownDataSourceConfig)
MimiCore.processingController.activateSession(presetDataSource = upDownPresetDataSource)