@eka-care/ekascribe-ts-sdk 1.5.4 → 1.5.6
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.
- package/dist/audio-chunker/vad-web.js +1 -1
- package/dist/index.js +1 -0
- package/package.json +1 -1
|
@@ -344,7 +344,7 @@ class VadWebClient {
|
|
|
344
344
|
*/
|
|
345
345
|
resetVadWebInstance() {
|
|
346
346
|
// First, stop any ongoing operations
|
|
347
|
-
if (this.micVad) {
|
|
347
|
+
if (this.micVad && typeof this.micVad.pause === 'function') {
|
|
348
348
|
this.micVad.pause(); // Stop recording first
|
|
349
349
|
}
|
|
350
350
|
// Properly destroy MicVAD instance
|
package/dist/index.js
CHANGED
|
@@ -123,6 +123,7 @@ class EkaScribe {
|
|
|
123
123
|
}
|
|
124
124
|
async patchSessionStatus({ sessionId, processing_status, processing_error, }) {
|
|
125
125
|
try {
|
|
126
|
+
this.vadInstance.pauseVad();
|
|
126
127
|
const patchTransactionResponse = await patchTransactionStatus({
|
|
127
128
|
sessionId,
|
|
128
129
|
processing_status,
|