@dxos/pipeline-transcription 0.10.0 → 0.11.0

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.
@@ -0,0 +1,19 @@
1
+ //#region src/types/transcript-event.ts
2
+ var TranscriptEvent = Object.freeze({
3
+ /** A new transcript block was appended by the ASR source. */
4
+ block: (block) => ({
5
+ kind: "block",
6
+ block
7
+ }),
8
+ /** The speaker has been silent for `sinceMs` milliseconds. */
9
+ silence: (sinceMs) => ({
10
+ kind: "silence",
11
+ sinceMs
12
+ }),
13
+ /** Periodic timer tick (drives periodic-trigger stages). */
14
+ tick: () => ({ kind: "tick" })
15
+ });
16
+ //#endregion
17
+ export { TranscriptEvent as t };
18
+
19
+ //# sourceMappingURL=chunk-transcript-event.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunk-transcript-event.mjs","names":[],"sources":["../../src/types/transcript-event.ts"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\nimport { type ContentBlock } from '@dxos/types';\n\n/**\n * Events flowing through the pipeline stream. The runtime owns this continuous stream and slices\n * it into bounded windows that drive discrete stage invocations.\n */\nexport type TranscriptEvent =\n | { kind: 'block'; block: ContentBlock.Transcript }\n | { kind: 'silence'; sinceMs: number }\n | { kind: 'tick' };\n\nexport const TranscriptEvent = Object.freeze({\n /** A new transcript block was appended by the ASR source. */\n block: (block: ContentBlock.Transcript): TranscriptEvent => ({ kind: 'block', block }),\n /** The speaker has been silent for `sinceMs` milliseconds. */\n silence: (sinceMs: number): TranscriptEvent => ({ kind: 'silence', sinceMs }),\n /** Periodic timer tick (drives periodic-trigger stages). */\n tick: (): TranscriptEvent => ({ kind: 'tick' }),\n});\n"],"mappings":";AAeA,IAAa,kBAAkB,OAAO,OAAO;;CAE3C,QAAQ,WAAqD;EAAE,MAAM;EAAS;CAAM;;CAEpF,UAAU,aAAsC;EAAE,MAAM;EAAW;CAAQ;;CAE3E,aAA8B,EAAE,MAAM,OAAO;AAC/C,CAAC"}