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 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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "med-scribe-alliance-ts-sdk",
3
- "version": "2.0.12",
3
+ "version": "2.0.13",
4
4
  "description": "TypeScript SDK for the MedScribe Alliance Protocol",
5
5
  "main": "dist/index.mjs",
6
6
  "module": "dist/index.mjs",