Skip to content

Audio Effects SDK for iOS

Add real-time AI noise suppression to an iOS app with the AudioEffectsSDK Swift package.

The iOS Audio SDK is a Swift package that removes noise from PCM audio on the device. iOS 14 and newer.

Before you start#

Register in the Developer Portal, start an Audio SDK trial and copy your Customer ID.

Add the package#

Add https://github.com/EffectsSDK/audio-effects-sdk-swift-package as a package dependency in Xcode.

import AudioEffectsSDK

Authorize#

let sdkFactory = Factory()
let authResult = try await sdkFactory.auth(customerID: "YOUR_CUSTOMER_ID")
guard authResult.status == .active else { return }

Create a pipeline#

let config = PipelineConfig(type: .pcmSignedInt16, sampleRate: UInt32(sampleRate))
let pipeline = try sdkFactory.newPipeline(config)
pipeline.noiseSuppressionEnabled = true

Process audio#

func processAudio(frames: UnsafeMutableRawPointer, frameNum: UInt32) {
    pipeline.process(input: frames, inputFrameNum: frameNum,
                     output: frames, outputFrameNum: frameNum)
}

Next steps#

View as Markdown · Found a problem? Tell us.