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

# Live captions and transcription

> Live captions and transcription: per-speaker recognition, Chinese as you speak and English per sentence, background-noise resistance, translated captions, per-app hot words, the transcript after the meeting, who turns it on, and how each client gets results. Read when evaluating caption needs.

Once transcription is on during a meeting, whatever each unmuted speaker says becomes text in real time: shown as captions in web meetings, available as a full transcript after the meeting,
and the basis for [meeting minutes](https://docs.stmlink.com/en/product/ai/summary.md) and [simultaneous interpretation](https://docs.stmlink.com/en/product/ai/interpretation.md).

***

## What it does

| Capability | Description |
| - | - |
| **Per-speaker transcription** | Each unmuted speaker's voice is recognized separately, and every sentence carries the speaker's ID and name—no voiceprint diarization needed |
| **In-meeting captions** | Chinese appears as you speak (interim results first, corrected to the final text once the sentence ends); English appears as a whole sentence once it ends |
| **Background-noise resistance** | An adaptive volume gate based on each speaker's noise floor blocks background noise; sentences with only filler words and no real content produce no captions and aren't translated |
| **Live translated captions** | Each final sentence is translated into a specified language by the LLM, and the translation is shown with the original |
| **Hot words** | Configure proper nouns (company names, product names, personal names) per app to improve recognition accuracy |
| **Transcript archive** | Final sentences are archived per "session" and can be viewed after the meeting in the meeting client, the admin console, or through the server API |

***

## Who turns it on, and where

* **In the meeting**: the host turns on "Meeting transcription" in the "Captions and transcription" panel of the web meeting, and all members see captions right away; each person can also turn off "Show captions" locally without affecting others. For translation, choose the "Live translation" language before turning on transcription
* **Your business system**: call the [start speech recognition](https://docs.stmlink.com/en/rtc/server-api/asr.md) endpoint from the server to start transcription for a channel
* **Admin console**: configure hot words and live translation under **AI capabilities → App AI settings**; view the transcript of each session under **Minutes records**

Transcription is organized by **session**: one channel from opening to destruction is one session. Turning transcription off and on again during the meeting keeps the same session—the transcript continues, and only one set of minutes is produced at the end.

***

## Supported languages

| Language | Caption behavior | Notes |
| - | - | - |
| Chinese | Appears as you speak, corrected to the final text once the sentence ends | Default language; supports hot words |
| English | Appears as a whole sentence once it ends, with no interim results | In our tests, the final text arrives about 0.8 seconds after the pause at the end of a sentence; the English model doesn't support hot words |

* Which language a speaker is recognized in depends on the service chosen per language for "Speech recognition" in the [AI profile](https://docs.stmlink.com/en/product/ai/models.md#ai-profiles); languages that aren't configured aren't recognized
* Chinese-only meetings need no language settings. In meetings with both Chinese and English, once members set "My language" in simultaneous interpretation, each is recognized in their own language
* **People who mix Chinese and English are best recognized as Chinese**: the Chinese model can recognize English words mixed in (with lower accuracy), while the English model can barely recognize Chinese

***

## Background-noise resistance

When a speaker has a fan, air conditioner, or keyboard nearby, or uses a microphone with a high noise floor, background sound can easily turn into fragmented captions. The media gateway filters each speaker's audio in two ways:

* **Adaptive volume gate**: the ambient noise floor is estimated separately for each speaker, and segments below "noise floor + margin" aren't sent for recognition, so background sound doesn't become captions
* **Empty-sentence filter**: if a sentence has no meaningful characters left after removing punctuation and filler words such as "嗯", "啊", and "哦", it produces no caption and isn't translated; one-character answers such as "好" (OK) and "对" (right) still appear

**Voice interference**, such as people talking nearby, can't be filtered out. In noisy environments, we still recommend headsets, or turning on [AI noise suppression](https://docs.stmlink.com/en/product/ai/media-ai.md) on the device.

Usually no tuning is needed. If you do need to adjust it, change `modules.asr` in the recognition gateway configuration (media gateway 1.7.0+):

| Setting | Default | Description |
| - | - | - |
| `gate_db` | `-26` | Minimum volume gate threshold (dB); anything quieter is never sent for recognition |
| `gate_margin_db` | `6` | How many dB above the estimated noise floor the threshold is set; a negative value turns off the adaptive part and uses `gate_db` only |
| `min_final_chars` | `1` | Minimum number of characters a sentence must have, after removing punctuation and filler words, to produce a caption; a negative value turns this filter off |

Setting `gate_db` to `-100` together with a negative `gate_margin_db` turns the volume gate off completely.

***

## Live translated captions

Turn on **Live translation** in **App AI settings** and choose a target language (such as English), or specify a target language when starting transcription. From then on, every final sentence is also translated:

* Translation doesn't block the original: original captions still appear first, and the translation follows (about 1 second from final text to translation in our tests, depending on the LLM's speed)
* When the LLM's concurrency is full, that sentence is **skipped** rather than delayed, so translations don't fall further and further behind
* An LLM must be configured in the AI profile

Live translation produces text in **one** target language only. If each person should hear their own language, use [simultaneous interpretation](https://docs.stmlink.com/en/product/ai/interpretation.md).

***

## Hot words

Proper nouns that are recognized poorly (such as company names and product models) can be added as hot words under **AI capabilities → App AI settings → Hot words**. Each entry has a word and a weight (1–100 recommended; higher means more likely to match).

* Hot words apply per app; they are sent to the recognition service when transcription starts and used for the whole session. Changes take effect the next time transcription starts
* The same hot words are used for both in-meeting transcription and the [AI voice agent](https://docs.stmlink.com/en/product/ai/voice-agent.md) (the voice agent requires audio and video service 1.12.0+), so there's no need to configure them twice
* Priority: app hot words > `modules.asr.hotwords` in the recognition gateway configuration (a global list set at deployment, applying to all apps) > the platform's built-in default hot words
* The English recognition model doesn't support hot words

***

## View the transcript after the meeting

| Where | How |
| - | - |
| Web meeting client | The minutes page of a past meeting has a "Transcript" tab |
| Admin console | **AI capabilities → Minutes records**; switch to "Transcript" when viewing minutes |
| SMeeting Web SDK | `aiTranscript()` returns all sentences of a session; see [SMeeting · aiTranscript](https://docs.stmlink.com/en/meeting/web/api-reference/SMeeting.md) |
| Server API | [Speech recognition session list and sentence list](https://docs.stmlink.com/en/rtc/server-api/asr.md) |

Each sentence carries the speaker and its start and end times (relative to the start of the session); with live translation on, it also carries the translation.

***

## How each client gets captions

| Usage | How |
| - | - |
| Web meeting client | Built-in caption overlay and transcription switch; no development needed |
| SMeeting conferencing SDK (Web) | Events `ASR_RESULT` (original) and `ASR_TRANSLATION` (translation); see [SMeeting Web API](https://docs.stmlink.com/en/meeting/web/api-reference/SMeeting.md) |
| SRTC Audio & Video SDK (all platforms) | Recognition results are sent as the in-channel custom message `asr_res` and translations as `asr_trans`; any client can receive these in-channel custom messages and display them itself |

> [!NOTE]
>
> The ready-made caption, minutes, and transcript APIs of the conferencing SDK are currently available on **Web** only; other platforms can display captions themselves from SRTC channel messages.


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