Enable
Receive IM messages
Send IM messages
All IM messages must be sent through your backend API, so you can apply your own logic, such as sensitive-word filteringReconnecting / reconnected
When the network fluctuates, a reconnecting event fires; once reconnection succeeds, a reconnected event firesDisable / disconnect
Disconnection is either an active disable or a passive disconnect (when an unrecoverable error occurs)Simultaneous interpretation messages
After simultaneous interpretation is turned on for a channel (for the server API, see Simultaneous Interpretation), the server delivers the interpretation status and translations through in-channel custom messages. The Web SDK raises them asChannelEventType.CUSTOM_MSG events, with data of type CustomMsgData, distinguished by action:
- Status on joining: members who join later get the interpretation on/off state from the channel properties (
interp_enabled/interp_duck_volumeinChannelInfo.props), and your backend calls “Get interpretation status and member languages” for the full language table; after that, update incrementally with the two messages above - Multiple messages per sentence: when interpretation is on, each sentence arrives as one
asr_transper language of the members in the channel; for captions, take only the one whoselangequals your own language audio_urlis a root-relative path (like/aiapi/interp-audio/<id>.wav); build the full URL with theclient_apiaddress in the join token:new URL(audio_url, clientApi). The audio expires after 10 minutes, requires no authentication, and allows cross-origin reads from web pages
playAudioClip, and while it plays, lower the speaker’s original voice to duck_volume with setRemoteUserVolume (requires 0.7.7 or later, with remote audio played through subscribeRemoteAudioMixTrack):
If you get captions but no interpretation audio: first make sure the AI profile has speech synthesis configured (without it,asr_transhas noaudio_url); then make sure the reverse proxy at deployment allows the/aiapi/interp-audio/path, see Internal network and public internet. If you use the meeting SDK, you don’t need to write this yourself: SMeeting Web SDK has a built-in interpretation player, see SMeeting · Simultaneous interpretation.