@deepgram/sdk 5.2.0 → 5.3.0
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/index.global.js +27 -11
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.js +6 -0
- package/dist/cjs/api/resources/agent/resources/v1/resources/settings/resources/think/resources/models/client/Client.js +1 -1
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentContextListenProvider.d.ts +3 -24
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentContextListenProvider.js +6 -1
- package/dist/cjs/api/resources/listen/resources/v1/resources/media/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/listen/resources/v1/resources/media/client/Client.js +4 -1
- package/dist/cjs/api/resources/listen/resources/v1/resources/media/client/requests/ListenV1RequestUrl.d.ts +3 -0
- package/dist/cjs/api/resources/listen/resources/v1/resources/media/client/requests/MediaTranscribeRequestOctetStream.d.ts +2 -0
- package/dist/cjs/api/resources/listen/resources/v1/resources/media/types/MediaTranscribeRequestDiarizeModel.d.ts +6 -0
- package/dist/cjs/api/resources/listen/resources/v1/resources/media/types/MediaTranscribeRequestDiarizeModel.js +9 -0
- package/dist/cjs/api/resources/listen/resources/v1/resources/media/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/listen/resources/v1/resources/media/types/index.js +1 -0
- package/dist/cjs/api/types/DeepgramListenProviderV1.d.ts +14 -0
- package/dist/cjs/api/types/DeepgramListenProviderV1.js +3 -0
- package/dist/cjs/api/types/DeepgramListenProviderV2.d.ts +18 -0
- package/dist/cjs/api/types/DeepgramListenProviderV2.js +3 -0
- package/dist/cjs/api/types/index.d.ts +2 -0
- package/dist/cjs/api/types/index.js +2 -0
- package/dist/cjs/environments.d.ts +4 -7
- package/dist/cjs/environments.js +1 -5
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.mjs +6 -0
- package/dist/esm/api/resources/agent/resources/v1/resources/settings/resources/think/resources/models/client/Client.mjs +1 -1
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentContextListenProvider.d.mts +3 -24
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentContextListenProvider.mjs +6 -1
- package/dist/esm/api/resources/listen/resources/v1/resources/media/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/listen/resources/v1/resources/media/client/Client.mjs +4 -1
- package/dist/esm/api/resources/listen/resources/v1/resources/media/client/requests/ListenV1RequestUrl.d.mts +3 -0
- package/dist/esm/api/resources/listen/resources/v1/resources/media/client/requests/MediaTranscribeRequestOctetStream.d.mts +2 -0
- package/dist/esm/api/resources/listen/resources/v1/resources/media/types/MediaTranscribeRequestDiarizeModel.d.mts +6 -0
- package/dist/esm/api/resources/listen/resources/v1/resources/media/types/MediaTranscribeRequestDiarizeModel.mjs +6 -0
- package/dist/esm/api/resources/listen/resources/v1/resources/media/types/index.d.mts +1 -0
- package/dist/esm/api/resources/listen/resources/v1/resources/media/types/index.mjs +1 -0
- package/dist/esm/api/types/DeepgramListenProviderV1.d.mts +14 -0
- package/dist/esm/api/types/DeepgramListenProviderV1.mjs +2 -0
- package/dist/esm/api/types/DeepgramListenProviderV2.d.mts +18 -0
- package/dist/esm/api/types/DeepgramListenProviderV2.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +2 -0
- package/dist/esm/api/types/index.mjs +2 -0
- package/dist/esm/environments.d.mts +4 -7
- package/dist/esm/environments.mjs +1 -5
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1 -0
|
@@ -130,9 +130,9 @@ var Deepgram = (() => {
|
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
132
|
|
|
133
|
-
// node_modules/.pnpm/ws@8.20.
|
|
133
|
+
// node_modules/.pnpm/ws@8.20.1/node_modules/ws/browser.js
|
|
134
134
|
var require_browser = __commonJS({
|
|
135
|
-
"node_modules/.pnpm/ws@8.20.
|
|
135
|
+
"node_modules/.pnpm/ws@8.20.1/node_modules/ws/browser.js"(exports, module) {
|
|
136
136
|
"use strict";
|
|
137
137
|
module.exports = function() {
|
|
138
138
|
throw new Error(
|
|
@@ -451,6 +451,7 @@ var Deepgram = (() => {
|
|
|
451
451
|
MediaTranscribeRequestCallbackMethod: () => MediaTranscribeRequestCallbackMethod,
|
|
452
452
|
MediaTranscribeRequestCustomIntentMode: () => MediaTranscribeRequestCustomIntentMode,
|
|
453
453
|
MediaTranscribeRequestCustomTopicMode: () => MediaTranscribeRequestCustomTopicMode,
|
|
454
|
+
MediaTranscribeRequestDiarizeModel: () => MediaTranscribeRequestDiarizeModel,
|
|
454
455
|
MediaTranscribeRequestEncoding: () => MediaTranscribeRequestEncoding,
|
|
455
456
|
MediaTranscribeRequestModel: () => MediaTranscribeRequestModel,
|
|
456
457
|
MediaTranscribeRequestSummarize: () => MediaTranscribeRequestSummarize,
|
|
@@ -464,6 +465,7 @@ var Deepgram = (() => {
|
|
|
464
465
|
MediaTranscribeRequestCallbackMethod: () => MediaTranscribeRequestCallbackMethod,
|
|
465
466
|
MediaTranscribeRequestCustomIntentMode: () => MediaTranscribeRequestCustomIntentMode,
|
|
466
467
|
MediaTranscribeRequestCustomTopicMode: () => MediaTranscribeRequestCustomTopicMode,
|
|
468
|
+
MediaTranscribeRequestDiarizeModel: () => MediaTranscribeRequestDiarizeModel,
|
|
467
469
|
MediaTranscribeRequestEncoding: () => MediaTranscribeRequestEncoding,
|
|
468
470
|
MediaTranscribeRequestModel: () => MediaTranscribeRequestModel,
|
|
469
471
|
MediaTranscribeRequestSummarize: () => MediaTranscribeRequestSummarize,
|
|
@@ -488,6 +490,13 @@ var Deepgram = (() => {
|
|
|
488
490
|
Strict: "strict"
|
|
489
491
|
};
|
|
490
492
|
|
|
493
|
+
// src/api/resources/listen/resources/v1/resources/media/types/MediaTranscribeRequestDiarizeModel.ts
|
|
494
|
+
var MediaTranscribeRequestDiarizeModel = {
|
|
495
|
+
Latest: "latest",
|
|
496
|
+
V1: "v1",
|
|
497
|
+
V2: "v2"
|
|
498
|
+
};
|
|
499
|
+
|
|
491
500
|
// src/api/resources/listen/resources/v1/resources/media/types/MediaTranscribeRequestEncoding.ts
|
|
492
501
|
var MediaTranscribeRequestEncoding = {
|
|
493
502
|
Linear16: "linear16",
|
|
@@ -3554,8 +3563,8 @@ var Deepgram = (() => {
|
|
|
3554
3563
|
{
|
|
3555
3564
|
"X-Fern-Language": "JavaScript",
|
|
3556
3565
|
"X-Fern-SDK-Name": "@deepgram/sdk",
|
|
3557
|
-
"X-Fern-SDK-Version": "5.
|
|
3558
|
-
"User-Agent": "@deepgram/sdk/5.
|
|
3566
|
+
"X-Fern-SDK-Version": "5.2.1",
|
|
3567
|
+
"User-Agent": "@deepgram/sdk/5.2.1",
|
|
3559
3568
|
"X-Fern-Runtime": RUNTIME.type,
|
|
3560
3569
|
"X-Fern-Runtime-Version": RUNTIME.version
|
|
3561
3570
|
},
|
|
@@ -3583,13 +3592,9 @@ var Deepgram = (() => {
|
|
|
3583
3592
|
var DeepgramEnvironment = {
|
|
3584
3593
|
Production: {
|
|
3585
3594
|
base: "https://api.deepgram.com",
|
|
3595
|
+
production: "wss://api.deepgram.com",
|
|
3586
3596
|
agent: "wss://agent.deepgram.com",
|
|
3587
|
-
|
|
3588
|
-
},
|
|
3589
|
-
Agent: {
|
|
3590
|
-
base: "https://agent.deepgram.com",
|
|
3591
|
-
agent: "wss://agent.deepgram.com",
|
|
3592
|
-
production: "wss://api.deepgram.com"
|
|
3597
|
+
agentRest: "https://agent.deepgram.com"
|
|
3593
3598
|
}
|
|
3594
3599
|
};
|
|
3595
3600
|
|
|
@@ -3649,7 +3654,7 @@ var Deepgram = (() => {
|
|
|
3649
3654
|
const _headers = mergeHeaders((_a = this._options) == null ? void 0 : _a.headers, requestOptions == null ? void 0 : requestOptions.headers);
|
|
3650
3655
|
const _response = yield ((_b = this._options.fetcher) != null ? _b : fetcher)({
|
|
3651
3656
|
url: url_exports.join(
|
|
3652
|
-
(_d = yield Supplier.get(this._options.baseUrl)) != null ? _d : ((_c = yield Supplier.get(this._options.environment)) != null ? _c : DeepgramEnvironment.Production).
|
|
3657
|
+
(_d = yield Supplier.get(this._options.baseUrl)) != null ? _d : ((_c = yield Supplier.get(this._options.environment)) != null ? _c : DeepgramEnvironment.Production).agentRest,
|
|
3653
3658
|
"v1/agent/settings/think/models"
|
|
3654
3659
|
),
|
|
3655
3660
|
method: "GET",
|
|
@@ -4009,6 +4014,7 @@ var Deepgram = (() => {
|
|
|
4009
4014
|
* detect_entities: true,
|
|
4010
4015
|
* detect_language: true,
|
|
4011
4016
|
* diarize: true,
|
|
4017
|
+
* diarize_model: "latest",
|
|
4012
4018
|
* dictation: true,
|
|
4013
4019
|
* encoding: "linear16",
|
|
4014
4020
|
* filler_words: true,
|
|
@@ -4055,6 +4061,7 @@ var Deepgram = (() => {
|
|
|
4055
4061
|
detect_entities: detectEntities,
|
|
4056
4062
|
detect_language: detectLanguage,
|
|
4057
4063
|
diarize,
|
|
4064
|
+
diarize_model: diarizeModel,
|
|
4058
4065
|
dictation,
|
|
4059
4066
|
encoding,
|
|
4060
4067
|
filler_words: fillerWords,
|
|
@@ -4092,6 +4099,7 @@ var Deepgram = (() => {
|
|
|
4092
4099
|
"detect_entities",
|
|
4093
4100
|
"detect_language",
|
|
4094
4101
|
"diarize",
|
|
4102
|
+
"diarize_model",
|
|
4095
4103
|
"dictation",
|
|
4096
4104
|
"encoding",
|
|
4097
4105
|
"filler_words",
|
|
@@ -4130,6 +4138,7 @@ var Deepgram = (() => {
|
|
|
4130
4138
|
detect_entities: detectEntities,
|
|
4131
4139
|
detect_language: detectLanguage,
|
|
4132
4140
|
diarize,
|
|
4141
|
+
diarize_model: diarizeModel != null ? diarizeModel : void 0,
|
|
4133
4142
|
dictation,
|
|
4134
4143
|
encoding: encoding != null ? encoding : void 0,
|
|
4135
4144
|
filler_words: fillerWords,
|
|
@@ -4231,6 +4240,7 @@ var Deepgram = (() => {
|
|
|
4231
4240
|
detect_entities: request.detect_entities,
|
|
4232
4241
|
detect_language: request.detect_language,
|
|
4233
4242
|
diarize: request.diarize,
|
|
4243
|
+
diarize_model: request.diarize_model != null ? request.diarize_model : void 0,
|
|
4234
4244
|
dictation: request.dictation,
|
|
4235
4245
|
encoding: request.encoding != null ? request.encoding : void 0,
|
|
4236
4246
|
filler_words: request.filler_words,
|
|
@@ -8571,6 +8581,12 @@ var Deepgram = (() => {
|
|
|
8571
8581
|
input,
|
|
8572
8582
|
init,
|
|
8573
8583
|
{
|
|
8584
|
+
// Patch: the 2026-05-14 regen switched this default from `base`
|
|
8585
|
+
// (api.deepgram.com) to `agentRest` (agent.deepgram.com) after
|
|
8586
|
+
// the new agentRest slot was introduced upstream. The passthrough
|
|
8587
|
+
// helper is documented as the catch-all for endpoints not yet
|
|
8588
|
+
// supported in the SDK — it should default to the canonical
|
|
8589
|
+
// Deepgram REST host, not the agent host. Restoring `base`.
|
|
8574
8590
|
baseUrl: (_a = this._options.baseUrl) != null ? _a : (() => __async(this, null, function* () {
|
|
8575
8591
|
var _a2;
|
|
8576
8592
|
const env = yield Supplier.get(this._options.environment);
|
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "@deepgram/sdk",
|
|
46
|
-
"X-Fern-SDK-Version": "5.
|
|
47
|
-
"User-Agent": "@deepgram/sdk/5.
|
|
46
|
+
"X-Fern-SDK-Version": "5.2.1",
|
|
47
|
+
"User-Agent": "@deepgram/sdk/5.2.1",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
package/dist/cjs/Client.js
CHANGED
|
@@ -105,6 +105,12 @@ class DeepgramClient {
|
|
|
105
105
|
return __awaiter(this, void 0, void 0, function* () {
|
|
106
106
|
var _a;
|
|
107
107
|
return core.makePassthroughRequest(input, init, {
|
|
108
|
+
// Patch: the 2026-05-14 regen switched this default from `base`
|
|
109
|
+
// (api.deepgram.com) to `agentRest` (agent.deepgram.com) after
|
|
110
|
+
// the new agentRest slot was introduced upstream. The passthrough
|
|
111
|
+
// helper is documented as the catch-all for endpoints not yet
|
|
112
|
+
// supported in the SDK — it should default to the canonical
|
|
113
|
+
// Deepgram REST host, not the agent host. Restoring `base`.
|
|
108
114
|
baseUrl: (_a = this._options.baseUrl) !== null && _a !== void 0 ? _a : (() => __awaiter(this, void 0, void 0, function* () {
|
|
109
115
|
var _a;
|
|
110
116
|
const env = yield core.Supplier.get(this._options.environment);
|
|
@@ -73,7 +73,7 @@ class ModelsClient {
|
|
|
73
73
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
74
74
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
75
75
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
76
|
-
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.DeepgramEnvironment.Production).
|
|
76
|
+
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.DeepgramEnvironment.Production).agentRest, "v1/agent/settings/think/models"),
|
|
77
77
|
method: "GET",
|
|
78
78
|
headers: _headers,
|
|
79
79
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
@@ -1,34 +1,13 @@
|
|
|
1
1
|
import type * as Deepgram from "../../../../../index.js";
|
|
2
2
|
export type AgentV1SettingsAgentContextListenProvider = Deepgram.agent.AgentV1SettingsAgentContextListenProvider.V1 | Deepgram.agent.AgentV1SettingsAgentContextListenProvider.V2;
|
|
3
3
|
export declare namespace AgentV1SettingsAgentContextListenProvider {
|
|
4
|
-
interface V1 {
|
|
4
|
+
interface V1 extends Deepgram.DeepgramListenProviderV1 {
|
|
5
5
|
version: "v1";
|
|
6
|
-
/** Provider type for speech-to-text */
|
|
7
|
-
type: "deepgram";
|
|
8
|
-
/** Model to use for speech to text using the V1 API (e.g. Nova-3, Nova-2) */
|
|
9
|
-
model?: string | undefined;
|
|
10
|
-
/** Language code to use for speech-to-text. Can be a BCP-47 language tag (e.g. `en`), or `multi` for code-switching transcription */
|
|
11
|
-
language?: string | undefined;
|
|
12
|
-
/** Prompt keyterm recognition to improve Keyword Recall Rate */
|
|
13
|
-
keyterms?: string[] | undefined;
|
|
14
|
-
/** Applies smart formatting to improve transcript readability */
|
|
15
|
-
smart_format?: boolean | undefined;
|
|
16
6
|
}
|
|
17
|
-
interface V2 {
|
|
7
|
+
interface V2 extends Deepgram.DeepgramListenProviderV2 {
|
|
18
8
|
version: "v2";
|
|
19
|
-
/** Provider type for speech-to-text */
|
|
20
|
-
type: "deepgram";
|
|
21
|
-
/** Model to use for speech to text using the V2 API (e.g. flux-general-en, flux-general-multi) */
|
|
22
|
-
model: string;
|
|
23
|
-
/** One or more BCP-47 language codes to bias the model toward specific languages. Only supported when model is flux-general-multi. Without hints, the model auto-detects the spoken language. See the Language Prompting guide for details. */
|
|
24
|
-
language_hint?: AgentV1SettingsAgentContextListenProviderV2.LanguageHint | undefined;
|
|
25
|
-
/** Prompt keyterm recognition to improve Keyword Recall Rate */
|
|
26
|
-
keyterms?: string[] | undefined;
|
|
27
9
|
}
|
|
28
10
|
namespace AgentV1SettingsAgentContextListenProviderV2 {
|
|
29
|
-
|
|
30
|
-
* One or more BCP-47 language codes to bias the model toward specific languages. Only supported when model is flux-general-multi. Without hints, the model auto-detects the spoken language. See the Language Prompting guide for details.
|
|
31
|
-
*/
|
|
32
|
-
type LanguageHint = string | string[];
|
|
11
|
+
type LanguageHint = Deepgram.DeepgramListenProviderV2.LanguageHint;
|
|
33
12
|
}
|
|
34
13
|
}
|
package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentContextListenProvider.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
//
|
|
2
|
+
// Backward-compat: the 2026-05-14 regen consolidated the listen-provider sub-types
|
|
3
|
+
// into top-level `DeepgramListenProviderV1` / `DeepgramListenProviderV2` and dropped
|
|
4
|
+
// the nested `AgentV1SettingsAgentContextListenProviderV2.LanguageHint` namespace
|
|
5
|
+
// path. We restore the nested namespace as an alias to `DeepgramListenProviderV2.LanguageHint`
|
|
6
|
+
// so existing imports of the deep path still resolve.
|
|
7
|
+
// Regression coverage in tests/unit/compat-aliases.test.ts.
|
|
3
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -91,6 +91,7 @@ class MediaClient {
|
|
|
91
91
|
* detect_entities: true,
|
|
92
92
|
* detect_language: true,
|
|
93
93
|
* diarize: true,
|
|
94
|
+
* diarize_model: "latest",
|
|
94
95
|
* dictation: true,
|
|
95
96
|
* encoding: "linear16",
|
|
96
97
|
* filler_words: true,
|
|
@@ -121,7 +122,7 @@ class MediaClient {
|
|
|
121
122
|
__transcribeUrl(request, requestOptions) {
|
|
122
123
|
return __awaiter(this, void 0, void 0, function* () {
|
|
123
124
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
124
|
-
const { callback, callback_method: callbackMethod, extra, sentiment, summarize, tag, topics, custom_topic: customTopic, custom_topic_mode: customTopicMode, intents, custom_intent: customIntent, custom_intent_mode: customIntentMode, detect_entities: detectEntities, detect_language: detectLanguage, diarize, dictation, encoding, filler_words: fillerWords, keyterm, keywords, language, measurements, model, multichannel, numerals, paragraphs, profanity_filter: profanityFilter, punctuate, redact, replace, search, smart_format: smartFormat, utterances, utt_split: uttSplit, version, mip_opt_out: mipOptOut } = request, _body = __rest(request, ["callback", "callback_method", "extra", "sentiment", "summarize", "tag", "topics", "custom_topic", "custom_topic_mode", "intents", "custom_intent", "custom_intent_mode", "detect_entities", "detect_language", "diarize", "dictation", "encoding", "filler_words", "keyterm", "keywords", "language", "measurements", "model", "multichannel", "numerals", "paragraphs", "profanity_filter", "punctuate", "redact", "replace", "search", "smart_format", "utterances", "utt_split", "version", "mip_opt_out"]);
|
|
125
|
+
const { callback, callback_method: callbackMethod, extra, sentiment, summarize, tag, topics, custom_topic: customTopic, custom_topic_mode: customTopicMode, intents, custom_intent: customIntent, custom_intent_mode: customIntentMode, detect_entities: detectEntities, detect_language: detectLanguage, diarize, diarize_model: diarizeModel, dictation, encoding, filler_words: fillerWords, keyterm, keywords, language, measurements, model, multichannel, numerals, paragraphs, profanity_filter: profanityFilter, punctuate, redact, replace, search, smart_format: smartFormat, utterances, utt_split: uttSplit, version, mip_opt_out: mipOptOut } = request, _body = __rest(request, ["callback", "callback_method", "extra", "sentiment", "summarize", "tag", "topics", "custom_topic", "custom_topic_mode", "intents", "custom_intent", "custom_intent_mode", "detect_entities", "detect_language", "diarize", "diarize_model", "dictation", "encoding", "filler_words", "keyterm", "keywords", "language", "measurements", "model", "multichannel", "numerals", "paragraphs", "profanity_filter", "punctuate", "redact", "replace", "search", "smart_format", "utterances", "utt_split", "version", "mip_opt_out"]);
|
|
125
126
|
const _queryParams = {
|
|
126
127
|
callback,
|
|
127
128
|
callback_method: callbackMethod != null ? callbackMethod : undefined,
|
|
@@ -138,6 +139,7 @@ class MediaClient {
|
|
|
138
139
|
detect_entities: detectEntities,
|
|
139
140
|
detect_language: detectLanguage,
|
|
140
141
|
diarize,
|
|
142
|
+
diarize_model: diarizeModel != null ? diarizeModel : undefined,
|
|
141
143
|
dictation,
|
|
142
144
|
encoding: encoding != null ? encoding : undefined,
|
|
143
145
|
filler_words: fillerWords,
|
|
@@ -236,6 +238,7 @@ class MediaClient {
|
|
|
236
238
|
detect_entities: request.detect_entities,
|
|
237
239
|
detect_language: request.detect_language,
|
|
238
240
|
diarize: request.diarize,
|
|
241
|
+
diarize_model: request.diarize_model != null ? request.diarize_model : undefined,
|
|
239
242
|
dictation: request.dictation,
|
|
240
243
|
encoding: request.encoding != null ? request.encoding : undefined,
|
|
241
244
|
filler_words: request.filler_words,
|
|
@@ -17,6 +17,7 @@ import type * as Deepgram from "../../../../../../../../index.js";
|
|
|
17
17
|
* detect_entities: true,
|
|
18
18
|
* detect_language: true,
|
|
19
19
|
* diarize: true,
|
|
20
|
+
* diarize_model: "latest",
|
|
20
21
|
* dictation: true,
|
|
21
22
|
* encoding: "linear16",
|
|
22
23
|
* filler_words: true,
|
|
@@ -72,6 +73,8 @@ export interface ListenV1RequestUrl {
|
|
|
72
73
|
detect_language?: boolean;
|
|
73
74
|
/** Recognize speaker changes. Each word in the transcript will be assigned a speaker number starting at 0 */
|
|
74
75
|
diarize?: boolean;
|
|
76
|
+
/** Select and enable a specific batch diarization model version. If specifying this parameter, you should not set the deprecated `diarize=true` parameter. Not accepted on streaming requests. */
|
|
77
|
+
diarize_model?: Deepgram.listen.v1.MediaTranscribeRequestDiarizeModel;
|
|
75
78
|
/** Dictation mode for controlling formatting with dictated speech */
|
|
76
79
|
dictation?: boolean;
|
|
77
80
|
/** Specify the expected encoding of your submitted audio */
|
|
@@ -34,6 +34,8 @@ export interface MediaTranscribeRequestOctetStream {
|
|
|
34
34
|
detect_language?: boolean;
|
|
35
35
|
/** Recognize speaker changes. Each word in the transcript will be assigned a speaker number starting at 0 */
|
|
36
36
|
diarize?: boolean;
|
|
37
|
+
/** Select and enable a specific batch diarization model version. If specifying this parameter, you should not set the deprecated `diarize=true` parameter. Not accepted on streaming requests. */
|
|
38
|
+
diarize_model?: Deepgram.listen.v1.MediaTranscribeRequestDiarizeModel;
|
|
37
39
|
/** Dictation mode for controlling formatting with dictated speech */
|
|
38
40
|
dictation?: boolean;
|
|
39
41
|
/** Specify the expected encoding of your submitted audio */
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const MediaTranscribeRequestDiarizeModel: {
|
|
2
|
+
readonly Latest: "latest";
|
|
3
|
+
readonly V1: "v1";
|
|
4
|
+
readonly V2: "v2";
|
|
5
|
+
};
|
|
6
|
+
export type MediaTranscribeRequestDiarizeModel = (typeof MediaTranscribeRequestDiarizeModel)[keyof typeof MediaTranscribeRequestDiarizeModel] | string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.MediaTranscribeRequestDiarizeModel = void 0;
|
|
5
|
+
exports.MediaTranscribeRequestDiarizeModel = {
|
|
6
|
+
Latest: "latest",
|
|
7
|
+
V1: "v1",
|
|
8
|
+
V2: "v2",
|
|
9
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./MediaTranscribeRequestCallbackMethod.js";
|
|
2
2
|
export * from "./MediaTranscribeRequestCustomIntentMode.js";
|
|
3
3
|
export * from "./MediaTranscribeRequestCustomTopicMode.js";
|
|
4
|
+
export * from "./MediaTranscribeRequestDiarizeModel.js";
|
|
4
5
|
export * from "./MediaTranscribeRequestEncoding.js";
|
|
5
6
|
export * from "./MediaTranscribeRequestModel.js";
|
|
6
7
|
export * from "./MediaTranscribeRequestSummarize.js";
|
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./MediaTranscribeRequestCallbackMethod.js"), exports);
|
|
18
18
|
__exportStar(require("./MediaTranscribeRequestCustomIntentMode.js"), exports);
|
|
19
19
|
__exportStar(require("./MediaTranscribeRequestCustomTopicMode.js"), exports);
|
|
20
|
+
__exportStar(require("./MediaTranscribeRequestDiarizeModel.js"), exports);
|
|
20
21
|
__exportStar(require("./MediaTranscribeRequestEncoding.js"), exports);
|
|
21
22
|
__exportStar(require("./MediaTranscribeRequestModel.js"), exports);
|
|
22
23
|
__exportStar(require("./MediaTranscribeRequestSummarize.js"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface DeepgramListenProviderV1 {
|
|
2
|
+
/** Provider type for speech-to-text */
|
|
3
|
+
type: "deepgram";
|
|
4
|
+
/** Specifies usage of the V1 Deepgram speech-to-text API */
|
|
5
|
+
version?: "v1" | undefined;
|
|
6
|
+
/** Model to use for speech to text using the V1 API (e.g. Nova-3, Nova-2) */
|
|
7
|
+
model?: string | undefined;
|
|
8
|
+
/** Language code to use for speech-to-text. Can be a BCP-47 language tag (e.g. `en`), or `multi` for code-switching transcription */
|
|
9
|
+
language?: string | undefined;
|
|
10
|
+
/** Prompt keyterm recognition to improve Keyword Recall Rate */
|
|
11
|
+
keyterms?: string[] | undefined;
|
|
12
|
+
/** Applies smart formatting to improve transcript readability */
|
|
13
|
+
smart_format?: boolean | undefined;
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface DeepgramListenProviderV2 {
|
|
2
|
+
/** Provider type for speech-to-text */
|
|
3
|
+
type: "deepgram";
|
|
4
|
+
/** Specifies usage of the V2 Deepgram speech-to-text API (e.g. Flux) */
|
|
5
|
+
version?: "v2" | undefined;
|
|
6
|
+
/** Model to use for speech to text using the V2 API (e.g. flux-general-en, flux-general-multi) */
|
|
7
|
+
model: string;
|
|
8
|
+
/** One or more BCP-47 language codes to bias the model toward specific languages. Only supported when model is flux-general-multi. Without hints, the model auto-detects the spoken language. See the Language Prompting guide for details. */
|
|
9
|
+
language_hint?: DeepgramListenProviderV2.LanguageHint | undefined;
|
|
10
|
+
/** Prompt keyterm recognition to improve Keyword Recall Rate */
|
|
11
|
+
keyterms?: string[] | undefined;
|
|
12
|
+
}
|
|
13
|
+
export declare namespace DeepgramListenProviderV2 {
|
|
14
|
+
/**
|
|
15
|
+
* One or more BCP-47 language codes to bias the model toward specific languages. Only supported when model is flux-general-multi. Without hints, the model auto-detects the spoken language. See the Language Prompting guide for details.
|
|
16
|
+
*/
|
|
17
|
+
type LanguageHint = string | string[];
|
|
18
|
+
}
|
|
@@ -12,6 +12,8 @@ export * from "./CreateKeyV1Response.js";
|
|
|
12
12
|
export * from "./CreateProjectDistributionCredentialsV1Response.js";
|
|
13
13
|
export * from "./CreateProjectInviteV1Response.js";
|
|
14
14
|
export * from "./Deepgram.js";
|
|
15
|
+
export * from "./DeepgramListenProviderV1.js";
|
|
16
|
+
export * from "./DeepgramListenProviderV2.js";
|
|
15
17
|
export * from "./DeleteAgentConfigurationV1Response.js";
|
|
16
18
|
export * from "./DeleteAgentVariableV1Response.js";
|
|
17
19
|
export * from "./DeleteProjectInviteV1Response.js";
|
|
@@ -28,6 +28,8 @@ __exportStar(require("./CreateKeyV1Response.js"), exports);
|
|
|
28
28
|
__exportStar(require("./CreateProjectDistributionCredentialsV1Response.js"), exports);
|
|
29
29
|
__exportStar(require("./CreateProjectInviteV1Response.js"), exports);
|
|
30
30
|
__exportStar(require("./Deepgram.js"), exports);
|
|
31
|
+
__exportStar(require("./DeepgramListenProviderV1.js"), exports);
|
|
32
|
+
__exportStar(require("./DeepgramListenProviderV2.js"), exports);
|
|
31
33
|
__exportStar(require("./DeleteAgentConfigurationV1Response.js"), exports);
|
|
32
34
|
__exportStar(require("./DeleteAgentVariableV1Response.js"), exports);
|
|
33
35
|
__exportStar(require("./DeleteProjectInviteV1Response.js"), exports);
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
export interface DeepgramEnvironmentUrls {
|
|
2
2
|
base: string;
|
|
3
|
-
agent: string;
|
|
4
3
|
production: string;
|
|
4
|
+
agent: string;
|
|
5
|
+
agentRest: string;
|
|
5
6
|
}
|
|
6
7
|
export declare const DeepgramEnvironment: {
|
|
7
8
|
readonly Production: {
|
|
8
9
|
readonly base: "https://api.deepgram.com";
|
|
9
|
-
readonly agent: "wss://agent.deepgram.com";
|
|
10
10
|
readonly production: "wss://api.deepgram.com";
|
|
11
|
-
};
|
|
12
|
-
readonly Agent: {
|
|
13
|
-
readonly base: "https://agent.deepgram.com";
|
|
14
11
|
readonly agent: "wss://agent.deepgram.com";
|
|
15
|
-
readonly
|
|
12
|
+
readonly agentRest: "https://agent.deepgram.com";
|
|
16
13
|
};
|
|
17
14
|
};
|
|
18
|
-
export type DeepgramEnvironment = typeof DeepgramEnvironment.Production
|
|
15
|
+
export type DeepgramEnvironment = typeof DeepgramEnvironment.Production;
|
package/dist/cjs/environments.js
CHANGED
|
@@ -5,12 +5,8 @@ exports.DeepgramEnvironment = void 0;
|
|
|
5
5
|
exports.DeepgramEnvironment = {
|
|
6
6
|
Production: {
|
|
7
7
|
base: "https://api.deepgram.com",
|
|
8
|
-
agent: "wss://agent.deepgram.com",
|
|
9
8
|
production: "wss://api.deepgram.com",
|
|
10
|
-
},
|
|
11
|
-
Agent: {
|
|
12
|
-
base: "https://agent.deepgram.com",
|
|
13
9
|
agent: "wss://agent.deepgram.com",
|
|
14
|
-
|
|
10
|
+
agentRest: "https://agent.deepgram.com",
|
|
15
11
|
},
|
|
16
12
|
};
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "5.
|
|
1
|
+
export declare const SDK_VERSION = "5.2.1";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "@deepgram/sdk",
|
|
9
|
-
"X-Fern-SDK-Version": "5.
|
|
10
|
-
"User-Agent": "@deepgram/sdk/5.
|
|
9
|
+
"X-Fern-SDK-Version": "5.2.1",
|
|
10
|
+
"User-Agent": "@deepgram/sdk/5.2.1",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -69,6 +69,12 @@ export class DeepgramClient {
|
|
|
69
69
|
return __awaiter(this, void 0, void 0, function* () {
|
|
70
70
|
var _a;
|
|
71
71
|
return core.makePassthroughRequest(input, init, {
|
|
72
|
+
// Patch: the 2026-05-14 regen switched this default from `base`
|
|
73
|
+
// (api.deepgram.com) to `agentRest` (agent.deepgram.com) after
|
|
74
|
+
// the new agentRest slot was introduced upstream. The passthrough
|
|
75
|
+
// helper is documented as the catch-all for endpoints not yet
|
|
76
|
+
// supported in the SDK — it should default to the canonical
|
|
77
|
+
// Deepgram REST host, not the agent host. Restoring `base`.
|
|
72
78
|
baseUrl: (_a = this._options.baseUrl) !== null && _a !== void 0 ? _a : (() => __awaiter(this, void 0, void 0, function* () {
|
|
73
79
|
var _a;
|
|
74
80
|
const env = yield core.Supplier.get(this._options.environment);
|
|
@@ -37,7 +37,7 @@ export class ModelsClient {
|
|
|
37
37
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
38
38
|
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
39
39
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
40
|
-
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.DeepgramEnvironment.Production).
|
|
40
|
+
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.DeepgramEnvironment.Production).agentRest, "v1/agent/settings/think/models"),
|
|
41
41
|
method: "GET",
|
|
42
42
|
headers: _headers,
|
|
43
43
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
@@ -1,34 +1,13 @@
|
|
|
1
1
|
import type * as Deepgram from "../../../../../index.mjs";
|
|
2
2
|
export type AgentV1SettingsAgentContextListenProvider = Deepgram.agent.AgentV1SettingsAgentContextListenProvider.V1 | Deepgram.agent.AgentV1SettingsAgentContextListenProvider.V2;
|
|
3
3
|
export declare namespace AgentV1SettingsAgentContextListenProvider {
|
|
4
|
-
interface V1 {
|
|
4
|
+
interface V1 extends Deepgram.DeepgramListenProviderV1 {
|
|
5
5
|
version: "v1";
|
|
6
|
-
/** Provider type for speech-to-text */
|
|
7
|
-
type: "deepgram";
|
|
8
|
-
/** Model to use for speech to text using the V1 API (e.g. Nova-3, Nova-2) */
|
|
9
|
-
model?: string | undefined;
|
|
10
|
-
/** Language code to use for speech-to-text. Can be a BCP-47 language tag (e.g. `en`), or `multi` for code-switching transcription */
|
|
11
|
-
language?: string | undefined;
|
|
12
|
-
/** Prompt keyterm recognition to improve Keyword Recall Rate */
|
|
13
|
-
keyterms?: string[] | undefined;
|
|
14
|
-
/** Applies smart formatting to improve transcript readability */
|
|
15
|
-
smart_format?: boolean | undefined;
|
|
16
6
|
}
|
|
17
|
-
interface V2 {
|
|
7
|
+
interface V2 extends Deepgram.DeepgramListenProviderV2 {
|
|
18
8
|
version: "v2";
|
|
19
|
-
/** Provider type for speech-to-text */
|
|
20
|
-
type: "deepgram";
|
|
21
|
-
/** Model to use for speech to text using the V2 API (e.g. flux-general-en, flux-general-multi) */
|
|
22
|
-
model: string;
|
|
23
|
-
/** One or more BCP-47 language codes to bias the model toward specific languages. Only supported when model is flux-general-multi. Without hints, the model auto-detects the spoken language. See the Language Prompting guide for details. */
|
|
24
|
-
language_hint?: AgentV1SettingsAgentContextListenProviderV2.LanguageHint | undefined;
|
|
25
|
-
/** Prompt keyterm recognition to improve Keyword Recall Rate */
|
|
26
|
-
keyterms?: string[] | undefined;
|
|
27
9
|
}
|
|
28
10
|
namespace AgentV1SettingsAgentContextListenProviderV2 {
|
|
29
|
-
|
|
30
|
-
* One or more BCP-47 language codes to bias the model toward specific languages. Only supported when model is flux-general-multi. Without hints, the model auto-detects the spoken language. See the Language Prompting guide for details.
|
|
31
|
-
*/
|
|
32
|
-
type LanguageHint = string | string[];
|
|
11
|
+
type LanguageHint = Deepgram.DeepgramListenProviderV2.LanguageHint;
|
|
33
12
|
}
|
|
34
13
|
}
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Backward-compat: the 2026-05-14 regen consolidated the listen-provider sub-types
|
|
2
|
+
// into top-level `DeepgramListenProviderV1` / `DeepgramListenProviderV2` and dropped
|
|
3
|
+
// the nested `AgentV1SettingsAgentContextListenProviderV2.LanguageHint` namespace
|
|
4
|
+
// path. We restore the nested namespace as an alias to `DeepgramListenProviderV2.LanguageHint`
|
|
5
|
+
// so existing imports of the deep path still resolve.
|
|
6
|
+
// Regression coverage in tests/unit/compat-aliases.test.ts.
|
|
2
7
|
export {};
|
|
@@ -55,6 +55,7 @@ export class MediaClient {
|
|
|
55
55
|
* detect_entities: true,
|
|
56
56
|
* detect_language: true,
|
|
57
57
|
* diarize: true,
|
|
58
|
+
* diarize_model: "latest",
|
|
58
59
|
* dictation: true,
|
|
59
60
|
* encoding: "linear16",
|
|
60
61
|
* filler_words: true,
|
|
@@ -85,7 +86,7 @@ export class MediaClient {
|
|
|
85
86
|
__transcribeUrl(request, requestOptions) {
|
|
86
87
|
return __awaiter(this, void 0, void 0, function* () {
|
|
87
88
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
88
|
-
const { callback, callback_method: callbackMethod, extra, sentiment, summarize, tag, topics, custom_topic: customTopic, custom_topic_mode: customTopicMode, intents, custom_intent: customIntent, custom_intent_mode: customIntentMode, detect_entities: detectEntities, detect_language: detectLanguage, diarize, dictation, encoding, filler_words: fillerWords, keyterm, keywords, language, measurements, model, multichannel, numerals, paragraphs, profanity_filter: profanityFilter, punctuate, redact, replace, search, smart_format: smartFormat, utterances, utt_split: uttSplit, version, mip_opt_out: mipOptOut } = request, _body = __rest(request, ["callback", "callback_method", "extra", "sentiment", "summarize", "tag", "topics", "custom_topic", "custom_topic_mode", "intents", "custom_intent", "custom_intent_mode", "detect_entities", "detect_language", "diarize", "dictation", "encoding", "filler_words", "keyterm", "keywords", "language", "measurements", "model", "multichannel", "numerals", "paragraphs", "profanity_filter", "punctuate", "redact", "replace", "search", "smart_format", "utterances", "utt_split", "version", "mip_opt_out"]);
|
|
89
|
+
const { callback, callback_method: callbackMethod, extra, sentiment, summarize, tag, topics, custom_topic: customTopic, custom_topic_mode: customTopicMode, intents, custom_intent: customIntent, custom_intent_mode: customIntentMode, detect_entities: detectEntities, detect_language: detectLanguage, diarize, diarize_model: diarizeModel, dictation, encoding, filler_words: fillerWords, keyterm, keywords, language, measurements, model, multichannel, numerals, paragraphs, profanity_filter: profanityFilter, punctuate, redact, replace, search, smart_format: smartFormat, utterances, utt_split: uttSplit, version, mip_opt_out: mipOptOut } = request, _body = __rest(request, ["callback", "callback_method", "extra", "sentiment", "summarize", "tag", "topics", "custom_topic", "custom_topic_mode", "intents", "custom_intent", "custom_intent_mode", "detect_entities", "detect_language", "diarize", "diarize_model", "dictation", "encoding", "filler_words", "keyterm", "keywords", "language", "measurements", "model", "multichannel", "numerals", "paragraphs", "profanity_filter", "punctuate", "redact", "replace", "search", "smart_format", "utterances", "utt_split", "version", "mip_opt_out"]);
|
|
89
90
|
const _queryParams = {
|
|
90
91
|
callback,
|
|
91
92
|
callback_method: callbackMethod != null ? callbackMethod : undefined,
|
|
@@ -102,6 +103,7 @@ export class MediaClient {
|
|
|
102
103
|
detect_entities: detectEntities,
|
|
103
104
|
detect_language: detectLanguage,
|
|
104
105
|
diarize,
|
|
106
|
+
diarize_model: diarizeModel != null ? diarizeModel : undefined,
|
|
105
107
|
dictation,
|
|
106
108
|
encoding: encoding != null ? encoding : undefined,
|
|
107
109
|
filler_words: fillerWords,
|
|
@@ -200,6 +202,7 @@ export class MediaClient {
|
|
|
200
202
|
detect_entities: request.detect_entities,
|
|
201
203
|
detect_language: request.detect_language,
|
|
202
204
|
diarize: request.diarize,
|
|
205
|
+
diarize_model: request.diarize_model != null ? request.diarize_model : undefined,
|
|
203
206
|
dictation: request.dictation,
|
|
204
207
|
encoding: request.encoding != null ? request.encoding : undefined,
|
|
205
208
|
filler_words: request.filler_words,
|
|
@@ -17,6 +17,7 @@ import type * as Deepgram from "../../../../../../../../index.mjs";
|
|
|
17
17
|
* detect_entities: true,
|
|
18
18
|
* detect_language: true,
|
|
19
19
|
* diarize: true,
|
|
20
|
+
* diarize_model: "latest",
|
|
20
21
|
* dictation: true,
|
|
21
22
|
* encoding: "linear16",
|
|
22
23
|
* filler_words: true,
|
|
@@ -72,6 +73,8 @@ export interface ListenV1RequestUrl {
|
|
|
72
73
|
detect_language?: boolean;
|
|
73
74
|
/** Recognize speaker changes. Each word in the transcript will be assigned a speaker number starting at 0 */
|
|
74
75
|
diarize?: boolean;
|
|
76
|
+
/** Select and enable a specific batch diarization model version. If specifying this parameter, you should not set the deprecated `diarize=true` parameter. Not accepted on streaming requests. */
|
|
77
|
+
diarize_model?: Deepgram.listen.v1.MediaTranscribeRequestDiarizeModel;
|
|
75
78
|
/** Dictation mode for controlling formatting with dictated speech */
|
|
76
79
|
dictation?: boolean;
|
|
77
80
|
/** Specify the expected encoding of your submitted audio */
|
|
@@ -34,6 +34,8 @@ export interface MediaTranscribeRequestOctetStream {
|
|
|
34
34
|
detect_language?: boolean;
|
|
35
35
|
/** Recognize speaker changes. Each word in the transcript will be assigned a speaker number starting at 0 */
|
|
36
36
|
diarize?: boolean;
|
|
37
|
+
/** Select and enable a specific batch diarization model version. If specifying this parameter, you should not set the deprecated `diarize=true` parameter. Not accepted on streaming requests. */
|
|
38
|
+
diarize_model?: Deepgram.listen.v1.MediaTranscribeRequestDiarizeModel;
|
|
37
39
|
/** Dictation mode for controlling formatting with dictated speech */
|
|
38
40
|
dictation?: boolean;
|
|
39
41
|
/** Specify the expected encoding of your submitted audio */
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const MediaTranscribeRequestDiarizeModel: {
|
|
2
|
+
readonly Latest: "latest";
|
|
3
|
+
readonly V1: "v1";
|
|
4
|
+
readonly V2: "v2";
|
|
5
|
+
};
|
|
6
|
+
export type MediaTranscribeRequestDiarizeModel = (typeof MediaTranscribeRequestDiarizeModel)[keyof typeof MediaTranscribeRequestDiarizeModel] | string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./MediaTranscribeRequestCallbackMethod.mjs";
|
|
2
2
|
export * from "./MediaTranscribeRequestCustomIntentMode.mjs";
|
|
3
3
|
export * from "./MediaTranscribeRequestCustomTopicMode.mjs";
|
|
4
|
+
export * from "./MediaTranscribeRequestDiarizeModel.mjs";
|
|
4
5
|
export * from "./MediaTranscribeRequestEncoding.mjs";
|
|
5
6
|
export * from "./MediaTranscribeRequestModel.mjs";
|
|
6
7
|
export * from "./MediaTranscribeRequestSummarize.mjs";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./MediaTranscribeRequestCallbackMethod.mjs";
|
|
2
2
|
export * from "./MediaTranscribeRequestCustomIntentMode.mjs";
|
|
3
3
|
export * from "./MediaTranscribeRequestCustomTopicMode.mjs";
|
|
4
|
+
export * from "./MediaTranscribeRequestDiarizeModel.mjs";
|
|
4
5
|
export * from "./MediaTranscribeRequestEncoding.mjs";
|
|
5
6
|
export * from "./MediaTranscribeRequestModel.mjs";
|
|
6
7
|
export * from "./MediaTranscribeRequestSummarize.mjs";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface DeepgramListenProviderV1 {
|
|
2
|
+
/** Provider type for speech-to-text */
|
|
3
|
+
type: "deepgram";
|
|
4
|
+
/** Specifies usage of the V1 Deepgram speech-to-text API */
|
|
5
|
+
version?: "v1" | undefined;
|
|
6
|
+
/** Model to use for speech to text using the V1 API (e.g. Nova-3, Nova-2) */
|
|
7
|
+
model?: string | undefined;
|
|
8
|
+
/** Language code to use for speech-to-text. Can be a BCP-47 language tag (e.g. `en`), or `multi` for code-switching transcription */
|
|
9
|
+
language?: string | undefined;
|
|
10
|
+
/** Prompt keyterm recognition to improve Keyword Recall Rate */
|
|
11
|
+
keyterms?: string[] | undefined;
|
|
12
|
+
/** Applies smart formatting to improve transcript readability */
|
|
13
|
+
smart_format?: boolean | undefined;
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface DeepgramListenProviderV2 {
|
|
2
|
+
/** Provider type for speech-to-text */
|
|
3
|
+
type: "deepgram";
|
|
4
|
+
/** Specifies usage of the V2 Deepgram speech-to-text API (e.g. Flux) */
|
|
5
|
+
version?: "v2" | undefined;
|
|
6
|
+
/** Model to use for speech to text using the V2 API (e.g. flux-general-en, flux-general-multi) */
|
|
7
|
+
model: string;
|
|
8
|
+
/** One or more BCP-47 language codes to bias the model toward specific languages. Only supported when model is flux-general-multi. Without hints, the model auto-detects the spoken language. See the Language Prompting guide for details. */
|
|
9
|
+
language_hint?: DeepgramListenProviderV2.LanguageHint | undefined;
|
|
10
|
+
/** Prompt keyterm recognition to improve Keyword Recall Rate */
|
|
11
|
+
keyterms?: string[] | undefined;
|
|
12
|
+
}
|
|
13
|
+
export declare namespace DeepgramListenProviderV2 {
|
|
14
|
+
/**
|
|
15
|
+
* One or more BCP-47 language codes to bias the model toward specific languages. Only supported when model is flux-general-multi. Without hints, the model auto-detects the spoken language. See the Language Prompting guide for details.
|
|
16
|
+
*/
|
|
17
|
+
type LanguageHint = string | string[];
|
|
18
|
+
}
|
|
@@ -12,6 +12,8 @@ export * from "./CreateKeyV1Response.mjs";
|
|
|
12
12
|
export * from "./CreateProjectDistributionCredentialsV1Response.mjs";
|
|
13
13
|
export * from "./CreateProjectInviteV1Response.mjs";
|
|
14
14
|
export * from "./Deepgram.mjs";
|
|
15
|
+
export * from "./DeepgramListenProviderV1.mjs";
|
|
16
|
+
export * from "./DeepgramListenProviderV2.mjs";
|
|
15
17
|
export * from "./DeleteAgentConfigurationV1Response.mjs";
|
|
16
18
|
export * from "./DeleteAgentVariableV1Response.mjs";
|
|
17
19
|
export * from "./DeleteProjectInviteV1Response.mjs";
|
|
@@ -12,6 +12,8 @@ export * from "./CreateKeyV1Response.mjs";
|
|
|
12
12
|
export * from "./CreateProjectDistributionCredentialsV1Response.mjs";
|
|
13
13
|
export * from "./CreateProjectInviteV1Response.mjs";
|
|
14
14
|
export * from "./Deepgram.mjs";
|
|
15
|
+
export * from "./DeepgramListenProviderV1.mjs";
|
|
16
|
+
export * from "./DeepgramListenProviderV2.mjs";
|
|
15
17
|
export * from "./DeleteAgentConfigurationV1Response.mjs";
|
|
16
18
|
export * from "./DeleteAgentVariableV1Response.mjs";
|
|
17
19
|
export * from "./DeleteProjectInviteV1Response.mjs";
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
export interface DeepgramEnvironmentUrls {
|
|
2
2
|
base: string;
|
|
3
|
-
agent: string;
|
|
4
3
|
production: string;
|
|
4
|
+
agent: string;
|
|
5
|
+
agentRest: string;
|
|
5
6
|
}
|
|
6
7
|
export declare const DeepgramEnvironment: {
|
|
7
8
|
readonly Production: {
|
|
8
9
|
readonly base: "https://api.deepgram.com";
|
|
9
|
-
readonly agent: "wss://agent.deepgram.com";
|
|
10
10
|
readonly production: "wss://api.deepgram.com";
|
|
11
|
-
};
|
|
12
|
-
readonly Agent: {
|
|
13
|
-
readonly base: "https://agent.deepgram.com";
|
|
14
11
|
readonly agent: "wss://agent.deepgram.com";
|
|
15
|
-
readonly
|
|
12
|
+
readonly agentRest: "https://agent.deepgram.com";
|
|
16
13
|
};
|
|
17
14
|
};
|
|
18
|
-
export type DeepgramEnvironment = typeof DeepgramEnvironment.Production
|
|
15
|
+
export type DeepgramEnvironment = typeof DeepgramEnvironment.Production;
|
|
@@ -2,12 +2,8 @@
|
|
|
2
2
|
export const DeepgramEnvironment = {
|
|
3
3
|
Production: {
|
|
4
4
|
base: "https://api.deepgram.com",
|
|
5
|
-
agent: "wss://agent.deepgram.com",
|
|
6
5
|
production: "wss://api.deepgram.com",
|
|
7
|
-
},
|
|
8
|
-
Agent: {
|
|
9
|
-
base: "https://agent.deepgram.com",
|
|
10
6
|
agent: "wss://agent.deepgram.com",
|
|
11
|
-
|
|
7
|
+
agentRest: "https://agent.deepgram.com",
|
|
12
8
|
},
|
|
13
9
|
};
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "5.
|
|
1
|
+
export declare const SDK_VERSION = "5.2.1";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "5.
|
|
1
|
+
export const SDK_VERSION = "5.2.1";
|
package/package.json
CHANGED