Enable AI noise suppression with adjustable strength on the microphone with the SRTCDeepFilterNet plugin: integration, on/off and strength control, handling unsupported devices and CPU overload, and how a custom capture processor declares that built-in noise suppression should be off.
Overview
SRTCDeepFilterNet is an AI noise suppression plugin based on DeepFilterNet3. It uses the same algorithm, model, and parameters as the Web DeepFilterNet noise suppression plugin, so it sounds the same on every platform. It implements the SDK’s AudioProcessor interface and takes effect once set on SRTCEngine.audioCaptureProcessor, with suppression strength adjustable at runtime and a temporary bypass.The plugin is an optional product in the srtc-swift-sdk package, available since 1.8.0 on both iOS and macOS. Apps that don’t use AI noise suppression don’t need it.
Integration
Add the SRTCDeepFilterNet product to the same app target that depends on SRTC:
In an Xcode project, select SRTCDeepFilterNet under File > Add Package Dependencies.... The model is built into the plugin; you don’t need to copy any extra resources.
Don’t add SRTCDeepFilterNet to the Broadcast Upload Extension for screen sharing. It is for the app process only.
Usage
import SRTCimport SRTCDeepFilterNetfinal class CallViewController: UIViewController { let srtc = SRTCEngine() /// Must be held by your code: the SDK keeps only a weak reference to the processor private var denoiser: DeepFilterNetProcessor? func enableDenoise() { // 1. Hide the noise suppression switch on unsupported devices guard DeepFilterNetProcessor.isSupported else { return } do { // 2. Create the plugin; strength 0–100, default 50 let denoiser = try DeepFilterNetProcessor(suppressionLevel: 50) // 3. If the CPU can't keep up during a call, the plugin pauses suppression and calls back on the main thread denoiser.onOverload = { [weak self] in self?.showToast("Device too slow; AI noise suppression paused") } self.denoiser = denoiser // 4. Takes effect as soon as it's set; you can set it before or after joining srtc.audioCaptureProcessor = denoiser } catch { // Device not supported: SRTCError.featureNotSupported (032) print("Failed to enable AI noise suppression: \(error)") } } func disableDenoise() { srtc.audioCaptureProcessor = nil // Detach and restore the SDK's default audio processing denoiser = nil }}
Adjust the strength or bypass temporarily at runtime without detaching:
denoiser?.setSuppressionLevel(80) // 0–100; higher suppresses moredenoiser?.setEnabled(false) // Bypass: audio passes through unchanged while the processor stays attacheddenoiser?.setEnabled(true) // Resume suppression and clear a pause caused by CPU overload
API
API
Description
static var isSupported: Bool
Whether the current device is supported. Check it before enabling, and hide the switch when unsupported
init(suppressionLevel: Int = 50, modelURL: URL? = nil) throws
Creates the plugin. suppressionLevel is the strength, 0–100; modelURL is normally omitted so the built-in model is used. Throws SRTCError.featureNotSupported on unsupported devices and SRTCError.invalidArgument if the model can’t be found
setSuppressionLevel(_:)
Adjusts the strength (0–100) at runtime
setEnabled(_:)
Turns suppression on or off. With false, audio passes through unchanged; true resumes suppression and clears a pause caused by CPU overload
var suppressionLevel: Int
Current strength, read-only
var isEnabled: Bool
Current on/off state, read-only. An automatic overload pause doesn’t change it
var onOverload: (() -> Void)?
Called when the CPU can’t keep up during a call and suppression has been paused automatically. Runs on the main thread, once per pause
Unsupported devices and CPU overload
AI noise suppression needs a certain amount of CPU power. The SDK handles this in two layers:
Before enabling: a device is unsupported when isSupported is false, and the initializer throws SRTCError.featureNotSupported (low-order code 032; 103032 on iOS, 105032 on macOS). All current Apple devices are supported, but we still recommend checking before enabling, in line with the other platforms.
During a call: if the device stays overloaded (for example, while running other heavy workloads), the plugin switches to bypass automatically so the call doesn’t stutter, and calls onOverload. Tell the user something like “Device too slow; noise suppression paused” and let them decide whether to call setEnabled(true) to turn it back on.
Notes
Your code must hold the plugin instance.audioCaptureProcessor is a weak reference; if you only write srtc.audioCaptureProcessor = try DeepFilterNetProcessor(), the instance is released immediately and suppression has no effect.
When attached, the SDK turns off WebRTC’s built-in software noise suppression and restores it on detach, so two layers of suppression don’t stack and muffle the voice. Echo cancellation and automatic gain control are unaffected.
The system’s voice processing stays on. During calls on iOS / macOS, the system’s own echo cancellation and noise suppression can’t be turned off separately; AI noise suppression runs on top of it. Listen on your target devices before going live.
The model loads in the background (usually in under 1 second). Until it’s loaded, audio passes through unchanged and capture isn’t blocked.
It works only with 48 kHz capture. When capture drops to 8 kHz / 16 kHz (for example, Bluetooth headsets in call mode), it bypasses automatically and resumes when capture returns to 48 kHz.
There is only one audioCaptureProcessor, applied to all channels. To combine it with other processing such as voice changing, chain the calls inside your own processor.
License: DeepFilterNet itself is Apache-2.0/MIT; verify the license of the model weights yourself before distribution.
Declaring 3A requirements in a custom processor
If your own AudioProcessor also needs the built-in processing turned off (for example, when integrating another noise suppression algorithm), additionally conform to AudioProcessingDeclaring to declare its requirements for WebRTC’s built-in 3A. When it’s set as audioCaptureProcessor, the SDK applies the declaration, and restores the defaults when the processor is replaced or cleared:
final class MyDenoiser: NSObject, AudioProcessor, AudioProcessingDeclaring { // false requires it off; nil leaves the SDK default unchanged let audioProcessing = AudioProcessingConstraints(noiseSuppression: false) func audioProcessingInitialize(sampleRate sampleRateHz: Int, channels: Int) {} func audioProcessingProcess(audioBuffer: AudioBuffer) { /* Process in place */ } func audioProcessingRelease() {}}
AudioProcessingConstraints has the same meaning as the same-named type in the Web SDK; see Types for its fields.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"STMLink Docs","description":"STMLink 开发者文档:SRTC 音视频 SDK(频道通信、云录制与直播、语音录制、语音识别)与 SMeeting 会议 SDK(房间、会议管理),覆盖 iOS / Android / Windows / Web / 微信小程序 / C(服务端·嵌入式)多端接入与服务端 API。 STMLink developer docs: the SRTC audio/video SDK (channels, cloud recording and live streaming, voice recording, speech recognition) and the SMeeting conferencing SDK (rooms and meetings), covering client integration on iOS, Android, Windows, Web, WeChat Mini Programs and C (server/embedded), plus the Server API.","colors":{"primary":"#0066FF","light":"#3385FF","dark":"#0052CC"},"logo":{"light":"https://mintcdn.com/freewind/-N23X1jpF3KMqIP_/logo/light.svg?fit=max\u0026auto=format\u0026n=-N23X1jpF3KMqIP_\u0026q=85\u0026s=c87be878176892b493466cf0647c68cc","dark":"https://mintcdn.com/freewind/-N23X1jpF3KMqIP_/logo/dark.svg?fit=max\u0026auto=format\u0026n=-N23X1jpF3KMqIP_\u0026q=85\u0026s=d6697b8422020261e5703917bcf26a6b"},"favicon":"https://mintcdn.com/freewind/-N23X1jpF3KMqIP_/favicon.svg?fit=max\u0026auto=format\u0026n=-N23X1jpF3KMqIP_\u0026q=85\u0026s=dcf59f85b4c1c24462b5f99c37ff73d4","footer":{"socials":{"website":"https://www.stmlink.com"},"links":[{"header":"产品","items":[{"label":"官网","href":"https://www.stmlink.com"},{"label":"SRTC 音视频 SDK","href":"https://docs.stmlink.com/zh/rtc/overview"},{"label":"SMeeting 会议 SDK","href":"https://docs.stmlink.com/zh/meeting/overview"}]},{"header":"支持","items":[{"label":"联系我们","href":"https://www.stmlink.com"}]}]},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"markdown":{"instructions":["对外开放的服务端接口有两组前缀,都用同一套鉴权:`/server/v1/...`(SRTC 与 SMeeting 的主接口)和 `/stm/srvapi/v1/...`(SMeeting 的用户体系,服务端极简对接会用到)。鉴权是 app_id + nonce + timestamp + signature 四个请求头,用 app_key 做 HMAC-SHA256 签名,只能从业务方自己的后端调用。除这两组前缀外的接口均为内部接口,不要建议客户调用。 Public server APIs use two path prefixes with the same authentication: `/server/v1/...` (the main APIs of both SRTC and SMeeting) and `/stm/srvapi/v1/...` (the SMeeting user system, used by server-side low-code integration). Authenticate with four request headers, app_id + nonce + timestamp + signature, where signature is HMAC-SHA256 keyed with app_key; call these APIs only from the customer's own backend. Any other path is internal: never suggest calling it.","app_key 是服务端密钥,绝不能出现在客户端代码、前端配置或移动 App 里。客户端加入频道用的 token 必须由业务方后端签发后下发(SRTC 走 `/server/v1/channel/grant`,SMeeting 走 `/stm/srvapi/v1/member/grant`)。 app_key is a server-side secret and must never appear in client code, frontend config, or a mobile app. The token a client uses to join must be issued by the customer's backend and passed down to the client (SRTC: `/server/v1/channel/grant`; SMeeting: `/stm/srvapi/v1/member/grant`).","SRTC 与 SMeeting 是上下两层不同的产品,术语不通用:SRTC 是音视频底座,说「频道 channel」「加入 / 退出」;SMeeting 建在 SRTC 之上,说「房间 room」「会议 meeting」「进入 / 退出」。回答时按用户所在的层用对应术语,不要把「房间」「会议」安到 SRTC 的接口上,也不要用「频道」「加入 / 离开」描述 SMeeting 的概念(接口标识符原样保留)。 SRTC and SMeeting are two separate layers with different terminology. SRTC is the audio/video foundation: it has channels, and users join and leave a channel. SMeeting is built on top of SRTC: it has rooms and meetings, and members enter and exit a meeting. Answer in the terms of the layer the user is working with: never apply \"room\" or \"meeting\" to SRTC APIs, and never describe SMeeting concepts in prose with \"channel\", \"join\", or \"leave\" (API identifiers such as `force_join` keep their literal names).","同一能力在各端 SDK 里的包名、类名、方法名并不相同。写示例代码时请使用文档中该端自己的 API,不要把一个端的写法套到另一个端上。苹果平台每个产品都有两套 SDK(Swift 原生与 Objective-C),两套 API 不能混用。 Package, class, and method names differ between platform SDKs for the same capability. In sample code, use the API documented for that platform; never carry one platform's code over to another. On Apple platforms each product ships two SDKs (native Swift and Objective-C) whose APIs must not be mixed."]},"styling":{"latex":false},"navigation":{"languages":[{"language":"zh","href":"zh/rtc/overview"},{"language":"en","footer":{"socials":{"website":"https://www.stmlink.com/en"},"links":[{"header":"Products","items":[{"label":"Website","href":"https://www.stmlink.com/en"},{"label":"SRTC Audio \u0026 Video SDK","href":"https://docs.stmlink.com/en/rtc/overview"},{"label":"SMeeting Conferencing SDK","href":"https://docs.stmlink.com/en/meeting/overview"}]},{"header":"Support","items":[{"label":"Contact us","href":"https://www.stmlink.com/en"}]}]},"href":"en/rtc/overview"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"freewind","hasAudioNarration":false,"actualSubdomain":"freewind","customDomains":["docs.stmlink.com"],"gitSource":{"type":"github","owner":"seastart","repo":"stmlink-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10d74a9ffae5051c40d9df"},"entitlements":{},"buildId":"6b1126a7c2332a331c7a888e","clientVersion":"0.0.4428","searchFilterCounts":[{"language":"zh","tag":"SRTC 音视频 SDK","count":175},{"language":"en","tag":"SRTC Audio \u0026 Video SDK","count":160},{"language":"zh","tag":"SMeeting 会议 SDK","count":154},{"language":"en","tag":"SMeeting Conferencing SDK","count":127},{"language":"zh","tag":"接口文档","count":110},{"language":"en","tag":"API reference","count":108},{"language":"zh","tag":"进阶实践","count":78},{"language":"en","tag":"Android SDK","count":66},{"language":"zh","tag":"Android SDK","count":66},{"language":"en","tag":"Advanced","count":57},{"language":"en","tag":"Swift SDK (iOS/macOS)","count":47},{"language":"zh","tag":"Swift SDK(iOS/macOS)","count":47},{"language":"zh","tag":"HarmonyOS SDK","count":42},{"language":"en","tag":"Windows SDK","count":41},{"language":"zh","tag":"Windows SDK","count":41},{"language":"en","tag":"Web SDK","count":33},{"language":"zh","tag":"Web SDK","count":33},{"language":"en","tag":"Server API","count":32},{"language":"zh","tag":"服务端 API","count":32},{"language":"en","tag":"iOS SDK (Objective-C)","count":27}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"en/rtc/swift/advanced/deepfilternet","slug":"/en/rtc/swift/advanced/deepfilternet","pageMetadata":{"title":"AI noise suppression (DeepFilterNet)","description":"Enable AI noise suppression with adjustable strength on the microphone with the SRTCDeepFilterNet plugin: integration, on/off and strength control, handling unsupported devices and CPU overload, and how a custom capture processor declares that built-in noise suppression should be off.","href":"/en/rtc/swift/advanced/deepfilternet"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Enable AI noise suppression with adjustable strength on the microphone with the SRTCDeepFilterNet plugin: integration, on/off and strength control, handling unsupported devices and CPU overload, and how a custom capture processor declares that built-in noise suppression should be off.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,hr:`hr`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`3`,id:`overview`,children:`Overview`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`SRTCDeepFilterNet`}),` is an AI noise suppression plugin based on `,_jsx(_components.a,{href:`https://github.com/Rikorose/DeepFilterNet`,children:`DeepFilterNet3`}),`. It uses the same algorithm, model, and parameters as the Web `,_jsx(_components.a,{href:`/en/rtc/web/advanced/deepfilternet`,children:`DeepFilterNet noise suppression plugin`}),`, so it sounds the same on every platform. It implements the SDK’s `,_jsx(_components.code,{children:`AudioProcessor`}),` interface and takes effect once set on `,_jsx(_components.code,{children:`SRTCEngine.audioCaptureProcessor`}),`, with `,_jsx(_components.strong,{children:`suppression strength adjustable at runtime`}),` and a `,_jsx(_components.strong,{children:`temporary bypass`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`The plugin is an `,_jsx(_components.strong,{children:`optional product`}),` in the `,_jsx(_components.code,{children:`srtc-swift-sdk`}),` package, available since `,_jsx(_components.code,{children:`1.8.0`}),` on both iOS and macOS. Apps that don’t use AI noise suppression don’t need it.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`integration`,children:`Integration`}),`\n`,_jsxs(_components.p,{children:[`Add the `,_jsx(_components.code,{children:`SRTCDeepFilterNet`}),` product to the same app target that depends on `,_jsx(_components.code,{children:`SRTC`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Package.swift`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`dependencies`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`package`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`url`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://github.com/seastart/srtc-swift-sdk.git\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1.8.0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`targets`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`target`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YourApp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` dependencies`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`product`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"SRTC\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`package`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"srtc-swift-sdk\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`product`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"SRTCDeepFilterNet\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`package`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"srtc-swift-sdk\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` )`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`In an Xcode project, select `,_jsx(_components.code,{children:`SRTCDeepFilterNet`}),` under `,_jsx(_components.code,{children:`File > Add Package Dependencies...`}),`. The model is built into the plugin; you don’t need to copy any extra resources.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Don’t add `,_jsx(_components.code,{children:`SRTCDeepFilterNet`}),` to the Broadcast Upload Extension for screen sharing. It is for the app process only.`]})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`usage`,children:`Usage`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`32`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`32`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` SRTC`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` SRTCDeepFilterNet`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`final`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` class`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` CallViewController`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`UIViewController `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` srtc `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` SRTCEngine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` /// Must be held by your code: the SDK keeps only a weak reference to the processor`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` private`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` var`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` denoiser: DeepFilterNetProcessor`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` func`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` enableDenoise`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // 1. Hide the noise suppression switch on unsupported devices`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` guard`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` DeepFilterNetProcessor.isSupported `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` do`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // 2. Create the plugin; strength 0–100, default 50`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` denoiser `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` try`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` DeepFilterNetProcessor`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`suppressionLevel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`50`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // 3. If the CPU can't keep up during a call, the plugin pauses suppression and calls back on the main thread`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` denoiser.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`onOverload`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { [`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`weak`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` self`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` self`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`showToast`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Device too slow; AI noise suppression paused\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` self`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`denoiser`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` denoiser`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // 4. Takes effect as soon as it's set; you can set it before or after joining`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` srtc.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`audioCaptureProcessor`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` denoiser`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`catch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Device not supported: SRTCError.featureNotSupported (032)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Failed to enable AI noise suppression: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`\\\\(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`error`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`)`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` func`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` disableDenoise`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` srtc.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`audioCaptureProcessor`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` nil`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Detach and restore the SDK's default audio processing`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` denoiser `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` nil`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Adjust the strength or bypass temporarily at runtime without detaching:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`denoiser`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`setSuppressionLevel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`80`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// 0–100; higher suppresses more`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`denoiser`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`setEnabled`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Bypass: audio passes through unchanged while the processor stays attached`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`denoiser`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`setEnabled`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Resume suppression and clear a pause caused by CPU overload`})]}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`api`,children:`API`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`API`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`static var isSupported: Bool`})}),_jsx(_components.td,{children:`Whether the current device is supported. Check it before enabling, and hide the switch when unsupported`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`init(suppressionLevel: Int = 50, modelURL: URL? = nil) throws`})}),_jsxs(_components.td,{children:[`Creates the plugin. `,_jsx(_components.code,{children:`suppressionLevel`}),` is the strength, 0–100; `,_jsx(_components.code,{children:`modelURL`}),` is normally omitted so the built-in model is used. Throws `,_jsx(_components.code,{children:`SRTCError.featureNotSupported`}),` on unsupported devices and `,_jsx(_components.code,{children:`SRTCError.invalidArgument`}),` if the model can’t be found`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`setSuppressionLevel(_:)`})}),_jsx(_components.td,{children:`Adjusts the strength (0–100) at runtime`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`setEnabled(_:)`})}),_jsxs(_components.td,{children:[`Turns suppression on or off. With `,_jsx(_components.code,{children:`false`}),`, audio passes through unchanged; `,_jsx(_components.code,{children:`true`}),` resumes suppression and clears a pause caused by CPU overload`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`var suppressionLevel: Int`})}),_jsx(_components.td,{children:`Current strength, read-only`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`var isEnabled: Bool`})}),_jsx(_components.td,{children:`Current on/off state, read-only. An automatic overload pause doesn’t change it`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`var onOverload: (() -> Void)?`})}),_jsx(_components.td,{children:`Called when the CPU can’t keep up during a call and suppression has been paused automatically. Runs on the main thread, once per pause`})]})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`unsupported-devices-and-cpu-overload`,children:`Unsupported devices and CPU overload`}),`\n`,_jsx(_components.p,{children:`AI noise suppression needs a certain amount of CPU power. The SDK handles this in two layers:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Before enabling`}),`: a device is unsupported when `,_jsx(_components.code,{children:`isSupported`}),` is `,_jsx(_components.code,{children:`false`}),`, and the initializer throws `,_jsx(_components.code,{children:`SRTCError.featureNotSupported`}),` (low-order code `,_jsx(_components.code,{children:`032`}),`; `,_jsx(_components.code,{children:`103032`}),` on iOS, `,_jsx(_components.code,{children:`105032`}),` on macOS). All current Apple devices are supported, but we still recommend checking before enabling, in line with the other platforms.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`During a call`}),`: if the device stays overloaded (for example, while running other heavy workloads), the plugin switches to bypass automatically so the call doesn’t stutter, and calls `,_jsx(_components.code,{children:`onOverload`}),`. Tell the user something like “Device too slow; noise suppression paused” and let them decide whether to call `,_jsx(_components.code,{children:`setEnabled(true)`}),` to turn it back on.`]}),`\n`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`notes`,children:`Notes`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Your code must hold the plugin instance.`}),` `,_jsx(_components.code,{children:`audioCaptureProcessor`}),` is a weak reference; if you only write `,_jsx(_components.code,{children:`srtc.audioCaptureProcessor = try DeepFilterNetProcessor()`}),`, the instance is released immediately and suppression has no effect.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`When attached, the SDK turns off WebRTC’s built-in software noise suppression`}),` and restores it on detach, so two layers of suppression don’t stack and muffle the voice. Echo cancellation and automatic gain control are unaffected.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`The system’s voice processing stays on.`}),` During calls on iOS / macOS, the system’s own echo cancellation and noise suppression can’t be turned off separately; AI noise suppression runs on top of it. Listen on your target devices before going live.`]}),`\n`,_jsx(_components.li,{children:`The model loads in the background (usually in under 1 second). Until it’s loaded, audio passes through unchanged and capture isn’t blocked.`}),`\n`,_jsx(_components.li,{children:`It works only with 48 kHz capture. When capture drops to 8 kHz / 16 kHz (for example, Bluetooth headsets in call mode), it bypasses automatically and resumes when capture returns to 48 kHz.`}),`\n`,_jsxs(_components.li,{children:[`There is only one `,_jsx(_components.code,{children:`audioCaptureProcessor`}),`, applied to all channels. To combine it with other processing such as voice changing, chain the calls inside your own processor.`]}),`\n`,_jsx(_components.li,{children:`License: DeepFilterNet itself is Apache-2.0/MIT; verify the license of the model weights yourself before distribution.`}),`\n`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`declaring-3a-requirements-in-a-custom-processor`,children:`Declaring 3A requirements in a custom processor`}),`\n`,_jsxs(_components.p,{children:[`If your own `,_jsx(_components.code,{children:`AudioProcessor`}),` also needs the built-in processing turned off (for example, when integrating another noise suppression algorithm), additionally conform to `,_jsx(_components.code,{children:`AudioProcessingDeclaring`}),` to declare its requirements for WebRTC’s built-in 3A. When it’s set as `,_jsx(_components.code,{children:`audioCaptureProcessor`}),`, the SDK applies the declaration, and restores the defaults when the processor is replaced or cleared:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`final`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` class`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` MyDenoiser`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`NSObject`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`AudioProcessor`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`AudioProcessingDeclaring `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // false requires it off; nil leaves the SDK default unchanged`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` audioProcessing `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` AudioProcessingConstraints`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`noiseSuppression`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` func`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` audioProcessingInitialize`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`sampleRate`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` sampleRateHz`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Int`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`channels`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Int`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` func`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` audioProcessingProcess`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`audioBuffer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: AudioBuffer) { `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`/* Process in place */`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` func`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` audioProcessingRelease`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`AudioProcessingConstraints`}),` has the same meaning as the same-named type in the Web SDK; see `,_jsx(_components.a,{href:`/en/rtc/swift/types#audioprocessingconstraints`,children:`Types`}),` for its fields.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"AI noise suppression (DeepFilterNet)","description":"Enable AI noise suppression with adjustable strength on the microphone with the SRTCDeepFilterNet plugin: integration, on/off and strength control, handling unsupported devices and CPU overload, and how a custom capture processor declares that built-in noise suppression should be off.","href":"/en/rtc/swift/advanced/deepfilternet"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":3,"children":[]},{"title":"Integration","slug":"integration","depth":3,"children":[]},{"title":"Usage","slug":"usage","depth":3,"children":[]},{"title":"API","slug":"api","depth":3,"children":[]},{"title":"Unsupported devices and CPU overload","slug":"unsupported-devices-and-cpu-overload","depth":3,"children":[]},{"title":"Notes","slug":"notes","depth":3,"children":[]},{"title":"Declaring 3A requirements in a custom processor","slug":"declaring-3a-requirements-in-a-custom-processor","depth":3,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"freewind","siteName":"STMLink Docs","title":"AI noise suppression (DeepFilterNet) - STMLink Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"zh":{"href":"/zh/rtc/swift/advanced/deepfilternet","matchLevel":1},"en":{"href":"/en/rtc/swift/advanced/deepfilternet","matchLevel":0}}},"lastModified":"2026-11-16T14:51:51.313Z","originalFileLocation":"en/rtc/swift/advanced/deepfilternet.md","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Enable AI noise suppression with adjustable strength on the microphone with the SRTCDeepFilterNet plugin: integration, on/off and strength control, handling unsupported devices and CPU overload, and how a custom capture processor declares that built-in noise suppression should be off.\">\u003cmeta data-mint-head name=\"application-name\" content=\"STMLink Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/freewind/ZKlibvJ7BVLSobx8/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/freewind/ZKlibvJ7BVLSobx8/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/freewind/ZKlibvJ7BVLSobx8/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/freewind/ZKlibvJ7BVLSobx8/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/freewind/ZKlibvJ7BVLSobx8/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/freewind/ZKlibvJ7BVLSobx8/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/freewind/ZKlibvJ7BVLSobx8/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/freewind/ZKlibvJ7BVLSobx8/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/freewind/ZKlibvJ7BVLSobx8/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"AI noise suppression (DeepFilterNet) - STMLink Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Enable AI noise suppression with adjustable strength on the microphone with the SRTCDeepFilterNet plugin: integration, on/off and strength control, handling unsupported devices and CPU overload, and how a custom capture processor declares that built-in noise suppression should be off.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"STMLink Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.stmlink.com/en/rtc/swift/advanced/deepfilternet\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://freewind.mintlify.site/_mintlify/api/og/v2?division=Advanced\u0026amp;title=AI+noise+suppression+%28DeepFilterNet%29\u0026amp;description=Enable+AI+noise+suppression+with+adjustable+strength+on+the+microphone+with+the+SRTCDeepFilterNet+plugin%3A+integration%2C+on%2Foff+and+strength+control%2C+handling+uns\u0026amp;theme=3db2af3ca713d1d9c29377dc\u0026amp;signature=1787e304d8025bb85795a39d0f661ed676659a372fa9f45b65589b84ea016dfe\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"AI noise suppression (DeepFilterNet) - STMLink Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Enable AI noise suppression with adjustable strength on the microphone with the SRTCDeepFilterNet plugin: integration, on/off and strength control, handling unsupported devices and CPU overload, and how a custom capture processor declares that built-in noise suppression should be off.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://freewind.mintlify.site/_mintlify/api/og/v2?division=Advanced\u0026amp;title=AI+noise+suppression+%28DeepFilterNet%29\u0026amp;description=Enable+AI+noise+suppression+with+adjustable+strength+on+the+microphone+with+the+SRTCDeepFilterNet+plugin%3A+integration%2C+on%2Foff+and+strength+control%2C+handling+uns\u0026amp;theme=3db2af3ca713d1d9c29377dc\u0026amp;signature=1787e304d8025bb85795a39d0f661ed676659a372fa9f45b65589b84ea016dfe\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/freewind/ZKlibvJ7BVLSobx8/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"STMLink Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0066FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.stmlink.com/en/rtc/swift/advanced/deepfilternet\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/rtc/swift/advanced/deepfilternet.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.stmlink.com/en/rtc/swift/advanced/deepfilternet\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.stmlink.com/zh/rtc/swift/advanced/deepfilternet\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.stmlink.com/zh/rtc/swift/advanced/deepfilternet\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.stmlink.com/#organization\",\"name\":\"STMLink Docs\",\"url\":\"https://docs.stmlink.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/freewind/-N23X1jpF3KMqIP_/logo/light.svg?fit=max\u0026auto=format\u0026n=-N23X1jpF3KMqIP_\u0026q=85\u0026s=c87be878176892b493466cf0647c68cc\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.stmlink.com#website\",\"name\":\"STMLink Docs\",\"url\":\"https://docs.stmlink.com\",\"publisher\":{\"@id\":\"https://docs.stmlink.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.stmlink.com/en/rtc/swift/advanced/deepfilternet#webpage\",\"url\":\"https://docs.stmlink.com/en/rtc/swift/advanced/deepfilternet\",\"name\":\"AI noise suppression (DeepFilterNet)\",\"description\":\"Enable AI noise suppression with adjustable strength on the microphone with the SRTCDeepFilterNet plugin: integration, on/off and strength control, handling unsupported devices and CPU overload, and how a custom capture processor declares that built-in noise suppression should be off.\",\"dateModified\":\"2026-11-16T14:51:51.313Z\",\"isPartOf\":{\"@id\":\"https://docs.stmlink.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.stmlink.com/en/rtc/swift/advanced/deepfilternet#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.stmlink.com/en/rtc/swift/advanced/deepfilternet#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Swift SDK (iOS/macOS)\",\"item\":\"https://docs.stmlink.com/en/rtc/swift/integration\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Advanced\",\"item\":\"https://docs.stmlink.com/en/rtc/swift/advanced/mute-vs-unpublish\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"AI noise suppression (DeepFilterNet)\",\"item\":\"https://docs.stmlink.com/en/rtc/swift/advanced/deepfilternet\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.stmlink.com/en/rtc/swift/advanced/deepfilternet#article\",\"headline\":\"AI noise suppression (DeepFilterNet)\",\"name\":\"AI noise suppression (DeepFilterNet)\",\"description\":\"Enable AI noise suppression with adjustable strength on the microphone with the SRTCDeepFilterNet plugin: integration, on/off and strength control, handling unsupported devices and CPU overload, and how a custom capture processor declares that built-in noise suppression should be off.\",\"url\":\"https://docs.stmlink.com/en/rtc/swift/advanced/deepfilternet\",\"mainEntityOfPage\":{\"@id\":\"https://docs.stmlink.com/en/rtc/swift/advanced/deepfilternet#webpage\"},\"dateModified\":\"2026-11-16T14:51:51.313Z\",\"publisher\":{\"@id\":\"https://docs.stmlink.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.stmlink.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"STMLink Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"STMLink Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/rtc/swift/advanced/deepfilternet.md","siteName":"STMLink Docs","nav":{"global":null,"languages":[{"language":"zh","pages":[{"title":"zh","href":"/zh/rtc/swift/advanced/deepfilternet"}]},{"language":"en","footer":{"socials":{"website":"https://www.stmlink.com/en"},"links":[{"header":"Products","items":[{"label":"Website","href":"https://www.stmlink.com/en"},{"label":"SRTC Audio \u0026 Video SDK","href":"https://docs.stmlink.com/en/rtc/overview"},{"label":"SMeeting Conferencing SDK","href":"https://docs.stmlink.com/en/meeting/overview"}]},{"header":"Support","items":[{"label":"Contact us","href":"https://www.stmlink.com/en"}]}]},"tabs":[{"tab":"SRTC Audio \u0026 Video SDK","groups":[{"group":"Overview","pages":[{"title":"Overview","href":"/en/rtc/overview"},{"title":"Choosing SRTC or SMeeting","href":"/en/choose"},{"title":"Quickstart","href":"/en/rtc/quickstart"},{"title":"Key concepts","href":"/en/rtc/key-concepts"},{"title":"Token and authentication","href":"/en/rtc/token"},{"title":"Network lines","href":"/en/rtc/network-line"},{"title":"Whiteboard","href":"/en/rtc/whiteboard"},{"title":"Error code format and unified table","href":"/en/rtc/error-codes"},{"title":"Build with AI","href":"/en/ai"}]},{"group":"Web SDK","pages":[{"title":"Integration","href":"/en/rtc/web/integration"},{"title":"Quickstart","href":"/en/rtc/web/quickstart"},{"title":"Key concepts","href":"/en/rtc/web/key-concepts"},{"title":"Channel messages","href":"/en/rtc/web/channel-messages"},{"title":"Network quality","href":"/en/rtc/web/network-quality"},{"group":"Advanced","pages":[{"title":"Multi-channel","href":"/en/rtc/web/advanced/multi-channel"},{"title":"Mute vs. unpublish","href":"/en/rtc/web/advanced/mute-vs-unpublish"},{"title":"Simulcast and resolution","href":"/en/rtc/web/advanced/video-stream-layers"},{"title":"Screen sharing","href":"/en/rtc/web/advanced/screen-sharing"},{"title":"Multi-window and dual-screen video layout","href":"/en/rtc/web/advanced/multi-window-video-layout"},{"title":"Custom tracks","href":"/en/rtc/web/advanced/custom-track"},{"title":"Local recording","href":"/en/rtc/web/advanced/local-recording"},{"title":"Audio/video processors (plugins)","href":"/en/rtc/web/advanced/audio-processor"},{"title":"RNN noise suppression plugin","href":"/en/rtc/web/advanced/rnnoise"},{"title":"DeepFilterNet noise suppression plugin","href":"/en/rtc/web/advanced/deepfilternet"}]},{"group":"API reference","pages":[{"title":"SRTC","href":"/en/rtc/web/api-reference/SRTC"},{"title":"media-tracks","href":"/en/rtc/web/api-reference/media-tracks"}]},{"title":"Events","href":"/en/rtc/web/events"},{"title":"Types","href":"/en/rtc/web/types"},{"title":"Error codes","href":"/en/rtc/web/error-codes"},{"title":"Changelog","href":"/en/rtc/web/changelog"},{"title":"FAQ","href":"/en/rtc/web/faq"}]},{"group":"Android SDK","pages":[{"title":"Integration","href":"/en/rtc/android/integration"},{"title":"Quickstart","href":"/en/rtc/android/quickstart"},{"title":"Network quality","href":"/en/rtc/android/network-quality"},{"group":"Advanced","pages":[{"title":"Multi-channel","href":"/en/rtc/android/advanced/multi-channel"},{"title":"Audio routing","href":"/en/rtc/android/advanced/audio-routing"},{"title":"Custom tracks","href":"/en/rtc/android/advanced/custom-track"},{"title":"AI noise suppression (DeepFilterNet)","href":"/en/rtc/android/advanced/deepfilternet"},{"title":"Whiteboard integration","href":"/en/rtc/android/advanced/whiteboard"}]},{"group":"API reference","pages":[{"title":"RTCEngine","href":"/en/rtc/android/api-reference/RTCEngine"},{"title":"RTCChannel","href":"/en/rtc/android/api-reference/RTCChannel"},{"title":"RTCEngineEvent","href":"/en/rtc/android/api-reference/RTCEngineEvent"},{"title":"LocalCameraTrack","href":"/en/rtc/android/api-reference/LocalCameraTrack"},{"title":"LocalScreenTrack","href":"/en/rtc/android/api-reference/LocalScreenTrack"},{"title":"LocalMicTrack","href":"/en/rtc/android/api-reference/LocalMicTrack"},{"title":"LocalCustomVideoTrack","href":"/en/rtc/android/api-reference/LocalCustomVideoTrack"},{"title":"RemoteVideoTrack","href":"/en/rtc/android/api-reference/RemoteVideoTrack"},{"title":"RemoteAudioMixTrack","href":"/en/rtc/android/api-reference/RemoteAudioMixTrack"},{"title":"RTCClientEvent","href":"/en/rtc/android/api-reference/RTCClientEvent"},{"title":"RTCMediaEvent","href":"/en/rtc/android/api-reference/RTCMediaEvent"},{"title":"RTCCameraDeviceEvent","href":"/en/rtc/android/api-reference/RTCCameraDeviceEvent"},{"title":"RTCMicDeviceEvent","href":"/en/rtc/android/api-reference/RTCMicDeviceEvent"},{"title":"RTCLocalAudioFrameEvent","href":"/en/rtc/android/api-reference/RTCLocalAudioFrameEvent"},{"title":"RTCImEvent","href":"/en/rtc/android/api-reference/RTCImEvent"},{"title":"AudioRouterManager","href":"/en/rtc/android/api-reference/AudioRouterManager"},{"title":"LogUtil","href":"/en/rtc/android/api-reference/LogUtil"}]},{"group":"Presets","pages":[{"title":"Camera preset","href":"/en/rtc/android/presets/camera"},{"title":"Microphone preset","href":"/en/rtc/android/presets/microphone"},{"title":"Screen sharing preset","href":"/en/rtc/android/presets/screen-sharing"},{"title":"Custom video preset","href":"/en/rtc/android/presets/custom-video"}]},{"title":"Types","href":"/en/rtc/android/types"},{"title":"Enums","href":"/en/rtc/android/enums"},{"title":"Media quality","href":"/en/rtc/android/media-quality"},{"title":"Error codes","href":"/en/rtc/android/error-codes"},{"title":"Changelog","href":"/en/rtc/android/changelog"}]},{"group":"Windows SDK","pages":[{"title":"Integration","href":"/en/rtc/windows/integration"},{"group":"Quickstart","pages":[{"title":"C++ Quickstart","sidebarTitle":"C++","href":"/en/rtc/windows/quickstart-cpp"},{"title":"C# Quickstart","sidebarTitle":"C#","href":"/en/rtc/windows/quickstart-csharp"}]},{"group":"API reference","pages":[{"title":"IRTCEngine","href":"/en/rtc/windows/api-reference/IRTCEngine"},{"title":"IRTCEngineEvent","href":"/en/rtc/windows/api-reference/IRTCEngineEvent"},{"title":"IRTCChannel","href":"/en/rtc/windows/api-reference/IRTCChannel"},{"title":"IRTCChannelEvent","href":"/en/rtc/windows/api-reference/IRTCChannelEvent"},{"title":"IRTCRecord","href":"/en/rtc/windows/api-reference/IRTCRecord"},{"title":"IRTCLocalScreenTrack","href":"/en/rtc/windows/api-reference/IRTCLocalScreenTrack"},{"title":"IRTCLocalCameraTrack","href":"/en/rtc/windows/api-reference/IRTCLocalCameraTrack"},{"title":"IRTCLocalMicTrack","href":"/en/rtc/windows/api-reference/IRTCLocalMicTrack"},{"title":"IRTCLocalVideoTrack","href":"/en/rtc/windows/api-reference/IRTCLocalVideoTrack"},{"title":"IRTCLocalAudioTrack","href":"/en/rtc/windows/api-reference/IRTCLocalAudioTrack"},{"title":"IRTCRemoteVideoTrack","href":"/en/rtc/windows/api-reference/IRTCRemoteVideoTrack"},{"title":"IRTCRemoteAudioTrack","href":"/en/rtc/windows/api-reference/IRTCRemoteAudioTrack"},{"title":"IRTCCustomVideoTrack","href":"/en/rtc/windows/api-reference/IRTCCustomVideoTrack"},{"title":"IRTCCustomAudioTrack","href":"/en/rtc/windows/api-reference/IRTCCustomAudioTrack"},{"title":"IRTCView","href":"/en/rtc/windows/api-reference/IRTCView"},{"title":"IRTCTrack","href":"/en/rtc/windows/api-reference/IRTCTrack"},{"title":"IRTCChannelSetting","href":"/en/rtc/windows/api-reference/IRTCChannelSetting"}]},{"title":"Types","href":"/en/rtc/windows/types"},{"title":"Enums","href":"/en/rtc/windows/enums"},{"title":"Error codes","href":"/en/rtc/windows/error-codes"},{"title":"Changelog","href":"/en/rtc/windows/changelog"}]},{"group":"Swift SDK (iOS/macOS)","pages":[{"title":"Integration","href":"/en/rtc/swift/integration"},{"title":"Quickstart","href":"/en/rtc/swift/quickstart"},{"title":"Key concepts","href":"/en/rtc/swift/key-concepts"},{"group":"Advanced","pages":[{"title":"Mute vs. unpublish","href":"/en/rtc/swift/advanced/mute-vs-unpublish"},{"title":"Device management","href":"/en/rtc/swift/advanced/device-management"},{"title":"Audio routing (iOS)","href":"/en/rtc/swift/advanced/audio-routing"},{"title":"Screen sharing","href":"/en/rtc/swift/advanced/screen-sharing"},{"title":"Virtual background","description":"Virtual background in the SRTC Swift SDK: person segmentation for background blur or replacement, no license key. Why enabling it once covers all camera tracks, why camera switches need no extra work, two frame-rate settings for low-end devices, and why it's available on iOS only.","href":"/en/rtc/swift/advanced/virtual-background"},{"title":"AI noise suppression (DeepFilterNet)","href":"/en/rtc/swift/advanced/deepfilternet"},{"title":"Multi-channel","description":"Join multiple channels at once with the SRTC Swift SDK: joining and leaving each Channel, how engine-level tracks are reused across channels, when capture is released, the hard constraint on publishing audio to multiple channels, and per-channel events.","href":"/en/rtc/swift/advanced/multi-channel"},{"title":"Call quality and active speakers","href":"/en/rtc/swift/advanced/call-quality"},{"title":"Custom tracks","href":"/en/rtc/swift/advanced/custom-track"}]},{"group":"API reference","pages":[{"title":"SRTCEngine","href":"/en/rtc/swift/api-reference/SRTCEngine"},{"title":"Channel and Track","href":"/en/rtc/swift/api-reference/media-tracks"}]},{"title":"Events","href":"/en/rtc/swift/events"},{"title":"Types","href":"/en/rtc/swift/types"},{"title":"Error codes","href":"/en/rtc/swift/error-codes"},{"title":"Changelog","href":"/en/rtc/swift/changelog"}]},{"group":"iOS SDK (Objective-C)","pages":[{"title":"Integration","href":"/en/rtc/ios/integration"},{"title":"Quickstart","href":"/en/rtc/ios/quickstart"},{"title":"IM","href":"/en/rtc/ios/instant-messaging"},{"group":"Advanced","pages":[{"title":"Screen recording","href":"/en/rtc/ios/advanced/screen-recording"},{"title":"Beauty filter","href":"/en/rtc/ios/advanced/beauty"},{"title":"Virtual background","href":"/en/rtc/ios/advanced/virtual-background"}]},{"group":"API reference","pages":[{"title":"RTCEngineKit","href":"/en/rtc/ios/api-reference/RTCEngineKit"},{"title":"RTCEngineChannel","href":"/en/rtc/ios/api-reference/RTCEngineChannel"},{"title":"RTCEngineDelegate","href":"/en/rtc/ios/api-reference/RTCEngineDelegate"},{"title":"RTCEngineChannelDelegate","href":"/en/rtc/ios/api-reference/RTCEngineChannelDelegate"},{"title":"RTCEngineIMDelegate","href":"/en/rtc/ios/api-reference/RTCEngineIMDelegate"}]},{"title":"Types","href":"/en/rtc/ios/types"},{"title":"Error codes","href":"/en/rtc/ios/error-codes"},{"title":"Changelog","href":"/en/rtc/ios/changelog"},{"title":"FAQ","href":"/en/rtc/ios/faq"}]},{"group":"C SDK (server/embedded)","pages":[{"title":"Integration","href":"/en/rtc/capi/integration"},{"title":"Quickstart","href":"/en/rtc/capi/quickstart"},{"group":"Advanced","pages":[{"title":"Composite stream (program)","href":"/en/rtc/capi/advanced/mcu"},{"title":"SeaStart advanced features","href":"/en/rtc/capi/advanced/seastart"},{"title":"Custom messages","href":"/en/rtc/capi/advanced/custom-msg"}]},{"group":"API reference","pages":[{"title":"Instance and channel","href":"/en/rtc/capi/api-reference/engine"},{"title":"Subscribing and receiving","href":"/en/rtc/capi/api-reference/subscribe"},{"title":"Publishing","href":"/en/rtc/capi/api-reference/publish"},{"title":"User info queries","href":"/en/rtc/capi/api-reference/users"}]},{"title":"Types","href":"/en/rtc/capi/types"},{"title":"Error codes","href":"/en/rtc/capi/error-codes"},{"title":"Changelog","href":"/en/rtc/capi/changelog"}]},{"group":"Python SDK (server-side AI)","pages":[{"title":"Integration","href":"/en/rtc/python/integration"},{"title":"Quickstart","href":"/en/rtc/python/quickstart"},{"group":"Advanced","pages":[{"title":"Voice AI agent guide","href":"/en/rtc/python/advanced/ai-agent"},{"title":"Integrating pipecat","href":"/en/rtc/python/advanced/pipecat"}]},{"group":"API reference","pages":[{"title":"Channel","href":"/en/rtc/python/api-reference/channel"},{"title":"Event callbacks","href":"/en/rtc/python/api-reference/events"},{"title":"Audio and video data","href":"/en/rtc/python/api-reference/audio"}]},{"title":"Types","href":"/en/rtc/python/types"},{"title":"Error codes","href":"/en/rtc/python/error-codes"},{"title":"Changelog","href":"/en/rtc/python/changelog"}]},{"group":"Server API","pages":[{"title":"Overview","href":"/en/rtc/server-api/overview"},{"group":"Guides","pages":[{"title":"Cloud recording and stream mixing guide","href":"/en/rtc/server-api/guides/recording"},{"title":"Media output guide","href":"/en/rtc/server-api/guides/media-output"},{"title":"Callback events guide","href":"/en/rtc/server-api/guides/callbacks"},{"title":"Device integration guide","href":"/en/rtc/server-api/guides/agents"}]},{"group":"API reference","pages":[{"title":"Channel","href":"/en/rtc/server-api/channel"},{"title":"Cloud recording and stream mixing","href":"/en/rtc/server-api/mcu"},{"title":"Per-speaker voice recording","href":"/en/rtc/server-api/talkrec"},{"title":"Device integration","href":"/en/rtc/server-api/agent"},{"title":"IM messages","href":"/en/rtc/server-api/im"},{"title":"Whiteboard","href":"/en/rtc/server-api/white-board"},{"title":"Transcription","href":"/en/rtc/server-api/asr"},{"title":"Meeting minutes","href":"/en/rtc/server-api/ai"},{"title":"Simultaneous Interpretation","href":"/en/rtc/server-api/interp"},{"title":"Media output","href":"/en/rtc/server-api/stream"},{"title":"Network ID","href":"/en/rtc/server-api/network"}]},{"title":"Error codes","href":"/en/rtc/server-api/error-codes"},{"title":"Reference backend implementation","href":"/en/rtc/server-api/server-demo"}]}]},{"tab":"SMeeting Conferencing SDK","pages":[{"title":"SMeeting Conferencing SDK","href":"/en/meeting/overview"}]},{"tab":"Product \u0026 deployment","pages":[{"title":"Product \u0026 deployment","href":"/en/product/overview"}]}]}]},"basePath":"","title":"AI noise suppression (DeepFilterNet) - STMLink Docs","deploymentId":"dpl_4dgnk6TA5fUgboKHTvWWyeqm3idh","buildId":"dpl_4dgnk6TA5fUgboKHTvWWyeqm3idh","dynamics":[],"chunks":[]}