@eka-care/ekascribe-ts-sdk 2.0.56 → 2.0.58
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
|
|
@@ -53039,8 +53039,8 @@ class VadWebClient {
|
|
|
53039
53039
|
s?.incrementTotalRawSamples(m), n?.append(m);
|
|
53040
53040
|
const y = EkaScribeStore$1.vadFrameProcessedCallback;
|
|
53041
53041
|
if (y) {
|
|
53042
|
-
const
|
|
53043
|
-
y({ probabilities: u, frame: m, duration:
|
|
53042
|
+
const h = (s?.getRawSampleDetails()?.totalRawSamples || 0) / SAMPLING_RATE;
|
|
53043
|
+
y({ probabilities: u, frame: m, duration: h });
|
|
53044
53044
|
}
|
|
53045
53045
|
if (!this.recording_started)
|
|
53046
53046
|
return;
|