Skip to main content

RELAY Realtime SDK 3.7.0

· 2 min read
Renae Sowald

We are happy to announce Realtime-API SDK 3.7.0.

Upgrading is straightforward with our release process, which adheres to Semantic Versioning. Minor versions are guaranteed to not have breaking changes, so you can upgrade with confidence.

SignalWire Release Card

Today we are releasing version 3.7 of the RELAY Realtime SDK. There are a couple of improvements and several fixes.

Improvements

  • We have added the method .collect() to the Voice call object. This is similar to the input collection method prompt, but there is no prompt element. The collecting session can run silently until your configuration conditions are met. a937768

For example when collecting speech input:

const collect = await call.collect({
speech: {
endSilenceTimeout: 2,
speechTimeout: 10,
language: "en-US",
hints: ["sales", "support", "representative"],
},
});
const { type, speech } = await collect.ended();
  • The playback.failed event will now be emitted on playback failure. 9ad158b

  • For SIP calls, we have added a sessionTimeout parameter on the methods connectSip and dialSip to include a session time limit in the SIP Session-Expires header. The default is 600 seconds. e2c475a

Fixes

  • Fixed a bug between getRoomSessions and nested objects in the Video client that was causing an error on recording.stop. fe3b0e2
  • Fixed a bug to now resolve ended() promises in case of failure in playback, prompt, recording, detect, collect, or tap methods. 9ad158b
  • Fixed logic in call.received handlers to better track state in voice calls. 45536d5