@layercode/js-sdk 2.8.1 → 2.8.2
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
|
@@ -143,6 +143,7 @@ declare class LayercodeClient implements ILayercodeClient {
|
|
|
143
143
|
private canInterrupt;
|
|
144
144
|
private userIsSpeaking;
|
|
145
145
|
private agentIsSpeaking;
|
|
146
|
+
private agentIsPlayingAudio;
|
|
146
147
|
private recorderStarted;
|
|
147
148
|
private readySent;
|
|
148
149
|
private currentTurnId;
|
|
@@ -220,6 +221,11 @@ declare class LayercodeClient implements ILayercodeClient {
|
|
|
220
221
|
audioInputDisconnect(): Promise<void>;
|
|
221
222
|
setAudioInput(state: boolean): Promise<void>;
|
|
222
223
|
setAudioOutput(state: boolean): Promise<void>;
|
|
224
|
+
/**
|
|
225
|
+
* Syncs the reported agentSpeaking state with the actual audio playback state.
|
|
226
|
+
* Called when audioOutput is enabled to ensure proper state synchronization.
|
|
227
|
+
*/
|
|
228
|
+
private _syncAgentSpeakingState;
|
|
223
229
|
/** Emitters for audio flags */
|
|
224
230
|
private _emitAudioInput;
|
|
225
231
|
private _emitAudioOutput;
|
package/package.json
CHANGED