@layercode/js-sdk 1.0.24 → 1.0.26
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
|
@@ -61,12 +61,10 @@ declare class LayercodeClient implements ILayercodeClient {
|
|
|
61
61
|
private pushToTalkEnabled;
|
|
62
62
|
private canInterrupt;
|
|
63
63
|
private userIsSpeaking;
|
|
64
|
-
private endUserTurn;
|
|
65
64
|
private recorderStarted;
|
|
66
65
|
private readySent;
|
|
67
66
|
private currentTurnId;
|
|
68
67
|
private audioBuffer;
|
|
69
|
-
private audioPauseTime;
|
|
70
68
|
_websocketUrl: string;
|
|
71
69
|
status: string;
|
|
72
70
|
userAudioAmplitude: number;
|
|
@@ -82,12 +80,10 @@ declare class LayercodeClient implements ILayercodeClient {
|
|
|
82
80
|
/**
|
|
83
81
|
* Updates the connection status and triggers the callback
|
|
84
82
|
* @param {string} status - New status value
|
|
85
|
-
* @private
|
|
86
83
|
*/
|
|
87
84
|
private _setStatus;
|
|
88
85
|
/**
|
|
89
86
|
* Handles when agent audio finishes playing
|
|
90
|
-
* @private
|
|
91
87
|
*/
|
|
92
88
|
private _clientResponseAudioReplayFinished;
|
|
93
89
|
private _clientInterruptAssistantReplay;
|
|
@@ -96,13 +92,11 @@ declare class LayercodeClient implements ILayercodeClient {
|
|
|
96
92
|
/**
|
|
97
93
|
* Handles incoming WebSocket messages
|
|
98
94
|
* @param {MessageEvent} event - The WebSocket message event
|
|
99
|
-
* @private
|
|
100
95
|
*/
|
|
101
96
|
private _handleWebSocketMessage;
|
|
102
97
|
/**
|
|
103
98
|
* Handles available client browser microphone audio data and sends it over the WebSocket
|
|
104
99
|
* @param {ArrayBuffer} data - The audio data buffer
|
|
105
|
-
* @private
|
|
106
100
|
*/
|
|
107
101
|
private _handleDataAvailable;
|
|
108
102
|
private _wsSend;
|
|
@@ -112,7 +106,6 @@ declare class LayercodeClient implements ILayercodeClient {
|
|
|
112
106
|
* @param {WavRecorder | WavStreamPlayer} source - The audio source (recorder or player).
|
|
113
107
|
* @param {(amplitude: number) => void} callback - The callback function to invoke on amplitude change.
|
|
114
108
|
* @param {(amplitude: number) => void} updateInternalState - Function to update the internal amplitude state.
|
|
115
|
-
* @private
|
|
116
109
|
*/
|
|
117
110
|
private _setupAmplitudeMonitoring;
|
|
118
111
|
/**
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"author": "Layercode",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"name": "@layercode/js-sdk",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.26",
|
|
6
6
|
"description": "Layercode JavaScript SDK for browser usage",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/layercode-js-sdk.esm.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dev": "rollup -c -w",
|
|
25
25
|
"clean": "rimraf dist",
|
|
26
26
|
"prebuild": "npm run clean",
|
|
27
|
-
"copy-to-
|
|
27
|
+
"copy-to-core": "cp dist/layercode-js-sdk.esm.js* ../layercode/core/public/static/js/"
|
|
28
28
|
},
|
|
29
29
|
"keywords": [
|
|
30
30
|
"layercode",
|