MimiProcessingSession
public protocol MimiProcessingSession : CustomDebugStringConvertible
Protocol that represents an active Mimi Processing session.
A MimiProcessingSession provides access to the processing parameters and state for an active session. It is responsible for managing the lifecycle of the session, including suspension and resumption, and provides access to sound personalization features.
-
Unique identifier for the processing session.
Declaration
Swift
var id: String { get } -
Metadata of the Mimi Processor.
Declaration
Swift
var metadata: MimiProcessorMetadata? { get } -
The sound personalization feature associated with this session, if available.
Declaration
Swift
var soundPersonalization: MimiSoundPersonalizationFeature? { get } -
The voice clarity feature controller associated with this session, if available.
Provides activation/deactivation control over the voice clarity feature on the processor and publishes the wrapped
MimiVoiceClarityFeaturewhile the feature is running.This property is non-nil if and only if the session was constructed with voice-clarity data.
Declaration
Swift
var voiceClarity: AnyMimiProcessingFeatureControlling<MimiVoiceClarityFeature>? { get } -
A publisher that emits the suspension state of the session.
Emits
trueif the session is suspended,falseotherwise.Declaration
Swift
var isSuspendedPublisher: AnyPublisher<Bool, Never> { get } -
Indicates whether the processing session is currently suspended.
This property reflects the latest value emitted by
isSuspendedPublisher. Returnstrueif the session is suspended, orfalseif it is active.Declaration
Swift
var isSuspended: Bool { get } -
Suspends a processing session.
Attempts to suspend the current processing session until resumed by calling
resume().Declaration
Swift
func suspend() async throws -> BoolReturn Value
A Boolean indicating the suspension state:
trueif the session is suspended,falseif the session remains active. -
Resumes a suspended processing session.
Attempts to resume the processing session by restoring its previous state.
Declaration
Swift
func resume() async throws -> BoolReturn Value
A Boolean indicating the suspension state:
trueif the session remains suspended,falseif the session is resumed.
MimiProcessingSession Protocol Reference