@livekit/agents-plugin-deepgram 0.5.6 → 0.5.7

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.
@@ -0,0 +1,2 @@
1
+ export * from './stt.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,3 @@
1
+ export type STTModels = 'nova-general' | 'nova-phonecall' | 'nova-meeting' | 'nova-2-general' | 'nova-2-meeting' | 'nova-2-phonecall' | 'nova-2-finance' | 'nova-2-conversationalai' | 'nova-2-voicemail' | 'nova-2-video' | 'nova-2-medical' | 'nova-2-drivethru' | 'nova-2-automotive' | 'nova-3-general' | 'enhanced-general' | 'enhanced-meeting' | 'enhanced-phonecall' | 'enhanced-finance' | 'base' | 'meeting' | 'phonecall' | 'finance' | 'conversationalai' | 'voicemail' | 'video' | 'whisper-tiny' | 'whisper-base' | 'whisper-small' | 'whisper-medium' | 'whisper-large';
2
+ export type STTLanguages = 'da' | 'de' | 'en' | 'en-AU' | 'en-GB' | 'en-IN' | 'en-NZ' | 'en-US' | 'es' | 'es-419' | 'es-LATAM' | 'fr' | 'fr-CA' | 'hi' | 'hi-Latn' | 'id' | 'it' | 'ja' | 'ko' | 'nl' | 'no' | 'pl' | 'pt' | 'pt-BR' | 'ru' | 'sv' | 'ta' | 'taq' | 'th' | 'tr' | 'uk' | 'zh' | 'zh-CN' | 'zh-TW';
3
+ //# sourceMappingURL=models.d.ts.map
package/dist/stt.d.cts ADDED
@@ -0,0 +1,37 @@
1
+ import { type AudioBuffer, stt } from '@livekit/agents';
2
+ import type { STTLanguages, STTModels } from './models.js';
3
+ export interface STTOptions {
4
+ apiKey?: string;
5
+ language?: STTLanguages | string;
6
+ detectLanguage: boolean;
7
+ interimResults: boolean;
8
+ punctuate: boolean;
9
+ model: STTModels;
10
+ smartFormat: boolean;
11
+ noDelay: boolean;
12
+ endpointing: number;
13
+ fillerWords: boolean;
14
+ sampleRate: number;
15
+ numChannels: number;
16
+ keywords: [string, number][];
17
+ keyterm: string[];
18
+ profanityFilter: boolean;
19
+ dictation: boolean;
20
+ diarize: boolean;
21
+ numerals: boolean;
22
+ }
23
+ export declare class STT extends stt.STT {
24
+ #private;
25
+ label: string;
26
+ constructor(opts?: Partial<STTOptions>);
27
+ _recognize(_: AudioBuffer): Promise<stt.SpeechEvent>;
28
+ updateOptions(opts: Partial<STTOptions>): void;
29
+ stream(): SpeechStream;
30
+ }
31
+ export declare class SpeechStream extends stt.SpeechStream {
32
+ #private;
33
+ label: string;
34
+ constructor(stt: STT, opts: STTOptions);
35
+ updateOptions(opts: Partial<STTOptions>): void;
36
+ }
37
+ //# sourceMappingURL=stt.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=stt.test.d.ts.map
package/package.json CHANGED
@@ -1,15 +1,18 @@
1
1
  {
2
2
  "name": "@livekit/agents-plugin-deepgram",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
4
4
  "description": "Deepgram plugin for LiveKit Agents for Node.js",
5
5
  "main": "dist/index.js",
6
6
  "require": "dist/index.cjs",
7
7
  "types": "dist/index.d.ts",
8
8
  "exports": {
9
- ".": {
9
+ "import": {
10
10
  "types": "./dist/index.d.ts",
11
- "import": "./dist/index.js",
12
- "require": "./dist/index.cjs"
11
+ "default": "./dist/index.js"
12
+ },
13
+ "require": {
14
+ "types": "./dist/index.d.cts",
15
+ "default": "./dist/index.cjs"
13
16
  }
14
17
  },
15
18
  "author": "LiveKit",
@@ -36,10 +39,11 @@
36
39
  },
37
40
  "peerDependencies": {
38
41
  "@livekit/rtc-node": "^0.13.11",
39
- "@livekit/agents": "^0.7.4x"
42
+ "@livekit/agents": "^0.7.7x"
40
43
  },
41
44
  "scripts": {
42
- "build": "tsup --onSuccess \"tsc --declaration --emitDeclarationOnly\"",
45
+ "build": "tsup --onSuccess \"pnpm build:types\"",
46
+ "build:types": "tsc --declaration --emitDeclarationOnly && node ../../scripts/copyDeclarationOutput.js",
43
47
  "clean": "rm -rf dist",
44
48
  "clean:build": "pnpm clean && pnpm build",
45
49
  "lint": "eslint -f unix \"src/**/*.{ts,js}\"",