uneeq-js 2.41.0 → 2.42.0

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.
@@ -0,0 +1,11 @@
1
+ import { Subject } from "rxjs";
2
+ export declare class DigitalHumanVideoPlayManager {
3
+ private messages;
4
+ private video;
5
+ private remoteVideoPlayCount;
6
+ constructor(messages: Subject<any>);
7
+ play(video: HTMLMediaElement): void;
8
+ unmuteVideo(): void;
9
+ private playRemoteVideo;
10
+ private playRemoteVideoWithExponentialBackoff;
11
+ }
@@ -8,7 +8,9 @@ export declare class VoiceInputManager {
8
8
  private messages;
9
9
  private enableMicrophone;
10
10
  private readonly microphoneEngageVolume;
11
+ private readonly microphoneDisengageVolume;
11
12
  private readonly voiceActivityNotSpeakingTimeoutMS;
13
+ private readonly voiceActivityAllowInterruptions;
12
14
  private soundMeter;
13
15
  private audioContext;
14
16
  private digitalHumanSpeaking;
@@ -27,4 +29,5 @@ export declare class VoiceInputManager {
27
29
  private apiStopRecording;
28
30
  private micActivityConnected;
29
31
  private handleVoiceActivity;
32
+ private clearSilenceTimeout;
30
33
  }
@@ -43,7 +43,10 @@ export declare enum UneeqMessageType {
43
43
  AvatarRequestCompleted = "AvatarRequestCompleted",
44
44
  AvatarRequestIgnored = "AvatarRequestIgnored",
45
45
  ClientMediaStreamUpdate = "ClientMediaStreamUpdate",
46
- ClientPerformanceMessage = "ClientPerformanceMessage"
46
+ ClientPerformanceMessage = "ClientPerformanceMessage",
47
+ DigitalHumanVideoError = "DigitalHumanVideoError",
48
+ DigitalHumanFailedToPlay = "DigitalHumanFailedToPlay",
49
+ DigitalHumanPlayedInMutedModeSuccess = "DigitalHumanPlayedInMutedModeSuccess"
47
50
  }
48
51
  /**
49
52
  * Service is ready to be used
@@ -362,3 +365,27 @@ export declare class ClientPerformanceMessage implements UneeqMessage {
362
365
  uneeqMessageType: UneeqMessageType;
363
366
  constructor(clientPerformance: ClientPerformanceStats);
364
367
  }
368
+ /**
369
+ * DigitalHuman Video Error has occurred
370
+ */
371
+ export declare class DigitalHumanVideoError implements UneeqMessage {
372
+ readonly error: any;
373
+ uneeqMessageType: UneeqMessageType;
374
+ constructor(error: any);
375
+ }
376
+ /**
377
+ * DigitalHuman Failed to play
378
+ */
379
+ export declare class DigitalHumanFailedToPlay implements UneeqMessage {
380
+ uneeqMessageType: UneeqMessageType;
381
+ msg: string;
382
+ constructor();
383
+ }
384
+ /**
385
+ * DigitalHuman was successfully played in muted mode
386
+ */
387
+ export declare class DigitalHumanPlayedInMutedModeSuccess implements UneeqMessage {
388
+ uneeqMessageType: UneeqMessageType;
389
+ msg: string;
390
+ constructor();
391
+ }
@@ -10,6 +10,7 @@ export declare class Uneeq {
10
10
  private messages;
11
11
  private internalMessages$;
12
12
  private session;
13
+ private dhVideoPlayManager;
13
14
  private api;
14
15
  private messaging;
15
16
  private sessionPaused;
@@ -25,7 +26,6 @@ export declare class Uneeq {
25
26
  private startSessionTime;
26
27
  private availableResponseTime;
27
28
  private streamManager;
28
- private remoteVideoPlayCount;
29
29
  constructor(options: UneeqOptions);
30
30
  /**
31
31
  * Initialise the session. ReadyMessage will be sent when init is ready.
@@ -122,6 +122,7 @@ export declare class Uneeq {
122
122
  * Trigger this conversation's welcome message
123
123
  */
124
124
  playWelcomeMessage(): Promise<void>;
125
+ unmuteDigitalHuman(): void;
125
126
  private gatherWebRtcMetrics;
126
127
  /**
127
128
  * Initializes the real time messaging service. On ready, ReadyMessage will be sent.
@@ -130,7 +131,6 @@ export declare class Uneeq {
130
131
  private initDeviceManager;
131
132
  private sessionLiveHandler;
132
133
  private initAvatar;
133
- private playRemoteVideo;
134
134
  private startAvatarWhenAvailable;
135
135
  /**
136
136
  * Initialize the session. Starts avatar process on server and initializes messaging.