@absolutejs/voice-deepgram 0.0.17 → 0.0.19
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/README.md +18 -3
- package/dist/index.js +407 -2329
- package/dist/types.d.ts +2 -0
- package/package.json +4 -7
package/dist/types.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export type DeepgramModel = 'nova-3' | 'nova-2' | 'flux' | 'flux-general-en' | '
|
|
|
2
2
|
export type DeepgramSTTOptions = {
|
|
3
3
|
apiKey: string;
|
|
4
4
|
model: DeepgramModel;
|
|
5
|
+
authMode?: 'header' | 'protocol';
|
|
5
6
|
language?: string;
|
|
6
7
|
punctuate?: boolean;
|
|
7
8
|
smartFormat?: boolean;
|
|
@@ -19,6 +20,7 @@ export type DeepgramSTTOptions = {
|
|
|
19
20
|
eagerEotThreshold?: number;
|
|
20
21
|
eotTimeoutMs?: number;
|
|
21
22
|
keepAliveMs?: number;
|
|
23
|
+
connectTimeoutMs?: number;
|
|
22
24
|
tag?: string | string[];
|
|
23
25
|
extra?: Record<string, string>;
|
|
24
26
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@absolutejs/voice-deepgram",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"description": "Deepgram speech-to-text adapter for @absolutejs/voice",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,17 +24,14 @@
|
|
|
24
24
|
"build": "rm -rf dist && bun build ./src/index.ts --outdir dist --target bun --external @absolutejs/voice && tsc --emitDeclarationOnly --project tsconfig.json",
|
|
25
25
|
"format": "prettier --write \"./**/*.{js,ts,json,md}\"",
|
|
26
26
|
"release": "bun run format && bun run build && bun publish",
|
|
27
|
-
"test": "
|
|
27
|
+
"test": "bun test",
|
|
28
28
|
"typecheck": "bun run tsc --noEmit"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@absolutejs/voice": "0.0.
|
|
32
|
-
"@deepgram/sdk": "^4.11.2",
|
|
33
|
-
"ws": "^8.18.3"
|
|
31
|
+
"@absolutejs/voice": "0.0.21"
|
|
34
32
|
},
|
|
35
33
|
"devDependencies": {
|
|
36
|
-
"@absolutejs/absolute": "0.19.0-beta.
|
|
37
|
-
"@types/ws": "^8.18.1",
|
|
34
|
+
"@absolutejs/absolute": "0.19.0-beta.648",
|
|
38
35
|
"@types/bun": "1.3.9",
|
|
39
36
|
"typescript": "^5.9.3"
|
|
40
37
|
}
|