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

# Simultaneous interpretation

> Simultaneous interpretation: each member picks a language and hears translated speech with the original turned down; Chinese ↔ English, Web only for now. How it works, measured latency, required models and proxy paths, platform support, limits. Read when a customer asks for it.

When Chinese and international participants meet, each person picks their own language and hears **interpretation audio** of what the other side says, with translated captions—no human interpreters and no extra equipment.

***

## How it works for users

1. **The host turns it on**: in the "Captions and transcription" panel of the web meeting, turn on "Simultaneous interpretation" (meeting transcription is turned on with it if it isn't already). The host or a co-host can turn it on and off
2. **Each member picks "My language"**: for example, the Chinese side picks Chinese and the international side picks English. It decides two things: **which language my speech is recognized in**, and **which language others' speech is translated into for me**.
   You can pick it even before interpretation is on
3. **During the meeting**: after the other side finishes each sentence, the system translates it into my language and plays synthesized speech to me; while interpretation audio plays, the speaker's original voice is turned down automatically (to 20% by default),
   and captions show the translation in my language
4. **Original audio only**: people who understand the other language or want the original speech turn on "Original audio only", and no interpretation audio is played; captions are unaffected

| Role | What they can do |
| - | - |
| Host / co-host | Turn simultaneous interpretation on and off |
| Every member | Set "My language", toggle "Original audio only" |
| Administrator (console) | Choose models, voice, and speaking rate, and adjust how far the original voice is turned down |

**Chinese ↔ English is currently supported**. Members who share a language get no translation—for example, a meeting where everyone speaks Chinese produces no interpretation audio even with interpretation on.

***

## How it works

```mermaid actions={false} theme={null}
sequenceDiagram
    participant A as Chinese speaker
    participant G as Speech recognition
    participant B as Platform (AI orchestration)
    participant L as LLM
    participant T as Speech synthesis
    participant C as International listener (My language = English)

    A->>G: Speaks (Chinese)
    G->>B: One final sentence
    B->>L: Translate into English
    L-->>B: Translation
    B->>T: Synthesize English speech
    T-->>B: Interpretation audio
    B-->>C: Translation + audio URL
    C->>C: Download and play the audio, turning down the Chinese original voice
```

* Only **needed languages** are translated: each sentence is translated into "the languages of members in the meeting − the speaker's language"; languages nobody uses aren't translated
* Each sentence is **synthesized only once** per target language, and everyone using that language downloads and plays the same audio
* **Audio and video forwarding is unchanged**: interpretation audio is not a new audio track but an audio file sent along with a message, which each client downloads and plays itself. Meetings, recordings, and hardware endpoints are therefore unaffected
* When several people speak at the same time, interpretation audio is **queued and played in turn** on each client rather than overlapping; when too much piles up, the oldest is dropped so playback doesn't fall further behind

***

## Latency (measured reference)

Interpretation **only starts translating after a sentence ends**, so interpretation audio always lags behind the original voice:

| Direction | From end of sentence to hearing interpretation |
| - | - |
| Chinese → English | About 2 seconds |
| English → Chinese | About 3–4 seconds |

We measured these on CPU servers with the platform's built-in recognition and offline speech synthesis; **they vary with server hardware, the speed of the LLM used, and sentence length**.
The time goes mainly to: waiting for the end-of-sentence pause to decide the sentence is over (about 0.8 seconds for English recognition), LLM translation, and speech synthesis (Chinese synthesis is slower than English).

***

## What needs configuring

| Setting | Where | Description |
| - | - | - |
| Chinese and English speech recognition | **AI capabilities → AI services and profiles** | Under "Speech recognition" in the AI profile, choose one service per language (one recognition service each for Chinese and English) |
| LLM | Same place | Used for translation; **required**—interpretation can't be turned on without it |
| Speech synthesis | Same place | Choose a voice and set the speaking rate per language. **Without it, there are only translated captions and no interpretation audio** |
| Interpretation original-voice volume | "Interpretation original-voice volume" in the AI profile | How far the original voice is turned down while interpretation audio plays, 0–1, default 0.2; 0 mutes the original voice completely during interpretation audio |
| Reverse proxy allowlisting | At deployment | Interpretation audio is downloaded from the `/aiapi/interp-audio/` path; if a reverse proxy / gateway sits in front of the entry point, allow this path. See [Internal network and public internet](https://docs.stmlink.com/en/product/deploy/networks.md#what-to-prepare-at-deployment) |

For how to connect models and which offline models are built in, see [AI services and profiles](https://docs.stmlink.com/en/product/ai/models.md).

***

## Platform support

| Client | Support |
| - | - |
| Web meeting client | ✅ Interpretation switch, My language, Original audio only, interpretation audio playback, translated captions |
| SMeeting Web SDK | ✅ **From 0.3.9**, with a built-in interpretation player so your app doesn't handle the audio; see [SMeeting · Simultaneous interpretation](https://docs.stmlink.com/en/meeting/web/api-reference/SMeeting.md#simultaneous-interpretation) |
| SRTC Web SDK | ✅ **From 0.7.7**, providing inserted audio playback and per-user volume; implement playback yourself from channel messages, see [Simultaneous interpretation messages](https://docs.stmlink.com/en/rtc/web/channel-messages.md#simultaneous-interpretation-messages) |
| Meeting apps (Android / iOS), desktop, HarmonyOS, Mini Programs | ❌ Not supported yet; **Web only for now** |
| Meeting-room hardware endpoints, phones, cloud recording | ❌ Can't hear interpretation audio, and recordings don't contain it |

> [!WARNING]
>
> With interpretation on, each sentence is sent with multiple translations, one per language. **Older clients that don't recognize this field display all of them as captions**.
> If the meeting includes members on other clients, make sure every client is upgraded to a version that supports interpretation before opening it to users.

***

## Known limitations

* Interpretation audio lags the original voice by 2–4 seconds; see "Latency" above
* English recognition only outputs whole sentences, so captions for English speakers don't appear as they speak
* Interpretation audio uses a fixed voice, not the speaker's own voice
* **People who mix Chinese and English should set "My language" to Chinese**: Chinese recognition can pick up English words mixed in, while English recognition can barely recognize Chinese
* When several people speak continuously at the same time, translation and synthesis are queued; when the LLM's or speech synthesis's concurrency is full, that sentence gets text only or is skipped, so it doesn't fall further behind


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