@absolutejs/voice-deepgram 0.0.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/README.md +82 -0
- package/dist/deepgram.d.ts +3 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2422 -0
- package/dist/types.d.ts +24 -0
- package/package.json +39 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type DeepgramModel = 'nova-3' | 'nova-2' | 'flux' | 'flux-general-en' | 'flux-general-multi' | (string & {});
|
|
2
|
+
export type DeepgramSTTOptions = {
|
|
3
|
+
apiKey: string;
|
|
4
|
+
model: DeepgramModel;
|
|
5
|
+
language?: string;
|
|
6
|
+
punctuate?: boolean;
|
|
7
|
+
smartFormat?: boolean;
|
|
8
|
+
interimResults?: boolean;
|
|
9
|
+
endpointing?: number | false;
|
|
10
|
+
utteranceEndMs?: number;
|
|
11
|
+
vadEvents?: boolean;
|
|
12
|
+
diarize?: boolean;
|
|
13
|
+
numerals?: boolean;
|
|
14
|
+
profanityFilter?: boolean;
|
|
15
|
+
redact?: string | string[];
|
|
16
|
+
keyterm?: string | string[];
|
|
17
|
+
keyterms?: string | string[];
|
|
18
|
+
eotThreshold?: number;
|
|
19
|
+
eagerEotThreshold?: number;
|
|
20
|
+
eotTimeoutMs?: number;
|
|
21
|
+
keepAliveMs?: number;
|
|
22
|
+
tag?: string | string[];
|
|
23
|
+
extra?: Record<string, string>;
|
|
24
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@absolutejs/voice-deepgram",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "Deepgram speech-to-text adapter for @absolutejs/voice",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/absolutejs/voice-deepgram.git"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"README.md"
|
|
12
|
+
],
|
|
13
|
+
"main": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"import": "./dist/index.js",
|
|
18
|
+
"types": "./dist/index.d.ts"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"license": "CC BY-NC 4.0",
|
|
22
|
+
"author": "Alex Kahn",
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "rm -rf dist && bun build ./src/index.ts --outdir dist --target bun --external @absolutejs/voice && tsc --emitDeclarationOnly --project tsconfig.json",
|
|
25
|
+
"format": "prettier --write \"./**/*.{js,ts,json,md}\"",
|
|
26
|
+
"release": "bun run format && bun run build && bun publish",
|
|
27
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
28
|
+
"typecheck": "bun run tsc --noEmit"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@absolutejs/voice": "0.0.2",
|
|
32
|
+
"@deepgram/sdk": "^4.11.2"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@absolutejs/absolute": "0.19.0-beta.646",
|
|
36
|
+
"@types/bun": "1.3.9",
|
|
37
|
+
"typescript": "^5.9.3"
|
|
38
|
+
}
|
|
39
|
+
}
|