@eka-care/ekascribe-ts-sdk 1.5.1 → 1.5.3
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.
|
@@ -333,7 +333,10 @@ class VadWebClient {
|
|
|
333
333
|
* End VAD
|
|
334
334
|
*/
|
|
335
335
|
destroyVad() {
|
|
336
|
-
|
|
336
|
+
// Properly destroy MicVAD instance
|
|
337
|
+
if (this.micVad && typeof this.micVad.destroy === 'function') {
|
|
338
|
+
this.micVad.destroy();
|
|
339
|
+
}
|
|
337
340
|
this.recording_started = false;
|
|
338
341
|
}
|
|
339
342
|
/**
|
|
@@ -353,7 +356,7 @@ class VadWebClient {
|
|
|
353
356
|
this.lastWarningTime = null;
|
|
354
357
|
this.recording_started = false;
|
|
355
358
|
this.is_vad_loading = true; // Reset to initial state
|
|
356
|
-
this.micVad = {}; // Clear the instance
|
|
359
|
+
// this.micVad = {} as MicVAD; // Clear the instance
|
|
357
360
|
if (EkaScribeStore.errorCallback) {
|
|
358
361
|
EkaScribeStore.errorCallback({
|
|
359
362
|
error_code: ERROR_CODE.SPEECH_DETECTED,
|