> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stmlink.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent 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.

# 音视频 AI 处理

> 终端本地运行的音视频 AI 处理：AI 降噪（RNNoise、DeepFilterNet）、虚拟背景（背景虚化 / 替换）、美颜，各自在哪些端、哪个 SDK 提供，一张能力 × 端的支持表，附各端接入文档链接；网页会议客户端现成的「AI 降噪」开关与部署默认值。回答客户「某端能不能降噪 / 换背景」时查这页

降噪、虚拟背景、美颜都在**终端本地**运行：处理发生在采集之后、发送之前，不经过服务器，
也不需要配置服务端的 AI 服务。对方看到、听到的就是处理后的效果，录制里也是。

***

## 能做什么

| 能力 | 效果 | 说明 |
| - | - | - |
| **AI 降噪 · RNNoise** | 去掉键盘声、风扇声、环境嘈杂 | 轻量，比浏览器自带降噪对非稳态噪声抑制更强 |
| **AI 降噪 · DeepFilterNet** | 同上，降噪质量更高 | 可在运行时调节降噪强度；计算量与资源体积比 RNNoise 大，设备算力不足时 SDK 会提示 |
| **虚拟背景** | 人像分割后背景虚化，或替换成指定图片 | 自研组件，不需要授权密钥；提供低端机保帧率的参数 |
| **美颜** | 磨皮、美白、红润、锐化、滤镜 | 视频渲染组件，需要组件密钥 |

***

## 各端支持情况

表中 ✅ 可点进对应的接入文档；没有列出的端或空白格表示目前文档中没有该能力。

### SRTC 音视频 SDK

| 能力 | Web | Android | iOS（Objective-C） | Swift | Windows | 微信小程序 |
| - | - | - | - | - | - | - |
| AI 降噪 · RNNoise | [✅](https://docs.stmlink.com/zh/rtc/web/advanced/rnnoise.md) | | | | | |
| AI 降噪 · DeepFilterNet | [✅](https://docs.stmlink.com/zh/rtc/web/advanced/deepfilternet.md) | [✅](https://docs.stmlink.com/zh/rtc/android/advanced/deepfilternet.md) | | [✅](https://docs.stmlink.com/zh/rtc/swift/advanced/deepfilternet.md) | | |
| AI 降噪（SDK 内置模式） | | | | | [✅](https://docs.stmlink.com/zh/rtc/windows/api-reference/IRTCChannelSetting.md) 降噪模式可选 AI / AI + 声学 | |
| 虚拟背景 | | [✅](https://docs.stmlink.com/zh/rtc/android/api-reference/RTCEngine.md#虚拟背景) | [✅](https://docs.stmlink.com/zh/rtc/ios/advanced/virtual-background.md) | [✅](https://docs.stmlink.com/zh/rtc/swift/advanced/virtual-background.md) 仅 iOS | | |
| 美颜 | | | [✅](https://docs.stmlink.com/zh/rtc/ios/advanced/beauty.md) | | | [✅](https://docs.stmlink.com/zh/rtc/wechat-miniprogram/api-reference/streaming) 微信推流组件自带 |

### SMeeting 会议 SDK

| 能力 | Web | Android | iOS（Objective-C） | Swift | Windows |
| - | - | - | - | - | - |
| AI 降噪 · DeepFilterNet | [✅](https://docs.stmlink.com/zh/meeting/web/advanced/deepfilternet.md) | [✅](https://docs.stmlink.com/zh/meeting/android/advanced/deepfilternet.md) | | [✅](https://docs.stmlink.com/zh/meeting/swift/advanced/deepfilternet.md) | |
| AI 降噪（SDK 内置模式） | | | | | [✅](https://docs.stmlink.com/zh/meeting/windows/api-reference/smeeting-settings.md) 降噪模式 |
| 虚拟背景 | | [✅](https://docs.stmlink.com/zh/meeting/android/api-reference/MeetingEngine.md#虚拟背景) | [✅](https://docs.stmlink.com/zh/meeting/ios/advanced/virtual-background.md) | [✅](https://docs.stmlink.com/zh/meeting/swift/advanced/virtual-background.md) 仅 iOS | |

> [!NOTE]
>
> Web 端的降噪以独立 npm 插件提供（`@seastart/srtc-plugin-rnnoise`、`@seastart/srtc-plugin-deepfilternet`），模型和 wasm 文件需要随网站一起托管，见各自页面。
> 挂处理器的通用机制见 [音频处理器](https://docs.stmlink.com/zh/rtc/web/advanced/audio-processor.md)。

***

## 网页会议客户端的 AI 降噪

网页会议客户端（1.9.0+）已经内置了 AI 降噪，不用开发：会前在 **设置 → 音频**、会中在**麦克风菜单**里打开「AI 降噪」，再选强度：

| 强度 | 用的模型 | 适合 |
| - | - | - |
| **标准** | RNNoise | 轻量，过滤键盘、风扇、空调等常见噪声 |
| **增强** | DeepFilterNet | 效果更好；首次使用要下载约 17MB 的模型，更耗 CPU，适合配置较好的电脑 |

* 默认关闭，此时用浏览器自带的降噪
* 模型加载失败时自动退回浏览器自带降噪，并提示一次，不影响开会
* 对「旁边有人说话」这类人声干扰没用，嘈杂的开放办公区仍建议戴耳机

**部署默认值**：会议服务（1.10.0+）配置 `app.ai_denoise_default` 决定用户没选过时的默认档位，取值 `off`（默认，关闭）/ `standard`（标准）/ `enhanced`（增强），
随登录下发给客户端。它只是默认值，用户自己选过的以用户的选择为准。云桌面虚拟麦克风这类底噪大的环境，建议设为 `standard`。

> [!NOTE]
>
> 部署时 nginx 需要以 `application/wasm` 类型返回 `.wasm` 文件，否则降噪模型加载失败、退回浏览器自带降噪。

***

## 选型建议

* **只要降噪**：Web 先用 RNNoise（资源小）；对降噪效果要求高、终端性能够的，用 DeepFilterNet
* **降噪不要叠两层**：插件自己做降噪时，SDK 会关掉浏览器自带的降噪，避免人声发闷
* **虚拟背景**：低端手机上开启后注意帧率，可调大人像分割的推理间隔换帧率，参数见各端页面


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.