@eka-care/ekascribe-ts-sdk 1.5.6 → 1.5.7
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 +3 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -0
- package/package.json +1 -1
|
@@ -344,9 +344,9 @@ class VadWebClient {
|
|
|
344
344
|
*/
|
|
345
345
|
resetVadWebInstance() {
|
|
346
346
|
// First, stop any ongoing operations
|
|
347
|
-
if (this.micVad && typeof this.micVad.pause === 'function') {
|
|
348
|
-
|
|
349
|
-
}
|
|
347
|
+
// if (this.micVad && typeof this.micVad.pause === 'function') {
|
|
348
|
+
// this.micVad.pause(); // Stop recording first
|
|
349
|
+
// }
|
|
350
350
|
// Properly destroy MicVAD instance
|
|
351
351
|
if (this.micVad && typeof this.micVad.destroy === 'function') {
|
|
352
352
|
this.micVad.destroy();
|
package/dist/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ declare class EkaScribe {
|
|
|
21
21
|
startRecording(): Promise<import("./constants/types").TStartRecordingResponse>;
|
|
22
22
|
reinitializeVad(): void;
|
|
23
23
|
destroyVad(): void;
|
|
24
|
+
pauseVad(): void;
|
|
24
25
|
pauseRecording(): import("./constants/types").TPauseRecordingResponse;
|
|
25
26
|
resumeRecording(): import("./constants/types").TPauseRecordingResponse;
|
|
26
27
|
endRecording(): Promise<TEndRecordingResponse>;
|
package/dist/index.js
CHANGED
|
@@ -101,6 +101,9 @@ class EkaScribe {
|
|
|
101
101
|
destroyVad() {
|
|
102
102
|
this.vadInstance.destroyVad();
|
|
103
103
|
}
|
|
104
|
+
pauseVad() {
|
|
105
|
+
this.vadInstance.pauseVad();
|
|
106
|
+
}
|
|
104
107
|
pauseRecording() {
|
|
105
108
|
const pauseRecordingResponse = pauseVoiceRecording();
|
|
106
109
|
console.log('%c Line:117 🍌 pauseRecordingResponse', 'color:#6ec1c2', pauseRecordingResponse);
|