@glydeunity/voice-sdk 1.5.20 → 1.5.21
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/glyde-chat.umd.js +16 -16
- package/dist/glyde-chat.umd.js.map +1 -1
- package/dist/index.d.ts +9 -0
- package/dist/voice-sdk.es.js +1694 -1682
- package/dist/voice-sdk.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -656,6 +656,10 @@ export declare class GlydeVoice {
|
|
|
656
656
|
private readonly inputSampleRate;
|
|
657
657
|
private isAgentSpeaking;
|
|
658
658
|
private agentAudioDoneReceived;
|
|
659
|
+
/** Pending context reinit after context_switch; run when agent stops speaking or after fallback timeout */
|
|
660
|
+
private pendingContextReinit;
|
|
661
|
+
private pendingContextReinitFallbackTimer;
|
|
662
|
+
private static readonly PENDING_REINIT_FALLBACK_MS;
|
|
659
663
|
private conversationHistory;
|
|
660
664
|
private sessionContext;
|
|
661
665
|
/**
|
|
@@ -795,6 +799,11 @@ export declare class GlydeVoice {
|
|
|
795
799
|
contextType?: VoiceContextType_2;
|
|
796
800
|
currentJobUuid?: string;
|
|
797
801
|
}): void;
|
|
802
|
+
/**
|
|
803
|
+
* If a context reinit was pending (after context_switch), run it now. Called when the agent
|
|
804
|
+
* stops speaking (playback buffer empty) or when the fallback timeout fires.
|
|
805
|
+
*/
|
|
806
|
+
private tryFlushPendingContextReinit;
|
|
798
807
|
/**
|
|
799
808
|
* Reinitialize the voice session with a new context (e.g. after context_switch from the server).
|
|
800
809
|
* Stops the current session, updates config and session context, then starts a new session
|