@webex/plugin-meetings 2.60.1-next.2 → 2.60.1-next.3

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.
@@ -359,7 +359,7 @@ var SimultaneousInterpretation = _webexCore.WebexPlugin.extend({
359
359
  throw error;
360
360
  });
361
361
  },
362
- version: "2.60.1-next.2"
362
+ version: "2.60.1-next.3"
363
363
  });
364
364
  var _default = exports.default = SimultaneousInterpretation;
365
365
  //# sourceMappingURL=index.js.map
@@ -18,7 +18,7 @@ var SILanguage = _webexCore.WebexPlugin.extend({
18
18
  languageCode: 'number',
19
19
  languageName: 'string'
20
20
  },
21
- version: "2.60.1-next.2"
21
+ version: "2.60.1-next.3"
22
22
  });
23
23
  var _default = exports.default = SILanguage;
24
24
  //# sourceMappingURL=siLanguage.js.map
@@ -10,7 +10,6 @@ import MediaProperties from '../media/properties';
10
10
  import ReconnectionManager from '../reconnection-manager';
11
11
  import MeetingRequest from './request';
12
12
  import Members from '../members/index';
13
- import Transcription from '../transcription';
14
13
  import { NETWORK_STATUS } from '../constants';
15
14
  import { ReceiveSlotManager } from '../multistream/receiveSlotManager';
16
15
  import { MediaRequestManager } from '../multistream/mediaRequestManager';
@@ -20,6 +19,35 @@ import InMeetingActions from './in-meeting-actions';
20
19
  import RecordingController from '../recording-controller';
21
20
  import ControlsOptionsManager from '../controls-options-manager';
22
21
  import { LocusMediaRequest } from './locusMediaRequest';
22
+ export type CaptionData = {
23
+ id: string;
24
+ isFinal: boolean;
25
+ translations: Array<string>;
26
+ text: string;
27
+ currentCaptionLanguage: string;
28
+ timestamp: string;
29
+ speaker: string;
30
+ };
31
+ export type Transcription = {
32
+ languageOptions: {
33
+ captionLanguages?: string;
34
+ maxLanguages?: number;
35
+ spokenLanguages?: Array<string>;
36
+ currentCaptionLanguage?: string;
37
+ requestedCaptionLanguage?: string;
38
+ currentSpokenLanguage?: string;
39
+ };
40
+ status: string;
41
+ isListening: boolean;
42
+ commandText: string;
43
+ captions: Array<CaptionData>;
44
+ highlights: Array<any>;
45
+ showCaptionBox: boolean;
46
+ transcribingRequestStatus: string;
47
+ isCaptioning: boolean;
48
+ speakerProxy: Map<string, any>;
49
+ interimCaptions: Map<string, CaptionData>;
50
+ };
23
51
  export type LocalStreams = {
24
52
  microphone?: LocalMicrophoneStream;
25
53
  camera?: LocalCameraStream;
@@ -379,7 +407,6 @@ export default class Meeting extends StatelessWebexPlugin {
379
407
  screenShareFloorState: ScreenShareFloorStatus;
380
408
  statsAnalyzer: StatsAnalyzer;
381
409
  transcription: Transcription;
382
- receiveTranscription: boolean;
383
410
  updateMediaConnections: (mediaConnections: any[]) => void;
384
411
  userDisplayHints: any;
385
412
  endCallInitJoinReq: any;
@@ -411,6 +438,8 @@ export default class Meeting extends StatelessWebexPlugin {
411
438
  allowMediaInLobby: boolean;
412
439
  turnDiscoverySkippedReason: string;
413
440
  turnServerUsed: boolean;
441
+ areVoiceaEventsSetup: boolean;
442
+ voiceaListenerCallbacks: object;
414
443
  private retriedWithTurnServer;
415
444
  private sendSlotManager;
416
445
  private deferSDPAnswer?;
@@ -530,6 +559,13 @@ export default class Meeting extends StatelessWebexPlugin {
530
559
  * @memberof Meeting
531
560
  */
532
561
  private setUpInterpretationListener;
562
+ /**
563
+ * Set up the listeners for captions
564
+ * @returns {undefined}
565
+ * @private
566
+ * @memberof Meeting
567
+ */
568
+ private setUpVoiceaListeners;
533
569
  /**
534
570
  * Set up the locus info listener for meetings disconnected due to inactivity
535
571
  * @returns {undefined}
@@ -1023,17 +1059,26 @@ export default class Meeting extends StatelessWebexPlugin {
1023
1059
  */
1024
1060
  isReactionsSupported(): boolean;
1025
1061
  /**
1026
- * Monitor the Low-Latency Mercury (LLM) web socket connection on `onError` and `onClose` states
1027
- * @private
1028
- * @returns {void}
1062
+ * sets Caption language for the meeting
1063
+ * @param {string} language
1064
+ * @returns {Promise}
1029
1065
  */
1030
- private monitorTranscriptionSocketConnection;
1066
+ setCaptionLanguage(language: string): Promise<unknown>;
1031
1067
  /**
1032
- * Request for a WebSocket Url, open and monitor the WebSocket connection
1033
- * @private
1068
+ * sets Spoken language for the meeting
1069
+ * @param {string} language
1070
+ * @returns {Promise}
1071
+ */
1072
+ setSpokenLanguage(language: string): Promise<unknown>;
1073
+ /**
1074
+ * This method will enable the transcription for the current meeting if the meeting has enabled/supports Webex Assistant
1075
+ * @param {Object} options object with spokenlanguage setting
1076
+ * @public
1034
1077
  * @returns {Promise<void>} a promise to open the WebSocket connection
1035
1078
  */
1036
- private startTranscription;
1079
+ startTranscription(options?: {
1080
+ spokenLanguage?: string;
1081
+ }): Promise<void>;
1037
1082
  /**
1038
1083
  * Callback called when a relay event is received from meeting LLM Connection
1039
1084
  * @param {RelayEvent} e Event object coming from LLM Connection
@@ -1042,11 +1087,10 @@ export default class Meeting extends StatelessWebexPlugin {
1042
1087
  */
1043
1088
  private processRelayEvent;
1044
1089
  /**
1045
- * stop recieving Transcription by closing
1046
- * the web socket connection properly
1090
+ * This method stops receiving transcription for the current meeting
1047
1091
  * @returns {void}
1048
1092
  */
1049
- stopReceivingTranscription(): void;
1093
+ stopTranscription(): void;
1050
1094
  /**
1051
1095
  * triggers an event to notify that the user
1052
1096
  * will not receive any more transcription