@absolutejs/voice-deepgram 0.0.5 → 0.0.6

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,3 @@
1
+ import type { STTAdapter } from '@absolutejs/voice';
2
+ import type { DeepgramSTTOptions } from './types';
3
+ export declare const deepgram: (config: DeepgramSTTOptions) => STTAdapter;
@@ -0,0 +1,2 @@
1
+ export { deepgram } from './deepgram';
2
+ export type { DeepgramModel, DeepgramSTTOptions } from './types';
@@ -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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@absolutejs/voice-deepgram",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "Deepgram speech-to-text adapter for @absolutejs/voice",
5
5
  "repository": {
6
6
  "type": "git",