@deepgram/sdk 1.2.2 → 1.3.1-beta
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/.devcontainer/Dockerfile +16 -0
- package/.devcontainer/devcontainer.json +29 -0
- package/CHANGELOG.md +196 -163
- package/CODE_OF_CONDUCT.md +127 -127
- package/CONTRIBUTING.md +50 -50
- package/LICENSE +21 -21
- package/README.md +151 -151
- package/dist/billing.d.ts +18 -0
- package/dist/billing.js +73 -0
- package/dist/billing.js.map +1 -0
- package/dist/constants/defaultOptions.d.ts +6 -6
- package/dist/constants/defaultOptions.js +9 -9
- package/dist/constants/defaultOptions.js.map +0 -0
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/index.js +17 -13
- package/dist/constants/index.js.map +1 -1
- package/dist/enums/alternatives.d.ts +4 -4
- package/dist/enums/alternatives.js +2 -2
- package/dist/enums/alternatives.js.map +0 -0
- package/dist/enums/connectionState.d.ts +6 -6
- package/dist/enums/connectionState.js +10 -10
- package/dist/enums/connectionState.js.map +0 -0
- package/dist/enums/diarization.d.ts +4 -4
- package/dist/enums/diarization.js +2 -2
- package/dist/enums/diarization.js.map +0 -0
- package/dist/enums/index.d.ts +7 -7
- package/dist/enums/index.js +23 -19
- package/dist/enums/index.js.map +1 -1
- package/dist/enums/liveTranscriptionEvents.d.ts +6 -6
- package/dist/enums/liveTranscriptionEvents.js +2 -2
- package/dist/enums/liveTranscriptionEvents.js.map +0 -0
- package/dist/enums/models.d.ts +5 -5
- package/dist/enums/models.js +2 -2
- package/dist/enums/models.js.map +0 -0
- package/dist/enums/punctuation.d.ts +4 -4
- package/dist/enums/punctuation.js +2 -2
- package/dist/enums/punctuation.js.map +0 -0
- package/dist/enums/searchKind.d.ts +4 -4
- package/dist/enums/searchKind.js +2 -2
- package/dist/enums/searchKind.js.map +0 -0
- package/dist/helpers/index.d.ts +1 -1
- package/dist/helpers/index.js +17 -13
- package/dist/helpers/index.js.map +1 -1
- package/dist/helpers/secondsToTimestamp.d.ts +1 -1
- package/dist/helpers/secondsToTimestamp.js +7 -7
- package/dist/helpers/secondsToTimestamp.js.map +0 -0
- package/dist/httpRequest.d.ts +3 -3
- package/dist/httpRequest.js +90 -90
- package/dist/httpRequest.js.map +1 -1
- package/dist/index.d.ts +25 -17
- package/dist/index.js +40 -32
- package/dist/index.js.map +1 -1
- package/dist/invitation.d.ts +29 -0
- package/dist/invitation.js +99 -0
- package/dist/invitation.js.map +1 -0
- package/dist/keys.d.ts +32 -32
- package/dist/keys.js +131 -111
- package/dist/keys.js.map +1 -1
- package/dist/members.d.ts +18 -0
- package/dist/members.js +73 -0
- package/dist/members.js.map +1 -0
- package/dist/projects.d.ts +21 -21
- package/dist/projects.js +81 -81
- package/dist/projects.js.map +1 -1
- package/dist/scopes.d.ts +20 -0
- package/dist/scopes.js +77 -0
- package/dist/scopes.js.map +1 -0
- package/dist/transcription/index.d.ts +18 -18
- package/dist/transcription/index.js +71 -71
- package/dist/transcription/index.js.map +0 -0
- package/dist/transcription/liveTranscription.d.ts +23 -23
- package/dist/transcription/liveTranscription.js +82 -82
- package/dist/transcription/liveTranscription.js.map +1 -1
- package/dist/transcription/preRecordedTranscription.d.ts +8 -8
- package/dist/transcription/preRecordedTranscription.js +113 -113
- package/dist/transcription/preRecordedTranscription.js.map +1 -1
- package/dist/types/balance.d.ts +6 -0
- package/dist/types/balance.js +3 -0
- package/dist/types/balance.js.map +1 -0
- package/dist/types/balanceList.d.ts +4 -0
- package/dist/types/balanceList.js +3 -0
- package/dist/types/balanceList.js.map +1 -0
- package/dist/types/channel.d.ts +25 -25
- package/dist/types/channel.js +2 -2
- package/dist/types/channel.js.map +0 -0
- package/dist/types/createKeyOptions.d.ts +13 -13
- package/dist/types/createKeyOptions.js +2 -2
- package/dist/types/createKeyOptions.js.map +0 -0
- package/dist/types/hit.d.ts +21 -21
- package/dist/types/hit.js +2 -2
- package/dist/types/hit.js.map +0 -0
- package/dist/types/index.d.ts +35 -28
- package/dist/types/index.js +51 -40
- package/dist/types/index.js.map +1 -1
- package/dist/types/invitationList.d.ts +4 -0
- package/dist/types/invitationList.js +3 -0
- package/dist/types/invitationList.js.map +1 -0
- package/dist/types/invitationOptions.d.ts +4 -0
- package/dist/types/invitationOptions.js +3 -0
- package/dist/types/invitationOptions.js.map +1 -0
- package/dist/types/key.d.ts +25 -25
- package/dist/types/key.js +2 -2
- package/dist/types/key.js.map +0 -0
- package/dist/types/keyResponse.d.ts +50 -10
- package/dist/types/keyResponse.js +2 -2
- package/dist/types/keyResponse.js.map +0 -0
- package/dist/types/keyword.d.ts +4 -4
- package/dist/types/keyword.js +2 -2
- package/dist/types/keyword.js.map +0 -0
- package/dist/types/liveTranscriptionOptions.d.ts +148 -148
- package/dist/types/liveTranscriptionOptions.js +2 -2
- package/dist/types/liveTranscriptionOptions.js.map +0 -0
- package/dist/types/liveTranscriptionResponse.d.ts +9 -9
- package/dist/types/liveTranscriptionResponse.js +2 -2
- package/dist/types/liveTranscriptionResponse.js.map +0 -0
- package/dist/types/member.d.ts +7 -6
- package/dist/types/member.js +2 -2
- package/dist/types/member.js.map +0 -0
- package/dist/types/memberList.d.ts +4 -0
- package/dist/types/memberList.js +3 -0
- package/dist/types/memberList.js.map +1 -0
- package/dist/types/message.d.ts +3 -0
- package/dist/types/message.js +3 -0
- package/dist/types/message.js.map +1 -0
- package/dist/types/metadata.d.ts +8 -8
- package/dist/types/metadata.js +2 -2
- package/dist/types/metadata.js.map +0 -0
- package/dist/types/prerecordedTranscriptionOptions.d.ts +126 -126
- package/dist/types/prerecordedTranscriptionOptions.js +2 -2
- package/dist/types/prerecordedTranscriptionOptions.js.map +0 -0
- package/dist/types/prerecordedTranscriptionResponse.d.ts +25 -25
- package/dist/types/prerecordedTranscriptionResponse.js +50 -50
- package/dist/types/prerecordedTranscriptionResponse.js.map +1 -1
- package/dist/types/project.d.ts +17 -17
- package/dist/types/project.js +2 -2
- package/dist/types/project.js.map +0 -0
- package/dist/types/projectPatchResponse.d.ts +6 -6
- package/dist/types/projectPatchResponse.js +2 -2
- package/dist/types/projectPatchResponse.js.map +0 -0
- package/dist/types/projectResponse.d.ts +4 -4
- package/dist/types/projectResponse.js +2 -2
- package/dist/types/projectResponse.js.map +0 -0
- package/dist/types/scopeList.d.ts +3 -0
- package/dist/types/scopeList.js +3 -0
- package/dist/types/scopeList.js.map +1 -0
- package/dist/types/search.d.ts +14 -14
- package/dist/types/search.js +2 -2
- package/dist/types/search.js.map +0 -0
- package/dist/types/transcriptionSource.d.ts +14 -14
- package/dist/types/transcriptionSource.js +2 -2
- package/dist/types/transcriptionSource.js.map +0 -0
- package/dist/types/usageCallback.d.ts +4 -4
- package/dist/types/usageCallback.js +2 -2
- package/dist/types/usageCallback.js.map +0 -0
- package/dist/types/usageField.d.ts +7 -7
- package/dist/types/usageField.js +2 -2
- package/dist/types/usageField.js.map +0 -0
- package/dist/types/usageFieldOptions.d.ts +4 -4
- package/dist/types/usageFieldOptions.js +2 -2
- package/dist/types/usageFieldOptions.js.map +0 -0
- package/dist/types/usageOptions.d.ts +23 -23
- package/dist/types/usageOptions.js +2 -2
- package/dist/types/usageOptions.js.map +0 -0
- package/dist/types/usageRequest.d.ts +11 -11
- package/dist/types/usageRequest.js +2 -2
- package/dist/types/usageRequest.js.map +0 -0
- package/dist/types/usageRequestDetail.d.ts +30 -30
- package/dist/types/usageRequestDetail.js +2 -2
- package/dist/types/usageRequestDetail.js.map +0 -0
- package/dist/types/usageRequestList.d.ts +6 -6
- package/dist/types/usageRequestList.js +2 -2
- package/dist/types/usageRequestList.js.map +0 -0
- package/dist/types/usageRequestListOptions.d.ts +7 -7
- package/dist/types/usageRequestListOptions.js +2 -2
- package/dist/types/usageRequestListOptions.js.map +0 -0
- package/dist/types/usageRequestMessage.d.ts +3 -3
- package/dist/types/usageRequestMessage.js +2 -2
- package/dist/types/usageRequestMessage.js.map +0 -0
- package/dist/types/usageResponse.d.ts +10 -10
- package/dist/types/usageResponse.js +2 -2
- package/dist/types/usageResponse.js.map +0 -0
- package/dist/types/usageResponseDetail.d.ts +6 -6
- package/dist/types/usageResponseDetail.js +2 -2
- package/dist/types/usageResponseDetail.js.map +0 -0
- package/dist/types/utterance.d.ts +39 -39
- package/dist/types/utterance.js +2 -2
- package/dist/types/utterance.js.map +0 -0
- package/dist/types/wordBase.d.ts +8 -8
- package/dist/types/wordBase.js +2 -2
- package/dist/types/wordBase.js.map +0 -0
- package/dist/usage.d.ts +34 -34
- package/dist/usage.js +121 -121
- package/dist/usage.js.map +1 -1
- package/dist/userAgent.d.ts +1 -1
- package/dist/userAgent.js +19 -20
- package/dist/userAgent.js.map +1 -1
- package/package.json +59 -57
|
@@ -1,148 +1,148 @@
|
|
|
1
|
-
import { Models } from "../enums";
|
|
2
|
-
/**
|
|
3
|
-
* Options for transcription
|
|
4
|
-
*/
|
|
5
|
-
export declare type LiveTranscriptionOptions = {
|
|
6
|
-
/**
|
|
7
|
-
* AI model used to process submitted audio.
|
|
8
|
-
* @default general
|
|
9
|
-
* @remarks Possible values are general, phonecall, meeting or a custom string
|
|
10
|
-
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeAudio/properties/model
|
|
11
|
-
*/
|
|
12
|
-
model?: Models | string;
|
|
13
|
-
/**
|
|
14
|
-
* Version of the model to use.
|
|
15
|
-
* @default latest
|
|
16
|
-
* @remarks latest OR <version_id>
|
|
17
|
-
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeAudio/properties/version
|
|
18
|
-
*/
|
|
19
|
-
version
|
|
20
|
-
/**
|
|
21
|
-
* BCP-47 language tag that hints at the primary spoken language.
|
|
22
|
-
* @default en-US
|
|
23
|
-
* @remarks Possible values are en-GB, en-IN, en-NZ, en-US, es, fr, ko, pt,
|
|
24
|
-
* pt-BR, ru, tr or null
|
|
25
|
-
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeAudio/properties/language
|
|
26
|
-
*/
|
|
27
|
-
language?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Indicates whether to add punctuation and capitalization to the transcript.
|
|
30
|
-
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeAudio/properties/punctuate
|
|
31
|
-
*/
|
|
32
|
-
punctuate?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Indicates whether to remove profanity from the transcript.
|
|
35
|
-
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeAudio/properties/profanity_filter
|
|
36
|
-
*/
|
|
37
|
-
profanity_filter?: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Indicates whether to redact sensitive information, replacing redacted content with asterisks (*).
|
|
40
|
-
* @remarks Options include:
|
|
41
|
-
* `pci`: Redacts sensitive credit card information, including credit card number, expiration date, and CVV
|
|
42
|
-
* `numbers` (or `true)`: Aggressively redacts strings of numerals
|
|
43
|
-
* `ssn` (*beta*): Redacts social security numbers
|
|
44
|
-
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeAudio/properties/redact
|
|
45
|
-
*/
|
|
46
|
-
redact?: Array<string>;
|
|
47
|
-
/**
|
|
48
|
-
* Indicates whether to recognize speaker changes. When set to true, each word
|
|
49
|
-
* in the transcript will be assigned a speaker number starting at 0.
|
|
50
|
-
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeAudio/properties/diarize
|
|
51
|
-
*/
|
|
52
|
-
diarize?: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Indicates whether to transcribe each audio channel independently. When set
|
|
55
|
-
* to true, you will receive one transcript for each channel, which means you
|
|
56
|
-
* can apply a different model to each channel using the model parameter (e.g.,
|
|
57
|
-
* set model to general:phonecall, which applies the general model to channel
|
|
58
|
-
* 0 and the phonecall model to channel 1).
|
|
59
|
-
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeAudio/properties/multichannel
|
|
60
|
-
*/
|
|
61
|
-
multichannel?: boolean;
|
|
62
|
-
/**
|
|
63
|
-
* Maximum number of transcript alternatives to return. Just like a human listener,
|
|
64
|
-
* Deepgram can provide multiple possible interpretations of what it hears.
|
|
65
|
-
* @default 1
|
|
66
|
-
*/
|
|
67
|
-
alternatives?: number;
|
|
68
|
-
/**
|
|
69
|
-
* Indicates whether to convert numbers from written format (e.g., one) to
|
|
70
|
-
* numerical format (e.g., 1). Deepgram can format numbers up to 999,999.
|
|
71
|
-
* @remarks Converted numbers do not include punctuation. For example,
|
|
72
|
-
* 999,999 would be transcribed as 999999.
|
|
73
|
-
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeAudio/properties/numerals
|
|
74
|
-
*/
|
|
75
|
-
numerals?: boolean;
|
|
76
|
-
/**
|
|
77
|
-
* Terms or phrases to search for in the submitted audio. Deepgram searches
|
|
78
|
-
* for acoustic patterns in audio rather than text patterns in transcripts
|
|
79
|
-
* because we have noticed that acoustic pattern matching is more performant.
|
|
80
|
-
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeAudio/properties/search
|
|
81
|
-
*/
|
|
82
|
-
search?: Array<string>;
|
|
83
|
-
/**
|
|
84
|
-
* Callback URL to provide if you would like your submitted audio to be
|
|
85
|
-
* processed asynchronously. When passed, Deepgram will immediately respond
|
|
86
|
-
* with a request_id. When it has finished analyzing the audio, it will send
|
|
87
|
-
* a POST request to the provided URL with an appropriate HTTP status code.
|
|
88
|
-
* @remarks You may embed basic authentication credentials in the callback URL.
|
|
89
|
-
* Only ports 80, 443, 8080, and 8443 can be used for callbacks.
|
|
90
|
-
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeAudio/properties/callback
|
|
91
|
-
*/
|
|
92
|
-
callback?: string;
|
|
93
|
-
/**
|
|
94
|
-
* Keywords to which the model should pay particular attention to boosting
|
|
95
|
-
* or suppressing to help it understand context. Just like a human listener,
|
|
96
|
-
* Deepgram can better understand mumbled, distorted, or otherwise
|
|
97
|
-
* hard-to-decipher speech when it knows the context of the conversation.
|
|
98
|
-
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeAudio/properties/keywords
|
|
99
|
-
*/
|
|
100
|
-
keywords?: Array<string>;
|
|
101
|
-
/**
|
|
102
|
-
* Indicates whether the streaming endpoint should send you updates to its
|
|
103
|
-
* transcription as more audio becomes available. By default, the streaming
|
|
104
|
-
* endpoint returns regular updates, which means transcription results will
|
|
105
|
-
* likely change for a period of time. You can avoid receiving these updates
|
|
106
|
-
* by setting this flag to false.
|
|
107
|
-
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeStreamingAudio/properties/interim_results
|
|
108
|
-
*/
|
|
109
|
-
interim_results?: boolean;
|
|
110
|
-
/**
|
|
111
|
-
* Indicates whether Deepgram will detect whether a speaker has finished
|
|
112
|
-
* speaking (or paused for a significant period of time, indicating the
|
|
113
|
-
* completion of an idea). When Deepgram detects an endpoint, it assumes
|
|
114
|
-
* that no additional data will improve its prediction, so it immediately
|
|
115
|
-
* finalizes the result for the processed time range and returns the
|
|
116
|
-
* transcript with a speech_final parameter set to true.
|
|
117
|
-
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeStreamingAudio/properties/endpointing
|
|
118
|
-
*/
|
|
119
|
-
endpointing?: boolean;
|
|
120
|
-
/**
|
|
121
|
-
* Length of time in milliseconds of silence that voice activation detection
|
|
122
|
-
* (VAD) will use to detect that a speaker has finished speaking. Used when
|
|
123
|
-
* endpointing is enabled. Defaults to 10 ms. Deepgram customers may configure
|
|
124
|
-
* a value between 10 ms and 500 ms; on-premise customers may remove this
|
|
125
|
-
* restriction.
|
|
126
|
-
* @default 10
|
|
127
|
-
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeStreamingAudio/properties/vad_turnoff
|
|
128
|
-
*/
|
|
129
|
-
vad_turnoff?: number;
|
|
130
|
-
/**
|
|
131
|
-
* Expected encoding of the submitted streaming audio.
|
|
132
|
-
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeStreamingAudio/properties/encoding
|
|
133
|
-
*/
|
|
134
|
-
encoding?: string;
|
|
135
|
-
/**
|
|
136
|
-
* Number of independent audio channels contained in submitted streaming
|
|
137
|
-
* audio. Only read when a value is provided for encoding.
|
|
138
|
-
* @default 1
|
|
139
|
-
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeStreamingAudio/properties/channels
|
|
140
|
-
*/
|
|
141
|
-
channels?: number;
|
|
142
|
-
/**
|
|
143
|
-
* Sample rate of submitted streaming audio. Required (and only read)
|
|
144
|
-
* when a value is provided for encoding.
|
|
145
|
-
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeStreamingAudio/properties/sample_rate
|
|
146
|
-
*/
|
|
147
|
-
sample_rate?: number;
|
|
148
|
-
};
|
|
1
|
+
import { Models } from "../enums";
|
|
2
|
+
/**
|
|
3
|
+
* Options for transcription
|
|
4
|
+
*/
|
|
5
|
+
export declare type LiveTranscriptionOptions = {
|
|
6
|
+
/**
|
|
7
|
+
* AI model used to process submitted audio.
|
|
8
|
+
* @default general
|
|
9
|
+
* @remarks Possible values are general, phonecall, meeting or a custom string
|
|
10
|
+
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeAudio/properties/model
|
|
11
|
+
*/
|
|
12
|
+
model?: Models | string;
|
|
13
|
+
/**
|
|
14
|
+
* Version of the model to use.
|
|
15
|
+
* @default latest
|
|
16
|
+
* @remarks latest OR <version_id>
|
|
17
|
+
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeAudio/properties/version
|
|
18
|
+
*/
|
|
19
|
+
version?: string;
|
|
20
|
+
/**
|
|
21
|
+
* BCP-47 language tag that hints at the primary spoken language.
|
|
22
|
+
* @default en-US
|
|
23
|
+
* @remarks Possible values are en-GB, en-IN, en-NZ, en-US, es, fr, ko, pt,
|
|
24
|
+
* pt-BR, ru, tr or null
|
|
25
|
+
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeAudio/properties/language
|
|
26
|
+
*/
|
|
27
|
+
language?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Indicates whether to add punctuation and capitalization to the transcript.
|
|
30
|
+
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeAudio/properties/punctuate
|
|
31
|
+
*/
|
|
32
|
+
punctuate?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Indicates whether to remove profanity from the transcript.
|
|
35
|
+
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeAudio/properties/profanity_filter
|
|
36
|
+
*/
|
|
37
|
+
profanity_filter?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Indicates whether to redact sensitive information, replacing redacted content with asterisks (*).
|
|
40
|
+
* @remarks Options include:
|
|
41
|
+
* `pci`: Redacts sensitive credit card information, including credit card number, expiration date, and CVV
|
|
42
|
+
* `numbers` (or `true)`: Aggressively redacts strings of numerals
|
|
43
|
+
* `ssn` (*beta*): Redacts social security numbers
|
|
44
|
+
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeAudio/properties/redact
|
|
45
|
+
*/
|
|
46
|
+
redact?: Array<string>;
|
|
47
|
+
/**
|
|
48
|
+
* Indicates whether to recognize speaker changes. When set to true, each word
|
|
49
|
+
* in the transcript will be assigned a speaker number starting at 0.
|
|
50
|
+
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeAudio/properties/diarize
|
|
51
|
+
*/
|
|
52
|
+
diarize?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Indicates whether to transcribe each audio channel independently. When set
|
|
55
|
+
* to true, you will receive one transcript for each channel, which means you
|
|
56
|
+
* can apply a different model to each channel using the model parameter (e.g.,
|
|
57
|
+
* set model to general:phonecall, which applies the general model to channel
|
|
58
|
+
* 0 and the phonecall model to channel 1).
|
|
59
|
+
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeAudio/properties/multichannel
|
|
60
|
+
*/
|
|
61
|
+
multichannel?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Maximum number of transcript alternatives to return. Just like a human listener,
|
|
64
|
+
* Deepgram can provide multiple possible interpretations of what it hears.
|
|
65
|
+
* @default 1
|
|
66
|
+
*/
|
|
67
|
+
alternatives?: number;
|
|
68
|
+
/**
|
|
69
|
+
* Indicates whether to convert numbers from written format (e.g., one) to
|
|
70
|
+
* numerical format (e.g., 1). Deepgram can format numbers up to 999,999.
|
|
71
|
+
* @remarks Converted numbers do not include punctuation. For example,
|
|
72
|
+
* 999,999 would be transcribed as 999999.
|
|
73
|
+
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeAudio/properties/numerals
|
|
74
|
+
*/
|
|
75
|
+
numerals?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Terms or phrases to search for in the submitted audio. Deepgram searches
|
|
78
|
+
* for acoustic patterns in audio rather than text patterns in transcripts
|
|
79
|
+
* because we have noticed that acoustic pattern matching is more performant.
|
|
80
|
+
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeAudio/properties/search
|
|
81
|
+
*/
|
|
82
|
+
search?: Array<string>;
|
|
83
|
+
/**
|
|
84
|
+
* Callback URL to provide if you would like your submitted audio to be
|
|
85
|
+
* processed asynchronously. When passed, Deepgram will immediately respond
|
|
86
|
+
* with a request_id. When it has finished analyzing the audio, it will send
|
|
87
|
+
* a POST request to the provided URL with an appropriate HTTP status code.
|
|
88
|
+
* @remarks You may embed basic authentication credentials in the callback URL.
|
|
89
|
+
* Only ports 80, 443, 8080, and 8443 can be used for callbacks.
|
|
90
|
+
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeAudio/properties/callback
|
|
91
|
+
*/
|
|
92
|
+
callback?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Keywords to which the model should pay particular attention to boosting
|
|
95
|
+
* or suppressing to help it understand context. Just like a human listener,
|
|
96
|
+
* Deepgram can better understand mumbled, distorted, or otherwise
|
|
97
|
+
* hard-to-decipher speech when it knows the context of the conversation.
|
|
98
|
+
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeAudio/properties/keywords
|
|
99
|
+
*/
|
|
100
|
+
keywords?: Array<string>;
|
|
101
|
+
/**
|
|
102
|
+
* Indicates whether the streaming endpoint should send you updates to its
|
|
103
|
+
* transcription as more audio becomes available. By default, the streaming
|
|
104
|
+
* endpoint returns regular updates, which means transcription results will
|
|
105
|
+
* likely change for a period of time. You can avoid receiving these updates
|
|
106
|
+
* by setting this flag to false.
|
|
107
|
+
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeStreamingAudio/properties/interim_results
|
|
108
|
+
*/
|
|
109
|
+
interim_results?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Indicates whether Deepgram will detect whether a speaker has finished
|
|
112
|
+
* speaking (or paused for a significant period of time, indicating the
|
|
113
|
+
* completion of an idea). When Deepgram detects an endpoint, it assumes
|
|
114
|
+
* that no additional data will improve its prediction, so it immediately
|
|
115
|
+
* finalizes the result for the processed time range and returns the
|
|
116
|
+
* transcript with a speech_final parameter set to true.
|
|
117
|
+
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeStreamingAudio/properties/endpointing
|
|
118
|
+
*/
|
|
119
|
+
endpointing?: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Length of time in milliseconds of silence that voice activation detection
|
|
122
|
+
* (VAD) will use to detect that a speaker has finished speaking. Used when
|
|
123
|
+
* endpointing is enabled. Defaults to 10 ms. Deepgram customers may configure
|
|
124
|
+
* a value between 10 ms and 500 ms; on-premise customers may remove this
|
|
125
|
+
* restriction.
|
|
126
|
+
* @default 10
|
|
127
|
+
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeStreamingAudio/properties/vad_turnoff
|
|
128
|
+
*/
|
|
129
|
+
vad_turnoff?: number;
|
|
130
|
+
/**
|
|
131
|
+
* Expected encoding of the submitted streaming audio.
|
|
132
|
+
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeStreamingAudio/properties/encoding
|
|
133
|
+
*/
|
|
134
|
+
encoding?: string;
|
|
135
|
+
/**
|
|
136
|
+
* Number of independent audio channels contained in submitted streaming
|
|
137
|
+
* audio. Only read when a value is provided for encoding.
|
|
138
|
+
* @default 1
|
|
139
|
+
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeStreamingAudio/properties/channels
|
|
140
|
+
*/
|
|
141
|
+
channels?: number;
|
|
142
|
+
/**
|
|
143
|
+
* Sample rate of submitted streaming audio. Required (and only read)
|
|
144
|
+
* when a value is provided for encoding.
|
|
145
|
+
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeStreamingAudio/properties/sample_rate
|
|
146
|
+
*/
|
|
147
|
+
sample_rate?: number;
|
|
148
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=liveTranscriptionOptions.js.map
|
|
File without changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Channel } from "./channel";
|
|
2
|
-
export declare type LiveTranscriptionResponse = {
|
|
3
|
-
channel_index: Array<number>;
|
|
4
|
-
duration: number;
|
|
5
|
-
start: number;
|
|
6
|
-
is_final: boolean;
|
|
7
|
-
speech_final: boolean;
|
|
8
|
-
channel: Channel;
|
|
9
|
-
};
|
|
1
|
+
import { Channel } from "./channel";
|
|
2
|
+
export declare type LiveTranscriptionResponse = {
|
|
3
|
+
channel_index: Array<number>;
|
|
4
|
+
duration: number;
|
|
5
|
+
start: number;
|
|
6
|
+
is_final: boolean;
|
|
7
|
+
speech_final: boolean;
|
|
8
|
+
channel: Channel;
|
|
9
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=liveTranscriptionResponse.js.map
|
|
File without changes
|
package/dist/types/member.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export declare type Member = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
export declare type Member = {
|
|
2
|
+
member_id: string;
|
|
3
|
+
first_name?: string;
|
|
4
|
+
last_name?: string;
|
|
5
|
+
scopes?: Array<string>;
|
|
6
|
+
email: string;
|
|
7
|
+
};
|
package/dist/types/member.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=member.js.map
|
package/dist/types/member.js.map
CHANGED
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memberList.js","sourceRoot":"","sources":["../../src/types/memberList.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message.js","sourceRoot":"","sources":["../../src/types/message.ts"],"names":[],"mappings":""}
|
package/dist/types/metadata.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare type Metadata = {
|
|
2
|
-
request_id: string;
|
|
3
|
-
transaction_key: string;
|
|
4
|
-
sha256: string;
|
|
5
|
-
created: string;
|
|
6
|
-
duration: number;
|
|
7
|
-
channels: number;
|
|
8
|
-
};
|
|
1
|
+
export declare type Metadata = {
|
|
2
|
+
request_id: string;
|
|
3
|
+
transaction_key: string;
|
|
4
|
+
sha256: string;
|
|
5
|
+
created: string;
|
|
6
|
+
duration: number;
|
|
7
|
+
channels: number;
|
|
8
|
+
};
|
package/dist/types/metadata.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=metadata.js.map
|
|
File without changes
|