@framers/agentos-ext-streaming-stt-deepgram 0.2.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.
- package/LICENSE +23 -0
- package/SKILL.md +62 -0
- package/dist/DeepgramDiarizationAdapter.d.ts +78 -0
- package/dist/DeepgramDiarizationAdapter.d.ts.map +1 -0
- package/dist/DeepgramDiarizationAdapter.js +78 -0
- package/dist/DeepgramDiarizationAdapter.js.map +1 -0
- package/dist/DeepgramStreamSession.d.ts +150 -0
- package/dist/DeepgramStreamSession.d.ts.map +1 -0
- package/dist/DeepgramStreamSession.js +351 -0
- package/dist/DeepgramStreamSession.js.map +1 -0
- package/dist/DeepgramStreamingSTT.d.ts +67 -0
- package/dist/DeepgramStreamingSTT.d.ts.map +1 -0
- package/dist/DeepgramStreamingSTT.js +81 -0
- package/dist/DeepgramStreamingSTT.js.map +1 -0
- package/dist/index.d.ts +69 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +75 -0
- package/dist/index.js.map +1 -0
- package/dist/types.d.ts +64 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +11 -0
- package/dist/types.js.map +1 -0
- package/manifest.json +8 -0
- package/package.json +46 -0
- package/src/DeepgramDiarizationAdapter.ts +113 -0
- package/src/DeepgramStreamSession.ts +462 -0
- package/src/DeepgramStreamingSTT.ts +97 -0
- package/src/index.ts +112 -0
- package/src/types.ts +71 -0
package/src/types.ts
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file types.ts
|
|
3
|
+
* @description Deepgram-specific configuration types for the streaming STT extension pack.
|
|
4
|
+
*
|
|
5
|
+
* These types augment the generic {@link StreamingSTTConfig} with Deepgram WebSocket
|
|
6
|
+
* API options that have no counterpart in the core voice pipeline interface.
|
|
7
|
+
*
|
|
8
|
+
* @module streaming-stt-deepgram/types
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Deepgram-specific configuration for the streaming STT session.
|
|
13
|
+
*
|
|
14
|
+
* All fields are optional — sensible defaults are applied when omitted.
|
|
15
|
+
* The `apiKey` field is required and must be a valid Deepgram API key.
|
|
16
|
+
*/
|
|
17
|
+
export interface DeepgramStreamingConfig {
|
|
18
|
+
/**
|
|
19
|
+
* Deepgram API key. Must be set to a non-empty string; the pack reads this
|
|
20
|
+
* from the `DEEPGRAM_API_KEY` secret when constructed via {@link createExtensionPack}.
|
|
21
|
+
*/
|
|
22
|
+
apiKey: string;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Deepgram model name.
|
|
26
|
+
* @defaultValue 'nova-2'
|
|
27
|
+
* @see {@link https://developers.deepgram.com/docs/models}
|
|
28
|
+
*/
|
|
29
|
+
model?: string;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* BCP-47 language code for recognition (e.g. `'en-US'`, `'fr-FR'`).
|
|
33
|
+
* @defaultValue 'en-US'
|
|
34
|
+
*/
|
|
35
|
+
language?: string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Whether to insert punctuation into the transcript.
|
|
39
|
+
* @defaultValue true
|
|
40
|
+
*/
|
|
41
|
+
punctuate?: boolean;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Whether to emit interim (non-final) transcript events.
|
|
45
|
+
* @defaultValue true
|
|
46
|
+
*/
|
|
47
|
+
interimResults?: boolean;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Whether to enable speaker diarization (speaker turn segmentation).
|
|
51
|
+
* When `true`, each {@link TranscriptWord} in the result carries a `speaker`
|
|
52
|
+
* label populated by {@link extractSpeakerFromWords}.
|
|
53
|
+
* @defaultValue false
|
|
54
|
+
*/
|
|
55
|
+
diarize?: boolean;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Custom keyword boosting list. Deepgram will upweight these terms during
|
|
59
|
+
* recognition. Format: `['keyword:boost']` where boost is an optional float.
|
|
60
|
+
* @see {@link https://developers.deepgram.com/docs/keywords}
|
|
61
|
+
*/
|
|
62
|
+
keywords?: string[];
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Deepgram native endpointing duration in milliseconds.
|
|
66
|
+
* Set to `false` to disable provider-side endpointing (the voice pipeline's
|
|
67
|
+
* {@link IEndpointDetector} is then solely responsible for utterance segmentation).
|
|
68
|
+
* @defaultValue false
|
|
69
|
+
*/
|
|
70
|
+
endpointing?: number | false;
|
|
71
|
+
}
|