@eka-care/ekascribe-ts-sdk 2.0.24 → 2.0.26
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/index.d.ts +1 -1
- package/dist/index.mjs +8 -15
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -526,7 +526,7 @@ declare interface TSection {
|
|
|
526
526
|
|
|
527
527
|
declare type TSelectedPreferences = {
|
|
528
528
|
languages?: TGetConfigItem[];
|
|
529
|
-
|
|
529
|
+
output_formats?: TGetConfigItem[];
|
|
530
530
|
consultation_mode?: string;
|
|
531
531
|
use_audio_cues?: boolean;
|
|
532
532
|
auto_download?: boolean;
|
package/dist/index.mjs
CHANGED
|
@@ -11207,7 +11207,7 @@ class EkaScribeStore {
|
|
|
11207
11207
|
}
|
|
11208
11208
|
// Reset store to initial state
|
|
11209
11209
|
resetStore() {
|
|
11210
|
-
this._txnID = "", this._sessionBucketPath = "", this._sessionStatus = {}, this._userSpeechCallback = null, this._eventCallback = null, this._vadFramesCallback = null, this._vadFrameProcessedCallback = null;
|
|
11210
|
+
this._txnID = "", this._sessionBucketPath = "", this._sessionStatus = {}, this._vadInstance = null, this._audioFileManagerInstance = null, this._audioBufferInstance = null, this._userSpeechCallback = null, this._eventCallback = null, this._vadFramesCallback = null, this._vadFrameProcessedCallback = null;
|
|
11211
11211
|
}
|
|
11212
11212
|
}
|
|
11213
11213
|
const EkaScribeStore$1 = EkaScribeStore.getInstance();
|
|
@@ -54249,19 +54249,7 @@ const decodeApiResponse = (i) => {
|
|
|
54249
54249
|
};
|
|
54250
54250
|
}
|
|
54251
54251
|
}, Ur = class Ur {
|
|
54252
|
-
// Private constructor to prevent direct instantiation
|
|
54253
54252
|
constructor() {
|
|
54254
|
-
this.audioFileManagerInstance = new AudioFileManager(), EkaScribeStore$1.audioFileManagerInstance = this.audioFileManagerInstance, this.audioBufferInstance = new AudioBufferManager(SAMPLING_RATE, AUDIO_BUFFER_SIZE_IN_S), EkaScribeStore$1.audioBufferInstance = this.audioBufferInstance, this.vadInstance = new VadWebClient(
|
|
54255
|
-
PREF_CHUNK_LENGTH,
|
|
54256
|
-
DESP_CHUNK_LENGTH,
|
|
54257
|
-
MAX_CHUNK_LENGTH,
|
|
54258
|
-
FRAME_RATE
|
|
54259
|
-
), EkaScribeStore$1.vadInstance = this.vadInstance, console.log(
|
|
54260
|
-
"Initialising SDK: ",
|
|
54261
|
-
this.audioFileManagerInstance,
|
|
54262
|
-
this.audioBufferInstance,
|
|
54263
|
-
this.vadInstance
|
|
54264
|
-
);
|
|
54265
54253
|
}
|
|
54266
54254
|
// Static method to get the singleton instance with optional initialization
|
|
54267
54255
|
static getInstance({
|
|
@@ -54288,7 +54276,12 @@ const decodeApiResponse = (i) => {
|
|
|
54288
54276
|
});
|
|
54289
54277
|
}
|
|
54290
54278
|
async initTransaction(a) {
|
|
54291
|
-
this.
|
|
54279
|
+
EkaScribeStore$1.resetStore(), this.audioFileManagerInstance = new AudioFileManager(), EkaScribeStore$1.audioFileManagerInstance = this.audioFileManagerInstance, this.audioBufferInstance = new AudioBufferManager(SAMPLING_RATE, AUDIO_BUFFER_SIZE_IN_S), EkaScribeStore$1.audioBufferInstance = this.audioBufferInstance, this.vadInstance = new VadWebClient(
|
|
54280
|
+
PREF_CHUNK_LENGTH,
|
|
54281
|
+
DESP_CHUNK_LENGTH,
|
|
54282
|
+
MAX_CHUNK_LENGTH,
|
|
54283
|
+
FRAME_RATE
|
|
54284
|
+
), EkaScribeStore$1.vadInstance = this.vadInstance;
|
|
54292
54285
|
const s = await initialiseTransaction(a);
|
|
54293
54286
|
return console.log(s, "initTransactionResponse"), s;
|
|
54294
54287
|
}
|
|
@@ -54339,7 +54332,7 @@ const decodeApiResponse = (i) => {
|
|
|
54339
54332
|
status: "info",
|
|
54340
54333
|
message: `Transaction cancel status: ${m.code}`,
|
|
54341
54334
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
54342
|
-
}),
|
|
54335
|
+
}), m;
|
|
54343
54336
|
} catch (r) {
|
|
54344
54337
|
return {
|
|
54345
54338
|
code: SDK_STATUS_CODE.INTERNAL_SERVER_ERROR,
|