@eka-care/ekascribe-ts-sdk 2.0.57 → 2.0.59
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.mjs +3 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -11456,7 +11456,7 @@ class AudioBufferManager {
|
|
|
11456
11456
|
* @returns The duration of audio currently in the buffer in seconds
|
|
11457
11457
|
*/
|
|
11458
11458
|
getDurationInSeconds() {
|
|
11459
|
-
return
|
|
11459
|
+
return this.currentSampleLength / this.samplingRate;
|
|
11460
11460
|
}
|
|
11461
11461
|
/**
|
|
11462
11462
|
* Expand the buffer by allocating a new block of memory
|
|
@@ -38561,7 +38561,7 @@ class AudioFileManager {
|
|
|
38561
38561
|
fileBlob: y,
|
|
38562
38562
|
compressedAudioBuffer: l
|
|
38563
38563
|
} = c.requestBody;
|
|
38564
|
-
n && l && n({
|
|
38564
|
+
n && l && (console.log("callback", u), n({
|
|
38565
38565
|
callback_type: CALLBACK_TYPE.FILE_UPLOAD_STATUS,
|
|
38566
38566
|
status: "info",
|
|
38567
38567
|
message: "Audioframes of chunk to store in IDB",
|
|
@@ -38572,7 +38572,7 @@ class AudioFileManager {
|
|
|
38572
38572
|
fileName: u,
|
|
38573
38573
|
chunkData: l
|
|
38574
38574
|
}
|
|
38575
|
-
}), c.response.success ? (this.successfulUploads.push(u), m !== -1 && (this.audioChunks[m] = {
|
|
38575
|
+
})), c.response.success ? (this.successfulUploads.push(u), m !== -1 && (this.audioChunks[m] = {
|
|
38576
38576
|
...this.audioChunks[m],
|
|
38577
38577
|
audioFrames: void 0,
|
|
38578
38578
|
fileBlob: void 0,
|