@layercode/js-sdk 2.8.7 → 2.8.8

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.
@@ -69,6 +69,7 @@ interface ILayercodeClient {
69
69
  readonly conversationId: string | null;
70
70
  readonly userSpeaking: boolean;
71
71
  readonly agentSpeaking: boolean;
72
+ readonly enableVAD: boolean;
72
73
  }
73
74
  /**
74
75
  * Interface for LayercodeClient constructor options
@@ -88,6 +89,8 @@ interface LayercodeClientOptions {
88
89
  audioInput?: boolean;
89
90
  /** Whether audio output is enabled. I.e. do we play the sound in the browser client */
90
91
  audioOutput?: boolean;
92
+ /** Whether Voice Activity Detection is enabled (default: true) */
93
+ enableVAD?: boolean;
91
94
  /**
92
95
  * When true, defers actual audio hardware initialization (AudioContext, mic permissions)
93
96
  * until setAudioInput(true) or setAudioOutput(true) is called.
@@ -147,6 +150,7 @@ declare class LayercodeClient implements ILayercodeClient {
147
150
  private ws;
148
151
  private audioInput;
149
152
  private audioOutput;
153
+ readonly enableVAD: boolean;
150
154
  private AMPLITUDE_MONITORING_SAMPLE_RATE;
151
155
  private audioOutputReady;
152
156
  private pushToTalkActive;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "author": "Layercode",
3
3
  "license": "MIT",
4
4
  "name": "@layercode/js-sdk",
5
- "version": "2.8.7",
5
+ "version": "2.8.8",
6
6
  "description": "Layercode JavaScript SDK for browser usage",
7
7
  "type": "module",
8
8
  "main": "dist/layercode-js-sdk.esm.js",