agora-agents 2.0.0 → 2.1.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/README.md +38 -9
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/agentkit/Agent.d.ts +49 -9
- package/dist/cjs/agentkit/Agent.js +92 -7
- package/dist/cjs/agentkit/AgentSession.d.ts +3 -3
- package/dist/cjs/agentkit/AgentSession.js +8 -7
- package/dist/cjs/agentkit/__tests__/type-safety.test.js +23 -3
- package/dist/cjs/agentkit/constants.d.ts +5 -4
- package/dist/cjs/agentkit/constants.js +5 -4
- package/dist/cjs/agentkit/index.d.ts +1 -1
- package/dist/cjs/agentkit/types.d.ts +50 -35
- package/dist/cjs/agentkit/vendors/avatar.d.ts +3 -1
- package/dist/cjs/agentkit/vendors/avatar.js +3 -1
- package/dist/cjs/agentkit/vendors/llm.d.ts +18 -8
- package/dist/cjs/agentkit/vendors/llm.js +83 -15
- package/dist/cjs/agentkit/vendors/mllm.d.ts +16 -0
- package/dist/cjs/agentkit/vendors/mllm.js +11 -7
- package/dist/cjs/agentkit/vendors/stt.d.ts +29 -11
- package/dist/cjs/agentkit/vendors/stt.js +74 -53
- package/dist/cjs/agentkit/vendors/tts.d.ts +70 -22
- package/dist/cjs/agentkit/vendors/tts.js +67 -34
- package/dist/cjs/api/resources/agents/client/Client.d.ts +3 -2
- package/dist/cjs/api/resources/agents/client/Client.js +3 -2
- package/dist/cjs/api/resources/agents/client/requests/StartAgentsRequest.d.ts +8 -331
- package/dist/cjs/api/resources/agents/client/requests/StartAgentsRequest.js +0 -107
- package/dist/cjs/api/types/AmazonAsr.d.ts +10 -0
- package/dist/cjs/api/types/AmazonAsr.js +3 -0
- package/dist/cjs/api/types/AmazonAsrParams.d.ts +19 -0
- package/dist/cjs/api/types/AmazonAsrParams.js +3 -0
- package/dist/cjs/api/types/AmazonTtsParams.d.ts +19 -5
- package/dist/cjs/api/types/AmazonTtsParams.js +11 -0
- package/dist/cjs/api/types/AresAsr.d.ts +10 -0
- package/dist/cjs/api/types/AresAsr.js +3 -0
- package/dist/cjs/api/types/AresAsrParams.d.ts +4 -0
- package/dist/cjs/api/types/AresAsrParams.js +3 -0
- package/dist/cjs/api/types/Asr.d.ts +31 -0
- package/dist/cjs/api/types/Asr.js +3 -0
- package/dist/cjs/api/types/AsrLanguage.d.ts +36 -0
- package/dist/cjs/api/types/AsrLanguage.js +39 -0
- package/dist/cjs/api/types/AssemblyAiAsr.d.ts +10 -0
- package/dist/cjs/api/types/AssemblyAiAsr.js +3 -0
- package/dist/cjs/api/types/AssemblyAiAsrParams.d.ts +13 -0
- package/dist/cjs/api/types/AssemblyAiAsrParams.js +3 -0
- package/dist/cjs/api/types/CartesiaTtsOutputFormat.d.ts +11 -0
- package/dist/cjs/api/types/CartesiaTtsOutputFormat.js +3 -0
- package/dist/cjs/api/types/CartesiaTtsParams.d.ts +9 -4
- package/dist/cjs/api/types/CartesiaTtsVoice.d.ts +2 -0
- package/dist/cjs/api/types/DeepgramAsr.d.ts +12 -0
- package/dist/cjs/api/types/DeepgramAsr.js +3 -0
- package/dist/cjs/api/types/DeepgramAsrParams.d.ts +17 -0
- package/dist/cjs/api/types/DeepgramAsrParams.js +3 -0
- package/dist/cjs/api/types/DeepgramTtsParams.d.ts +2 -2
- package/dist/cjs/api/types/ElevenLabsTtsParams.d.ts +13 -1
- package/dist/cjs/api/types/FishAudioTtsParams.d.ts +5 -1
- package/dist/cjs/api/types/GoogleAsr.d.ts +10 -0
- package/dist/cjs/api/types/GoogleAsr.js +3 -0
- package/dist/cjs/api/types/GoogleAsrParams.d.ts +17 -0
- package/dist/cjs/api/types/GoogleAsrParams.js +3 -0
- package/dist/cjs/api/types/GoogleTtsAudioConfig.d.ts +11 -0
- package/dist/cjs/api/types/GoogleTtsAudioConfig.js +3 -0
- package/dist/cjs/api/types/GoogleTtsParams.d.ts +7 -8
- package/dist/cjs/api/types/GoogleTtsVoiceSelectionParams.d.ts +9 -0
- package/dist/cjs/api/types/GoogleTtsVoiceSelectionParams.js +3 -0
- package/dist/cjs/api/types/HumeAiTtsParams.d.ts +21 -1
- package/dist/cjs/api/types/HumeAiTtsParams.js +9 -0
- package/dist/cjs/api/types/Llm.d.ts +58 -0
- package/dist/cjs/api/types/Llm.js +15 -0
- package/dist/cjs/api/types/LlmParams.d.ts +11 -0
- package/dist/cjs/api/types/LlmParams.js +3 -0
- package/dist/cjs/api/types/MicrosoftAsr.d.ts +10 -0
- package/dist/cjs/api/types/MicrosoftAsr.js +3 -0
- package/dist/cjs/api/types/MicrosoftAsrParams.d.ts +15 -0
- package/dist/cjs/api/types/MicrosoftAsrParams.js +3 -0
- package/dist/cjs/api/types/MicrosoftTtsParams.d.ts +6 -0
- package/dist/cjs/api/types/MinimaxTtsParams.d.ts +4 -0
- package/dist/cjs/api/types/Mllm.d.ts +44 -0
- package/dist/cjs/api/types/Mllm.js +14 -0
- package/dist/cjs/api/types/MllmHttpOptions.d.ts +9 -0
- package/dist/cjs/api/types/MllmHttpOptions.js +3 -0
- package/dist/cjs/api/types/MllmInputAudioTranscription.d.ts +13 -0
- package/dist/cjs/api/types/MllmInputAudioTranscription.js +3 -0
- package/dist/cjs/api/types/MllmParams.d.ts +28 -0
- package/dist/cjs/api/types/MllmParams.js +3 -0
- package/dist/cjs/api/types/MllmTurnDetection.d.ts +65 -0
- package/dist/cjs/api/types/MllmTurnDetection.js +33 -0
- package/dist/cjs/api/types/MurfTtsParams.d.ts +17 -5
- package/dist/cjs/api/types/OpenAiAsr.d.ts +10 -0
- package/dist/cjs/api/types/OpenAiAsr.js +3 -0
- package/dist/cjs/api/types/OpenAiAsrParams.d.ts +11 -0
- package/dist/cjs/api/types/OpenAiAsrParams.js +3 -0
- package/dist/cjs/api/types/OpenAiInputAudioTranscription.d.ts +13 -0
- package/dist/cjs/api/types/OpenAiInputAudioTranscription.js +3 -0
- package/dist/cjs/api/types/OpenAiTtsParams.d.ts +9 -1
- package/dist/cjs/api/types/RimeTtsParams.d.ts +7 -3
- package/dist/cjs/api/types/SarvamAsr.d.ts +10 -0
- package/dist/cjs/api/types/SarvamAsr.js +3 -0
- package/dist/cjs/api/types/SarvamAsrParams.d.ts +11 -0
- package/dist/cjs/api/types/SarvamAsrParams.js +3 -0
- package/dist/cjs/api/types/SarvamTtsParams.d.ts +29 -2
- package/dist/cjs/api/types/SarvamTtsParams.js +18 -0
- package/dist/cjs/api/types/SpeechmaticsAsr.d.ts +10 -0
- package/dist/cjs/api/types/SpeechmaticsAsr.js +3 -0
- package/dist/cjs/api/types/SpeechmaticsAsrParams.d.ts +13 -0
- package/dist/cjs/api/types/SpeechmaticsAsrParams.js +3 -0
- package/dist/cjs/api/types/index.d.ts +31 -0
- package/dist/cjs/api/types/index.js +31 -0
- package/dist/cjs/index.d.ts +1 -1
- 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/agentkit/Agent.d.mts +49 -9
- package/dist/esm/agentkit/Agent.mjs +92 -7
- package/dist/esm/agentkit/AgentSession.d.mts +3 -3
- package/dist/esm/agentkit/AgentSession.mjs +8 -7
- package/dist/esm/agentkit/__tests__/type-safety.test.mjs +23 -3
- package/dist/esm/agentkit/constants.d.mts +5 -4
- package/dist/esm/agentkit/constants.mjs +5 -4
- package/dist/esm/agentkit/index.d.mts +1 -1
- package/dist/esm/agentkit/types.d.mts +50 -35
- package/dist/esm/agentkit/vendors/avatar.d.mts +3 -1
- package/dist/esm/agentkit/vendors/avatar.mjs +3 -1
- package/dist/esm/agentkit/vendors/llm.d.mts +18 -8
- package/dist/esm/agentkit/vendors/llm.mjs +83 -15
- package/dist/esm/agentkit/vendors/mllm.d.mts +16 -0
- package/dist/esm/agentkit/vendors/mllm.mjs +11 -7
- package/dist/esm/agentkit/vendors/stt.d.mts +29 -11
- package/dist/esm/agentkit/vendors/stt.mjs +74 -53
- package/dist/esm/agentkit/vendors/tts.d.mts +70 -22
- package/dist/esm/agentkit/vendors/tts.mjs +67 -34
- package/dist/esm/api/resources/agents/client/Client.d.mts +3 -2
- package/dist/esm/api/resources/agents/client/Client.mjs +3 -2
- package/dist/esm/api/resources/agents/client/requests/StartAgentsRequest.d.mts +8 -331
- package/dist/esm/api/resources/agents/client/requests/StartAgentsRequest.mjs +0 -107
- package/dist/esm/api/types/AmazonAsr.d.mts +10 -0
- package/dist/esm/api/types/AmazonAsr.mjs +2 -0
- package/dist/esm/api/types/AmazonAsrParams.d.mts +19 -0
- package/dist/esm/api/types/AmazonAsrParams.mjs +2 -0
- package/dist/esm/api/types/AmazonTtsParams.d.mts +19 -5
- package/dist/esm/api/types/AmazonTtsParams.mjs +10 -1
- package/dist/esm/api/types/AresAsr.d.mts +10 -0
- package/dist/esm/api/types/AresAsr.mjs +2 -0
- package/dist/esm/api/types/AresAsrParams.d.mts +4 -0
- package/dist/esm/api/types/AresAsrParams.mjs +2 -0
- package/dist/esm/api/types/Asr.d.mts +31 -0
- package/dist/esm/api/types/Asr.mjs +2 -0
- package/dist/esm/api/types/AsrLanguage.d.mts +36 -0
- package/dist/esm/api/types/AsrLanguage.mjs +36 -0
- package/dist/esm/api/types/AssemblyAiAsr.d.mts +10 -0
- package/dist/esm/api/types/AssemblyAiAsr.mjs +2 -0
- package/dist/esm/api/types/AssemblyAiAsrParams.d.mts +13 -0
- package/dist/esm/api/types/AssemblyAiAsrParams.mjs +2 -0
- package/dist/esm/api/types/CartesiaTtsOutputFormat.d.mts +11 -0
- package/dist/esm/api/types/CartesiaTtsOutputFormat.mjs +2 -0
- package/dist/esm/api/types/CartesiaTtsParams.d.mts +9 -4
- package/dist/esm/api/types/CartesiaTtsVoice.d.mts +2 -0
- package/dist/esm/api/types/DeepgramAsr.d.mts +12 -0
- package/dist/esm/api/types/DeepgramAsr.mjs +2 -0
- package/dist/esm/api/types/DeepgramAsrParams.d.mts +17 -0
- package/dist/esm/api/types/DeepgramAsrParams.mjs +2 -0
- package/dist/esm/api/types/DeepgramTtsParams.d.mts +2 -2
- package/dist/esm/api/types/ElevenLabsTtsParams.d.mts +13 -1
- package/dist/esm/api/types/FishAudioTtsParams.d.mts +5 -1
- package/dist/esm/api/types/GoogleAsr.d.mts +10 -0
- package/dist/esm/api/types/GoogleAsr.mjs +2 -0
- package/dist/esm/api/types/GoogleAsrParams.d.mts +17 -0
- package/dist/esm/api/types/GoogleAsrParams.mjs +2 -0
- package/dist/esm/api/types/GoogleTtsAudioConfig.d.mts +11 -0
- package/dist/esm/api/types/GoogleTtsAudioConfig.mjs +2 -0
- package/dist/esm/api/types/GoogleTtsParams.d.mts +7 -8
- package/dist/esm/api/types/GoogleTtsVoiceSelectionParams.d.mts +9 -0
- package/dist/esm/api/types/GoogleTtsVoiceSelectionParams.mjs +2 -0
- package/dist/esm/api/types/HumeAiTtsParams.d.mts +21 -1
- package/dist/esm/api/types/HumeAiTtsParams.mjs +8 -1
- package/dist/esm/api/types/Llm.d.mts +58 -0
- package/dist/esm/api/types/Llm.mjs +12 -0
- package/dist/esm/api/types/LlmParams.d.mts +11 -0
- package/dist/esm/api/types/LlmParams.mjs +2 -0
- package/dist/esm/api/types/MicrosoftAsr.d.mts +10 -0
- package/dist/esm/api/types/MicrosoftAsr.mjs +2 -0
- package/dist/esm/api/types/MicrosoftAsrParams.d.mts +15 -0
- package/dist/esm/api/types/MicrosoftAsrParams.mjs +2 -0
- package/dist/esm/api/types/MicrosoftTtsParams.d.mts +6 -0
- package/dist/esm/api/types/MinimaxTtsParams.d.mts +4 -0
- package/dist/esm/api/types/Mllm.d.mts +44 -0
- package/dist/esm/api/types/Mllm.mjs +11 -0
- package/dist/esm/api/types/MllmHttpOptions.d.mts +9 -0
- package/dist/esm/api/types/MllmHttpOptions.mjs +2 -0
- package/dist/esm/api/types/MllmInputAudioTranscription.d.mts +13 -0
- package/dist/esm/api/types/MllmInputAudioTranscription.mjs +2 -0
- package/dist/esm/api/types/MllmParams.d.mts +28 -0
- package/dist/esm/api/types/MllmParams.mjs +2 -0
- package/dist/esm/api/types/MllmTurnDetection.d.mts +65 -0
- package/dist/esm/api/types/MllmTurnDetection.mjs +30 -0
- package/dist/esm/api/types/MurfTtsParams.d.mts +17 -5
- package/dist/esm/api/types/OpenAiAsr.d.mts +10 -0
- package/dist/esm/api/types/OpenAiAsr.mjs +2 -0
- package/dist/esm/api/types/OpenAiAsrParams.d.mts +11 -0
- package/dist/esm/api/types/OpenAiAsrParams.mjs +2 -0
- package/dist/esm/api/types/OpenAiInputAudioTranscription.d.mts +13 -0
- package/dist/esm/api/types/OpenAiInputAudioTranscription.mjs +2 -0
- package/dist/esm/api/types/OpenAiTtsParams.d.mts +9 -1
- package/dist/esm/api/types/RimeTtsParams.d.mts +7 -3
- package/dist/esm/api/types/SarvamAsr.d.mts +10 -0
- package/dist/esm/api/types/SarvamAsr.mjs +2 -0
- package/dist/esm/api/types/SarvamAsrParams.d.mts +11 -0
- package/dist/esm/api/types/SarvamAsrParams.mjs +2 -0
- package/dist/esm/api/types/SarvamTtsParams.d.mts +29 -2
- package/dist/esm/api/types/SarvamTtsParams.mjs +17 -1
- package/dist/esm/api/types/SpeechmaticsAsr.d.mts +10 -0
- package/dist/esm/api/types/SpeechmaticsAsr.mjs +2 -0
- package/dist/esm/api/types/SpeechmaticsAsrParams.d.mts +13 -0
- package/dist/esm/api/types/SpeechmaticsAsrParams.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +31 -0
- package/dist/esm/api/types/index.mjs +31 -0
- package/dist/esm/index.d.mts +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/** The BCP-47 language tag identifying the primary language used for agent interaction. */
|
|
2
|
+
export declare const AsrLanguage: {
|
|
3
|
+
readonly ArEg: "ar-EG";
|
|
4
|
+
readonly ArJo: "ar-JO";
|
|
5
|
+
readonly ArSa: "ar-SA";
|
|
6
|
+
readonly ArAe: "ar-AE";
|
|
7
|
+
readonly BnIn: "bn-IN";
|
|
8
|
+
readonly ZhCn: "zh-CN";
|
|
9
|
+
readonly ZhHk: "zh-HK";
|
|
10
|
+
readonly ZhTw: "zh-TW";
|
|
11
|
+
readonly NlNl: "nl-NL";
|
|
12
|
+
readonly EnIn: "en-IN";
|
|
13
|
+
readonly EnUs: "en-US";
|
|
14
|
+
readonly FilPh: "fil-PH";
|
|
15
|
+
readonly FrFr: "fr-FR";
|
|
16
|
+
readonly DeDe: "de-DE";
|
|
17
|
+
readonly GuIn: "gu-IN";
|
|
18
|
+
readonly HeIl: "he-IL";
|
|
19
|
+
readonly HiIn: "hi-IN";
|
|
20
|
+
readonly IdId: "id-ID";
|
|
21
|
+
readonly ItIt: "it-IT";
|
|
22
|
+
readonly JaJp: "ja-JP";
|
|
23
|
+
readonly KnIn: "kn-IN";
|
|
24
|
+
readonly KoKr: "ko-KR";
|
|
25
|
+
readonly MsMy: "ms-MY";
|
|
26
|
+
readonly FaIr: "fa-IR";
|
|
27
|
+
readonly PtPt: "pt-PT";
|
|
28
|
+
readonly RuRu: "ru-RU";
|
|
29
|
+
readonly EsEs: "es-ES";
|
|
30
|
+
readonly TaIn: "ta-IN";
|
|
31
|
+
readonly TeIn: "te-IN";
|
|
32
|
+
readonly ThTh: "th-TH";
|
|
33
|
+
readonly TrTr: "tr-TR";
|
|
34
|
+
readonly ViVn: "vi-VN";
|
|
35
|
+
};
|
|
36
|
+
export type AsrLanguage = (typeof AsrLanguage)[keyof typeof AsrLanguage];
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
/** The BCP-47 language tag identifying the primary language used for agent interaction. */
|
|
3
|
+
export const AsrLanguage = {
|
|
4
|
+
ArEg: "ar-EG",
|
|
5
|
+
ArJo: "ar-JO",
|
|
6
|
+
ArSa: "ar-SA",
|
|
7
|
+
ArAe: "ar-AE",
|
|
8
|
+
BnIn: "bn-IN",
|
|
9
|
+
ZhCn: "zh-CN",
|
|
10
|
+
ZhHk: "zh-HK",
|
|
11
|
+
ZhTw: "zh-TW",
|
|
12
|
+
NlNl: "nl-NL",
|
|
13
|
+
EnIn: "en-IN",
|
|
14
|
+
EnUs: "en-US",
|
|
15
|
+
FilPh: "fil-PH",
|
|
16
|
+
FrFr: "fr-FR",
|
|
17
|
+
DeDe: "de-DE",
|
|
18
|
+
GuIn: "gu-IN",
|
|
19
|
+
HeIl: "he-IL",
|
|
20
|
+
HiIn: "hi-IN",
|
|
21
|
+
IdId: "id-ID",
|
|
22
|
+
ItIt: "it-IT",
|
|
23
|
+
JaJp: "ja-JP",
|
|
24
|
+
KnIn: "kn-IN",
|
|
25
|
+
KoKr: "ko-KR",
|
|
26
|
+
MsMy: "ms-MY",
|
|
27
|
+
FaIr: "fa-IR",
|
|
28
|
+
PtPt: "pt-PT",
|
|
29
|
+
RuRu: "ru-RU",
|
|
30
|
+
EsEs: "es-ES",
|
|
31
|
+
TaIn: "ta-IN",
|
|
32
|
+
TeIn: "te-IN",
|
|
33
|
+
ThTh: "th-TH",
|
|
34
|
+
TrTr: "tr-TR",
|
|
35
|
+
ViVn: "vi-VN",
|
|
36
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Agora from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* AssemblyAI ASR configuration.
|
|
4
|
+
*/
|
|
5
|
+
export interface AssemblyAiAsr {
|
|
6
|
+
language?: Agora.AsrLanguage;
|
|
7
|
+
params: Agora.AssemblyAiAsrParams;
|
|
8
|
+
/** Accepts any additional properties */
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AssemblyAI ASR configuration parameters.
|
|
3
|
+
*/
|
|
4
|
+
export interface AssemblyAiAsrParams {
|
|
5
|
+
/** AssemblyAI API key */
|
|
6
|
+
api_key: string;
|
|
7
|
+
/** Language code for speech recognition */
|
|
8
|
+
language: string;
|
|
9
|
+
/** WebSocket URL for AssemblyAI's streaming API */
|
|
10
|
+
uri?: string | null;
|
|
11
|
+
/** Accepts any additional properties */
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cartesia audio output format configuration.
|
|
3
|
+
*/
|
|
4
|
+
export interface CartesiaTtsOutputFormat {
|
|
5
|
+
/** Audio container format for the output stream */
|
|
6
|
+
container?: string;
|
|
7
|
+
/** Audio sampling rate in Hz */
|
|
8
|
+
sample_rate?: number;
|
|
9
|
+
/** Accepts any additional properties */
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}
|
|
@@ -5,9 +5,14 @@ import type * as Agora from "../index.mjs";
|
|
|
5
5
|
export interface CartesiaTtsParams {
|
|
6
6
|
/** Cartesia API key */
|
|
7
7
|
api_key: string;
|
|
8
|
+
/** Model ID (for example, sonic-2) */
|
|
9
|
+
model_id: string;
|
|
10
|
+
/** WebSocket URL for the Cartesia streaming API */
|
|
11
|
+
base_url?: string;
|
|
8
12
|
voice: Agora.CartesiaTtsVoice;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
output_format?: Agora.CartesiaTtsOutputFormat;
|
|
14
|
+
/** Target language for speech synthesis */
|
|
15
|
+
language?: string;
|
|
16
|
+
/** Accepts any additional properties */
|
|
17
|
+
[key: string]: any;
|
|
13
18
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as Agora from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Deepgram ASR configuration.
|
|
4
|
+
*/
|
|
5
|
+
export interface DeepgramAsr {
|
|
6
|
+
language?: Agora.AsrLanguage;
|
|
7
|
+
params: Agora.DeepgramAsrParams;
|
|
8
|
+
/** Boost specialized terms and brands for preset-backed Deepgram usage. */
|
|
9
|
+
keyterm?: string;
|
|
10
|
+
/** Accepts any additional properties */
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Deepgram ASR configuration parameters.
|
|
3
|
+
*/
|
|
4
|
+
export interface DeepgramAsrParams {
|
|
5
|
+
/** WebSocket URL for Deepgram's streaming API */
|
|
6
|
+
url?: string | null;
|
|
7
|
+
/** Deepgram API key */
|
|
8
|
+
key: string;
|
|
9
|
+
/** Speech recognition model */
|
|
10
|
+
model?: string | null;
|
|
11
|
+
/** Language code for speech recognition */
|
|
12
|
+
language?: string | null;
|
|
13
|
+
/** Boost specialized terms and brands */
|
|
14
|
+
keyterm?: string | null;
|
|
15
|
+
/** Accepts any additional properties */
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}
|
|
@@ -10,8 +10,8 @@ export interface DeepgramTtsParams {
|
|
|
10
10
|
base_url?: string;
|
|
11
11
|
/** Audio sampling rate in Hz */
|
|
12
12
|
sample_rate?: number;
|
|
13
|
-
/** Additional Deepgram TTS parameters */
|
|
14
|
-
params?: Record<string, unknown>;
|
|
15
13
|
/** Controls whether the TTS module skips bracketed content when reading LLM response text. */
|
|
16
14
|
skip_patterns?: number[];
|
|
15
|
+
/** Accepts any additional properties */
|
|
16
|
+
[key: string]: any;
|
|
17
17
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface ElevenLabsTtsParams {
|
|
5
5
|
/** WebSocket URL (e.g., "wss://api.elevenlabs.io/v1") */
|
|
6
|
-
base_url
|
|
6
|
+
base_url: string;
|
|
7
7
|
/** ElevenLabs API key */
|
|
8
8
|
key: string;
|
|
9
9
|
/** Model ID (e.g., "eleven_flash_v2_5") */
|
|
@@ -12,4 +12,16 @@ export interface ElevenLabsTtsParams {
|
|
|
12
12
|
voice_id: string;
|
|
13
13
|
/** Audio sample rate in Hz (16kHz for Akool, 24kHz for HeyGen) */
|
|
14
14
|
sample_rate?: number;
|
|
15
|
+
/** Speech speed multiplier. */
|
|
16
|
+
speed?: number;
|
|
17
|
+
/** Voice stability. Higher values produce more consistent speech. */
|
|
18
|
+
stability?: number;
|
|
19
|
+
/** Similarity boost for the selected voice. */
|
|
20
|
+
similarity_boost?: number;
|
|
21
|
+
/** Speaking style and expressiveness control. */
|
|
22
|
+
style?: number;
|
|
23
|
+
/** Whether to improve voice quality and similarity. */
|
|
24
|
+
use_speaker_boost?: boolean;
|
|
25
|
+
/** Accepts any additional properties */
|
|
26
|
+
[key: string]: any;
|
|
15
27
|
}
|
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface FishAudioTtsParams {
|
|
5
5
|
/** Fish Audio API key */
|
|
6
|
-
|
|
6
|
+
api_key: string;
|
|
7
7
|
/** Fish Audio reference ID */
|
|
8
8
|
reference_id: string;
|
|
9
|
+
/** Backend model version to use */
|
|
10
|
+
backend: string;
|
|
11
|
+
/** Accepts any additional properties */
|
|
12
|
+
[key: string]: any;
|
|
9
13
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Google ASR configuration parameters.
|
|
3
|
+
*/
|
|
4
|
+
export interface GoogleAsrParams {
|
|
5
|
+
/** Google Cloud project ID */
|
|
6
|
+
project_id: string;
|
|
7
|
+
/** Google Cloud region for the speech service */
|
|
8
|
+
location: string;
|
|
9
|
+
/** Google Cloud service account credentials JSON string */
|
|
10
|
+
adc_credentials_string: string;
|
|
11
|
+
/** Language code for speech recognition */
|
|
12
|
+
language: string;
|
|
13
|
+
/** Recognition model to use */
|
|
14
|
+
model?: string | null;
|
|
15
|
+
/** Accepts any additional properties */
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Google audio output configuration.
|
|
3
|
+
*/
|
|
4
|
+
export interface GoogleTtsAudioConfig {
|
|
5
|
+
/** Speed of speech */
|
|
6
|
+
speaking_rate?: number;
|
|
7
|
+
/** Sample rate in Hz */
|
|
8
|
+
sample_rate_hertz?: number;
|
|
9
|
+
/** Accepts any additional properties */
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
+
import type * as Agora from "../index.mjs";
|
|
1
2
|
/**
|
|
2
3
|
* Google TTS configuration parameters.
|
|
3
4
|
*/
|
|
4
5
|
export interface GoogleTtsParams {
|
|
5
|
-
/** Google Cloud
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
|
|
11
|
-
/** Sample rate in Hz (default depends on selected voice) */
|
|
12
|
-
sample_rate_hertz?: number;
|
|
6
|
+
/** Google Cloud service account credentials JSON string */
|
|
7
|
+
credentials: string;
|
|
8
|
+
VoiceSelectionParams: Agora.GoogleTtsVoiceSelectionParams;
|
|
9
|
+
AudioConfig?: Agora.GoogleTtsAudioConfig;
|
|
10
|
+
/** Accepts any additional properties */
|
|
11
|
+
[key: string]: any;
|
|
13
12
|
}
|
|
@@ -4,6 +4,26 @@
|
|
|
4
4
|
export interface HumeAiTtsParams {
|
|
5
5
|
/** Hume AI API key */
|
|
6
6
|
key: string;
|
|
7
|
-
/** Hume AI
|
|
7
|
+
/** Hume AI voice ID */
|
|
8
|
+
voice_id: string;
|
|
9
|
+
/** Base URL for the Hume AI API */
|
|
10
|
+
base_url?: string;
|
|
11
|
+
/** Voice provider type */
|
|
12
|
+
provider: HumeAiTtsParams.Provider;
|
|
13
|
+
/** Playback speed of the generated speech */
|
|
14
|
+
speed?: number;
|
|
15
|
+
/** Duration of silence in seconds to add at the end of each utterance */
|
|
16
|
+
trailing_silence?: number;
|
|
17
|
+
/** Hume AI configuration ID. Deprecated; use voice_id for the documented TTS shape. */
|
|
8
18
|
config_id?: string;
|
|
19
|
+
/** Accepts any additional properties */
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
}
|
|
22
|
+
export declare namespace HumeAiTtsParams {
|
|
23
|
+
/** Voice provider type */
|
|
24
|
+
const Provider: {
|
|
25
|
+
readonly HumeAi: "HUME_AI";
|
|
26
|
+
readonly CustomVoice: "CUSTOM_VOICE";
|
|
27
|
+
};
|
|
28
|
+
type Provider = (typeof Provider)[keyof typeof Provider];
|
|
9
29
|
}
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
export
|
|
2
|
+
export var HumeAiTtsParams;
|
|
3
|
+
(function (HumeAiTtsParams) {
|
|
4
|
+
/** Voice provider type */
|
|
5
|
+
HumeAiTtsParams.Provider = {
|
|
6
|
+
HumeAi: "HUME_AI",
|
|
7
|
+
CustomVoice: "CUSTOM_VOICE",
|
|
8
|
+
};
|
|
9
|
+
})(HumeAiTtsParams || (HumeAiTtsParams = {}));
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type * as Agora from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Large language model (LLM) configuration.
|
|
4
|
+
*/
|
|
5
|
+
export interface Llm {
|
|
6
|
+
/** The LLM callback address. */
|
|
7
|
+
url?: string;
|
|
8
|
+
/** The LLM verification API key. */
|
|
9
|
+
api_key?: string;
|
|
10
|
+
/** AWS access key ID. Used by Amazon Bedrock when api_key is not provided. */
|
|
11
|
+
access_key?: string | null;
|
|
12
|
+
/** AWS secret access key. Used by Amazon Bedrock when api_key is not provided. */
|
|
13
|
+
secret_key?: string | null;
|
|
14
|
+
/** AWS region. Used by Amazon Bedrock. */
|
|
15
|
+
region?: string;
|
|
16
|
+
/** Top-level model identifier. Used by Amazon Bedrock. */
|
|
17
|
+
model?: string;
|
|
18
|
+
/** A set of predefined information used as input to the LLM. */
|
|
19
|
+
system_messages?: Record<string, unknown>[] | null;
|
|
20
|
+
params?: Agora.LlmParams;
|
|
21
|
+
/** The number of conversation history messages cached in the custom LLM. */
|
|
22
|
+
max_history?: number;
|
|
23
|
+
/** LLM input modalities. */
|
|
24
|
+
input_modalities?: string[];
|
|
25
|
+
/** LLM output modalities. */
|
|
26
|
+
output_modalities?: string[];
|
|
27
|
+
/** Agent greeting. */
|
|
28
|
+
greeting_message?: string;
|
|
29
|
+
/** Prompt for agent activation failure. */
|
|
30
|
+
failure_message?: string;
|
|
31
|
+
/** LLM provider identifier. */
|
|
32
|
+
vendor?: string;
|
|
33
|
+
/** The request style for chat completion. */
|
|
34
|
+
style?: Llm.Style;
|
|
35
|
+
/** Whether to handle empty Gemini responses. */
|
|
36
|
+
ignore_empty?: boolean | null;
|
|
37
|
+
/** Agent greeting broadcast configuration. */
|
|
38
|
+
greeting_configs?: Record<string, unknown>;
|
|
39
|
+
/** Template parameter configuration. */
|
|
40
|
+
template_variables?: Record<string, string>;
|
|
41
|
+
/** MCP server configuration. */
|
|
42
|
+
mcp_servers?: Record<string, unknown>[];
|
|
43
|
+
/** Custom headers to include in requests to the LLM. */
|
|
44
|
+
headers?: Record<string, string>;
|
|
45
|
+
/** Accepts any additional properties */
|
|
46
|
+
[key: string]: any;
|
|
47
|
+
}
|
|
48
|
+
export declare namespace Llm {
|
|
49
|
+
/** The request style for chat completion. */
|
|
50
|
+
const Style: {
|
|
51
|
+
readonly Openai: "openai";
|
|
52
|
+
readonly Gemini: "gemini";
|
|
53
|
+
readonly Anthropic: "anthropic";
|
|
54
|
+
readonly Dify: "dify";
|
|
55
|
+
readonly Bedrock: "bedrock";
|
|
56
|
+
};
|
|
57
|
+
type Style = (typeof Style)[keyof typeof Style];
|
|
58
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var Llm;
|
|
3
|
+
(function (Llm) {
|
|
4
|
+
/** The request style for chat completion. */
|
|
5
|
+
Llm.Style = {
|
|
6
|
+
Openai: "openai",
|
|
7
|
+
Gemini: "gemini",
|
|
8
|
+
Anthropic: "anthropic",
|
|
9
|
+
Dify: "dify",
|
|
10
|
+
Bedrock: "bedrock",
|
|
11
|
+
};
|
|
12
|
+
})(Llm || (Llm = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Additional LLM configuration parameters.
|
|
3
|
+
*/
|
|
4
|
+
export interface LlmParams {
|
|
5
|
+
/** The LLM model identifier. */
|
|
6
|
+
model?: string;
|
|
7
|
+
/** Maximum tokens in the response. */
|
|
8
|
+
max_tokens?: number;
|
|
9
|
+
/** Accepts any additional properties */
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Agora from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Microsoft Azure ASR configuration.
|
|
4
|
+
*/
|
|
5
|
+
export interface MicrosoftAsr {
|
|
6
|
+
language?: Agora.AsrLanguage;
|
|
7
|
+
params: Agora.MicrosoftAsrParams;
|
|
8
|
+
/** Accepts any additional properties */
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft Azure ASR configuration parameters.
|
|
3
|
+
*/
|
|
4
|
+
export interface MicrosoftAsrParams {
|
|
5
|
+
/** Microsoft Azure API key */
|
|
6
|
+
key: string;
|
|
7
|
+
/** Azure region */
|
|
8
|
+
region: string;
|
|
9
|
+
/** Language code for speech recognition */
|
|
10
|
+
language: string;
|
|
11
|
+
/** Words or phrases to improve recognition accuracy */
|
|
12
|
+
phrase_list?: string[] | null;
|
|
13
|
+
/** Accepts any additional properties */
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}
|
|
@@ -10,4 +10,10 @@ export interface MicrosoftTtsParams {
|
|
|
10
10
|
voice_name: string;
|
|
11
11
|
/** Audio sampling rate in Hz */
|
|
12
12
|
sample_rate?: number;
|
|
13
|
+
/** Speaking rate multiplier. Values between 0.5 and 2.0. */
|
|
14
|
+
speed?: number;
|
|
15
|
+
/** Audio volume. Values between 0.0 and 100.0. */
|
|
16
|
+
volume?: number;
|
|
17
|
+
/** Accepts any additional properties */
|
|
18
|
+
[key: string]: any;
|
|
13
19
|
}
|
|
@@ -11,10 +11,14 @@ export interface MinimaxTtsParams {
|
|
|
11
11
|
voice_setting: MinimaxTtsParams.VoiceSetting;
|
|
12
12
|
/** WebSocket endpoint (e.g., wss://api-uw.minimax.io/ws/v1/t2a_v2) */
|
|
13
13
|
url: string;
|
|
14
|
+
/** Accepts any additional properties */
|
|
15
|
+
[key: string]: any;
|
|
14
16
|
}
|
|
15
17
|
export declare namespace MinimaxTtsParams {
|
|
16
18
|
interface VoiceSetting {
|
|
17
19
|
/** Voice style identifier (e.g., English_captivating_female1) */
|
|
18
20
|
voice_id: string;
|
|
21
|
+
/** Accepts any additional properties */
|
|
22
|
+
[key: string]: any;
|
|
19
23
|
}
|
|
20
24
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type * as Agora from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Multimodal Large Language Model (MLLM) configuration for real-time audio and text processing.
|
|
4
|
+
*/
|
|
5
|
+
export interface Mllm {
|
|
6
|
+
/** Enable Multimodal Large Language Model. */
|
|
7
|
+
enable?: boolean | null;
|
|
8
|
+
/** The MLLM WebSocket URL for real-time communication. */
|
|
9
|
+
url?: string;
|
|
10
|
+
/** The API key used for MLLM authentication. */
|
|
11
|
+
api_key?: string;
|
|
12
|
+
/** Base64-encoded Google Cloud Application Default Credentials. Used by Vertex AI. */
|
|
13
|
+
adc_credentials_string?: string;
|
|
14
|
+
/** Google Cloud project ID. Used by Vertex AI. */
|
|
15
|
+
project_id?: string;
|
|
16
|
+
/** Google Cloud location or region. Used by Vertex AI. */
|
|
17
|
+
location?: string;
|
|
18
|
+
/** Array of conversation items used for short-term memory management. */
|
|
19
|
+
messages?: Record<string, unknown>[] | null;
|
|
20
|
+
params?: Agora.MllmParams;
|
|
21
|
+
/** MLLM input modalities. */
|
|
22
|
+
input_modalities?: string[] | null;
|
|
23
|
+
/** MLLM output modalities. */
|
|
24
|
+
output_modalities?: string[] | null;
|
|
25
|
+
/** Agent greeting message. */
|
|
26
|
+
greeting_message?: string;
|
|
27
|
+
/** Agent failure message. */
|
|
28
|
+
failure_message?: string;
|
|
29
|
+
/** MLLM provider. */
|
|
30
|
+
vendor?: Mllm.Vendor;
|
|
31
|
+
turn_detection?: Agora.MllmTurnDetection | null;
|
|
32
|
+
/** Accepts any additional properties */
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
}
|
|
35
|
+
export declare namespace Mllm {
|
|
36
|
+
/** MLLM provider. */
|
|
37
|
+
const Vendor: {
|
|
38
|
+
readonly Openai: "openai";
|
|
39
|
+
readonly Gemini: "gemini";
|
|
40
|
+
readonly Vertexai: "vertexai";
|
|
41
|
+
readonly Xai: "xai";
|
|
42
|
+
};
|
|
43
|
+
type Vendor = (typeof Vendor)[keyof typeof Vendor];
|
|
44
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration for audio input transcription.
|
|
3
|
+
*/
|
|
4
|
+
export interface MllmInputAudioTranscription {
|
|
5
|
+
/** Language of the input audio. */
|
|
6
|
+
language?: string | null;
|
|
7
|
+
/** Model to use for transcription. */
|
|
8
|
+
model?: string | null;
|
|
9
|
+
/** Text to guide the transcription model. */
|
|
10
|
+
prompt?: string | null;
|
|
11
|
+
/** Accepts any additional properties */
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type * as Agora from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Additional MLLM configuration parameters.
|
|
4
|
+
*/
|
|
5
|
+
export interface MllmParams {
|
|
6
|
+
/** The MLLM model identifier. */
|
|
7
|
+
model?: string | null;
|
|
8
|
+
/** Voice identifier for audio output. */
|
|
9
|
+
voice?: string | null;
|
|
10
|
+
/** System instructions that define the agent behavior or tone. */
|
|
11
|
+
instructions?: string | null;
|
|
12
|
+
input_audio_transcription?: Agora.MllmInputAudioTranscription | null;
|
|
13
|
+
/** Whether to enable Gemini affective dialog. */
|
|
14
|
+
affective_dialog?: boolean | null;
|
|
15
|
+
/** Whether Gemini may choose not to respond when no reply is needed. */
|
|
16
|
+
proactive_audio?: boolean | null;
|
|
17
|
+
/** Whether to transcribe the agent speech in real time. */
|
|
18
|
+
transcribe_agent?: boolean | null;
|
|
19
|
+
/** Whether to transcribe the user speech in real time. */
|
|
20
|
+
transcribe_user?: boolean | null;
|
|
21
|
+
http_options?: Agora.MllmHttpOptions | null;
|
|
22
|
+
/** Language code for xAI Grok speech recognition and synthesis. */
|
|
23
|
+
language?: string | null;
|
|
24
|
+
/** Audio sample rate in Hz. */
|
|
25
|
+
sample_rate?: number | null;
|
|
26
|
+
/** Accepts any additional properties */
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
}
|