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,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Turn detection configuration for the MLLM module.
|
|
3
|
+
*/
|
|
4
|
+
export interface MllmTurnDetection {
|
|
5
|
+
/** Turn detection mode for MLLM. */
|
|
6
|
+
mode?: MllmTurnDetection.Mode | null;
|
|
7
|
+
agora_vad_config?: MllmTurnDetection.AgoraVadConfig | null;
|
|
8
|
+
server_vad_config?: MllmTurnDetection.ServerVadConfig | null;
|
|
9
|
+
semantic_vad_config?: MllmTurnDetection.SemanticVadConfig | null;
|
|
10
|
+
/** Accepts any additional properties */
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}
|
|
13
|
+
export declare namespace MllmTurnDetection {
|
|
14
|
+
/** Turn detection mode for MLLM. */
|
|
15
|
+
const Mode: {
|
|
16
|
+
readonly AgoraVad: "agora_vad";
|
|
17
|
+
readonly ServerVad: "server_vad";
|
|
18
|
+
readonly SemanticVad: "semantic_vad";
|
|
19
|
+
};
|
|
20
|
+
type Mode = (typeof Mode)[keyof typeof Mode];
|
|
21
|
+
interface AgoraVadConfig {
|
|
22
|
+
interrupt_duration_ms?: number | null;
|
|
23
|
+
prefix_padding_ms?: number | null;
|
|
24
|
+
silence_duration_ms?: number | null;
|
|
25
|
+
threshold?: number | null;
|
|
26
|
+
/** Accepts any additional properties */
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
}
|
|
29
|
+
interface ServerVadConfig {
|
|
30
|
+
prefix_padding_ms?: number | null;
|
|
31
|
+
silence_duration_ms?: number | null;
|
|
32
|
+
threshold?: number | null;
|
|
33
|
+
idle_timeout_ms?: number | null;
|
|
34
|
+
start_of_speech_sensitivity?: ServerVadConfig.StartOfSpeechSensitivity | null;
|
|
35
|
+
end_of_speech_sensitivity?: ServerVadConfig.EndOfSpeechSensitivity | null;
|
|
36
|
+
/** Accepts any additional properties */
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
}
|
|
39
|
+
namespace ServerVadConfig {
|
|
40
|
+
const StartOfSpeechSensitivity: {
|
|
41
|
+
readonly StartSensitivityHigh: "START_SENSITIVITY_HIGH";
|
|
42
|
+
readonly StartSensitivityLow: "START_SENSITIVITY_LOW";
|
|
43
|
+
};
|
|
44
|
+
type StartOfSpeechSensitivity = (typeof StartOfSpeechSensitivity)[keyof typeof StartOfSpeechSensitivity];
|
|
45
|
+
const EndOfSpeechSensitivity: {
|
|
46
|
+
readonly EndSensitivityHigh: "END_SENSITIVITY_HIGH";
|
|
47
|
+
readonly EndSensitivityLow: "END_SENSITIVITY_LOW";
|
|
48
|
+
};
|
|
49
|
+
type EndOfSpeechSensitivity = (typeof EndOfSpeechSensitivity)[keyof typeof EndOfSpeechSensitivity];
|
|
50
|
+
}
|
|
51
|
+
interface SemanticVadConfig {
|
|
52
|
+
eagerness?: SemanticVadConfig.Eagerness | null;
|
|
53
|
+
/** Accepts any additional properties */
|
|
54
|
+
[key: string]: any;
|
|
55
|
+
}
|
|
56
|
+
namespace SemanticVadConfig {
|
|
57
|
+
const Eagerness: {
|
|
58
|
+
readonly Auto: "auto";
|
|
59
|
+
readonly Low: "low";
|
|
60
|
+
readonly Medium: "medium";
|
|
61
|
+
readonly High: "high";
|
|
62
|
+
};
|
|
63
|
+
type Eagerness = (typeof Eagerness)[keyof typeof Eagerness];
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var MllmTurnDetection;
|
|
3
|
+
(function (MllmTurnDetection) {
|
|
4
|
+
/** Turn detection mode for MLLM. */
|
|
5
|
+
MllmTurnDetection.Mode = {
|
|
6
|
+
AgoraVad: "agora_vad",
|
|
7
|
+
ServerVad: "server_vad",
|
|
8
|
+
SemanticVad: "semantic_vad",
|
|
9
|
+
};
|
|
10
|
+
let ServerVadConfig;
|
|
11
|
+
(function (ServerVadConfig) {
|
|
12
|
+
ServerVadConfig.StartOfSpeechSensitivity = {
|
|
13
|
+
StartSensitivityHigh: "START_SENSITIVITY_HIGH",
|
|
14
|
+
StartSensitivityLow: "START_SENSITIVITY_LOW",
|
|
15
|
+
};
|
|
16
|
+
ServerVadConfig.EndOfSpeechSensitivity = {
|
|
17
|
+
EndSensitivityHigh: "END_SENSITIVITY_HIGH",
|
|
18
|
+
EndSensitivityLow: "END_SENSITIVITY_LOW",
|
|
19
|
+
};
|
|
20
|
+
})(ServerVadConfig = MllmTurnDetection.ServerVadConfig || (MllmTurnDetection.ServerVadConfig = {}));
|
|
21
|
+
let SemanticVadConfig;
|
|
22
|
+
(function (SemanticVadConfig) {
|
|
23
|
+
SemanticVadConfig.Eagerness = {
|
|
24
|
+
Auto: "auto",
|
|
25
|
+
Low: "low",
|
|
26
|
+
Medium: "medium",
|
|
27
|
+
High: "high",
|
|
28
|
+
};
|
|
29
|
+
})(SemanticVadConfig = MllmTurnDetection.SemanticVadConfig || (MllmTurnDetection.SemanticVadConfig = {}));
|
|
30
|
+
})(MllmTurnDetection || (MllmTurnDetection = {}));
|
|
@@ -3,9 +3,21 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface MurfTtsParams {
|
|
5
5
|
/** Murf API key */
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
|
|
9
|
-
/** Voice
|
|
10
|
-
|
|
6
|
+
api_key: string;
|
|
7
|
+
/** WebSocket endpoint for streaming TTS output */
|
|
8
|
+
base_url?: string;
|
|
9
|
+
/** Voice ID (e.g., Matthew) */
|
|
10
|
+
voiceId?: string;
|
|
11
|
+
/** Locale for the selected voice */
|
|
12
|
+
locale?: string;
|
|
13
|
+
/** Speech rate adjustment */
|
|
14
|
+
rate?: number;
|
|
15
|
+
/** Pitch adjustment */
|
|
16
|
+
pitch?: number;
|
|
17
|
+
/** TTS model to use */
|
|
18
|
+
model?: string;
|
|
19
|
+
/** Audio sample rate in Hz */
|
|
20
|
+
sample_rate?: number;
|
|
21
|
+
/** Accepts any additional properties */
|
|
22
|
+
[key: string]: any;
|
|
11
23
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as Agora from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* OpenAI ASR configuration parameters.
|
|
4
|
+
*/
|
|
5
|
+
export interface OpenAiAsrParams {
|
|
6
|
+
/** OpenAI API key */
|
|
7
|
+
api_key: string;
|
|
8
|
+
input_audio_transcription: Agora.OpenAiInputAudioTranscription;
|
|
9
|
+
/** Accepts any additional properties */
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAI audio transcription configuration.
|
|
3
|
+
*/
|
|
4
|
+
export interface OpenAiInputAudioTranscription {
|
|
5
|
+
/** OpenAI ASR model to use for transcription */
|
|
6
|
+
model: string;
|
|
7
|
+
/** Prompt that guides the transcription process */
|
|
8
|
+
prompt: string;
|
|
9
|
+
/** Language code to use for transcription */
|
|
10
|
+
language: string;
|
|
11
|
+
/** Accepts any additional properties */
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}
|
|
@@ -2,10 +2,18 @@
|
|
|
2
2
|
* OpenAI TTS configuration parameters.
|
|
3
3
|
*/
|
|
4
4
|
export interface OpenAiTtsParams {
|
|
5
|
-
/** OpenAI API key. Optional for
|
|
5
|
+
/** OpenAI API key. Optional for preset-backed OpenAI TTS usage. */
|
|
6
6
|
api_key?: string;
|
|
7
|
+
/** Endpoint URL for the OpenAI TTS service. */
|
|
8
|
+
base_url?: string;
|
|
7
9
|
/** Voice name (e.g., "alloy", "echo", "fable", "onyx", "nova", "shimmer") */
|
|
8
10
|
voice: string;
|
|
9
11
|
/** Model name (e.g., "tts-1", "tts-1-hd") */
|
|
10
12
|
model?: string;
|
|
13
|
+
/** Custom instructions for voice style, accent, pace, and tone. */
|
|
14
|
+
instructions?: string;
|
|
15
|
+
/** Speaking rate multiplier. */
|
|
16
|
+
speed?: number;
|
|
17
|
+
/** Accepts any additional properties */
|
|
18
|
+
[key: string]: any;
|
|
11
19
|
}
|
|
@@ -3,9 +3,13 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface RimeTtsParams {
|
|
5
5
|
/** Rime API key */
|
|
6
|
-
|
|
6
|
+
api_key: string;
|
|
7
7
|
/** Rime speaker ID */
|
|
8
8
|
speaker: string;
|
|
9
|
-
/**
|
|
10
|
-
|
|
9
|
+
/** Rime TTS model ID */
|
|
10
|
+
modelId: string;
|
|
11
|
+
/** WebSocket URL for the Rime streaming API */
|
|
12
|
+
base_url?: string;
|
|
13
|
+
/** Accepts any additional properties */
|
|
14
|
+
[key: string]: any;
|
|
11
15
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sarvam ASR configuration parameters.
|
|
3
|
+
*/
|
|
4
|
+
export interface SarvamAsrParams {
|
|
5
|
+
/** Sarvam API key */
|
|
6
|
+
api_key: string;
|
|
7
|
+
/** Language code for transcription. Set to unknown for automatic language detection. */
|
|
8
|
+
language: string;
|
|
9
|
+
/** Accepts any additional properties */
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}
|
|
@@ -3,9 +3,36 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface SarvamTtsParams {
|
|
5
5
|
/** Sarvam API subscription key */
|
|
6
|
-
|
|
6
|
+
api_subscription_key: string;
|
|
7
7
|
/** Voice ID (e.g., anushka, abhilash, karun, hitesh, manisha, vidya, arya) */
|
|
8
8
|
speaker: string;
|
|
9
9
|
/** Target language code (e.g., en-IN) */
|
|
10
|
-
target_language_code:
|
|
10
|
+
target_language_code: SarvamTtsParams.TargetLanguageCode;
|
|
11
|
+
/** Pitch adjustment for the voice */
|
|
12
|
+
pitch?: number;
|
|
13
|
+
/** Speed of speech */
|
|
14
|
+
pace?: number;
|
|
15
|
+
/** Volume level of the speech */
|
|
16
|
+
loudness?: number;
|
|
17
|
+
/** Audio sample rate in Hz */
|
|
18
|
+
sample_rate?: number;
|
|
19
|
+
/** Accepts any additional properties */
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
}
|
|
22
|
+
export declare namespace SarvamTtsParams {
|
|
23
|
+
/** Target language code (e.g., en-IN) */
|
|
24
|
+
const TargetLanguageCode: {
|
|
25
|
+
readonly EnIn: "en-IN";
|
|
26
|
+
readonly HiIn: "hi-IN";
|
|
27
|
+
readonly BnIn: "bn-IN";
|
|
28
|
+
readonly TaIn: "ta-IN";
|
|
29
|
+
readonly TeIn: "te-IN";
|
|
30
|
+
readonly KnIn: "kn-IN";
|
|
31
|
+
readonly MlIn: "ml-IN";
|
|
32
|
+
readonly MrIn: "mr-IN";
|
|
33
|
+
readonly GuIn: "gu-IN";
|
|
34
|
+
readonly PaIn: "pa-IN";
|
|
35
|
+
readonly OrIn: "or-IN";
|
|
36
|
+
};
|
|
37
|
+
type TargetLanguageCode = (typeof TargetLanguageCode)[keyof typeof TargetLanguageCode];
|
|
11
38
|
}
|
|
@@ -1,2 +1,18 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
export
|
|
2
|
+
export var SarvamTtsParams;
|
|
3
|
+
(function (SarvamTtsParams) {
|
|
4
|
+
/** Target language code (e.g., en-IN) */
|
|
5
|
+
SarvamTtsParams.TargetLanguageCode = {
|
|
6
|
+
EnIn: "en-IN",
|
|
7
|
+
HiIn: "hi-IN",
|
|
8
|
+
BnIn: "bn-IN",
|
|
9
|
+
TaIn: "ta-IN",
|
|
10
|
+
TeIn: "te-IN",
|
|
11
|
+
KnIn: "kn-IN",
|
|
12
|
+
MlIn: "ml-IN",
|
|
13
|
+
MrIn: "mr-IN",
|
|
14
|
+
GuIn: "gu-IN",
|
|
15
|
+
PaIn: "pa-IN",
|
|
16
|
+
OrIn: "or-IN",
|
|
17
|
+
};
|
|
18
|
+
})(SarvamTtsParams || (SarvamTtsParams = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Agora from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Speechmatics ASR configuration.
|
|
4
|
+
*/
|
|
5
|
+
export interface SpeechmaticsAsr {
|
|
6
|
+
language?: Agora.AsrLanguage;
|
|
7
|
+
params: Agora.SpeechmaticsAsrParams;
|
|
8
|
+
/** Accepts any additional properties */
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Speechmatics ASR configuration parameters.
|
|
3
|
+
*/
|
|
4
|
+
export interface SpeechmaticsAsrParams {
|
|
5
|
+
/** Speechmatics API key */
|
|
6
|
+
api_key: string;
|
|
7
|
+
/** Language code to use for transcription */
|
|
8
|
+
language: string;
|
|
9
|
+
/** WebSocket URL for the Speechmatics streaming API */
|
|
10
|
+
uri?: string | null;
|
|
11
|
+
/** Accepts any additional properties */
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}
|
|
@@ -1,30 +1,61 @@
|
|
|
1
1
|
export * from "./AgentErrorResponse.mjs";
|
|
2
|
+
export * from "./AmazonAsr.mjs";
|
|
3
|
+
export * from "./AmazonAsrParams.mjs";
|
|
2
4
|
export * from "./AmazonTts.mjs";
|
|
3
5
|
export * from "./AmazonTtsParams.mjs";
|
|
6
|
+
export * from "./AresAsr.mjs";
|
|
7
|
+
export * from "./AresAsrParams.mjs";
|
|
8
|
+
export * from "./Asr.mjs";
|
|
9
|
+
export * from "./AsrLanguage.mjs";
|
|
10
|
+
export * from "./AssemblyAiAsr.mjs";
|
|
11
|
+
export * from "./AssemblyAiAsrParams.mjs";
|
|
4
12
|
export * from "./CartesiaTts.mjs";
|
|
13
|
+
export * from "./CartesiaTtsOutputFormat.mjs";
|
|
5
14
|
export * from "./CartesiaTtsParams.mjs";
|
|
6
15
|
export * from "./CartesiaTtsVoice.mjs";
|
|
16
|
+
export * from "./DeepgramAsr.mjs";
|
|
17
|
+
export * from "./DeepgramAsrParams.mjs";
|
|
7
18
|
export * from "./DeepgramTts.mjs";
|
|
8
19
|
export * from "./DeepgramTtsParams.mjs";
|
|
9
20
|
export * from "./ElevenLabsTts.mjs";
|
|
10
21
|
export * from "./ElevenLabsTtsParams.mjs";
|
|
11
22
|
export * from "./FishAudioTts.mjs";
|
|
12
23
|
export * from "./FishAudioTtsParams.mjs";
|
|
24
|
+
export * from "./GoogleAsr.mjs";
|
|
25
|
+
export * from "./GoogleAsrParams.mjs";
|
|
13
26
|
export * from "./GoogleTts.mjs";
|
|
27
|
+
export * from "./GoogleTtsAudioConfig.mjs";
|
|
14
28
|
export * from "./GoogleTtsParams.mjs";
|
|
29
|
+
export * from "./GoogleTtsVoiceSelectionParams.mjs";
|
|
15
30
|
export * from "./HumeAiTts.mjs";
|
|
16
31
|
export * from "./HumeAiTtsParams.mjs";
|
|
32
|
+
export * from "./Llm.mjs";
|
|
33
|
+
export * from "./LlmParams.mjs";
|
|
34
|
+
export * from "./MicrosoftAsr.mjs";
|
|
35
|
+
export * from "./MicrosoftAsrParams.mjs";
|
|
17
36
|
export * from "./MicrosoftTts.mjs";
|
|
18
37
|
export * from "./MicrosoftTtsParams.mjs";
|
|
19
38
|
export * from "./MinimaxTts.mjs";
|
|
20
39
|
export * from "./MinimaxTtsParams.mjs";
|
|
40
|
+
export * from "./Mllm.mjs";
|
|
41
|
+
export * from "./MllmHttpOptions.mjs";
|
|
42
|
+
export * from "./MllmInputAudioTranscription.mjs";
|
|
43
|
+
export * from "./MllmParams.mjs";
|
|
44
|
+
export * from "./MllmTurnDetection.mjs";
|
|
21
45
|
export * from "./MurfTts.mjs";
|
|
22
46
|
export * from "./MurfTtsParams.mjs";
|
|
47
|
+
export * from "./OpenAiAsr.mjs";
|
|
48
|
+
export * from "./OpenAiAsrParams.mjs";
|
|
49
|
+
export * from "./OpenAiInputAudioTranscription.mjs";
|
|
23
50
|
export * from "./OpenAiTts.mjs";
|
|
24
51
|
export * from "./OpenAiTtsParams.mjs";
|
|
25
52
|
export * from "./RimeTts.mjs";
|
|
26
53
|
export * from "./RimeTtsParams.mjs";
|
|
54
|
+
export * from "./SarvamAsr.mjs";
|
|
55
|
+
export * from "./SarvamAsrParams.mjs";
|
|
27
56
|
export * from "./SarvamTts.mjs";
|
|
28
57
|
export * from "./SarvamTtsParams.mjs";
|
|
58
|
+
export * from "./SpeechmaticsAsr.mjs";
|
|
59
|
+
export * from "./SpeechmaticsAsrParams.mjs";
|
|
29
60
|
export * from "./TelephonyErrorResponse.mjs";
|
|
30
61
|
export * from "./Tts.mjs";
|
|
@@ -1,30 +1,61 @@
|
|
|
1
1
|
export * from "./AgentErrorResponse.mjs";
|
|
2
|
+
export * from "./AmazonAsr.mjs";
|
|
3
|
+
export * from "./AmazonAsrParams.mjs";
|
|
2
4
|
export * from "./AmazonTts.mjs";
|
|
3
5
|
export * from "./AmazonTtsParams.mjs";
|
|
6
|
+
export * from "./AresAsr.mjs";
|
|
7
|
+
export * from "./AresAsrParams.mjs";
|
|
8
|
+
export * from "./Asr.mjs";
|
|
9
|
+
export * from "./AsrLanguage.mjs";
|
|
10
|
+
export * from "./AssemblyAiAsr.mjs";
|
|
11
|
+
export * from "./AssemblyAiAsrParams.mjs";
|
|
4
12
|
export * from "./CartesiaTts.mjs";
|
|
13
|
+
export * from "./CartesiaTtsOutputFormat.mjs";
|
|
5
14
|
export * from "./CartesiaTtsParams.mjs";
|
|
6
15
|
export * from "./CartesiaTtsVoice.mjs";
|
|
16
|
+
export * from "./DeepgramAsr.mjs";
|
|
17
|
+
export * from "./DeepgramAsrParams.mjs";
|
|
7
18
|
export * from "./DeepgramTts.mjs";
|
|
8
19
|
export * from "./DeepgramTtsParams.mjs";
|
|
9
20
|
export * from "./ElevenLabsTts.mjs";
|
|
10
21
|
export * from "./ElevenLabsTtsParams.mjs";
|
|
11
22
|
export * from "./FishAudioTts.mjs";
|
|
12
23
|
export * from "./FishAudioTtsParams.mjs";
|
|
24
|
+
export * from "./GoogleAsr.mjs";
|
|
25
|
+
export * from "./GoogleAsrParams.mjs";
|
|
13
26
|
export * from "./GoogleTts.mjs";
|
|
27
|
+
export * from "./GoogleTtsAudioConfig.mjs";
|
|
14
28
|
export * from "./GoogleTtsParams.mjs";
|
|
29
|
+
export * from "./GoogleTtsVoiceSelectionParams.mjs";
|
|
15
30
|
export * from "./HumeAiTts.mjs";
|
|
16
31
|
export * from "./HumeAiTtsParams.mjs";
|
|
32
|
+
export * from "./Llm.mjs";
|
|
33
|
+
export * from "./LlmParams.mjs";
|
|
34
|
+
export * from "./MicrosoftAsr.mjs";
|
|
35
|
+
export * from "./MicrosoftAsrParams.mjs";
|
|
17
36
|
export * from "./MicrosoftTts.mjs";
|
|
18
37
|
export * from "./MicrosoftTtsParams.mjs";
|
|
19
38
|
export * from "./MinimaxTts.mjs";
|
|
20
39
|
export * from "./MinimaxTtsParams.mjs";
|
|
40
|
+
export * from "./Mllm.mjs";
|
|
41
|
+
export * from "./MllmHttpOptions.mjs";
|
|
42
|
+
export * from "./MllmInputAudioTranscription.mjs";
|
|
43
|
+
export * from "./MllmParams.mjs";
|
|
44
|
+
export * from "./MllmTurnDetection.mjs";
|
|
21
45
|
export * from "./MurfTts.mjs";
|
|
22
46
|
export * from "./MurfTtsParams.mjs";
|
|
47
|
+
export * from "./OpenAiAsr.mjs";
|
|
48
|
+
export * from "./OpenAiAsrParams.mjs";
|
|
49
|
+
export * from "./OpenAiInputAudioTranscription.mjs";
|
|
23
50
|
export * from "./OpenAiTts.mjs";
|
|
24
51
|
export * from "./OpenAiTtsParams.mjs";
|
|
25
52
|
export * from "./RimeTts.mjs";
|
|
26
53
|
export * from "./RimeTtsParams.mjs";
|
|
54
|
+
export * from "./SarvamAsr.mjs";
|
|
55
|
+
export * from "./SarvamAsrParams.mjs";
|
|
27
56
|
export * from "./SarvamTts.mjs";
|
|
28
57
|
export * from "./SarvamTtsParams.mjs";
|
|
58
|
+
export * from "./SpeechmaticsAsr.mjs";
|
|
59
|
+
export * from "./SpeechmaticsAsrParams.mjs";
|
|
29
60
|
export * from "./TelephonyErrorResponse.mjs";
|
|
30
61
|
export * from "./Tts.mjs";
|
package/dist/esm/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type { AgoraAuthMode } from "./AgoraPoolClient.mjs";
|
|
2
2
|
export { AgoraClient } from "./AgoraPoolClient.mjs";
|
|
3
|
-
export type { AdvancedFeatures, AgentConfig, AgentConfigUpdate, AgentOptions, AgentSessionEvent, AgentSessionEventHandler, AgentSessionOptions, AgentsClient, AkoolAvatarConfig, AkoolAvatarOptions, AkoolSampleRate, AmazonBedrockOptions, AmazonSTTOptions, AmazonTTSOptions, AmazonTts, AmazonTtsParams, AnamAvatarConfig, AnamAvatarOptions, AnthropicOptions, AresSTTOptions, AsrConfig, AssemblyAISTTOptions, AvatarConfig, AvatarVendor, AzureOpenAIOptions, CartesiaSampleRate, CartesiaTTSOptions, CartesiaTts, CartesiaTtsParams, ConversationHistory, ConversationRole, ConversationSessionTurn, ConversationTurn, ConversationTurns, CustomLLMOptions, DeepgramSTTOptions, DeepgramTTSOptions, DifyOptions, Eagerness, ElevenLabsSampleRate, ElevenLabsTTSOptions, ElevenLabsTts, ElevenLabsTtsParams, EndOfSpeechConfig, EndOfSpeechMode, EndOfSpeechSemanticConfig, EndOfSpeechVadConfig, FarewellConfig, FillerWordsConfig, FillerWordsContent, FillerWordsContentSelectionRule, FillerWordsContentStaticConfig, FillerWordsTrigger, FillerWordsTriggerFixedTimeConfig, FishAudioTTSOptions, FishAudioTts, FishAudioTtsParams, GeminiLiveOptions, GeminiOptions, GenerateConvoAITokenOptions, GenerateTokenOptions, GenericAvatarConfig, GenericAvatarOptions, GeofenceArea, GeofenceConfig, GeofenceExcludeArea, GetTurnsOptions, GoogleSTTOptions, GoogleTTSOptions, GoogleTts, GoogleTtsParams, GroqOptions, HeyGenAvatarConfig, HeyGenAvatarOptions, HeyGenSampleRate, HumeAITTSOptions, HumeAiTts, HumeAiTtsParams, InterruptionConfig, InterruptionMode, InterruptMode, Labels, LiveAvatarAvatarConfig, LiveAvatarAvatarOptions, LiveAvatarSampleRate, LlmConfig, LlmGreetingConfigs, LlmGreetingConfigsMode, LlmStyle, McpServersItem, MicrosoftSampleRate, MicrosoftSTTOptions, MicrosoftTTSOptions, MicrosoftTts, MicrosoftTtsParams, MiniMaxTTSOptions, MinimaxTts, MinimaxTtsParams, MllmConfig, MllmTurnDetectionConfig, MllmTurnDetectionMode, MllmVendor, MurfTTSOptions, MurfTts, MurfTtsParams, OpenAIOptions, OpenAIRealtimeOptions, OpenAISTTOptions, OpenAITTSOptions, OpenAiTts, OpenAiTtsParams, ParametersAudioScenario, ParametersDataChannel, RimeTTSOptions, RimeTts, RimeTtsParams, RtcConfig, SalConfig, SalMode, SampleRate, SarvamSTTOptions, SarvamTTSOptions, SarvamTts, SarvamTtsParams, SayOptions, SessionInfo, SessionListResponse, SessionOptions, SessionParams, SessionParamsInput, SessionStatus, SessionSummary, SilenceAction, SilenceConfig, SpeakPriority, SpeechmaticsSTTOptions, StartOfSpeechConfig, StartOfSpeechDisabledConfig, StartOfSpeechDisabledConfigStrategy, StartOfSpeechKeywordsConfig, StartOfSpeechMode, StartOfSpeechVadConfig, StrictAvatarConfig, SttConfig, SttVendor, ThinkOnListeningAction, ThinkOnSpeakingAction, ThinkOnThinkingAction, ThinkOptions, ThinkResponse, TtsConfig, TurnDetectionConfig, TurnDetectionNestedConfig, TurnDetectionType, VertexAILLMOptions, VertexAIOptions, XaiGrokOptions, } from "./agentkit/index.mjs";
|
|
3
|
+
export type { AdvancedFeatures, AgentConfig, AgentConfigUpdate, AgentOptions, AgentSessionEvent, AgentSessionEventHandler, AgentSessionOptions, AgentsClient, AkoolAvatarConfig, AkoolAvatarOptions, AkoolSampleRate, AmazonBedrockOptions, AmazonSTTOptions, AmazonTTSOptions, AmazonTts, AmazonTtsParams, AnamAvatarConfig, AnamAvatarOptions, AnthropicOptions, AresSTTOptions, AsrConfig, AssemblyAISTTOptions, AvatarConfig, AvatarVendor, AzureOpenAIOptions, CartesiaSampleRate, CartesiaTTSOptions, CartesiaTts, CartesiaTtsParams, ConversationHistory, ConversationRole, ConversationSessionTurn, ConversationTurn, ConversationTurns, CustomLLMOptions, DeepgramSTTOptions, DeepgramTTSOptions, DifyOptions, Eagerness, ElevenLabsSampleRate, ElevenLabsTTSOptions, ElevenLabsTts, ElevenLabsTtsParams, EndOfSpeechConfig, EndOfSpeechMode, EndOfSpeechSemanticConfig, EndOfSpeechVadConfig, FarewellConfig, FillerWordsConfig, FillerWordsContent, FillerWordsContentSelectionRule, FillerWordsContentStaticConfig, FillerWordsTrigger, FillerWordsTriggerFixedTimeConfig, FishAudioTTSOptions, FishAudioTts, FishAudioTtsParams, GeminiLiveOptions, GeminiOptions, GenerateConvoAITokenOptions, GenerateTokenOptions, GenericAvatarConfig, GenericAvatarOptions, GeofenceArea, GeofenceConfig, GeofenceExcludeArea, GetTurnsOptions, GoogleSTTOptions, GoogleTTSOptions, GoogleTts, GoogleTtsParams, GroqOptions, HeyGenAvatarConfig, HeyGenAvatarOptions, HeyGenSampleRate, HumeAITTSOptions, HumeAiTts, HumeAiTtsParams, InterruptionConfig, InterruptionMode, InterruptMode, Labels, LiveAvatarAvatarConfig, LiveAvatarAvatarOptions, LiveAvatarSampleRate, LlmConfig, LlmGreetingConfigs, LlmGreetingConfigsMode, LlmStyle, McpServersItem, MicrosoftSampleRate, MicrosoftSTTOptions, MicrosoftTTSOptions, MicrosoftTts, MicrosoftTtsParams, MiniMaxTTSOptions, MinimaxTts, MinimaxTtsParams, MllmConfig, MllmTurnDetectionConfig, MllmTurnDetectionMode, MllmVendor, MurfTTSOptions, MurfTts, MurfTtsParams, OpenAIOptions, OpenAIRealtimeOptions, OpenAISTTOptions, OpenAITTSOptions, OpenAiTts, OpenAiTtsParams, ParametersAudioScenario, ParametersDataChannel, RimeTTSOptions, RimeTts, RimeTtsParams, RtcConfig, SalConfig, SalMode, SampleRate, SarvamSTTOptions, SarvamTTSOptions, SarvamTts, SarvamTtsParams, SayOptions, SessionInfo, SessionListResponse, SessionOptions, SessionParams, SessionParamsInput, SessionStatus, SessionSummary, SilenceAction, SilenceConfig, SpeakPriority, SpeechmaticsSTTOptions, StartOfSpeechConfig, StartOfSpeechDisabledConfig, StartOfSpeechDisabledConfigStrategy, StartOfSpeechKeywordsConfig, StartOfSpeechMode, StartOfSpeechVadConfig, StrictAvatarConfig, SttConfig, SttVendor, ThinkOnListeningAction, ThinkOnSpeakingAction, ThinkOnThinkingAction, ThinkOptions, ThinkResponse, TtsConfig, TurnDetectionConfig, TurnDetectionLanguage, TurnDetectionNestedConfig, TurnDetectionType, VertexAILLMOptions, VertexAIOptions, XaiGrokOptions, } from "./agentkit/index.mjs";
|
|
4
4
|
export { Agent, AgentPresets, AgentSession, AkoolAvatar, AmazonBedrock, AmazonSTT, AmazonTTS, AnamAvatar, Anthropic, AresSTT, AssemblyAISTT, AudioScenario, AzureOpenAI, BaseAvatar, BaseLLM, BaseMLLM, BaseSTT, BaseTTS, CartesiaTTS, CustomLLM, DataChannel, DeepgramSTT, DeepgramTTS, Dify, ElevenLabsTTS, ExpiresIn, FillerWordsSelectionRule, FishAudioTTS, Gemini, GeminiLive, GenericAvatar, Geofence, GoogleSTT, GoogleTTS, Groq, generateConvoAIToken, generateRtcToken, HeyGenAvatar, HumeAITTS, InterruptionDisabledStrategy, InterruptionDisabledStrategyAppend, InterruptionDisabledStrategyIgnore, InterruptionModeKeywords, InterruptionModeStartOfSpeech, InterruptionModeValues, isAkoolAvatar, isAnamAvatar, isAvatarTokenManaged, isGenericAvatar, isHeyGenAvatar, isLiveAvatarAvatar, LiveAvatarAvatar, MAX_EXPIRY_SECONDS, MicrosoftSTT, MicrosoftTTS, MiniMaxTTS, MllmTurnDetectionModeAgoraVad, MllmTurnDetectionModeSemanticVad, MllmTurnDetectionModeServerVad, MllmTurnDetectionModeValues, MurfTTS, normalizePresetInput, OpenAI, OpenAIRealtime, OpenAISTT, OpenAITTS, RimeTTS, SalModeValues, SarvamSTT, SarvamTTS, SilenceActionValues, SpeakPriorityAppend, SpeakPriorityIgnore, SpeakPriorityInterrupt, SpeakPriorityValues, SpeechmaticsSTT, ThinkOnListeningActionIgnore, ThinkOnListeningActionInject, ThinkOnListeningActionInterrupt, ThinkOnSpeakingActionIgnore, ThinkOnSpeakingActionInterrupt, ThinkOnThinkingActionIgnore, ThinkOnThinkingActionInterrupt, TurnDetectionTypeValues, toBaseAvatarConfig, VertexAI, VertexAILLM, validateAvatarConfig, validateTtsSampleRate, XaiGrok, } from "./agentkit/index.mjs";
|
|
5
5
|
export * as Agora from "./api/index.mjs";
|
|
6
6
|
export type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "v2.
|
|
1
|
+
export declare const SDK_VERSION = "v2.1.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "v2.
|
|
1
|
+
export const SDK_VERSION = "v2.1.0";
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agora-agents",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"private": false,
|
|
5
|
-
"repository": "github:AgoraIO
|
|
5
|
+
"repository": "github:AgoraIO/agora-agents-ts",
|
|
6
6
|
"type": "commonjs",
|
|
7
7
|
"main": "./dist/cjs/index.js",
|
|
8
8
|
"module": "./dist/esm/index.mjs",
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"check": "biome check --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
|
|
36
36
|
"check:fix": "biome check --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
|
|
37
37
|
"docs:check": "node scripts/docs-check.js",
|
|
38
|
+
"release:prepare": "node scripts/prepare-release.js",
|
|
38
39
|
"build": "rm -rf dist && pnpm build:cjs && pnpm build:esm",
|
|
39
40
|
"build:cjs": "tsc --project ./tsconfig.cjs.json",
|
|
40
41
|
"build:esm": "tsc --project ./tsconfig.esm.json && node scripts/rename-to-esm-files.js dist/esm && node scripts/verify-esm-imports.js dist/esm",
|