@eka-care/ekascribe-ts-sdk 1.5.37 → 1.5.38

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.
@@ -245,9 +245,14 @@ class VadWebClient {
245
245
  console.log(frames, 'frames in vad web');
246
246
  // Get callback dynamically to ensure it's always up to date
247
247
  const vadFrameProcessedCallback = EkaScribeStore.vadFrameProcessedCallback;
248
+ console.log('VAD callback exists:', !!vadFrameProcessedCallback, 'Recording started:', this.recording_started);
248
249
  if (vadFrameProcessedCallback) {
249
250
  vadFrameProcessedCallback({ probabilities: prob, frame: frames });
250
251
  }
252
+ // Only process frames internally when recording is active
253
+ if (!this.recording_started) {
254
+ return;
255
+ }
251
256
  audioFileManager?.incrementTotalRawSamples(frames);
252
257
  audioBuffer?.append(frames);
253
258
  // Check if audio chunk needs to be clipped
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eka-care/ekascribe-ts-sdk",
3
- "version": "1.5.37",
3
+ "version": "1.5.38",
4
4
  "main": "dist/index.js",
5
5
  "repository": "git@github.com:eka-care/eka-js-sdk.git",
6
6
  "author": "Sanikagoyal28 <sanikagoyal9@gmail.com>",