@eka-care/ekascribe-ts-sdk 1.4.55 → 1.4.56
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.
|
@@ -13,6 +13,7 @@ class AudioFileManager {
|
|
|
13
13
|
this.totalInsertedSamples = 0;
|
|
14
14
|
this.totalRawSamples = 0;
|
|
15
15
|
this.totalRawFrames = 0;
|
|
16
|
+
console.log(this.audioChunks, '35');
|
|
16
17
|
}
|
|
17
18
|
constructor() {
|
|
18
19
|
/**
|
|
@@ -138,6 +139,7 @@ class AudioFileManager {
|
|
|
138
139
|
* (+ the latest chunk , affects the length of chunks data struct)
|
|
139
140
|
*/
|
|
140
141
|
updateAudioInfo(audioChunks) {
|
|
142
|
+
console.log(audioChunks, 'update audio info');
|
|
141
143
|
this.audioChunks.push(audioChunks);
|
|
142
144
|
return this.audioChunks.length;
|
|
143
145
|
}
|
package/dist/index.js
CHANGED
|
@@ -245,10 +245,12 @@ class EkaScribe {
|
|
|
245
245
|
return this.audioFileManagerInstance.getTotalAudioChunks();
|
|
246
246
|
}
|
|
247
247
|
resetEkaScribe() {
|
|
248
|
+
console.log(this.audioFileManagerInstance, this.audioBufferInstance, this.vadInstance, EkaScribeStore, 'before reset ekascribe');
|
|
248
249
|
this.audioFileManagerInstance.resetFileManagerInstance();
|
|
249
250
|
this.audioBufferInstance.resetBufferManagerInstance();
|
|
250
251
|
this.vadInstance.resetVadWebInstance();
|
|
251
252
|
EkaScribeStore.resetStore();
|
|
253
|
+
console.log(this.audioFileManagerInstance, this.audioBufferInstance, this.vadInstance, EkaScribeStore, 'after reset ekascribe');
|
|
252
254
|
}
|
|
253
255
|
onError(callback) {
|
|
254
256
|
EkaScribeStore.errorCallback = callback;
|