MimiUpDownPresetParameterDataSource
public final actor MimiUpDownPresetParameterDataSource : MimiProcessingParameterDataSource
Preset parameter data source which remotely sources the upDown preset bundle for Mimi Sound Personalization.
-
Fitting information for the preset used in Mimi Sound Personalization.
Declaration
Swift
nonisolated public let fitting: MimiPersonalization.Fitting -
Current up down preset bundle
Declaration
Swift
nonisolated public var bundlePublisher: AnyPublisher<MimiPersonalization.UpDownPresetBundle?, Never> { get }
-
Create new instance of
MimiUpDownPresetParameterDataSource.Declaration
Swift
public convenience init(fitting: MimiPersonalization.Fitting)
-
Declaration
Swift
public func load(value: MimiPersonalization.Preset?) async throws -> MimiPersonalization.Preset? -
Load the Mimi Sound Personalization visualization for the
upDownpreset bundle.Provides the user’s hearing data and the compensation applied by each preset in the bundle, per ear, for the
fittingthis data source was created with.The visualization is fetched on demand, is not cached, and has no side effects on the processing chain.
When the data source was created by the SDK rather than by you, reach it through the session’s preset parameter:
let dataSource = session.soundPersonalization?.media?.preset .dataSource?.type as? MimiUpDownPresetParameterDataSource let visualization = try await dataSource?.loadVisualization()Warning
This API is experimental and may change or be removed in a future release.
Declaration
Swift
public func loadVisualization() async throws -> MimiUpDownBundleVisualizationDataReturn Value
Visualization data for the
upDownpreset bundle.
MimiUpDownPresetParameterDataSource Actor Reference