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.

  • id

    Unique identifier for the processing session.

    Declaration

    Swift

    var id: String { get }
  • The sound personalization feature associated with this session, if available.

    Declaration

    Swift

    var soundPersonalization: MimiSoundPersonalizationFeature? { get }
  • The voice clarity feature associated with this session, if available.

    Provides access to voice clarity personalization domains, such as ambient sound, for the current processing session.

    Declaration

    Swift

    var voiceClarity: MimiVoiceClarityFeature? { get }
  • A publisher that emits the suspension state of the session.

    Emits true if the session is suspended, false otherwise.

    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. Returns true if the session is suspended, or false if 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 -> Bool
    Return Value

    A Boolean indicating the suspension state: true if the session is suspended, false if 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 -> Bool
    Return Value

    A Boolean indicating the suspension state: true if the session remains suspended, false if the session is resumed.