@xpert-ai/chatkit-ui5 0.10.0 → 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2523,6 +2523,13 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
2523
2523
  },
2524
2524
  targetOrigin: window.location.origin,
2525
2525
  handlers: {
2526
+ onRealtimeVoiceCommand: (input) => {
2527
+ var _a2;
2528
+ const voice = (_a2 = __privateGet(this, _opts)) == null ? void 0 : _a2.realtimeVoice;
2529
+ if (!voice || input.type === "start" && !voice.enabled)
2530
+ throw new IntegrationError("Realtime voice is unavailable.");
2531
+ return voice.onCommand(input);
2532
+ },
2526
2533
  onFileInputClick: ({
2527
2534
  inputAttributes
2528
2535
  }) => {