@eka-care/ekascribe-ts-sdk 1.5.3 → 1.5.5
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.
|
@@ -343,6 +343,10 @@ class VadWebClient {
|
|
|
343
343
|
* reset vadWeb instance
|
|
344
344
|
*/
|
|
345
345
|
resetVadWebInstance() {
|
|
346
|
+
// First, stop any ongoing operations
|
|
347
|
+
if (this.micVad && typeof this.micVad.pause === 'function') {
|
|
348
|
+
this.micVad.pause(); // Stop recording first
|
|
349
|
+
}
|
|
346
350
|
// Properly destroy MicVAD instance
|
|
347
351
|
if (this.micVad && typeof this.micVad.destroy === 'function') {
|
|
348
352
|
this.micVad.destroy();
|