@acpfx/stt-deepgram 0.2.0 → 0.2.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @acpfx/stt-deepgram
2
2
 
3
+ ## 0.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [0e6838e]
8
+ - @acpfx/core@0.4.0
9
+ - @acpfx/node-sdk@0.3.0
10
+
11
+ ## 0.2.1
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [79c6694]
16
+ - Updated dependencies [a0320a1]
17
+ - @acpfx/core@0.3.0
18
+ - @acpfx/node-sdk@0.2.1
19
+
3
20
  ## 0.2.0
4
21
 
5
22
  ### Minor Changes
package/manifest.yaml CHANGED
@@ -9,3 +9,27 @@ emits:
9
9
  - lifecycle.ready
10
10
  - lifecycle.done
11
11
  - control.error
12
+ arguments:
13
+ language:
14
+ type: string
15
+ default: "en"
16
+ description: "Language code for transcription"
17
+ model:
18
+ type: string
19
+ default: "nova-3"
20
+ description: "Deepgram model name"
21
+ utteranceEndMs:
22
+ type: number
23
+ default: 1000
24
+ description: "Milliseconds of silence before utterance end"
25
+ endpointing:
26
+ type: number
27
+ default: 300
28
+ description: "VAD endpointing threshold in ms"
29
+ apiKey:
30
+ type: string
31
+ description: "Deepgram API key (overrides DEEPGRAM_API_KEY env var)"
32
+ env:
33
+ DEEPGRAM_API_KEY:
34
+ required: true
35
+ description: "Deepgram API key for STT"
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@acpfx/stt-deepgram",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "acpfx-stt-deepgram": "./dist/index.js"
7
7
  },
8
8
  "main": "./dist/index.js",
9
9
  "dependencies": {
10
- "@acpfx/core": "0.2.0",
11
- "@acpfx/node-sdk": "0.2.0"
10
+ "@acpfx/core": "0.4.0",
11
+ "@acpfx/node-sdk": "0.3.0"
12
12
  },
13
13
  "scripts": {
14
14
  "build": "esbuild src/index.ts --bundle --platform=node --format=esm --outfile=dist/index.js --packages=external"
package/src/index.ts CHANGED
@@ -151,7 +151,7 @@ function handleServerMessage(msg: Record<string, unknown>): void {
151
151
  // Clear stale partial timer — proper final arrived
152
152
  // Final transcript for this segment
153
153
  lastFinalText = transcript;
154
- pendingText = transcript;
154
+ pendingText = pendingText ? pendingText + " " + transcript : transcript;
155
155
 
156
156
  emit({
157
157
  type: "speech.final",
@@ -165,7 +165,7 @@ function handleServerMessage(msg: Record<string, unknown>): void {
165
165
  emit({
166
166
  type: "speech.pause",
167
167
  trackId: TRACK_ID,
168
- pendingText: transcript,
168
+ pendingText,
169
169
  silenceMs: ENDPOINTING,
170
170
  });
171
171
  pendingText = "";