@deepgram/sdk 1.4.7 → 1.4.8
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/dist/browser/httpFetch.d.ts +1 -0
- package/dist/browser/index.d.ts +21 -0
- package/dist/browser/index.js +1 -1
- package/dist/constants/defaultOptions.d.ts +6 -0
- package/dist/constants/index.d.ts +1 -0
- package/dist/enums/alternatives.d.ts +4 -0
- package/dist/enums/connectionState.d.ts +6 -0
- package/dist/enums/diarization.d.ts +4 -0
- package/dist/enums/index.d.ts +7 -0
- package/dist/enums/liveTranscriptionEvents.d.ts +6 -0
- package/dist/enums/models.d.ts +5 -0
- package/dist/enums/punctuation.d.ts +4 -0
- package/dist/enums/searchKind.d.ts +4 -0
- package/dist/helpers/index.d.ts +2 -0
- package/dist/helpers/secondsToTimestamp.d.ts +1 -0
- package/dist/helpers/validateOptions.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/transcription/index.d.ts +18 -0
- package/dist/transcription/liveTranscription.d.ts +23 -0
- package/dist/transcription/preRecordedTranscription.d.ts +8 -0
- package/dist/types/balance.d.ts +6 -0
- package/dist/types/balanceList.d.ts +4 -0
- package/dist/types/channel.d.ts +25 -0
- package/dist/types/createKeyOptions.d.ts +13 -0
- package/dist/types/hit.d.ts +21 -0
- package/dist/types/index.d.ts +38 -0
- package/dist/types/invitationList.d.ts +4 -0
- package/dist/types/invitationOptions.d.ts +4 -0
- package/dist/types/key.d.ts +25 -0
- package/dist/types/keyResponse.d.ts +10 -0
- package/dist/types/keyResponseObj.d.ts +42 -0
- package/dist/types/keyword.d.ts +4 -0
- package/dist/types/liveTranscriptionOptions.d.ts +161 -0
- package/dist/types/liveTranscriptionResponse.d.ts +9 -0
- package/dist/types/member.d.ts +7 -0
- package/dist/types/memberList.d.ts +4 -0
- package/dist/types/message.d.ts +3 -0
- package/dist/types/metadata.d.ts +8 -0
- package/dist/types/prerecordedTranscriptionOptions.d.ts +139 -0
- package/dist/types/prerecordedTranscriptionResponse.d.ts +25 -0
- package/dist/types/project.d.ts +17 -0
- package/dist/types/projectPatchRequest.d.ts +4 -0
- package/dist/types/projectPatchResponse.d.ts +6 -0
- package/dist/types/projectResponse.d.ts +4 -0
- package/dist/types/requestFunction.d.ts +5 -0
- package/dist/types/scopeList.d.ts +3 -0
- package/dist/types/search.d.ts +14 -0
- package/dist/types/transcriptionSource.d.ts +14 -0
- package/dist/types/usageCallback.d.ts +4 -0
- package/dist/types/usageField.d.ts +7 -0
- package/dist/types/usageFieldOptions.d.ts +4 -0
- package/dist/types/usageOptions.d.ts +23 -0
- package/dist/types/usageRequest.d.ts +11 -0
- package/dist/types/usageRequestDetail.d.ts +30 -0
- package/dist/types/usageRequestList.d.ts +6 -0
- package/dist/types/usageRequestListOptions.d.ts +7 -0
- package/dist/types/usageRequestMessage.d.ts +3 -0
- package/dist/types/usageResponse.d.ts +10 -0
- package/dist/types/usageResponseDetail.d.ts +6 -0
- package/dist/types/utterance.d.ts +39 -0
- package/dist/types/wordBase.d.ts +8 -0
- package/package.json +2 -2
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare type UsageRequestDetail = {
|
|
2
|
+
details: {
|
|
3
|
+
usd: number;
|
|
4
|
+
duration: number;
|
|
5
|
+
total_audio: number;
|
|
6
|
+
channels: number;
|
|
7
|
+
streams: number;
|
|
8
|
+
model: string;
|
|
9
|
+
method: "sync" | "async" | "streaming";
|
|
10
|
+
tags: Array<string>;
|
|
11
|
+
features: Array<string>;
|
|
12
|
+
config: {
|
|
13
|
+
multichannel?: boolean;
|
|
14
|
+
interim_results?: boolean;
|
|
15
|
+
punctuate?: boolean;
|
|
16
|
+
ner?: boolean;
|
|
17
|
+
utterances?: boolean;
|
|
18
|
+
replace?: boolean;
|
|
19
|
+
profanity_filter?: boolean;
|
|
20
|
+
keywords?: boolean;
|
|
21
|
+
sentiment?: boolean;
|
|
22
|
+
diarize?: boolean;
|
|
23
|
+
detect_language?: boolean;
|
|
24
|
+
search?: boolean;
|
|
25
|
+
redact?: boolean;
|
|
26
|
+
alternatives?: boolean;
|
|
27
|
+
numerals?: boolean;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { WordBase } from "./wordBase";
|
|
2
|
+
export declare type Utterance = {
|
|
3
|
+
/**
|
|
4
|
+
* Start time (in seconds) from the beginning of the audio stream.
|
|
5
|
+
*/
|
|
6
|
+
start: number;
|
|
7
|
+
/**
|
|
8
|
+
* End time (in seconds) from the beginning of the audio stream.
|
|
9
|
+
*/
|
|
10
|
+
end: number;
|
|
11
|
+
/**
|
|
12
|
+
* Floating point value between 0 and 1 that indicates overall transcript
|
|
13
|
+
* reliability. Larger values indicate higher confidence.
|
|
14
|
+
*/
|
|
15
|
+
confidence: number;
|
|
16
|
+
/**
|
|
17
|
+
* Audio channel to which the utterance belongs. When using multichannel audio,
|
|
18
|
+
* utterances are chronologically ordered by channel.
|
|
19
|
+
*/
|
|
20
|
+
channel: number;
|
|
21
|
+
/**
|
|
22
|
+
* Transcript for the audio segment being processed.
|
|
23
|
+
*/
|
|
24
|
+
transcript: string;
|
|
25
|
+
/**
|
|
26
|
+
* Object containing each word in the transcript, along with its start time
|
|
27
|
+
* and end time (in seconds) from the beginning of the audio stream, and a confidence value.
|
|
28
|
+
*/
|
|
29
|
+
words: Array<WordBase>;
|
|
30
|
+
/**
|
|
31
|
+
* Integer indicating the predicted speaker of the majority of words
|
|
32
|
+
* in the utterance who is saying the words being processed.
|
|
33
|
+
*/
|
|
34
|
+
speaker?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Unique identifier of the utterance
|
|
37
|
+
*/
|
|
38
|
+
id: string;
|
|
39
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepgram/sdk",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.8",
|
|
4
4
|
"description": "An SDK for the Deepgram automated speech recognition platform",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"lint": "eslint ./src --ext .ts && prettier --config .prettierrc src/*.ts src/**/*.ts --write",
|
|
11
11
|
"test": "mocha -r ts-node/register tests/*test.ts tests/**/*test.ts --insect",
|
|
12
12
|
"watch": "nodemon -e ts --watch src --exec \"npm run build\"",
|
|
13
|
-
"types": "copyfiles -f bundle/*.d.ts dist"
|
|
13
|
+
"types": "copyfiles -f bundle/*.d.ts dist && copyfiles -u 1 bundle/**/*.d.ts dist"
|
|
14
14
|
},
|
|
15
15
|
"exports": {
|
|
16
16
|
".": "./dist/index.js",
|