@layercode/js-sdk 2.0.0 → 2.0.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.
|
@@ -3484,7 +3484,7 @@ registerProcessor('audio_processor', AudioProcessor);
|
|
|
3484
3484
|
|
|
3485
3485
|
/* eslint-env browser */
|
|
3486
3486
|
// SDK version - updated when publishing
|
|
3487
|
-
const SDK_VERSION = '2.0.
|
|
3487
|
+
const SDK_VERSION = '2.0.2';
|
|
3488
3488
|
/**
|
|
3489
3489
|
* @class LayercodeClient
|
|
3490
3490
|
* @classdesc Core client for Layercode audio agent that manages audio recording, WebSocket communication, and speech processing.
|
|
@@ -3513,7 +3513,7 @@ registerProcessor('audio_processor', AudioProcessor);
|
|
|
3513
3513
|
onUserIsSpeakingChange: options.onUserIsSpeakingChange || (() => { }),
|
|
3514
3514
|
};
|
|
3515
3515
|
this.AMPLITUDE_MONITORING_SAMPLE_RATE = 10;
|
|
3516
|
-
this._websocketUrl = 'wss://api.layercode.com/v1/agents/websocket';
|
|
3516
|
+
this._websocketUrl = 'wss://api.layercode.com/v1/agents/web/websocket';
|
|
3517
3517
|
this.wavRecorder = new WavRecorder({ sampleRate: 8000 }); // TODO should be set my fetched agent config
|
|
3518
3518
|
this.wavPlayer = new WavStreamPlayer({
|
|
3519
3519
|
finishedPlayingCallback: this._clientResponseAudioReplayFinished.bind(this),
|