@framers/agentos 0.13.11 → 0.13.12
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/io/hearing/LiveKitTranscriptionOutput.d.ts +14 -6
- package/dist/io/hearing/LiveKitTranscriptionOutput.d.ts.map +1 -1
- package/dist/io/hearing/LiveKitTranscriptionOutput.js +41 -7
- package/dist/io/hearing/LiveKitTranscriptionOutput.js.map +1 -1
- package/dist/io/voice-pipeline/browser.d.ts +1 -1
- package/dist/io/voice-pipeline/browser.d.ts.map +1 -1
- package/dist/io/voice-pipeline/browser.js +1 -1
- package/dist/io/voice-pipeline/browser.js.map +1 -1
- package/dist/io/voice-pipeline/index.d.ts +1 -1
- package/dist/io/voice-pipeline/index.d.ts.map +1 -1
- package/dist/io/voice-pipeline/index.js +1 -1
- package/dist/io/voice-pipeline/index.js.map +1 -1
- package/dist/io/voice-pipeline/transcriptLedger.d.ts +23 -7
- package/dist/io/voice-pipeline/transcriptLedger.d.ts.map +1 -1
- package/dist/io/voice-pipeline/transcriptLedger.js +41 -7
- package/dist/io/voice-pipeline/transcriptLedger.js.map +1 -1
- package/package.json +1 -1
|
@@ -4,10 +4,14 @@
|
|
|
4
4
|
* LiveKit's own transcription output does, so a page's standard handler of the
|
|
5
5
|
* `lk.transcription` topic shows them: each interim and each final as a text
|
|
6
6
|
* stream holding the line's whole text, with `lk.segment_id` (the transcript's
|
|
7
|
-
* `itemId`), `lk.transcription_final` and `lk.transcribed_track_id
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
7
|
+
* `itemId`), `lk.transcription_final` and `lk.transcribed_track_id`, and on a
|
|
8
|
+
* final whose transcript has times, `agentos.start_ms` and `agentos.end_ms`
|
|
9
|
+
* (whole milliseconds on the session's audio clock), which
|
|
10
|
+
* `transcriptEventFromLiveKit()` reads back. Writes go out in the order they
|
|
11
|
+
* were asked for. The finals are kept in a {@link TranscriptLedger}, so a
|
|
12
|
+
* participant that reconnects can be sent again the finals after the last line
|
|
13
|
+
* it holds, a line taken back among them, each with the times it was first
|
|
14
|
+
* written with.
|
|
11
15
|
*
|
|
12
16
|
* The room is described by a structural type, so this module and its typings
|
|
13
17
|
* carry no dependency on `@livekit/rtc-node`; a connected rtc-node `Room` is
|
|
@@ -66,7 +70,10 @@ export declare class LiveKitTranscriptionOutput {
|
|
|
66
70
|
/**
|
|
67
71
|
* Writes one transcript to every participant. Resolves `true` once it is
|
|
68
72
|
* sent, `false` when the ledger already held it (a repeated final, or an
|
|
69
|
-
* interim after the final), which sends nothing.
|
|
73
|
+
* interim after the final), which sends nothing. A final carries the
|
|
74
|
+
* transcript's `startMs` and `endMs` as {@link TRANSCRIPTION_TIME_ATTRIBUTES},
|
|
75
|
+
* each rounded to whole milliseconds and left out when the rounded time is
|
|
76
|
+
* negative or not a safe integer; an interim carries neither.
|
|
70
77
|
*
|
|
71
78
|
* The ledger takes the line before it is sent, so a send that fails leaves
|
|
72
79
|
* the line there: writing the same transcript again sends nothing, and
|
|
@@ -86,7 +93,8 @@ export declare class LiveKitTranscriptionOutput {
|
|
|
86
93
|
* Sends again, to one participant, the final lines after the line with the
|
|
87
94
|
* id, in order, a line taken back among them as its empty final, so a page
|
|
88
95
|
* that missed the retraction drops the line; every one of them when the id
|
|
89
|
-
* is `undefined` or unknown.
|
|
96
|
+
* is `undefined` or unknown. Each final carries the times it was first
|
|
97
|
+
* written with, read from the ledger's line. Resolves how many were sent.
|
|
90
98
|
*/
|
|
91
99
|
replayAfter(itemId: string | undefined, participantIdentity: string): Promise<number>;
|
|
92
100
|
private enqueue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiveKitTranscriptionOutput.d.ts","sourceRoot":"","sources":["../../../src/io/hearing/LiveKitTranscriptionOutput.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"LiveKitTranscriptionOutput.d.ts","sourceRoot":"","sources":["../../../src/io/hearing/LiveKitTranscriptionOutput.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AO,CAAC,OAAO,CAAC;IAmBjG;;;;;;OAMG;IACH,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,EAAE,mBAAmB,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAQrF,OAAO,CAAC,OAAO;YAMD,IAAI;CAkBnB"}
|
|
@@ -4,10 +4,14 @@
|
|
|
4
4
|
* LiveKit's own transcription output does, so a page's standard handler of the
|
|
5
5
|
* `lk.transcription` topic shows them: each interim and each final as a text
|
|
6
6
|
* stream holding the line's whole text, with `lk.segment_id` (the transcript's
|
|
7
|
-
* `itemId`), `lk.transcription_final` and `lk.transcribed_track_id
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
7
|
+
* `itemId`), `lk.transcription_final` and `lk.transcribed_track_id`, and on a
|
|
8
|
+
* final whose transcript has times, `agentos.start_ms` and `agentos.end_ms`
|
|
9
|
+
* (whole milliseconds on the session's audio clock), which
|
|
10
|
+
* `transcriptEventFromLiveKit()` reads back. Writes go out in the order they
|
|
11
|
+
* were asked for. The finals are kept in a {@link TranscriptLedger}, so a
|
|
12
|
+
* participant that reconnects can be sent again the finals after the last line
|
|
13
|
+
* it holds, a line taken back among them, each with the times it was first
|
|
14
|
+
* written with.
|
|
11
15
|
*
|
|
12
16
|
* The room is described by a structural type, so this module and its typings
|
|
13
17
|
* carry no dependency on `@livekit/rtc-node`; a connected rtc-node `Room` is
|
|
@@ -23,7 +27,7 @@
|
|
|
23
27
|
* await output.replayAfter(lastItemId, participantIdentity);
|
|
24
28
|
* ```
|
|
25
29
|
*/
|
|
26
|
-
import { LIVEKIT_TRANSCRIPTION_ATTRIBUTES, LIVEKIT_TRANSCRIPTION_TOPIC, TRANSCRIPTION_FAILED_ATTRIBUTE, TranscriptLedger, } from '../voice-pipeline/transcriptLedger.js';
|
|
30
|
+
import { LIVEKIT_TRANSCRIPTION_ATTRIBUTES, LIVEKIT_TRANSCRIPTION_TOPIC, TRANSCRIPTION_FAILED_ATTRIBUTE, TRANSCRIPTION_TIME_ATTRIBUTES, TranscriptLedger, } from '../voice-pipeline/transcriptLedger.js';
|
|
27
31
|
/** Transcripts written into a LiveKit room as transcription text streams. */
|
|
28
32
|
export class LiveKitTranscriptionOutput {
|
|
29
33
|
constructor(options) {
|
|
@@ -35,7 +39,10 @@ export class LiveKitTranscriptionOutput {
|
|
|
35
39
|
/**
|
|
36
40
|
* Writes one transcript to every participant. Resolves `true` once it is
|
|
37
41
|
* sent, `false` when the ledger already held it (a repeated final, or an
|
|
38
|
-
* interim after the final), which sends nothing.
|
|
42
|
+
* interim after the final), which sends nothing. A final carries the
|
|
43
|
+
* transcript's `startMs` and `endMs` as {@link TRANSCRIPTION_TIME_ATTRIBUTES},
|
|
44
|
+
* each rounded to whole milliseconds and left out when the rounded time is
|
|
45
|
+
* negative or not a safe integer; an interim carries neither.
|
|
39
46
|
*
|
|
40
47
|
* The ledger takes the line before it is sent, so a send that fails leaves
|
|
41
48
|
* the line there: writing the same transcript again sends nothing, and
|
|
@@ -70,7 +77,8 @@ export class LiveKitTranscriptionOutput {
|
|
|
70
77
|
* Sends again, to one participant, the final lines after the line with the
|
|
71
78
|
* id, in order, a line taken back among them as its empty final, so a page
|
|
72
79
|
* that missed the retraction drops the line; every one of them when the id
|
|
73
|
-
* is `undefined` or unknown.
|
|
80
|
+
* is `undefined` or unknown. Each final carries the times it was first
|
|
81
|
+
* written with, read from the ledger's line. Resolves how many were sent.
|
|
74
82
|
*/
|
|
75
83
|
replayAfter(itemId, participantIdentity) {
|
|
76
84
|
const finals = this.ledger.finalsAfter(itemId, { takenBack: true });
|
|
@@ -92,6 +100,8 @@ export class LiveKitTranscriptionOutput {
|
|
|
92
100
|
const attributes = {
|
|
93
101
|
[LIVEKIT_TRANSCRIPTION_ATTRIBUTES.segmentId]: line.itemId,
|
|
94
102
|
[LIVEKIT_TRANSCRIPTION_ATTRIBUTES.final]: line.isFinal ? 'true' : 'false',
|
|
103
|
+
// The ledger's line keeps the times its final was written with, so a replay sends the same two.
|
|
104
|
+
...(line.isFinal ? timeAttributes(line) : {}),
|
|
95
105
|
};
|
|
96
106
|
const sid = this.options.trackSid?.();
|
|
97
107
|
if (sid)
|
|
@@ -105,4 +115,28 @@ export class LiveKitTranscriptionOutput {
|
|
|
105
115
|
});
|
|
106
116
|
}
|
|
107
117
|
}
|
|
118
|
+
/**
|
|
119
|
+
* A final's time attributes ({@link TRANSCRIPTION_TIME_ATTRIBUTES}): each time
|
|
120
|
+
* the line holds, rounded to whole milliseconds and written in decimal digits,
|
|
121
|
+
* the form `transcriptEventFromLiveKit()` reads back. A time that is negative,
|
|
122
|
+
* not a finite number or past the integers a number holds exactly is left out,
|
|
123
|
+
* since a reader would not take it.
|
|
124
|
+
*/
|
|
125
|
+
function timeAttributes(line) {
|
|
126
|
+
const out = {};
|
|
127
|
+
const startMs = wholeMs(line.startMs);
|
|
128
|
+
if (startMs !== undefined)
|
|
129
|
+
out[TRANSCRIPTION_TIME_ATTRIBUTES.startMs] = startMs;
|
|
130
|
+
const endMs = wholeMs(line.endMs);
|
|
131
|
+
if (endMs !== undefined)
|
|
132
|
+
out[TRANSCRIPTION_TIME_ATTRIBUTES.endMs] = endMs;
|
|
133
|
+
return out;
|
|
134
|
+
}
|
|
135
|
+
/** A time as whole milliseconds in decimal digits, or `undefined` for a time no such string holds. */
|
|
136
|
+
function wholeMs(ms) {
|
|
137
|
+
if (ms === undefined)
|
|
138
|
+
return undefined;
|
|
139
|
+
const whole = Math.round(ms);
|
|
140
|
+
return whole >= 0 && Number.isSafeInteger(whole) ? String(whole) : undefined;
|
|
141
|
+
}
|
|
108
142
|
//# sourceMappingURL=LiveKitTranscriptionOutput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiveKitTranscriptionOutput.js","sourceRoot":"","sources":["../../../src/io/hearing/LiveKitTranscriptionOutput.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"LiveKitTranscriptionOutput.js","sourceR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AAI,OAAO,KAAK,SAAS;QAAE,GAAG,CAAC,6BAA6B,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;IAChF,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAClC,IAAI,KAAK,KAAK,SAAS;QAAE,GAAG,CAAC,6BAA6B,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;IAC1E,OAAO,GAAG,CAAC;AACb,CAAC;AAED,sGAAsG;AACtG,SAAS,OAAO,CAAC,EAAsB;IACrC,IAAI,EAAE,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IACvC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC7B,OAAO,KAAK,IAAI,CAAC,IAAI,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAC/E,CAAC"}
|
|
@@ -15,6 +15,6 @@
|
|
|
15
15
|
* import { TranscriptLedger, transcriptEventFromLiveKit } from './browser.js';
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
|
-
export { LIVEKIT_TRANSCRIPTION_ATTRIBUTES, LIVEKIT_TRANSCRIPTION_TOPIC, TRANSCRIPTION_FAILED_ATTRIBUTE, TranscriptLedger, transcriptEventFromLiveKit, type LedgerEvent, type LedgerItem, type TranscriptLedgerOptions, } from './transcriptLedger.js';
|
|
18
|
+
export { LIVEKIT_TRANSCRIPTION_ATTRIBUTES, LIVEKIT_TRANSCRIPTION_TOPIC, TRANSCRIPTION_FAILED_ATTRIBUTE, TRANSCRIPTION_TIME_ATTRIBUTES, TranscriptLedger, transcriptEventFromLiveKit, type LedgerEvent, type LedgerItem, type TranscriptLedgerOptions, } from './transcriptLedger.js';
|
|
19
19
|
export { InputSilenceWatch, inputLevelDb, type InputSilenceWatchOptions } from './inputLevel.js';
|
|
20
20
|
//# sourceMappingURL=browser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../../src/io/voice-pipeline/browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EACL,gCAAgC,EAChC,2BAA2B,EAC3B,8BAA8B,EAC9B,gBAAgB,EAChB,0BAA0B,EAC1B,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,uBAAuB,GAC7B,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,KAAK,wBAAwB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../../src/io/voice-pipeline/browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EACL,gCAAgC,EAChC,2BAA2B,EAC3B,8BAA8B,EAC9B,6BAA6B,EAC7B,gBAAgB,EAChB,0BAA0B,EAC1B,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,uBAAuB,GAC7B,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,KAAK,wBAAwB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
18
|
// A live transcript as lines keyed by item id, and LiveKit's transcription streams read into it.
|
|
19
|
-
export { LIVEKIT_TRANSCRIPTION_ATTRIBUTES, LIVEKIT_TRANSCRIPTION_TOPIC, TRANSCRIPTION_FAILED_ATTRIBUTE, TranscriptLedger, transcriptEventFromLiveKit, } from './transcriptLedger.js';
|
|
19
|
+
export { LIVEKIT_TRANSCRIPTION_ATTRIBUTES, LIVEKIT_TRANSCRIPTION_TOPIC, TRANSCRIPTION_FAILED_ATTRIBUTE, TRANSCRIPTION_TIME_ATTRIBUTES, TranscriptLedger, transcriptEventFromLiveKit, } from './transcriptLedger.js';
|
|
20
20
|
// An input's level and the watch for an input that carries no sound; inputLevel.ts imports nothing.
|
|
21
21
|
export { InputSilenceWatch, inputLevelDb } from './inputLevel.js';
|
|
22
22
|
//# sourceMappingURL=browser.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../../../src/io/voice-pipeline/browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,iGAAiG;AACjG,OAAO,EACL,gCAAgC,EAChC,2BAA2B,EAC3B,8BAA8B,EAC9B,gBAAgB,EAChB,0BAA0B,GAI3B,MAAM,uBAAuB,CAAC;AAE/B,oGAAoG;AACpG,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAiC,MAAM,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../../../src/io/voice-pipeline/browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,iGAAiG;AACjG,OAAO,EACL,gCAAgC,EAChC,2BAA2B,EAC3B,8BAA8B,EAC9B,6BAA6B,EAC7B,gBAAgB,EAChB,0BAA0B,GAI3B,MAAM,uBAAuB,CAAC;AAE/B,oGAAoG;AACpG,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAiC,MAAM,iBAAiB,CAAC"}
|
|
@@ -113,7 +113,7 @@ export { CircuitBreaker, type BreakerState, type CircuitBreakerOptions, type Sta
|
|
|
113
113
|
export { AudioRingBuffer, type AudioRingBufferOptions } from './AudioRingBuffer.js';
|
|
114
114
|
export { InputSilenceWatch, inputLevelDb, type InputSilenceWatchOptions } from './inputLevel.js';
|
|
115
115
|
export { TranscriptDedupe, type TranscriptObservation, type DedupeResult, } from './TranscriptDedupe.js';
|
|
116
|
-
export { LIVEKIT_TRANSCRIPTION_ATTRIBUTES, LIVEKIT_TRANSCRIPTION_TOPIC, TRANSCRIPTION_FAILED_ATTRIBUTE, TranscriptLedger, transcriptEventFromLiveKit, type LedgerEvent, type LedgerItem, type TranscriptLedgerOptions, } from './transcriptLedger.js';
|
|
116
|
+
export { LIVEKIT_TRANSCRIPTION_ATTRIBUTES, LIVEKIT_TRANSCRIPTION_TOPIC, TRANSCRIPTION_FAILED_ATTRIBUTE, TRANSCRIPTION_TIME_ATTRIBUTES, TranscriptLedger, transcriptEventFromLiveKit, type LedgerEvent, type LedgerItem, type TranscriptLedgerOptions, } from './transcriptLedger.js';
|
|
117
117
|
export { VoiceMetricsReporter, type VoiceMetricEvent, type VoiceMetricListener, } from './VoiceMetricsReporter.js';
|
|
118
118
|
export { createVoiceProvidersFromEnv, NoVoiceProvidersAvailableError, type VoiceProviderEnvConfig, type VoiceProviderBundle, } from './env-constructor.js';
|
|
119
119
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/io/voice-pipeline/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgGG;AAIH,cAAc,YAAY,CAAC;AAG3B,OAAO,EAAE,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAGjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAGrE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAGzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAGzE,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAG1F,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CA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AmB,GACzB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,2BAA2B,EAC3B,8BAA8B,EAC9B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,GACzB,MAAM,sBAAsB,CAAC"}
|
|
@@ -125,7 +125,7 @@ export { CircuitBreaker, } from './CircuitBreaker.js';
|
|
|
125
125
|
export { AudioRingBuffer } from './AudioRingBuffer.js';
|
|
126
126
|
export { InputSilenceWatch, inputLevelDb } from './inputLevel.js';
|
|
127
127
|
export { TranscriptDedupe, } from './TranscriptDedupe.js';
|
|
128
|
-
export { LIVEKIT_TRANSCRIPTION_ATTRIBUTES, LIVEKIT_TRANSCRIPTION_TOPIC, TRANSCRIPTION_FAILED_ATTRIBUTE, TranscriptLedger, transcriptEventFromLiveKit, } from './transcriptLedger.js';
|
|
128
|
+
export { LIVEKIT_TRANSCRIPTION_ATTRIBUTES, LIVEKIT_TRANSCRIPTION_TOPIC, TRANSCRIPTION_FAILED_ATTRIBUTE, TRANSCRIPTION_TIME_ATTRIBUTES, TranscriptLedger, transcriptEventFromLiveKit, } from './transcriptLedger.js';
|
|
129
129
|
export { VoiceMetricsReporter, } from './VoiceMetricsReporter.js';
|
|
130
130
|
export { createVoiceProvidersFromEnv, NoVoiceProvidersAvailableError, } from './env-constructor.js';
|
|
131
131
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/io/voice-pipeline/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgGG;AAEH,wDAAwD;AACxD,8EAA8E;AAC9E,cAAc,YAAY,CAAC;AAE3B,+DAA+D;AAC/D,OAAO,EAAE,iBAAiB,EAA0B,MAAM,sBAAsB,CAAC;AAEjF,4CAA4C;AAC5C,OAAO,EAAE,qBAAqB,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EACpB,2BAA2B,EAE3B,qBAAqB,GAEtB,MAAM,sBAAsB,CAAC;AAE9B,wBAAwB;AACxB,OAAO,EACL,kBAAkB,EAClB,mBAAmB,GAGpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAIL,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,cAAc,GAIf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,eAAe,EAA+B,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAiC,MAAM,iBAAiB,CAAC;AACjG,OAAO,EACL,gBAAgB,GAGjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,gCAAgC,EAChC,2BAA2B,EAC3B,8BAA8B,EAC9B,6BAA6B,EAC7B,gBAAgB,EAChB,0BAA0B,GAI3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,oBAAoB,GAGrB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,2BAA2B,EAC3B,8BAA8B,GAG/B,MAAM,sBAAsB,CAAC"}
|
|
@@ -6,12 +6,14 @@
|
|
|
6
6
|
* nothing; lines keep the order they were first seen in. An empty final with
|
|
7
7
|
* no failure takes a line back, and the ledger hides it. LiveKit carries
|
|
8
8
|
* transcripts as text streams on its `lk.transcription` topic with the
|
|
9
|
-
* attributes its own transcription output sets
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* `@framers/agentos/io/
|
|
14
|
-
*
|
|
9
|
+
* attributes its own transcription output sets, to which this library adds
|
|
10
|
+
* `agentos.transcription_failed` on a line the provider could not transcribe
|
|
11
|
+
* and `agentos.start_ms` and `agentos.end_ms` on a final with times:
|
|
12
|
+
* `transcriptEventFromLiveKit()` reads such a stream, and
|
|
13
|
+
* `LiveKitTranscriptionOutput` (`@framers/agentos/io/hearing/livekit`) writes
|
|
14
|
+
* them. The module imports nothing, its types included, so a browser bundle
|
|
15
|
+
* takes it from `@framers/agentos/io/voice-pipeline/browser` and a type check
|
|
16
|
+
* of it needs no Node types.
|
|
15
17
|
*/
|
|
16
18
|
/** LiveKit's topic for transcription text streams. */
|
|
17
19
|
export declare const LIVEKIT_TRANSCRIPTION_TOPIC = "lk.transcription";
|
|
@@ -26,6 +28,17 @@ export declare const LIVEKIT_TRANSCRIPTION_ATTRIBUTES: {
|
|
|
26
28
|
};
|
|
27
29
|
/** The attribute this library adds to a line the provider could not transcribe, holding a short reason. */
|
|
28
30
|
export declare const TRANSCRIPTION_FAILED_ATTRIBUTE = "agentos.transcription_failed";
|
|
31
|
+
/**
|
|
32
|
+
* The attributes this library adds to a final: the line's start and end on the
|
|
33
|
+
* session's audio clock, when the provider gave them, each as whole
|
|
34
|
+
* milliseconds in decimal digits (`'1200'`). An interim carries neither.
|
|
35
|
+
*/
|
|
36
|
+
export declare const TRANSCRIPTION_TIME_ATTRIBUTES: {
|
|
37
|
+
/** The line's `startMs`. */
|
|
38
|
+
readonly startMs: "agentos.start_ms";
|
|
39
|
+
/** The line's `endMs`. */
|
|
40
|
+
readonly endMs: "agentos.end_ms";
|
|
41
|
+
};
|
|
29
42
|
/** One line of a ledger. */
|
|
30
43
|
export interface LedgerItem {
|
|
31
44
|
/** The line's id: the provider's item id. */
|
|
@@ -133,7 +146,10 @@ export declare class TranscriptLedger {
|
|
|
133
146
|
}
|
|
134
147
|
/**
|
|
135
148
|
* Reads one LiveKit transcription stream (its text and attributes) as a
|
|
136
|
-
* {@link LedgerEvent}, or `null` when it carries no segment id.
|
|
149
|
+
* {@link LedgerEvent}, or `null` when it carries no segment id. The stream's
|
|
150
|
+
* {@link TRANSCRIPTION_TIME_ATTRIBUTES} become the event's `startMs` and
|
|
151
|
+
* `endMs`, each only when it holds whole milliseconds in decimal digits; a time
|
|
152
|
+
* the stream does not carry, or carries in any other form, is left undefined.
|
|
137
153
|
*/
|
|
138
154
|
export declare function transcriptEventFromLiveKit(text: string, attributes: Readonly<Record<string, string>> | undefined): LedgerEvent | null;
|
|
139
155
|
//# sourceMappingURL=transcriptLedger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transcriptLedger.d.ts","sourceRoot":"","sources":["../../../src/io/voice-pipeline/transcriptLedger.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"transcriptLedger.d.ts","sourceRoot":"","sources":["../../../src/io/voice-pipeline/transcriptLedger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,sDAAsD;AACtD,eAAO,MAAM,2BAA2B,qBAAqB,CAAC;AAE9D,6EAA6E;AAC7E,eAAO,MAAM,gCAAgC;IAC3C,yEAAyE;;IAEzE,oEAAoE;;IAEpE,wDAAwD;;CAEhD,CAAC;AAEX,2GAA2G;AAC3G,eAAO,MAAM,8BAA8B,iCAAiC,CAAC;AAE7E;;;;GAIG;AACH,eAAO,MAAM,6BAA6B;IACxC,4BAA4B;;IAE5B,0BAA0B;;CAElB,CAAC;AAEX,4BAA4B;AAC5B,MAAM,WAAW,UAAU;IACzB,6CAA6C;IAC7C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,yDAAyD;IACzD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,iEAAiE;IACjE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,kFAAkF;IAClF,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,gFAAgF;IAChF,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,uDAAuD;IACvD,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,8EAA8E;IAC9E,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B,mFAAmF;IACnF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oEAAoE;IACpE,IAAI,EAAE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EAAE,OAAO,EAAE,OAAO,GAAE,uBAA4B,GAAG,gBAAgB;IAqBxF;;;;;OAKG;IACH,OAAO,CAAC,IAAI;CAcb;AAED;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,SAAS,GAAG,WAAW,GAAG,IAAI,CAYrI"}
|
|
@@ -6,12 +6,14 @@
|
|
|
6
6
|
* nothing; lines keep the order they were first seen in. An empty final with
|
|
7
7
|
* no failure takes a line back, and the ledger hides it. LiveKit carries
|
|
8
8
|
* transcripts as text streams on its `lk.transcription` topic with the
|
|
9
|
-
* attributes its own transcription output sets
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* `@framers/agentos/io/
|
|
14
|
-
*
|
|
9
|
+
* attributes its own transcription output sets, to which this library adds
|
|
10
|
+
* `agentos.transcription_failed` on a line the provider could not transcribe
|
|
11
|
+
* and `agentos.start_ms` and `agentos.end_ms` on a final with times:
|
|
12
|
+
* `transcriptEventFromLiveKit()` reads such a stream, and
|
|
13
|
+
* `LiveKitTranscriptionOutput` (`@framers/agentos/io/hearing/livekit`) writes
|
|
14
|
+
* them. The module imports nothing, its types included, so a browser bundle
|
|
15
|
+
* takes it from `@framers/agentos/io/voice-pipeline/browser` and a type check
|
|
16
|
+
* of it needs no Node types.
|
|
15
17
|
*/
|
|
16
18
|
/** LiveKit's topic for transcription text streams. */
|
|
17
19
|
export const LIVEKIT_TRANSCRIPTION_TOPIC = 'lk.transcription';
|
|
@@ -26,6 +28,17 @@ export const LIVEKIT_TRANSCRIPTION_ATTRIBUTES = {
|
|
|
26
28
|
};
|
|
27
29
|
/** The attribute this library adds to a line the provider could not transcribe, holding a short reason. */
|
|
28
30
|
export const TRANSCRIPTION_FAILED_ATTRIBUTE = 'agentos.transcription_failed';
|
|
31
|
+
/**
|
|
32
|
+
* The attributes this library adds to a final: the line's start and end on the
|
|
33
|
+
* session's audio clock, when the provider gave them, each as whole
|
|
34
|
+
* milliseconds in decimal digits (`'1200'`). An interim carries neither.
|
|
35
|
+
*/
|
|
36
|
+
export const TRANSCRIPTION_TIME_ATTRIBUTES = {
|
|
37
|
+
/** The line's `startMs`. */
|
|
38
|
+
startMs: 'agentos.start_ms',
|
|
39
|
+
/** The line's `endMs`. */
|
|
40
|
+
endMs: 'agentos.end_ms',
|
|
41
|
+
};
|
|
29
42
|
/** A live transcript's lines keyed by item id, in the order first seen. */
|
|
30
43
|
export class TranscriptLedger {
|
|
31
44
|
/** @throws {RangeError} When `maxItems` is below 1. */
|
|
@@ -175,7 +188,10 @@ export class TranscriptLedger {
|
|
|
175
188
|
}
|
|
176
189
|
/**
|
|
177
190
|
* Reads one LiveKit transcription stream (its text and attributes) as a
|
|
178
|
-
* {@link LedgerEvent}, or `null` when it carries no segment id.
|
|
191
|
+
* {@link LedgerEvent}, or `null` when it carries no segment id. The stream's
|
|
192
|
+
* {@link TRANSCRIPTION_TIME_ATTRIBUTES} become the event's `startMs` and
|
|
193
|
+
* `endMs`, each only when it holds whole milliseconds in decimal digits; a time
|
|
194
|
+
* the stream does not carry, or carries in any other form, is left undefined.
|
|
179
195
|
*/
|
|
180
196
|
export function transcriptEventFromLiveKit(text, attributes) {
|
|
181
197
|
if (attributes === undefined)
|
|
@@ -187,6 +203,24 @@ export function transcriptEventFromLiveKit(text, attributes) {
|
|
|
187
203
|
const failed = attributes[TRANSCRIPTION_FAILED_ATTRIBUTE];
|
|
188
204
|
if (failed)
|
|
189
205
|
event.failed = failed;
|
|
206
|
+
const startMs = readMs(attributes[TRANSCRIPTION_TIME_ATTRIBUTES.startMs]);
|
|
207
|
+
if (startMs !== undefined)
|
|
208
|
+
event.startMs = startMs;
|
|
209
|
+
const endMs = readMs(attributes[TRANSCRIPTION_TIME_ATTRIBUTES.endMs]);
|
|
210
|
+
if (endMs !== undefined)
|
|
211
|
+
event.endMs = endMs;
|
|
190
212
|
return event;
|
|
191
213
|
}
|
|
214
|
+
/**
|
|
215
|
+
* A time attribute's value as milliseconds: a string of decimal digits alone,
|
|
216
|
+
* read as a number while it is an integer a number holds exactly; `undefined`
|
|
217
|
+
* for anything else (no value, an empty string, a sign, a space, a fraction,
|
|
218
|
+
* an exponent, a hexadecimal form, a separator).
|
|
219
|
+
*/
|
|
220
|
+
function readMs(value) {
|
|
221
|
+
if (value === undefined || !/^\d+$/.test(value))
|
|
222
|
+
return undefined;
|
|
223
|
+
const ms = Number(value);
|
|
224
|
+
return Number.isSafeInteger(ms) ? ms : undefined;
|
|
225
|
+
}
|
|
192
226
|
//# sourceMappingURL=transcriptLedger.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transcriptLedger.js","sourceRoot":"","sources":["../../../src/io/voice-pipeline/transcriptLedger.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"transcriptLedger.js","sourceRoot":"","sources":["../../../src/io/voice-pipeline/transcriptLedger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,sDAAsD;AACtD,MAAM,CAAC,MAAM,2BAA2B,GAAG,kBAAkB,CAAC;AAE9D,6EAA6E;AAC7E,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC9C,yEAAyE;IACzE,SAAS,EAAE,eAAe;IAC1B,oEAAoE;IACpE,KAAK,EAAE,wBAAwB;IAC/B,wDAAwD;IACxD,OAAO,EAAE,yBAAyB;CAC1B,CAAC;AAEX,2GAA2G;AAC3G,MAAM,CAAC,MAAM,8BAA8B,GAAG,8BAA8B,CAAC;AAE7E;;;;GAIG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,4BAA4B;IAC5B,OAAO,EAAE,kBAAkB;IAC3B,0BAA0B;IAC1B,KAAK,EAAE,gBAAgB;CACf,CAAC;AAuDX,2EAA2E;AAC3E,MAAM,OAAO,gBAAgB;IAK3B,uDAAuD;IACvD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AA6B,CAAC,KAAK,CAAC,CAAC,CAAC;IACtE,IAAI,KAAK,KAAK,SAAS;QAAE,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;IAC7C,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;GAKG;AACH,SAAS,MAAM,CAAC,KAAyB;IACvC,IAAI,KAAK,KAAK,SAAS,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IAClE,MAAM,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IACzB,OAAO,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AACnD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@framers/agentos",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.12",
|
|
4
4
|
"description": "AgentOS: open-source TypeScript framework for autonomous AI agents. Unified graph orchestration, cognitive memory, runtime tool forging, multi-tier guardrails, voice pipeline, and 11 LLM providers.",
|
|
5
5
|
"homepage": "https://agentos.sh",
|
|
6
6
|
"repository": {
|