@layercode/js-sdk 1.0.13 → 1.0.15
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.
package/dist/types/index.d.ts
CHANGED
|
@@ -10,8 +10,8 @@ interface LayercodeClientOptions {
|
|
|
10
10
|
authorizeSessionEndpoint: string;
|
|
11
11
|
/** Metadata to send with webhooks */
|
|
12
12
|
metadata?: Record<string, any>;
|
|
13
|
-
/**
|
|
14
|
-
|
|
13
|
+
/** Milliseconds before resuming assistant audio after temporary pause due to user interruption (which was actually a false interruption) */
|
|
14
|
+
vadResumeDelay?: number;
|
|
15
15
|
/** Callback when connection is established */
|
|
16
16
|
onConnect?: ({ sessionId }: {
|
|
17
17
|
sessionId: string | null;
|
|
@@ -41,6 +41,8 @@ declare class LayercodeClient {
|
|
|
41
41
|
private ws;
|
|
42
42
|
private AMPLITUDE_MONITORING_SAMPLE_RATE;
|
|
43
43
|
private pushToTalkActive;
|
|
44
|
+
private pushToTalkEnabled;
|
|
45
|
+
private canInterrupt;
|
|
44
46
|
private vadPausedPlayer;
|
|
45
47
|
_websocketUrl: string;
|
|
46
48
|
status: string;
|
|
@@ -52,6 +54,7 @@ declare class LayercodeClient {
|
|
|
52
54
|
* @param {Object} options - Configuration options
|
|
53
55
|
*/
|
|
54
56
|
constructor(options: LayercodeClientOptions);
|
|
57
|
+
private _initializeVAD;
|
|
55
58
|
/**
|
|
56
59
|
* Updates the connection status and triggers the callback
|
|
57
60
|
* @param {string} status - New status value
|
package/package.json
CHANGED