@deepgram/sdk 5.0.0-alpha.2 → 5.0.0-beta.1
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/LICENSE +1 -1
- package/dist/browser/index.global.js +674 -1135
- package/dist/cjs/BaseClient.d.ts +7 -7
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +1 -2
- package/dist/cjs/CustomClient.d.ts +9 -1
- package/dist/cjs/CustomClient.js +346 -232
- package/dist/cjs/api/resources/agent/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/agent/resources/v1/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/agent/resources/v1/client/Socket.d.ts +8 -8
- package/dist/cjs/api/resources/agent/resources/v1/client/Socket.js +9 -9
- package/dist/cjs/api/resources/agent/resources/v1/resources/settings/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/agent/resources/v1/resources/settings/resources/think/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/agent/resources/v1/resources/settings/resources/think/resources/models/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1Settings.d.ts +3 -43
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentListenProvider.d.ts +26 -0
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentListenProvider.js +3 -0
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentSpeakEndpointProvider.d.ts +28 -13
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentSpeakEndpointProvider.js +19 -17
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentSpeakOneItemProvider.d.ts +28 -13
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentSpeakOneItemProvider.js +19 -17
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentThinkProvider.d.ts +115 -0
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentThinkProvider.js +57 -0
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1UpdateSpeakSpeakProvider.d.ts +18 -3
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1UpdateSpeakSpeakProvider.js +2 -0
- package/dist/cjs/api/resources/agent/resources/v1/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/agent/resources/v1/types/index.js +2 -0
- package/dist/cjs/api/resources/auth/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/auth/resources/v1/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/auth/resources/v1/resources/tokens/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/listen/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/listen/resources/v1/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/listen/resources/v1/client/Client.js +29 -80
- package/dist/cjs/api/resources/listen/resources/v1/client/Socket.d.ts +4 -4
- package/dist/cjs/api/resources/listen/resources/v1/client/Socket.js +5 -5
- package/dist/cjs/api/resources/listen/resources/v1/resources/media/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/listen/resources/v1/resources/media/client/Client.js +76 -298
- package/dist/cjs/api/resources/listen/resources/v1/types/ListenV1Results.d.ts +3 -3
- package/dist/cjs/api/resources/listen/resources/v2/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/listen/resources/v2/client/Client.js +11 -26
- package/dist/cjs/api/resources/listen/resources/v2/client/Socket.d.ts +2 -2
- package/dist/cjs/api/resources/listen/resources/v2/client/Socket.js +3 -3
- package/dist/cjs/api/resources/manage/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/models/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/models/client/Client.js +3 -4
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/client/Client.js +4 -7
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/balances/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/breakdown/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/breakdown/client/Client.js +9 -27
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/fields/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/fields/client/Client.js +4 -7
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/purchases/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/purchases/client/Client.js +3 -4
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/keys/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/keys/client/Client.js +3 -4
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/members/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/members/resources/invites/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/members/resources/scopes/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/models/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/models/client/Client.js +3 -4
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/requests/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/requests/client/Client.js +12 -31
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/client/Client.js +46 -133
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/breakdown/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/breakdown/client/Client.js +47 -136
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/fields/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/fields/client/Client.js +4 -7
- package/dist/cjs/api/resources/read/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/read/resources/v1/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/read/resources/v1/resources/text/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/read/resources/v1/resources/text/client/Client.js +14 -52
- package/dist/cjs/api/resources/selfHosted/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/selfHosted/resources/v1/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/selfHosted/resources/v1/resources/distributionCredentials/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/selfHosted/resources/v1/resources/distributionCredentials/client/Client.js +4 -12
- package/dist/cjs/api/resources/speak/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/speak/resources/v1/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/speak/resources/v1/client/Client.js +6 -13
- package/dist/cjs/api/resources/speak/resources/v1/client/Socket.d.ts +4 -4
- package/dist/cjs/api/resources/speak/resources/v1/client/Socket.js +4 -4
- package/dist/cjs/api/resources/speak/resources/v1/resources/audio/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/speak/resources/v1/resources/audio/client/Client.js +11 -33
- package/dist/cjs/api/types/SpeakV1SampleRate.d.ts +1 -1
- package/dist/cjs/api/types/SpeakV1SampleRate.js +1 -1
- package/dist/cjs/auth/HeaderAuthProvider.d.ts +14 -8
- package/dist/cjs/auth/HeaderAuthProvider.js +19 -9
- package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +2 -2
- package/dist/cjs/core/fetcher/Fetcher.d.ts +1 -2
- package/dist/cjs/core/headers.d.ts +2 -2
- package/dist/cjs/core/websocket/ws.d.ts +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +7 -7
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +1 -2
- package/dist/esm/CustomClient.d.mts +9 -1
- package/dist/esm/CustomClient.mjs +347 -233
- package/dist/esm/api/resources/agent/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/agent/resources/v1/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/agent/resources/v1/client/Socket.d.mts +8 -8
- package/dist/esm/api/resources/agent/resources/v1/client/Socket.mjs +9 -9
- package/dist/esm/api/resources/agent/resources/v1/resources/settings/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/agent/resources/v1/resources/settings/resources/think/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/agent/resources/v1/resources/settings/resources/think/resources/models/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1Settings.d.mts +3 -43
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentListenProvider.d.mts +26 -0
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentListenProvider.mjs +2 -0
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentSpeakEndpointProvider.d.mts +28 -13
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentSpeakEndpointProvider.mjs +19 -17
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentSpeakOneItemProvider.d.mts +28 -13
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentSpeakOneItemProvider.mjs +19 -17
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentThinkProvider.d.mts +115 -0
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentThinkProvider.mjs +54 -0
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1UpdateSpeakSpeakProvider.d.mts +18 -3
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1UpdateSpeakSpeakProvider.mjs +2 -0
- package/dist/esm/api/resources/agent/resources/v1/types/index.d.mts +2 -0
- package/dist/esm/api/resources/agent/resources/v1/types/index.mjs +2 -0
- package/dist/esm/api/resources/auth/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/auth/resources/v1/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/auth/resources/v1/resources/tokens/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/listen/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/listen/resources/v1/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/listen/resources/v1/client/Client.mjs +29 -80
- package/dist/esm/api/resources/listen/resources/v1/client/Socket.d.mts +4 -4
- package/dist/esm/api/resources/listen/resources/v1/client/Socket.mjs +5 -5
- package/dist/esm/api/resources/listen/resources/v1/resources/media/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/listen/resources/v1/resources/media/client/Client.mjs +76 -298
- package/dist/esm/api/resources/listen/resources/v1/types/ListenV1Results.d.mts +3 -3
- package/dist/esm/api/resources/listen/resources/v2/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/listen/resources/v2/client/Client.mjs +11 -26
- package/dist/esm/api/resources/listen/resources/v2/client/Socket.d.mts +2 -2
- package/dist/esm/api/resources/listen/resources/v2/client/Socket.mjs +3 -3
- package/dist/esm/api/resources/manage/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/models/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/models/client/Client.mjs +3 -4
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/client/Client.mjs +4 -7
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/balances/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/breakdown/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/breakdown/client/Client.mjs +9 -27
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/fields/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/fields/client/Client.mjs +4 -7
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/purchases/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/purchases/client/Client.mjs +3 -4
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/keys/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/keys/client/Client.mjs +3 -4
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/members/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/members/resources/invites/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/members/resources/scopes/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/models/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/models/client/Client.mjs +3 -4
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/requests/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/requests/client/Client.mjs +12 -31
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/client/Client.mjs +46 -133
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/breakdown/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/breakdown/client/Client.mjs +47 -136
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/fields/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/fields/client/Client.mjs +4 -7
- package/dist/esm/api/resources/read/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/read/resources/v1/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/read/resources/v1/resources/text/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/read/resources/v1/resources/text/client/Client.mjs +14 -52
- package/dist/esm/api/resources/selfHosted/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/selfHosted/resources/v1/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/selfHosted/resources/v1/resources/distributionCredentials/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/selfHosted/resources/v1/resources/distributionCredentials/client/Client.mjs +4 -12
- package/dist/esm/api/resources/speak/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/speak/resources/v1/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/speak/resources/v1/client/Client.mjs +6 -13
- package/dist/esm/api/resources/speak/resources/v1/client/Socket.d.mts +4 -4
- package/dist/esm/api/resources/speak/resources/v1/client/Socket.mjs +4 -4
- package/dist/esm/api/resources/speak/resources/v1/resources/audio/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/speak/resources/v1/resources/audio/client/Client.mjs +11 -33
- package/dist/esm/api/types/SpeakV1SampleRate.d.mts +1 -1
- package/dist/esm/api/types/SpeakV1SampleRate.mjs +1 -1
- package/dist/esm/auth/HeaderAuthProvider.d.mts +14 -8
- package/dist/esm/auth/HeaderAuthProvider.mjs +19 -9
- package/dist/esm/core/fetcher/EndpointSupplier.d.mts +2 -2
- package/dist/esm/core/fetcher/Fetcher.d.mts +1 -2
- package/dist/esm/core/headers.d.mts +2 -2
- package/dist/esm/core/websocket/ws.d.mts +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +11 -10
|
@@ -2,8 +2,7 @@ import type { BaseClientOptions } from "../../../../BaseClient.mjs";
|
|
|
2
2
|
import { type NormalizedClientOptions } from "../../../../BaseClient.mjs";
|
|
3
3
|
import { V1Client } from "../resources/v1/client/Client.mjs";
|
|
4
4
|
export declare namespace AgentClient {
|
|
5
|
-
|
|
6
|
-
}
|
|
5
|
+
type Options = BaseClientOptions;
|
|
7
6
|
}
|
|
8
7
|
export declare class AgentClient {
|
|
9
8
|
protected readonly _options: NormalizedClientOptions<AgentClient.Options>;
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptions } from "../../../../../../BaseClient.mjs";
|
|
|
3
3
|
import { SettingsClient } from "../resources/settings/client/Client.mjs";
|
|
4
4
|
import { V1Socket } from "./Socket.mjs";
|
|
5
5
|
export declare namespace V1Client {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface ConnectArgs {
|
|
9
8
|
Authorization: string;
|
|
10
9
|
/** Arbitrary headers to send with the websocket connect request. */
|
|
@@ -33,14 +33,14 @@ export declare class V1Socket {
|
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
35
|
on<T extends keyof V1Socket.EventHandlers>(event: T, callback: V1Socket.EventHandlers[T]): void;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
36
|
+
sendSettings(message: Deepgram.agent.AgentV1Settings): void;
|
|
37
|
+
sendUpdateSpeak(message: Deepgram.agent.AgentV1UpdateSpeak): void;
|
|
38
|
+
sendInjectUserMessage(message: Deepgram.agent.AgentV1InjectUserMessage): void;
|
|
39
|
+
sendInjectAgentMessage(message: Deepgram.agent.AgentV1InjectAgentMessage): void;
|
|
40
|
+
sendFunctionCallResponse(message: Deepgram.agent.AgentV1SendFunctionCallResponse): void;
|
|
41
|
+
sendKeepAlive(message: Deepgram.agent.AgentV1KeepAlive): void;
|
|
42
|
+
sendUpdatePrompt(message: Deepgram.agent.AgentV1UpdatePrompt): void;
|
|
43
|
+
sendMedia(message: ArrayBufferLike | Blob | ArrayBufferView): void;
|
|
44
44
|
/** Connect to the websocket and register event handlers. */
|
|
45
45
|
connect(): V1Socket;
|
|
46
46
|
/** Close the websocket and unregister event handlers. */
|
|
@@ -54,37 +54,37 @@ export class V1Socket {
|
|
|
54
54
|
on(event, callback) {
|
|
55
55
|
this.eventHandlers[event] = callback;
|
|
56
56
|
}
|
|
57
|
-
|
|
57
|
+
sendSettings(message) {
|
|
58
58
|
this.assertSocketIsOpen();
|
|
59
59
|
this.sendJson(message);
|
|
60
60
|
}
|
|
61
|
-
|
|
61
|
+
sendUpdateSpeak(message) {
|
|
62
62
|
this.assertSocketIsOpen();
|
|
63
63
|
this.sendJson(message);
|
|
64
64
|
}
|
|
65
|
-
|
|
65
|
+
sendInjectUserMessage(message) {
|
|
66
66
|
this.assertSocketIsOpen();
|
|
67
67
|
this.sendJson(message);
|
|
68
68
|
}
|
|
69
|
-
|
|
69
|
+
sendInjectAgentMessage(message) {
|
|
70
70
|
this.assertSocketIsOpen();
|
|
71
71
|
this.sendJson(message);
|
|
72
72
|
}
|
|
73
|
-
|
|
73
|
+
sendFunctionCallResponse(message) {
|
|
74
74
|
this.assertSocketIsOpen();
|
|
75
75
|
this.sendJson(message);
|
|
76
76
|
}
|
|
77
|
-
|
|
77
|
+
sendKeepAlive(message) {
|
|
78
78
|
this.assertSocketIsOpen();
|
|
79
79
|
this.sendJson(message);
|
|
80
80
|
}
|
|
81
|
-
|
|
81
|
+
sendUpdatePrompt(message) {
|
|
82
82
|
this.assertSocketIsOpen();
|
|
83
83
|
this.sendJson(message);
|
|
84
84
|
}
|
|
85
|
-
|
|
85
|
+
sendMedia(message) {
|
|
86
86
|
this.assertSocketIsOpen();
|
|
87
|
-
this.
|
|
87
|
+
this.sendBinary(message);
|
|
88
88
|
}
|
|
89
89
|
/** Connect to the websocket and register event handlers. */
|
|
90
90
|
connect() {
|
|
@@ -2,8 +2,7 @@ import type { BaseClientOptions } from "../../../../../../../../BaseClient.mjs";
|
|
|
2
2
|
import { type NormalizedClientOptions } from "../../../../../../../../BaseClient.mjs";
|
|
3
3
|
import { ThinkClient } from "../resources/think/client/Client.mjs";
|
|
4
4
|
export declare namespace SettingsClient {
|
|
5
|
-
|
|
6
|
-
}
|
|
5
|
+
type Options = BaseClientOptions;
|
|
7
6
|
}
|
|
8
7
|
export declare class SettingsClient {
|
|
9
8
|
protected readonly _options: NormalizedClientOptions<SettingsClient.Options>;
|
|
@@ -2,8 +2,7 @@ import type { BaseClientOptions } from "../../../../../../../../../../BaseClient
|
|
|
2
2
|
import { type NormalizedClientOptions } from "../../../../../../../../../../BaseClient.mjs";
|
|
3
3
|
import { ModelsClient } from "../resources/models/client/Client.mjs";
|
|
4
4
|
export declare namespace ThinkClient {
|
|
5
|
-
|
|
6
|
-
}
|
|
5
|
+
type Options = BaseClientOptions;
|
|
7
6
|
}
|
|
8
7
|
export declare class ThinkClient {
|
|
9
8
|
protected readonly _options: NormalizedClientOptions<ThinkClient.Options>;
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptions } from "../../../../../../../../../../../.
|
|
|
3
3
|
import * as core from "../../../../../../../../../../../../core/index.mjs";
|
|
4
4
|
import * as Deepgram from "../../../../../../../../../../../index.mjs";
|
|
5
5
|
export declare namespace ModelsClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -73,7 +73,7 @@ export declare namespace AgentV1Settings {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
interface Agent {
|
|
76
|
-
/**
|
|
76
|
+
/** Deprecated. Use `listen.provider.language` and `speak.provider.language` fields instead. */
|
|
77
77
|
language?: string;
|
|
78
78
|
/** Conversation context including the history of messages and function calls */
|
|
79
79
|
context?: Agent.Context;
|
|
@@ -120,22 +120,10 @@ export declare namespace AgentV1Settings {
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
interface Listen {
|
|
123
|
-
provider?:
|
|
124
|
-
}
|
|
125
|
-
namespace Listen {
|
|
126
|
-
interface Provider {
|
|
127
|
-
/** Provider type for speech-to-text */
|
|
128
|
-
type: "deepgram";
|
|
129
|
-
/** Model to use for speech to text */
|
|
130
|
-
model?: string;
|
|
131
|
-
/** Prompt key-term recognition (nova-3 'en' only) */
|
|
132
|
-
keyterms?: string[];
|
|
133
|
-
/** Applies smart formatting to improve transcript readability (Deepgram providers only) */
|
|
134
|
-
smart_format?: boolean;
|
|
135
|
-
}
|
|
123
|
+
provider?: Deepgram.agent.AgentV1SettingsAgentListenProvider;
|
|
136
124
|
}
|
|
137
125
|
interface Think {
|
|
138
|
-
provider:
|
|
126
|
+
provider: Deepgram.agent.AgentV1SettingsAgentThinkProvider;
|
|
139
127
|
/** Optional for non-Deepgram LLM providers. When present, must include url field and headers object */
|
|
140
128
|
endpoint?: Think.Endpoint;
|
|
141
129
|
functions?: Think.Functions.Item[];
|
|
@@ -144,34 +132,6 @@ export declare namespace AgentV1Settings {
|
|
|
144
132
|
context_length?: Think.ContextLength;
|
|
145
133
|
}
|
|
146
134
|
namespace Think {
|
|
147
|
-
type Provider = {
|
|
148
|
-
type?: "open_ai" | undefined;
|
|
149
|
-
model?: ("gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-4o" | "gpt-4o-mini") | undefined;
|
|
150
|
-
temperature?: number | undefined;
|
|
151
|
-
} | {
|
|
152
|
-
type?: "aws_bedrock" | undefined;
|
|
153
|
-
model?: ("anthropic/claude-3-5-sonnet-20240620-v1:0" | "anthropic/claude-3-5-haiku-20240307-v1:0") | undefined;
|
|
154
|
-
temperature?: number | undefined;
|
|
155
|
-
credentials?: {
|
|
156
|
-
type?: ("sts" | "iam") | undefined;
|
|
157
|
-
region?: string | undefined;
|
|
158
|
-
access_key_id?: string | undefined;
|
|
159
|
-
secret_access_key?: string | undefined;
|
|
160
|
-
session_token?: string | undefined;
|
|
161
|
-
} | undefined;
|
|
162
|
-
} | {
|
|
163
|
-
type?: "anthropic" | undefined;
|
|
164
|
-
model?: ("claude-3-5-haiku-latest" | "claude-sonnet-4-20250514") | undefined;
|
|
165
|
-
temperature?: number | undefined;
|
|
166
|
-
} | {
|
|
167
|
-
type?: "google" | undefined;
|
|
168
|
-
model?: ("gemini-2.0-flash" | "gemini-2.0-flash-lite" | "gemini-2.5-flash") | undefined;
|
|
169
|
-
temperature?: number | undefined;
|
|
170
|
-
} | {
|
|
171
|
-
type?: "groq" | undefined;
|
|
172
|
-
model?: "openai/gpt-oss-20b" | undefined;
|
|
173
|
-
temperature?: number | undefined;
|
|
174
|
-
};
|
|
175
135
|
/**
|
|
176
136
|
* Optional for non-Deepgram LLM providers. When present, must include url field and headers object
|
|
177
137
|
*/
|
package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentListenProvider.d.mts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type * as Deepgram from "../../../../../index.mjs";
|
|
2
|
+
export type AgentV1SettingsAgentListenProvider = Deepgram.agent.AgentV1SettingsAgentListenProvider.V1 | Deepgram.agent.AgentV1SettingsAgentListenProvider.V2;
|
|
3
|
+
export declare namespace AgentV1SettingsAgentListenProvider {
|
|
4
|
+
interface V1 {
|
|
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;
|
|
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;
|
|
12
|
+
/** Prompt keyterm recognition to improve Keyword Recall Rate */
|
|
13
|
+
keyterms?: string[];
|
|
14
|
+
/** Applies smart formatting to improve transcript readability */
|
|
15
|
+
smart_format?: boolean;
|
|
16
|
+
}
|
|
17
|
+
interface V2 {
|
|
18
|
+
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) */
|
|
22
|
+
model: string;
|
|
23
|
+
/** Prompt keyterm recognition to improve Keyword Recall Rate */
|
|
24
|
+
keyterms?: string[];
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -3,10 +3,12 @@ export type AgentV1SettingsAgentSpeakEndpointProvider = Deepgram.agent.AgentV1Se
|
|
|
3
3
|
export declare namespace AgentV1SettingsAgentSpeakEndpointProvider {
|
|
4
4
|
interface Deepgram {
|
|
5
5
|
type: "deepgram";
|
|
6
|
+
/** The REST API version for the Deepgram text-to-speech API */
|
|
7
|
+
version?: "v1";
|
|
6
8
|
/** Deepgram TTS model */
|
|
7
|
-
model:
|
|
9
|
+
model: Deepgram.Model;
|
|
8
10
|
}
|
|
9
|
-
namespace
|
|
11
|
+
namespace Deepgram {
|
|
10
12
|
/** Deepgram TTS model */
|
|
11
13
|
const Model: {
|
|
12
14
|
readonly AuraAsteriaEn: "aura-asteria-en";
|
|
@@ -77,12 +79,16 @@ export declare namespace AgentV1SettingsAgentSpeakEndpointProvider {
|
|
|
77
79
|
}
|
|
78
80
|
interface ElevenLabs {
|
|
79
81
|
type: "eleven_labs";
|
|
82
|
+
/** The REST API version for the Deepgram text-to-speech API */
|
|
83
|
+
version?: "v1";
|
|
80
84
|
/** Eleven Labs model ID */
|
|
81
|
-
model_id:
|
|
82
|
-
/**
|
|
85
|
+
model_id: ElevenLabs.ModelId;
|
|
86
|
+
/** Optional language to use, e.g. 'en-US'. Corresponds to the `language_code` parameter in the ElevenLabs API */
|
|
87
|
+
language?: string;
|
|
88
|
+
/** Use the `language` field instead. */
|
|
83
89
|
language_code?: string;
|
|
84
90
|
}
|
|
85
|
-
namespace
|
|
91
|
+
namespace ElevenLabs {
|
|
86
92
|
/** Eleven Labs model ID */
|
|
87
93
|
const ModelId: {
|
|
88
94
|
readonly ElevenTurboV25: "eleven_turbo_v2_5";
|
|
@@ -93,13 +99,18 @@ export declare namespace AgentV1SettingsAgentSpeakEndpointProvider {
|
|
|
93
99
|
}
|
|
94
100
|
interface Cartesia {
|
|
95
101
|
type: "cartesia";
|
|
102
|
+
/** The API version header for the Cartesia text-to-speech API */
|
|
103
|
+
version?: Cartesia.Version;
|
|
96
104
|
/** Cartesia model ID */
|
|
97
|
-
model_id:
|
|
98
|
-
voice:
|
|
105
|
+
model_id: Cartesia.ModelId;
|
|
106
|
+
voice: Cartesia.Voice;
|
|
99
107
|
/** Cartesia language code */
|
|
100
108
|
language?: string;
|
|
101
109
|
}
|
|
102
|
-
namespace
|
|
110
|
+
namespace Cartesia {
|
|
111
|
+
/** The API version header for the Cartesia text-to-speech API */
|
|
112
|
+
const Version: {};
|
|
113
|
+
type Version = (typeof Version)[keyof typeof Version];
|
|
103
114
|
/** Cartesia model ID */
|
|
104
115
|
const ModelId: {
|
|
105
116
|
readonly Sonic2: "sonic-2";
|
|
@@ -115,12 +126,14 @@ export declare namespace AgentV1SettingsAgentSpeakEndpointProvider {
|
|
|
115
126
|
}
|
|
116
127
|
interface OpenAi {
|
|
117
128
|
type: "open_ai";
|
|
129
|
+
/** The REST API version for the OpenAI text-to-speech API */
|
|
130
|
+
version?: "v1";
|
|
118
131
|
/** OpenAI TTS model */
|
|
119
|
-
model:
|
|
132
|
+
model: OpenAi.Model;
|
|
120
133
|
/** OpenAI voice */
|
|
121
|
-
voice:
|
|
134
|
+
voice: OpenAi.Voice;
|
|
122
135
|
}
|
|
123
|
-
namespace
|
|
136
|
+
namespace OpenAi {
|
|
124
137
|
/** OpenAI TTS model */
|
|
125
138
|
const Model: {
|
|
126
139
|
readonly Tts1: "tts-1";
|
|
@@ -142,8 +155,10 @@ export declare namespace AgentV1SettingsAgentSpeakEndpointProvider {
|
|
|
142
155
|
type: "aws_polly";
|
|
143
156
|
/** AWS Polly voice name */
|
|
144
157
|
voice: AgentV1SettingsAgentSpeakEndpointProviderAwsPolly.Voice;
|
|
145
|
-
/** Language
|
|
146
|
-
|
|
158
|
+
/** Language to use, e.g. 'en-US'. Corresponds to the `language_code` parameter in the AWS Polly API */
|
|
159
|
+
language: string;
|
|
160
|
+
/** Use the `language` field instead. */
|
|
161
|
+
language_code?: string;
|
|
147
162
|
engine: AgentV1SettingsAgentSpeakEndpointProviderAwsPolly.Engine;
|
|
148
163
|
credentials: AgentV1SettingsAgentSpeakEndpointProviderAwsPolly.Credentials;
|
|
149
164
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
export var AgentV1SettingsAgentSpeakEndpointProvider;
|
|
3
3
|
(function (AgentV1SettingsAgentSpeakEndpointProvider) {
|
|
4
|
-
let
|
|
5
|
-
(function (
|
|
4
|
+
let Deepgram;
|
|
5
|
+
(function (Deepgram) {
|
|
6
6
|
/** Deepgram TTS model */
|
|
7
|
-
|
|
7
|
+
Deepgram.Model = {
|
|
8
8
|
AuraAsteriaEn: "aura-asteria-en",
|
|
9
9
|
AuraLunaEn: "aura-luna-en",
|
|
10
10
|
AuraStellaEn: "aura-stella-en",
|
|
@@ -69,33 +69,35 @@ export var AgentV1SettingsAgentSpeakEndpointProvider;
|
|
|
69
69
|
Aura2EstrellaEs: "aura-2-estrella-es",
|
|
70
70
|
Aura2JavierEs: "aura-2-javier-es",
|
|
71
71
|
};
|
|
72
|
-
})(
|
|
73
|
-
let
|
|
74
|
-
(function (
|
|
72
|
+
})(Deepgram = AgentV1SettingsAgentSpeakEndpointProvider.Deepgram || (AgentV1SettingsAgentSpeakEndpointProvider.Deepgram = {}));
|
|
73
|
+
let ElevenLabs;
|
|
74
|
+
(function (ElevenLabs) {
|
|
75
75
|
/** Eleven Labs model ID */
|
|
76
|
-
|
|
76
|
+
ElevenLabs.ModelId = {
|
|
77
77
|
ElevenTurboV25: "eleven_turbo_v2_5",
|
|
78
78
|
ElevenMonolingualV1: "eleven_monolingual_v1",
|
|
79
79
|
ElevenMultilingualV2: "eleven_multilingual_v2",
|
|
80
80
|
};
|
|
81
|
-
})(
|
|
82
|
-
let
|
|
83
|
-
(function (
|
|
81
|
+
})(ElevenLabs = AgentV1SettingsAgentSpeakEndpointProvider.ElevenLabs || (AgentV1SettingsAgentSpeakEndpointProvider.ElevenLabs = {}));
|
|
82
|
+
let Cartesia;
|
|
83
|
+
(function (Cartesia) {
|
|
84
|
+
/** The API version header for the Cartesia text-to-speech API */
|
|
85
|
+
Cartesia.Version = {};
|
|
84
86
|
/** Cartesia model ID */
|
|
85
|
-
|
|
87
|
+
Cartesia.ModelId = {
|
|
86
88
|
Sonic2: "sonic-2",
|
|
87
89
|
SonicMultilingual: "sonic-multilingual",
|
|
88
90
|
};
|
|
89
|
-
})(
|
|
90
|
-
let
|
|
91
|
-
(function (
|
|
91
|
+
})(Cartesia = AgentV1SettingsAgentSpeakEndpointProvider.Cartesia || (AgentV1SettingsAgentSpeakEndpointProvider.Cartesia = {}));
|
|
92
|
+
let OpenAi;
|
|
93
|
+
(function (OpenAi) {
|
|
92
94
|
/** OpenAI TTS model */
|
|
93
|
-
|
|
95
|
+
OpenAi.Model = {
|
|
94
96
|
Tts1: "tts-1",
|
|
95
97
|
Tts1Hd: "tts-1-hd",
|
|
96
98
|
};
|
|
97
99
|
/** OpenAI voice */
|
|
98
|
-
|
|
100
|
+
OpenAi.Voice = {
|
|
99
101
|
Alloy: "alloy",
|
|
100
102
|
Echo: "echo",
|
|
101
103
|
Fable: "fable",
|
|
@@ -103,7 +105,7 @@ export var AgentV1SettingsAgentSpeakEndpointProvider;
|
|
|
103
105
|
Nova: "nova",
|
|
104
106
|
Shimmer: "shimmer",
|
|
105
107
|
};
|
|
106
|
-
})(
|
|
108
|
+
})(OpenAi = AgentV1SettingsAgentSpeakEndpointProvider.OpenAi || (AgentV1SettingsAgentSpeakEndpointProvider.OpenAi = {}));
|
|
107
109
|
let AgentV1SettingsAgentSpeakEndpointProviderAwsPolly;
|
|
108
110
|
(function (AgentV1SettingsAgentSpeakEndpointProviderAwsPolly) {
|
|
109
111
|
/** AWS Polly voice name */
|
|
@@ -3,10 +3,12 @@ export type AgentV1SettingsAgentSpeakOneItemProvider = Deepgram.agent.AgentV1Set
|
|
|
3
3
|
export declare namespace AgentV1SettingsAgentSpeakOneItemProvider {
|
|
4
4
|
interface Deepgram {
|
|
5
5
|
type: "deepgram";
|
|
6
|
+
/** The REST API version for the Deepgram text-to-speech API */
|
|
7
|
+
version?: "v1";
|
|
6
8
|
/** Deepgram TTS model */
|
|
7
|
-
model:
|
|
9
|
+
model: Deepgram.Model;
|
|
8
10
|
}
|
|
9
|
-
namespace
|
|
11
|
+
namespace Deepgram {
|
|
10
12
|
/** Deepgram TTS model */
|
|
11
13
|
const Model: {
|
|
12
14
|
readonly AuraAsteriaEn: "aura-asteria-en";
|
|
@@ -77,12 +79,16 @@ export declare namespace AgentV1SettingsAgentSpeakOneItemProvider {
|
|
|
77
79
|
}
|
|
78
80
|
interface ElevenLabs {
|
|
79
81
|
type: "eleven_labs";
|
|
82
|
+
/** The REST API version for the Deepgram text-to-speech API */
|
|
83
|
+
version?: "v1";
|
|
80
84
|
/** Eleven Labs model ID */
|
|
81
|
-
model_id:
|
|
82
|
-
/**
|
|
85
|
+
model_id: ElevenLabs.ModelId;
|
|
86
|
+
/** Optional language to use, e.g. 'en-US'. Corresponds to the `language_code` parameter in the ElevenLabs API */
|
|
87
|
+
language?: string;
|
|
88
|
+
/** Use the `language` field instead. */
|
|
83
89
|
language_code?: string;
|
|
84
90
|
}
|
|
85
|
-
namespace
|
|
91
|
+
namespace ElevenLabs {
|
|
86
92
|
/** Eleven Labs model ID */
|
|
87
93
|
const ModelId: {
|
|
88
94
|
readonly ElevenTurboV25: "eleven_turbo_v2_5";
|
|
@@ -93,13 +99,18 @@ export declare namespace AgentV1SettingsAgentSpeakOneItemProvider {
|
|
|
93
99
|
}
|
|
94
100
|
interface Cartesia {
|
|
95
101
|
type: "cartesia";
|
|
102
|
+
/** The API version header for the Cartesia text-to-speech API */
|
|
103
|
+
version?: Cartesia.Version;
|
|
96
104
|
/** Cartesia model ID */
|
|
97
|
-
model_id:
|
|
98
|
-
voice:
|
|
105
|
+
model_id: Cartesia.ModelId;
|
|
106
|
+
voice: Cartesia.Voice;
|
|
99
107
|
/** Cartesia language code */
|
|
100
108
|
language?: string;
|
|
101
109
|
}
|
|
102
|
-
namespace
|
|
110
|
+
namespace Cartesia {
|
|
111
|
+
/** The API version header for the Cartesia text-to-speech API */
|
|
112
|
+
const Version: {};
|
|
113
|
+
type Version = (typeof Version)[keyof typeof Version];
|
|
103
114
|
/** Cartesia model ID */
|
|
104
115
|
const ModelId: {
|
|
105
116
|
readonly Sonic2: "sonic-2";
|
|
@@ -115,12 +126,14 @@ export declare namespace AgentV1SettingsAgentSpeakOneItemProvider {
|
|
|
115
126
|
}
|
|
116
127
|
interface OpenAi {
|
|
117
128
|
type: "open_ai";
|
|
129
|
+
/** The REST API version for the OpenAI text-to-speech API */
|
|
130
|
+
version?: "v1";
|
|
118
131
|
/** OpenAI TTS model */
|
|
119
|
-
model:
|
|
132
|
+
model: OpenAi.Model;
|
|
120
133
|
/** OpenAI voice */
|
|
121
|
-
voice:
|
|
134
|
+
voice: OpenAi.Voice;
|
|
122
135
|
}
|
|
123
|
-
namespace
|
|
136
|
+
namespace OpenAi {
|
|
124
137
|
/** OpenAI TTS model */
|
|
125
138
|
const Model: {
|
|
126
139
|
readonly Tts1: "tts-1";
|
|
@@ -142,8 +155,10 @@ export declare namespace AgentV1SettingsAgentSpeakOneItemProvider {
|
|
|
142
155
|
type: "aws_polly";
|
|
143
156
|
/** AWS Polly voice name */
|
|
144
157
|
voice: AgentV1SettingsAgentSpeakOneItemProviderAwsPolly.Voice;
|
|
145
|
-
/** Language code
|
|
146
|
-
|
|
158
|
+
/** Language code to use, e.g. 'en-US'. Corresponds to the `language_code` parameter in the AWS Polly API */
|
|
159
|
+
language: string;
|
|
160
|
+
/** Use the `language` field instead. */
|
|
161
|
+
language_code?: string;
|
|
147
162
|
engine: AgentV1SettingsAgentSpeakOneItemProviderAwsPolly.Engine;
|
|
148
163
|
credentials: AgentV1SettingsAgentSpeakOneItemProviderAwsPolly.Credentials;
|
|
149
164
|
}
|
package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentSpeakOneItemProvider.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
export var AgentV1SettingsAgentSpeakOneItemProvider;
|
|
3
3
|
(function (AgentV1SettingsAgentSpeakOneItemProvider) {
|
|
4
|
-
let
|
|
5
|
-
(function (
|
|
4
|
+
let Deepgram;
|
|
5
|
+
(function (Deepgram) {
|
|
6
6
|
/** Deepgram TTS model */
|
|
7
|
-
|
|
7
|
+
Deepgram.Model = {
|
|
8
8
|
AuraAsteriaEn: "aura-asteria-en",
|
|
9
9
|
AuraLunaEn: "aura-luna-en",
|
|
10
10
|
AuraStellaEn: "aura-stella-en",
|
|
@@ -69,33 +69,35 @@ export var AgentV1SettingsAgentSpeakOneItemProvider;
|
|
|
69
69
|
Aura2EstrellaEs: "aura-2-estrella-es",
|
|
70
70
|
Aura2JavierEs: "aura-2-javier-es",
|
|
71
71
|
};
|
|
72
|
-
})(
|
|
73
|
-
let
|
|
74
|
-
(function (
|
|
72
|
+
})(Deepgram = AgentV1SettingsAgentSpeakOneItemProvider.Deepgram || (AgentV1SettingsAgentSpeakOneItemProvider.Deepgram = {}));
|
|
73
|
+
let ElevenLabs;
|
|
74
|
+
(function (ElevenLabs) {
|
|
75
75
|
/** Eleven Labs model ID */
|
|
76
|
-
|
|
76
|
+
ElevenLabs.ModelId = {
|
|
77
77
|
ElevenTurboV25: "eleven_turbo_v2_5",
|
|
78
78
|
ElevenMonolingualV1: "eleven_monolingual_v1",
|
|
79
79
|
ElevenMultilingualV2: "eleven_multilingual_v2",
|
|
80
80
|
};
|
|
81
|
-
})(
|
|
82
|
-
let
|
|
83
|
-
(function (
|
|
81
|
+
})(ElevenLabs = AgentV1SettingsAgentSpeakOneItemProvider.ElevenLabs || (AgentV1SettingsAgentSpeakOneItemProvider.ElevenLabs = {}));
|
|
82
|
+
let Cartesia;
|
|
83
|
+
(function (Cartesia) {
|
|
84
|
+
/** The API version header for the Cartesia text-to-speech API */
|
|
85
|
+
Cartesia.Version = {};
|
|
84
86
|
/** Cartesia model ID */
|
|
85
|
-
|
|
87
|
+
Cartesia.ModelId = {
|
|
86
88
|
Sonic2: "sonic-2",
|
|
87
89
|
SonicMultilingual: "sonic-multilingual",
|
|
88
90
|
};
|
|
89
|
-
})(
|
|
90
|
-
let
|
|
91
|
-
(function (
|
|
91
|
+
})(Cartesia = AgentV1SettingsAgentSpeakOneItemProvider.Cartesia || (AgentV1SettingsAgentSpeakOneItemProvider.Cartesia = {}));
|
|
92
|
+
let OpenAi;
|
|
93
|
+
(function (OpenAi) {
|
|
92
94
|
/** OpenAI TTS model */
|
|
93
|
-
|
|
95
|
+
OpenAi.Model = {
|
|
94
96
|
Tts1: "tts-1",
|
|
95
97
|
Tts1Hd: "tts-1-hd",
|
|
96
98
|
};
|
|
97
99
|
/** OpenAI voice */
|
|
98
|
-
|
|
100
|
+
OpenAi.Voice = {
|
|
99
101
|
Alloy: "alloy",
|
|
100
102
|
Echo: "echo",
|
|
101
103
|
Fable: "fable",
|
|
@@ -103,7 +105,7 @@ export var AgentV1SettingsAgentSpeakOneItemProvider;
|
|
|
103
105
|
Nova: "nova",
|
|
104
106
|
Shimmer: "shimmer",
|
|
105
107
|
};
|
|
106
|
-
})(
|
|
108
|
+
})(OpenAi = AgentV1SettingsAgentSpeakOneItemProvider.OpenAi || (AgentV1SettingsAgentSpeakOneItemProvider.OpenAi = {}));
|
|
107
109
|
let AgentV1SettingsAgentSpeakOneItemProviderAwsPolly;
|
|
108
110
|
(function (AgentV1SettingsAgentSpeakOneItemProviderAwsPolly) {
|
|
109
111
|
/** AWS Polly voice name */
|