@eka-care/ekascribe-ts-sdk 1.5.6 → 1.5.8
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/constants/types.d.ts +2 -2
- 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();
|
|
@@ -51,7 +51,7 @@ export type TStartRecordingRequest = {
|
|
|
51
51
|
input_language: string[];
|
|
52
52
|
output_format_template: {
|
|
53
53
|
template_id: string;
|
|
54
|
-
template_name
|
|
54
|
+
template_name?: string;
|
|
55
55
|
template_type?: string;
|
|
56
56
|
}[];
|
|
57
57
|
txn_id: string;
|
|
@@ -116,7 +116,7 @@ export type TPostTransactionInitRequest = {
|
|
|
116
116
|
input_language: string[];
|
|
117
117
|
output_format_template: {
|
|
118
118
|
template_id: string;
|
|
119
|
-
template_name
|
|
119
|
+
template_name?: string;
|
|
120
120
|
template_type?: string;
|
|
121
121
|
}[];
|
|
122
122
|
transfer: string;
|
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);
|