Skip to main content
SRTC provides an IM channel (out-of-channel messaging) for things like pre-call ringing and notifications.

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 filtering

Reconnecting / reconnected

When the network fluctuates, a reconnecting event fires; once reconnection succeeds, a reconnected event fires

Disable / 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 as ChannelEventType.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_volume in ChannelInfo.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_trans per language of the members in the channel; for captions, take only the one whose lang equals your own language
  • audio_url is a root-relative path (like /aiapi/interp-audio/<id>.wav); build the full URL with the client_api address 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
Play the interpretation audio with 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_trans has no audio_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.