med-scribe-alliance-ts-sdk 2.0.12 → 2.0.13
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 +2 -0
- package/dist/index.mjs +3 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -483,6 +483,8 @@ export interface AudioEventFrameProcessed {
|
|
|
483
483
|
data: {
|
|
484
484
|
isSpeech: number;
|
|
485
485
|
notSpeech: number;
|
|
486
|
+
frame: Float32Array;
|
|
487
|
+
duration: number;
|
|
486
488
|
};
|
|
487
489
|
}
|
|
488
490
|
export type AudioEvent = AudioEventUserSpeech | AudioEventSilenceWarning | AudioEventChunkReady | AudioEventFrameProcessed;
|
package/dist/index.mjs
CHANGED
|
@@ -940,7 +940,9 @@ var G = {
|
|
|
940
940
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
941
941
|
data: {
|
|
942
942
|
isSpeech: e.isSpeech,
|
|
943
|
-
notSpeech: e.notSpeech
|
|
943
|
+
notSpeech: e.notSpeech,
|
|
944
|
+
frame: t,
|
|
945
|
+
duration: t.length / this.samplingRate
|
|
944
946
|
}
|
|
945
947
|
}), !this.isRecording) return;
|
|
946
948
|
this.onRawFrame?.(t);
|