agora-agents 2.4.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/AgoraPoolClient.js +39 -1
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/agentkit/Agent.d.ts +4 -4
- package/dist/cjs/agentkit/Agent.js +2 -1
- package/dist/cjs/agentkit/__tests__/area-aware-vendors.test.js +30 -0
- package/dist/cjs/agentkit/constants.d.ts +6 -0
- package/dist/cjs/agentkit/constants.js +6 -1
- package/dist/cjs/agentkit/index.d.ts +9 -9
- package/dist/cjs/agentkit/index.js +10 -3
- package/dist/cjs/agentkit/region-vendors.d.ts +5 -2
- package/dist/cjs/agentkit/types.d.ts +9 -3
- package/dist/cjs/agentkit/vendors/base.d.ts +11 -1
- package/dist/cjs/agentkit/vendors/base.js +18 -2
- package/dist/cjs/agentkit/vendors/cn.d.ts +8 -0
- package/dist/cjs/agentkit/vendors/cn.js +9 -3
- package/dist/cjs/agentkit/vendors/mllm.d.ts +100 -2
- package/dist/cjs/agentkit/vendors/mllm.js +69 -2
- package/dist/cjs/agentkit/vendors/stt.d.ts +3 -1
- package/dist/cjs/agentkit/vendors/stt.js +7 -4
- package/dist/cjs/agentkit/vendors/tts.d.ts +100 -9
- package/dist/cjs/agentkit/vendors/tts.js +85 -12
- package/dist/cjs/api/types/AresAsrParams.d.ts +6 -1
- package/dist/cjs/api/types/AssemblyAiAsrParams.d.ts +1 -1
- package/dist/cjs/api/types/FengmingAsr.d.ts +1 -2
- package/dist/cjs/api/types/FengmingAsrParams.d.ts +9 -0
- package/dist/cjs/api/types/{GenericTts.d.ts → GenericHttpTts.d.ts} +3 -3
- package/dist/cjs/api/types/{GenericTtsParams.d.ts → GenericHttpTtsParams.d.ts} +3 -3
- package/dist/cjs/api/types/GenericHttpTtsParams.js +3 -0
- package/dist/cjs/api/types/GradiumTts.d.ts +9 -0
- package/dist/cjs/api/types/GradiumTts.js +3 -0
- package/dist/cjs/api/types/GradiumTtsParams.d.ts +17 -0
- package/dist/cjs/api/types/GradiumTtsParams.js +3 -0
- package/dist/cjs/api/types/MistralTts.d.ts +9 -0
- package/dist/cjs/api/types/MistralTts.js +3 -0
- package/dist/cjs/api/types/MistralTtsParams.d.ts +13 -0
- package/dist/cjs/api/types/MistralTtsParams.js +3 -0
- package/dist/cjs/api/types/Mllm.d.ts +4 -0
- package/dist/cjs/api/types/Mllm.js +2 -0
- package/dist/cjs/api/types/RimeTts.d.ts +10 -0
- package/dist/cjs/api/types/RimeTts.js +9 -0
- package/dist/cjs/api/types/RimeTtsParams.d.ts +2 -2
- package/dist/cjs/api/types/Tts.d.ts +12 -3
- package/dist/cjs/api/types/TypecastTts.d.ts +9 -0
- package/dist/cjs/api/types/TypecastTts.js +3 -0
- package/dist/cjs/api/types/TypecastTtsParams.d.ts +13 -0
- package/dist/cjs/api/types/TypecastTtsParams.js +3 -0
- package/dist/cjs/api/types/index.d.ts +9 -2
- package/dist/cjs/api/types/index.js +9 -2
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/index.js +10 -3
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/AgoraPoolClient.mjs +40 -2
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/agentkit/Agent.d.mts +4 -4
- package/dist/esm/agentkit/Agent.mjs +2 -1
- package/dist/esm/agentkit/__tests__/area-aware-vendors.test.mjs +31 -1
- package/dist/esm/agentkit/constants.d.mts +6 -0
- package/dist/esm/agentkit/constants.mjs +5 -0
- package/dist/esm/agentkit/index.d.mts +9 -9
- package/dist/esm/agentkit/index.mjs +4 -4
- package/dist/esm/agentkit/region-vendors.d.mts +5 -2
- package/dist/esm/agentkit/types.d.mts +9 -3
- package/dist/esm/agentkit/vendors/base.d.mts +11 -1
- package/dist/esm/agentkit/vendors/base.mjs +16 -1
- package/dist/esm/agentkit/vendors/cn.d.mts +8 -0
- package/dist/esm/agentkit/vendors/cn.mjs +9 -3
- package/dist/esm/agentkit/vendors/mllm.d.mts +100 -2
- package/dist/esm/agentkit/vendors/mllm.mjs +67 -2
- package/dist/esm/agentkit/vendors/stt.d.mts +3 -1
- package/dist/esm/agentkit/vendors/stt.mjs +7 -4
- package/dist/esm/agentkit/vendors/tts.d.mts +100 -9
- package/dist/esm/agentkit/vendors/tts.mjs +81 -11
- package/dist/esm/api/types/AresAsrParams.d.mts +6 -1
- package/dist/esm/api/types/AssemblyAiAsrParams.d.mts +1 -1
- package/dist/esm/api/types/FengmingAsr.d.mts +1 -2
- package/dist/esm/api/types/FengmingAsrParams.d.mts +9 -0
- package/dist/esm/api/types/{GenericTts.d.mts → GenericHttpTts.d.mts} +3 -3
- package/dist/esm/api/types/{GenericTtsParams.d.mts → GenericHttpTtsParams.d.mts} +3 -3
- package/dist/esm/api/types/GenericHttpTtsParams.mjs +2 -0
- package/dist/esm/api/types/GradiumTts.d.mts +9 -0
- package/dist/esm/api/types/GradiumTts.mjs +2 -0
- package/dist/esm/api/types/GradiumTtsParams.d.mts +17 -0
- package/dist/esm/api/types/GradiumTtsParams.mjs +2 -0
- package/dist/esm/api/types/MistralTts.d.mts +9 -0
- package/dist/esm/api/types/MistralTts.mjs +2 -0
- package/dist/esm/api/types/MistralTtsParams.d.mts +13 -0
- package/dist/esm/api/types/MistralTtsParams.mjs +2 -0
- package/dist/esm/api/types/Mllm.d.mts +4 -0
- package/dist/esm/api/types/Mllm.mjs +2 -0
- package/dist/esm/api/types/RimeTts.d.mts +10 -0
- package/dist/esm/api/types/RimeTts.mjs +8 -1
- package/dist/esm/api/types/RimeTtsParams.d.mts +2 -2
- package/dist/esm/api/types/Tts.d.mts +12 -3
- package/dist/esm/api/types/TypecastTts.d.mts +9 -0
- package/dist/esm/api/types/TypecastTts.mjs +2 -0
- package/dist/esm/api/types/TypecastTtsParams.d.mts +13 -0
- package/dist/esm/api/types/TypecastTtsParams.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +9 -2
- package/dist/esm/api/types/index.mjs +9 -2
- package/dist/esm/index.d.mts +2 -2
- package/dist/esm/index.mjs +6 -6
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- /package/dist/cjs/api/types/{GenericTts.js → FengmingAsrParams.js} +0 -0
- /package/dist/cjs/api/types/{GenericTtsParams.js → GenericHttpTts.js} +0 -0
- /package/dist/esm/api/types/{GenericTts.mjs → FengmingAsrParams.mjs} +0 -0
- /package/dist/esm/api/types/{GenericTtsParams.mjs → GenericHttpTts.mjs} +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Type-safe TTS (Text-to-Speech) vendor classes.
|
|
3
3
|
*/
|
|
4
|
+
import { CredentialMode } from "../constants.mjs";
|
|
4
5
|
import { MiniMaxPresetModels, OpenAITtsPresetModels, } from "../presets.mjs";
|
|
5
6
|
import { BaseTTS } from "./base.mjs";
|
|
6
7
|
function requireString(value, field, vendor) {
|
|
@@ -186,6 +187,44 @@ export class DeepgramTTS extends BaseTTS {
|
|
|
186
187
|
return Object.assign({ vendor: "deepgram", params: Object.assign(Object.assign(Object.assign({ api_key: apiKey, model }, additionalParams), (baseUrl && { base_url: baseUrl })), (sampleRate !== undefined && { sample_rate: sampleRate })) }, (skipPatterns && { skip_patterns: skipPatterns }));
|
|
187
188
|
}
|
|
188
189
|
}
|
|
190
|
+
/** Gradium TTS vendor. */
|
|
191
|
+
export class GradiumTTS extends BaseTTS {
|
|
192
|
+
constructor(options) {
|
|
193
|
+
super();
|
|
194
|
+
requireString(options.apiKey, "apiKey", "GradiumTTS");
|
|
195
|
+
this.options = options;
|
|
196
|
+
}
|
|
197
|
+
toConfig() {
|
|
198
|
+
const { apiKey, url, modelName, voiceId, sampleRate, additionalParams, skipPatterns } = this.options;
|
|
199
|
+
return Object.assign({ vendor: "gradium", params: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, additionalParams), { api_key: apiKey }), (url !== undefined && { url })), (modelName !== undefined && { model_name: modelName })), (voiceId !== undefined && { voice_id: voiceId })), (sampleRate !== undefined && { sample_rate: sampleRate })) }, (skipPatterns && { skip_patterns: skipPatterns }));
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
/** Mistral TTS vendor. */
|
|
203
|
+
export class MistralTTS extends BaseTTS {
|
|
204
|
+
constructor(options) {
|
|
205
|
+
super();
|
|
206
|
+
requireString(options.apiKey, "apiKey", "MistralTTS");
|
|
207
|
+
this.options = options;
|
|
208
|
+
}
|
|
209
|
+
toConfig() {
|
|
210
|
+
const { apiKey, model, voice, additionalParams, skipPatterns } = this.options;
|
|
211
|
+
return Object.assign({ vendor: "mistral", params: Object.assign(Object.assign(Object.assign(Object.assign({}, additionalParams), { api_key: apiKey }), (model !== undefined && { model })), (voice !== undefined && { voice })) }, (skipPatterns && { skip_patterns: skipPatterns }));
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
/** Typecast TTS vendor. */
|
|
215
|
+
export class TypecastTTS extends BaseTTS {
|
|
216
|
+
constructor(options) {
|
|
217
|
+
super();
|
|
218
|
+
requireString(options.apiKey, "apiKey", "TypecastTTS");
|
|
219
|
+
requireString(options.voiceId, "voiceId", "TypecastTTS");
|
|
220
|
+
requireString(options.model, "model", "TypecastTTS");
|
|
221
|
+
this.options = options;
|
|
222
|
+
}
|
|
223
|
+
toConfig() {
|
|
224
|
+
const { apiKey, voiceId, model, additionalParams, skipPatterns } = this.options;
|
|
225
|
+
return Object.assign({ vendor: "typecast", params: Object.assign(Object.assign({}, additionalParams), { api_key: apiKey, voice_id: voiceId, model }) }, (skipPatterns && { skip_patterns: skipPatterns }));
|
|
226
|
+
}
|
|
227
|
+
}
|
|
189
228
|
/**
|
|
190
229
|
* Hume AI TTS vendor.
|
|
191
230
|
*
|
|
@@ -212,8 +251,19 @@ export class HumeAITTS extends BaseTTS {
|
|
|
212
251
|
* Rime TTS vendor.
|
|
213
252
|
*
|
|
214
253
|
* @example
|
|
254
|
+
* Agora-managed credentials:
|
|
255
|
+
* ```typescript
|
|
256
|
+
* const managedTts = new RimeTTS({
|
|
257
|
+
* credentialMode: CredentialMode.Managed,
|
|
258
|
+
* baseUrl: 'wss://users.rime.ai/ws',
|
|
259
|
+
* modelId: 'mist',
|
|
260
|
+
* });
|
|
261
|
+
* ```
|
|
262
|
+
*
|
|
263
|
+
* @example
|
|
264
|
+
* Bring your own credentials (the default mode):
|
|
215
265
|
* ```typescript
|
|
216
|
-
* const
|
|
266
|
+
* const byokTts = new RimeTTS({
|
|
217
267
|
* key: process.env.RIME_API_KEY,
|
|
218
268
|
* speaker: 'speaker-id',
|
|
219
269
|
* modelId: 'mist',
|
|
@@ -223,12 +273,23 @@ export class HumeAITTS extends BaseTTS {
|
|
|
223
273
|
export class RimeTTS extends BaseTTS {
|
|
224
274
|
constructor(options) {
|
|
225
275
|
super();
|
|
276
|
+
requireString(options.modelId, "modelId", "RimeTTS");
|
|
277
|
+
if (options.credentialMode === CredentialMode.Managed) {
|
|
278
|
+
requireString(options.baseUrl, "baseUrl", "RimeTTS");
|
|
279
|
+
}
|
|
280
|
+
else {
|
|
281
|
+
requireString(options.key, "key", "RimeTTS");
|
|
282
|
+
requireString(options.speaker, "speaker", "RimeTTS");
|
|
283
|
+
}
|
|
226
284
|
this.options = options;
|
|
227
285
|
}
|
|
228
286
|
toConfig() {
|
|
229
|
-
const { key, speaker, modelId, baseUrl, skipPatterns } = this.options;
|
|
230
|
-
|
|
231
|
-
|
|
287
|
+
const { key, speaker, modelId, baseUrl, skipPatterns, credentialMode } = this.options;
|
|
288
|
+
if (credentialMode === CredentialMode.Managed) {
|
|
289
|
+
return Object.assign({ vendor: "rime", credential_mode: CredentialMode.Managed, params: Object.assign(Object.assign({ modelId, base_url: baseUrl }, (key !== undefined && { api_key: key })), (speaker !== undefined && { speaker })) }, (skipPatterns && { skip_patterns: skipPatterns }));
|
|
290
|
+
}
|
|
291
|
+
return Object.assign(Object.assign(Object.assign({ vendor: "rime" }, (credentialMode !== undefined && { credential_mode: credentialMode })), { params: Object.assign({ api_key: key, speaker,
|
|
292
|
+
modelId }, (baseUrl && { base_url: baseUrl })) }), (skipPatterns && { skip_patterns: skipPatterns }));
|
|
232
293
|
}
|
|
233
294
|
}
|
|
234
295
|
/**
|
|
@@ -333,23 +394,32 @@ export class MurfTTS extends BaseTTS {
|
|
|
333
394
|
return Object.assign({ vendor: "murf", params: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ api_key: key }, (baseUrl && { base_url: baseUrl })), (voiceId && { voiceId })), (locale && { locale })), (rate !== undefined && { rate })), (pitch !== undefined && { pitch })), (model && { model })), (sampleRate !== undefined && { sample_rate: sampleRate })) }, (skipPatterns && { skip_patterns: skipPatterns }));
|
|
334
395
|
}
|
|
335
396
|
}
|
|
397
|
+
function requireGenericTtsHttpUrl(url) {
|
|
398
|
+
requireString(url, "url", "GenericTTS");
|
|
399
|
+
let protocol;
|
|
400
|
+
try {
|
|
401
|
+
protocol = new URL(url).protocol;
|
|
402
|
+
}
|
|
403
|
+
catch (_a) {
|
|
404
|
+
throw new Error("GenericTTS requires url to be a valid absolute URL");
|
|
405
|
+
}
|
|
406
|
+
if (protocol === "http:" || protocol === "https:") {
|
|
407
|
+
return;
|
|
408
|
+
}
|
|
409
|
+
throw new Error(`GenericTTS does not support the ${protocol} protocol`);
|
|
410
|
+
}
|
|
336
411
|
/**
|
|
337
412
|
* Generic OpenAI-compatible TTS vendor.
|
|
338
413
|
*/
|
|
339
414
|
export class GenericTTS extends BaseTTS {
|
|
340
415
|
constructor(options) {
|
|
341
416
|
super();
|
|
342
|
-
|
|
343
|
-
requireRecord(options.headers, "headers", "GenericTTS");
|
|
344
|
-
requireString(options.model, "model", "GenericTTS");
|
|
345
|
-
requireString(options.voice, "voice", "GenericTTS");
|
|
417
|
+
requireGenericTtsHttpUrl(options.url);
|
|
346
418
|
this.options = options;
|
|
347
419
|
}
|
|
348
420
|
toConfig() {
|
|
349
421
|
const { url, headers, apiKey, model, voice, speed, sampleRate, responseFormat, instruction, additionalParams, skipPatterns, } = this.options;
|
|
350
|
-
return Object.assign({ vendor: "
|
|
351
|
-
headers, params: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, additionalParams), (apiKey !== undefined && { api_key: apiKey })), { model,
|
|
352
|
-
voice }), (speed !== undefined && { speed })), (sampleRate !== undefined && { sample_rate: sampleRate })), (responseFormat !== undefined && { response_format: responseFormat })), (instruction !== undefined && { instruction })) }, (skipPatterns && { skip_patterns: skipPatterns }));
|
|
422
|
+
return Object.assign(Object.assign(Object.assign({ vendor: "generic_http", url }, (headers && { headers })), { params: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, additionalParams), (apiKey !== undefined && { api_key: apiKey })), (model !== undefined && { model })), (voice !== undefined && { voice })), (speed !== undefined && { speed })), (sampleRate !== undefined && { sample_rate: sampleRate })), (responseFormat !== undefined && { response_format: responseFormat })), (instruction !== undefined && { instruction })) }), (skipPatterns && { skip_patterns: skipPatterns }));
|
|
353
423
|
}
|
|
354
424
|
}
|
|
355
425
|
/**
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ARES ASR configuration parameters.
|
|
3
3
|
*/
|
|
4
|
-
export
|
|
4
|
+
export interface AresAsrParams {
|
|
5
|
+
/** A list of hotwords to improve ASR accuracy. */
|
|
6
|
+
keywords?: string[];
|
|
7
|
+
/** Accepts any additional properties */
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}
|
|
@@ -7,7 +7,7 @@ export interface AssemblyAiAsrParams {
|
|
|
7
7
|
/** Language code for speech recognition */
|
|
8
8
|
language: string;
|
|
9
9
|
/** WebSocket URL for AssemblyAI's streaming API */
|
|
10
|
-
|
|
10
|
+
ws_url?: string | null;
|
|
11
11
|
/** Accepts any additional properties */
|
|
12
12
|
[key: string]: any;
|
|
13
13
|
}
|
|
@@ -4,8 +4,7 @@ import type * as Agora from "../index.mjs";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface FengmingAsr {
|
|
6
6
|
language?: Agora.AsrLanguage;
|
|
7
|
-
|
|
8
|
-
params?: Record<string, unknown>;
|
|
7
|
+
params?: Agora.FengmingAsrParams;
|
|
9
8
|
/** Accepts any additional properties */
|
|
10
9
|
[key: string]: any;
|
|
11
10
|
}
|
|
@@ -2,12 +2,12 @@ import type * as Agora from "../index.mjs";
|
|
|
2
2
|
/**
|
|
3
3
|
* Generic OpenAI-compatible Text-to-Speech configuration.
|
|
4
4
|
*/
|
|
5
|
-
export interface
|
|
5
|
+
export interface GenericHttpTts {
|
|
6
6
|
/** Callback address of the generic TTS service. */
|
|
7
7
|
url: string;
|
|
8
8
|
/** Custom headers to include in requests to the generic TTS service. */
|
|
9
|
-
headers
|
|
10
|
-
params: Agora.
|
|
9
|
+
headers?: Record<string, string>;
|
|
10
|
+
params: Agora.GenericHttpTtsParams;
|
|
11
11
|
/** Controls whether the TTS module skips bracketed content when reading LLM response text. */
|
|
12
12
|
skip_patterns?: number[];
|
|
13
13
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generic TTS configuration parameters.
|
|
3
3
|
*/
|
|
4
|
-
export interface
|
|
4
|
+
export interface GenericHttpTtsParams {
|
|
5
5
|
/** API key for the generic TTS service. */
|
|
6
6
|
api_key?: string;
|
|
7
7
|
/** TTS model name. */
|
|
8
|
-
model
|
|
8
|
+
model?: string;
|
|
9
9
|
/** Voice name. */
|
|
10
|
-
voice
|
|
10
|
+
voice?: string;
|
|
11
11
|
/** Speech rate. */
|
|
12
12
|
speed?: number;
|
|
13
13
|
/** Output audio sample rate in Hz. */
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as Agora from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Gradium Text-to-Speech configuration.
|
|
4
|
+
*/
|
|
5
|
+
export interface GradiumTts {
|
|
6
|
+
params: Agora.GradiumTtsParams;
|
|
7
|
+
/** Controls whether the TTS module skips bracketed content when reading LLM response text. */
|
|
8
|
+
skip_patterns?: number[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Gradium TTS configuration parameters.
|
|
3
|
+
*/
|
|
4
|
+
export interface GradiumTtsParams {
|
|
5
|
+
/** Gradium API key. */
|
|
6
|
+
api_key: string;
|
|
7
|
+
/** WebSocket endpoint for streaming TTS output (for example, "wss://api.gradium.ai/api/speech/tts"). */
|
|
8
|
+
url?: string;
|
|
9
|
+
/** Gradium TTS model name (for example, "default"). */
|
|
10
|
+
model_name?: string;
|
|
11
|
+
/** Gradium voice identifier. */
|
|
12
|
+
voice_id?: string;
|
|
13
|
+
/** Audio sample rate in Hz (for example, 16000). */
|
|
14
|
+
sample_rate?: number;
|
|
15
|
+
/** Accepts any additional properties */
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as Agora from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Mistral Text-to-Speech configuration.
|
|
4
|
+
*/
|
|
5
|
+
export interface MistralTts {
|
|
6
|
+
params: Agora.MistralTtsParams;
|
|
7
|
+
/** Controls whether the TTS module skips bracketed content when reading LLM response text. */
|
|
8
|
+
skip_patterns?: number[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mistral TTS configuration parameters.
|
|
3
|
+
*/
|
|
4
|
+
export interface MistralTtsParams {
|
|
5
|
+
/** Mistral API key. */
|
|
6
|
+
api_key: string;
|
|
7
|
+
/** Mistral TTS model name (for example, "voxtral-mini-tts-2603"). */
|
|
8
|
+
model?: string;
|
|
9
|
+
/** Mistral voice identifier. */
|
|
10
|
+
voice?: string;
|
|
11
|
+
/** Accepts any additional properties */
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}
|
|
@@ -18,6 +18,8 @@ export interface Mllm {
|
|
|
18
18
|
/** Array of conversation items used for short-term memory management. */
|
|
19
19
|
messages?: Record<string, unknown>[] | null;
|
|
20
20
|
params?: Agora.MllmParams;
|
|
21
|
+
/** The number of conversation history messages cached in the MLLM. Applicable to Azure OpenAI Realtime API only. */
|
|
22
|
+
max_history?: number;
|
|
21
23
|
/** MLLM input modalities. */
|
|
22
24
|
input_modalities?: string[] | null;
|
|
23
25
|
/** MLLM output modalities. */
|
|
@@ -36,9 +38,11 @@ export declare namespace Mllm {
|
|
|
36
38
|
/** MLLM provider. */
|
|
37
39
|
const Vendor: {
|
|
38
40
|
readonly Openai: "openai";
|
|
41
|
+
readonly Azure: "azure";
|
|
39
42
|
readonly Gemini: "gemini";
|
|
40
43
|
readonly Vertexai: "vertexai";
|
|
41
44
|
readonly Xai: "xai";
|
|
45
|
+
readonly QwenOmni: "qwen_omni";
|
|
42
46
|
};
|
|
43
47
|
type Vendor = (typeof Vendor)[keyof typeof Vendor];
|
|
44
48
|
}
|
|
@@ -3,7 +3,17 @@ import type * as Agora from "../index.mjs";
|
|
|
3
3
|
* Rime Text-to-Speech configuration (Beta).
|
|
4
4
|
*/
|
|
5
5
|
export interface RimeTts {
|
|
6
|
+
/** Credential mode. When provided, must be "managed" (Agora managed mode) or "byok" (BYOK mode). */
|
|
7
|
+
credential_mode?: RimeTts.CredentialMode;
|
|
6
8
|
params: Agora.RimeTtsParams;
|
|
7
9
|
/** Controls whether the TTS module skips bracketed content when reading LLM response text. */
|
|
8
10
|
skip_patterns?: number[];
|
|
9
11
|
}
|
|
12
|
+
export declare namespace RimeTts {
|
|
13
|
+
/** Credential mode. When provided, must be "managed" (Agora managed mode) or "byok" (BYOK mode). */
|
|
14
|
+
const CredentialMode: {
|
|
15
|
+
readonly Managed: "managed";
|
|
16
|
+
readonly Byok: "byok";
|
|
17
|
+
};
|
|
18
|
+
type CredentialMode = (typeof CredentialMode)[keyof typeof CredentialMode];
|
|
19
|
+
}
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
export
|
|
2
|
+
export var RimeTts;
|
|
3
|
+
(function (RimeTts) {
|
|
4
|
+
/** Credential mode. When provided, must be "managed" (Agora managed mode) or "byok" (BYOK mode). */
|
|
5
|
+
RimeTts.CredentialMode = {
|
|
6
|
+
Managed: "managed",
|
|
7
|
+
Byok: "byok",
|
|
8
|
+
};
|
|
9
|
+
})(RimeTts || (RimeTts = {}));
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface RimeTtsParams {
|
|
5
5
|
/** Rime API key */
|
|
6
|
-
api_key
|
|
6
|
+
api_key?: string;
|
|
7
7
|
/** Rime speaker ID */
|
|
8
|
-
speaker
|
|
8
|
+
speaker?: string;
|
|
9
9
|
/** Rime TTS model ID */
|
|
10
10
|
modelId: string;
|
|
11
11
|
/** WebSocket URL for the Rime streaming API */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as Agora from "../index.mjs";
|
|
2
|
-
export type Tts = Agora.Tts.Tencent | Agora.Tts.Bytedance | Agora.Tts.Microsoft | Agora.Tts.Elevenlabs | Agora.Tts.Minimax | Agora.Tts.Murf | Agora.Tts.Cartesia | Agora.Tts.Openai | Agora.Tts.Humeai | Agora.Tts.Rime | Agora.Tts.Fishaudio | Agora.Tts.Google | Agora.Tts.Amazon | Agora.Tts.Sarvam | Agora.Tts.
|
|
2
|
+
export type Tts = Agora.Tts.Tencent | Agora.Tts.Bytedance | Agora.Tts.Microsoft | Agora.Tts.Elevenlabs | Agora.Tts.Minimax | Agora.Tts.Murf | Agora.Tts.Cartesia | Agora.Tts.Openai | Agora.Tts.Humeai | Agora.Tts.Rime | Agora.Tts.Fishaudio | Agora.Tts.Google | Agora.Tts.Amazon | Agora.Tts.Sarvam | Agora.Tts.GenericHttp | Agora.Tts.Xai | Agora.Tts.Deepgram | Agora.Tts.Cosyvoice | Agora.Tts.BytedanceDuplex | Agora.Tts.Stepfun | Agora.Tts.Gradium | Agora.Tts.Mistral | Agora.Tts.Typecast;
|
|
3
3
|
export declare namespace Tts {
|
|
4
4
|
interface Tencent extends Agora.TencentTts {
|
|
5
5
|
vendor: "tencent";
|
|
@@ -43,8 +43,8 @@ export declare namespace Tts {
|
|
|
43
43
|
interface Sarvam extends Agora.SarvamTts {
|
|
44
44
|
vendor: "sarvam";
|
|
45
45
|
}
|
|
46
|
-
interface
|
|
47
|
-
vendor: "
|
|
46
|
+
interface GenericHttp extends Agora.GenericHttpTts {
|
|
47
|
+
vendor: "generic_http";
|
|
48
48
|
}
|
|
49
49
|
interface Xai extends Agora.XAiTts {
|
|
50
50
|
vendor: "xai";
|
|
@@ -61,4 +61,13 @@ export declare namespace Tts {
|
|
|
61
61
|
interface Stepfun extends Agora.StepfunTts {
|
|
62
62
|
vendor: "stepfun";
|
|
63
63
|
}
|
|
64
|
+
interface Gradium extends Agora.GradiumTts {
|
|
65
|
+
vendor: "gradium";
|
|
66
|
+
}
|
|
67
|
+
interface Mistral extends Agora.MistralTts {
|
|
68
|
+
vendor: "mistral";
|
|
69
|
+
}
|
|
70
|
+
interface Typecast extends Agora.TypecastTts {
|
|
71
|
+
vendor: "typecast";
|
|
72
|
+
}
|
|
64
73
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as Agora from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Typecast Text-to-Speech configuration.
|
|
4
|
+
*/
|
|
5
|
+
export interface TypecastTts {
|
|
6
|
+
params: Agora.TypecastTtsParams;
|
|
7
|
+
/** Controls whether the TTS module skips bracketed content when reading LLM response text. */
|
|
8
|
+
skip_patterns?: number[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typecast TTS configuration parameters.
|
|
3
|
+
*/
|
|
4
|
+
export interface TypecastTtsParams {
|
|
5
|
+
/** Typecast API key. */
|
|
6
|
+
api_key: string;
|
|
7
|
+
/** Typecast voice identifier (for example, "tc_60e5426de8b95f1d3000d7b5"). */
|
|
8
|
+
voice_id: string;
|
|
9
|
+
/** Typecast TTS model name (for example, "ssfm-v30"). */
|
|
10
|
+
model: string;
|
|
11
|
+
/** Accepts any additional properties */
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}
|
|
@@ -26,16 +26,19 @@ export * from "./DeepgramTtsParams.mjs";
|
|
|
26
26
|
export * from "./ElevenLabsTts.mjs";
|
|
27
27
|
export * from "./ElevenLabsTtsParams.mjs";
|
|
28
28
|
export * from "./FengmingAsr.mjs";
|
|
29
|
+
export * from "./FengmingAsrParams.mjs";
|
|
29
30
|
export * from "./FishAudioTts.mjs";
|
|
30
31
|
export * from "./FishAudioTtsParams.mjs";
|
|
31
|
-
export * from "./
|
|
32
|
-
export * from "./
|
|
32
|
+
export * from "./GenericHttpTts.mjs";
|
|
33
|
+
export * from "./GenericHttpTtsParams.mjs";
|
|
33
34
|
export * from "./GoogleAsr.mjs";
|
|
34
35
|
export * from "./GoogleAsrParams.mjs";
|
|
35
36
|
export * from "./GoogleTts.mjs";
|
|
36
37
|
export * from "./GoogleTtsAudioConfig.mjs";
|
|
37
38
|
export * from "./GoogleTtsParams.mjs";
|
|
38
39
|
export * from "./GoogleTtsVoiceSelectionParams.mjs";
|
|
40
|
+
export * from "./GradiumTts.mjs";
|
|
41
|
+
export * from "./GradiumTtsParams.mjs";
|
|
39
42
|
export * from "./HumeAiTts.mjs";
|
|
40
43
|
export * from "./HumeAiTtsParams.mjs";
|
|
41
44
|
export * from "./Llm.mjs";
|
|
@@ -46,6 +49,8 @@ export * from "./MicrosoftTts.mjs";
|
|
|
46
49
|
export * from "./MicrosoftTtsParams.mjs";
|
|
47
50
|
export * from "./MinimaxTts.mjs";
|
|
48
51
|
export * from "./MinimaxTtsParams.mjs";
|
|
52
|
+
export * from "./MistralTts.mjs";
|
|
53
|
+
export * from "./MistralTtsParams.mjs";
|
|
49
54
|
export * from "./Mllm.mjs";
|
|
50
55
|
export * from "./MllmHttpOptions.mjs";
|
|
51
56
|
export * from "./MllmInputAudioTranscription.mjs";
|
|
@@ -76,6 +81,8 @@ export * from "./TencentAsrParams.mjs";
|
|
|
76
81
|
export * from "./TencentTts.mjs";
|
|
77
82
|
export * from "./TencentTtsParams.mjs";
|
|
78
83
|
export * from "./Tts.mjs";
|
|
84
|
+
export * from "./TypecastTts.mjs";
|
|
85
|
+
export * from "./TypecastTtsParams.mjs";
|
|
79
86
|
export * from "./XAiAsr.mjs";
|
|
80
87
|
export * from "./XAiAsrParams.mjs";
|
|
81
88
|
export * from "./XAiTts.mjs";
|
|
@@ -26,16 +26,19 @@ export * from "./DeepgramTtsParams.mjs";
|
|
|
26
26
|
export * from "./ElevenLabsTts.mjs";
|
|
27
27
|
export * from "./ElevenLabsTtsParams.mjs";
|
|
28
28
|
export * from "./FengmingAsr.mjs";
|
|
29
|
+
export * from "./FengmingAsrParams.mjs";
|
|
29
30
|
export * from "./FishAudioTts.mjs";
|
|
30
31
|
export * from "./FishAudioTtsParams.mjs";
|
|
31
|
-
export * from "./
|
|
32
|
-
export * from "./
|
|
32
|
+
export * from "./GenericHttpTts.mjs";
|
|
33
|
+
export * from "./GenericHttpTtsParams.mjs";
|
|
33
34
|
export * from "./GoogleAsr.mjs";
|
|
34
35
|
export * from "./GoogleAsrParams.mjs";
|
|
35
36
|
export * from "./GoogleTts.mjs";
|
|
36
37
|
export * from "./GoogleTtsAudioConfig.mjs";
|
|
37
38
|
export * from "./GoogleTtsParams.mjs";
|
|
38
39
|
export * from "./GoogleTtsVoiceSelectionParams.mjs";
|
|
40
|
+
export * from "./GradiumTts.mjs";
|
|
41
|
+
export * from "./GradiumTtsParams.mjs";
|
|
39
42
|
export * from "./HumeAiTts.mjs";
|
|
40
43
|
export * from "./HumeAiTtsParams.mjs";
|
|
41
44
|
export * from "./Llm.mjs";
|
|
@@ -46,6 +49,8 @@ export * from "./MicrosoftTts.mjs";
|
|
|
46
49
|
export * from "./MicrosoftTtsParams.mjs";
|
|
47
50
|
export * from "./MinimaxTts.mjs";
|
|
48
51
|
export * from "./MinimaxTtsParams.mjs";
|
|
52
|
+
export * from "./MistralTts.mjs";
|
|
53
|
+
export * from "./MistralTtsParams.mjs";
|
|
49
54
|
export * from "./Mllm.mjs";
|
|
50
55
|
export * from "./MllmHttpOptions.mjs";
|
|
51
56
|
export * from "./MllmInputAudioTranscription.mjs";
|
|
@@ -76,6 +81,8 @@ export * from "./TencentAsrParams.mjs";
|
|
|
76
81
|
export * from "./TencentTts.mjs";
|
|
77
82
|
export * from "./TencentTtsParams.mjs";
|
|
78
83
|
export * from "./Tts.mjs";
|
|
84
|
+
export * from "./TypecastTts.mjs";
|
|
85
|
+
export * from "./TypecastTtsParams.mjs";
|
|
79
86
|
export * from "./XAiAsr.mjs";
|
|
80
87
|
export * from "./XAiAsrParams.mjs";
|
|
81
88
|
export * from "./XAiTts.mjs";
|
package/dist/esm/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export type { AgoraAuthMode } from "./AgoraPoolClient.mjs";
|
|
2
2
|
export { AgoraClient } from "./AgoraPoolClient.mjs";
|
|
3
3
|
export type { AgoraArea, AreaScope, GlobalArea } from "./agentkit/area.mjs";
|
|
4
|
-
export type { AdvancedFeatures, AgentConfig, AgentConfigUpdate, AgentOptions, AgentPreset, AgentSessionEvent, AgentSessionEventHandler, AgentSessionOptions, AgentsClient, AkoolAvatarConfig, AkoolAvatarOptions, AkoolSampleRate, AliyunLLMOptions, AmazonBedrockOptions, AmazonSTTOptions, AmazonTTSOptions, AmazonTts, AmazonTtsParams, AnamAvatarConfig, AnamAvatarOptions, AnthropicOptions, AresSTTOptions, AsrConfig, AsrPreset, AsrVendorName, AssemblyAISTTOptions, AvatarConfig, AvatarVendor, AvatarWireVendor, AzureOpenAIOptions, BytedanceDuplexTTSOptions, BytedanceLLMOptions, BytedanceTTSOptions, CartesiaSampleRate, CartesiaTTSOptions, CartesiaTts, CartesiaTtsParams, CNAvatarVendor, CNLlmVendor, CNSttVendor, CNTtsVendor, ConversationHistory, ConversationRole, ConversationSessionTurn, ConversationTurn, ConversationTurns, CustomLLMOptions, DeepgramSTTOptions, DeepgramTTSOptions, DeepSeekLLMOptions, 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, GenericTTSOptions, GenericTts, GenericTtsParams, GeofenceArea, GeofenceConfig, GeofenceExcludeArea, GetTurnsOptions, GlobalAvatarVendor, GlobalLlmVendor, GlobalSttVendor, GlobalTtsVendor, GoogleSTTOptions, GoogleTTSOptions, GoogleTts, GoogleTtsParams, GroqOptions, HeyGenAvatarConfig, HeyGenAvatarOptions, HeyGenSampleRate, HumeAITTSOptions, HumeAiTts, HumeAiTtsParams, InterruptionConfig, InterruptionMode, InterruptMode, Labels, LiveAvatarAvatarConfig, LiveAvatarAvatarOptions, LiveAvatarSampleRate, LlmConfig, LlmGreetingConfigs, LlmGreetingConfigsMode, LlmPreset, LlmStyle, LlmVendor, McpServersItem, MicrosoftCNSampleRate, MicrosoftCNSTTOptions, MicrosoftCNTTSOptions, MicrosoftSampleRate, MicrosoftSTTOptions, MicrosoftTTSOptions, MicrosoftTts, MicrosoftTtsParams, MiniMaxCNTTSOptions, MiniMaxTTSOptions, MinimaxTts, MinimaxTtsParams, MllmConfig, MllmTurnDetectionConfig, MllmTurnDetectionMode, MllmVendor, MurfTTSOptions, MurfTts, MurfTtsParams, OpenAIOptions, OpenAIRealtimeOptions, OpenAISTTOptions, OpenAITTSOptions, OpenAiTts, OpenAiTtsParams, ParametersAudioScenario, ParametersDataChannel, PresetCategory, PresetInput, RimeTTSOptions, RimeTts, RimeTtsParams, RtcConfig, SalConfig, SalMode, SampleRate, SarvamSTTOptions, SarvamTTSOptions, SarvamTts, SarvamTtsParams, SayOptions, SensetimeAvatarConfig, SensetimeAvatarOptions, SessionInfo, SessionListResponse, SessionOptions, SessionParams, SessionParamsInput, SessionStatus, SessionSummary, SilenceAction, SilenceConfig, SpatiusAvatarConfig, SpatiusAvatarOptions, SpatiusAvatarParams, SpeakPriority, SpeechmaticsSTTOptions, StartOfSpeechConfig, StartOfSpeechDisabledConfig, StartOfSpeechDisabledConfigStrategy, StartOfSpeechKeywordsConfig, StartOfSpeechMode, StartOfSpeechVadConfig, StepFunTTSOptions, StrictAvatarConfig, SttConfig, SttVendor, TencentLLMOptions, TencentSTTOptions, TencentTTSOptions, ThinkOnListeningAction, ThinkOnSpeakingAction, ThinkOnThinkingAction, ThinkOptions, ThinkResponse, TtsConfig, TtsPreset, TtsVendor, TurnDetectionConfig, TurnDetectionLanguage, TurnDetectionNestedConfig, TurnDetectionType, VertexAILLMOptions, VertexAIOptions, XAiAsr, XAiAsrParams, XAiSTTOptions, XAiTTSOptions, XAiTts, XAiTtsParams, XaiGrokOptions, XfyunBigModelSTTOptions, XfyunDialectSTTOptions, XfyunSTTOptions, } from "./agentkit/index.mjs";
|
|
5
|
-
export { Agent, AgentPresets, AgentSession, AkoolAvatar, AliyunLLM, AmazonBedrock, AmazonSTT, AmazonTTS, AnamAvatar, Anthropic, AresSTT, AssemblyAISTT, AudioScenario, AzureOpenAI, BaseAvatar, BaseCNAvatar, BaseCNLLM, BaseCNSTT, BaseCNTTS, BaseLLM, BaseMLLM, BaseSTT, BaseTTS, BytedanceDuplexTTS, BytedanceLLM, BytedanceTTS, CartesiaTTS, CosyVoiceTTS, CustomLLM, DataChannel, DeepgramSTT, DeepgramTTS, DeepSeekLLM, Dify, ElevenLabsTTS, ExpiresIn, FengmingSTT, FillerWordsSelectionRule, FishAudioTTS, Gemini, GeminiLive, GenericAvatar, GenericTTS, Geofence, GoogleSTT, GoogleTTS, Groq, generateConvoAIToken, generateRtcToken, HeyGenAvatar, HumeAITTS, InterruptionDisabledStrategy, InterruptionDisabledStrategyAppend, InterruptionDisabledStrategyIgnore, InterruptionModeKeywords, InterruptionModeStartOfSpeech, InterruptionModeValues, isAkoolAvatar, isAnamAvatar, isAvatarTokenManaged, isGenericAvatar, isHeyGenAvatar, isLiveAvatarAvatar, isSensetimeAvatar, isSpatiusAvatar, LiveAvatarAvatar, MAX_EXPIRY_SECONDS, MicrosoftCNSTT, MicrosoftCNTTS, MicrosoftSTT, MicrosoftTTS, MiniMaxCNTTS, MiniMaxTTS, MllmTurnDetectionModeAgoraVad, MllmTurnDetectionModeSemanticVad, MllmTurnDetectionModeServerVad, MllmTurnDetectionModeValues, MurfTTS, normalizePresetInput, OpenAI, OpenAIRealtime, OpenAISTT, OpenAITTS, RimeTTS, SalModeValues, SarvamSTT, SarvamTTS, SensetimeAvatar, SilenceActionValues, SpatiusAvatar, SpeakPriorityAppend, SpeakPriorityIgnore, SpeakPriorityInterrupt, SpeakPriorityValues, SpeechmaticsSTT, StepFunTTS, TencentLLM, TencentSTT, TencentTTS, ThinkOnListeningActionIgnore, ThinkOnListeningActionInject, ThinkOnListeningActionInterrupt, ThinkOnSpeakingActionIgnore, ThinkOnSpeakingActionInterrupt, ThinkOnThinkingActionIgnore, ThinkOnThinkingActionInterrupt, TurnDetectionTypeValues, toBaseAvatarConfig, VertexAI, VertexAILLM, validateAvatarConfig, validateTtsSampleRate, XAiSTT, XAiTTS, XaiGrok, XfyunBigModelSTT, XfyunDialectSTT, XfyunSTT, } from "./agentkit/index.mjs";
|
|
4
|
+
export type { AdvancedFeatures, AgentConfig, AgentConfigUpdate, AgentOptions, AgentPreset, AgentSessionEvent, AgentSessionEventHandler, AgentSessionOptions, AgentsClient, AkoolAvatarConfig, AkoolAvatarOptions, AkoolSampleRate, AliyunLLMOptions, AmazonBedrockOptions, AmazonSTTOptions, AmazonTTSOptions, AmazonTts, AmazonTtsParams, AnamAvatarConfig, AnamAvatarOptions, AnthropicOptions, AresSTTOptions, AsrConfig, AsrPreset, AsrVendorName, AssemblyAISTTOptions, AvatarConfig, AvatarVendor, AvatarWireVendor, AzureOpenAIOptions, AzureOpenAIRealtimeOptions, AzureOpenAIRealtimeParams, BytedanceDuplexTTSOptions, BytedanceLLMOptions, BytedanceTTSOptions, CartesiaSampleRate, CartesiaTTSOptions, CartesiaTts, CartesiaTtsParams, CNAvatarVendor, CNLlmVendor, CNMllmVendor, CNSttVendor, CNTtsVendor, ConversationHistory, ConversationRole, ConversationSessionTurn, ConversationTurn, ConversationTurns, CustomLLMOptions, DeepgramSTTOptions, DeepgramTTSOptions, DeepSeekLLMOptions, DifyOptions, Eagerness, ElevenLabsSampleRate, ElevenLabsTTSOptions, ElevenLabsTts, ElevenLabsTtsParams, EndOfSpeechConfig, EndOfSpeechMode, EndOfSpeechSemanticConfig, EndOfSpeechVadConfig, FarewellConfig, FengmingSTTOptions, FillerWordsConfig, FillerWordsContent, FillerWordsContentSelectionRule, FillerWordsContentStaticConfig, FillerWordsTrigger, FillerWordsTriggerFixedTimeConfig, FishAudioTTSOptions, FishAudioTts, FishAudioTtsParams, GeminiLiveOptions, GeminiOptions, GenerateConvoAITokenOptions, GenerateTokenOptions, GenericAvatarConfig, GenericAvatarOptions, GenericTTSOptions, GenericTts, GenericTtsParams, GeofenceArea, GeofenceConfig, GeofenceExcludeArea, GetTurnsOptions, GlobalAvatarVendor, GlobalLlmVendor, GlobalMllmVendor, GlobalSttVendor, GlobalTtsVendor, GoogleSTTOptions, GoogleTTSOptions, GoogleTts, GoogleTtsParams, GradiumTTSOptions, GradiumTts, GradiumTtsParams, GroqOptions, HeyGenAvatarConfig, HeyGenAvatarOptions, HeyGenSampleRate, HumeAITTSOptions, HumeAiTts, HumeAiTtsParams, InterruptionConfig, InterruptionMode, InterruptMode, Labels, LiveAvatarAvatarConfig, LiveAvatarAvatarOptions, LiveAvatarSampleRate, LlmConfig, LlmGreetingConfigs, LlmGreetingConfigsMode, LlmPreset, LlmStyle, LlmVendor, McpServersItem, MicrosoftCNSampleRate, MicrosoftCNSTTOptions, MicrosoftCNTTSOptions, MicrosoftSampleRate, MicrosoftSTTOptions, MicrosoftTTSOptions, MicrosoftTts, MicrosoftTtsParams, MiniMaxCNTTSOptions, MiniMaxTTSOptions, MinimaxTts, MinimaxTtsParams, MistralTTSOptions, MistralTts, MistralTtsParams, MllmConfig, MllmTurnDetectionConfig, MllmTurnDetectionMode, MllmVendor, MurfTTSOptions, MurfTts, MurfTtsParams, OpenAIOptions, OpenAIRealtimeOptions, OpenAISTTOptions, OpenAITTSOptions, OpenAiTts, OpenAiTtsParams, ParametersAudioScenario, ParametersDataChannel, PresetCategory, PresetInput, QwenOmniOptions, RimeTTSOptions, RimeTts, RimeTtsParams, RtcConfig, SalConfig, SalMode, SampleRate, SarvamSTTOptions, SarvamTTSOptions, SarvamTts, SarvamTtsParams, SayOptions, SensetimeAvatarConfig, SensetimeAvatarOptions, SessionInfo, SessionListResponse, SessionOptions, SessionParams, SessionParamsInput, SessionStatus, SessionSummary, SilenceAction, SilenceConfig, SpatiusAvatarConfig, SpatiusAvatarOptions, SpatiusAvatarParams, SpeakPriority, SpeechmaticsSTTOptions, StartOfSpeechConfig, StartOfSpeechDisabledConfig, StartOfSpeechDisabledConfigStrategy, StartOfSpeechKeywordsConfig, StartOfSpeechMode, StartOfSpeechVadConfig, StepFunTTSOptions, StrictAvatarConfig, SttConfig, SttVendor, TencentLLMOptions, TencentSTTOptions, TencentTTSOptions, ThinkOnListeningAction, ThinkOnSpeakingAction, ThinkOnThinkingAction, ThinkOptions, ThinkResponse, TtsConfig, TtsPreset, TtsVendor, TurnDetectionConfig, TurnDetectionLanguage, TurnDetectionNestedConfig, TurnDetectionType, TypecastTTSOptions, TypecastTts, TypecastTtsParams, VertexAILLMOptions, VertexAIOptions, XAiAsr, XAiAsrParams, XAiSTTOptions, XAiTTSOptions, XAiTts, XAiTtsParams, XaiGrokOptions, XfyunBigModelSTTOptions, XfyunDialectSTTOptions, XfyunSTTOptions, } from "./agentkit/index.mjs";
|
|
5
|
+
export { Agent, AgentPresets, AgentSession, AkoolAvatar, AliyunLLM, AmazonBedrock, AmazonSTT, AmazonTTS, AnamAvatar, Anthropic, AresSTT, AssemblyAISTT, AudioScenario, AzureOpenAI, AzureOpenAIRealtime, BaseAvatar, BaseCNAvatar, BaseCNLLM, BaseCNMLLM, BaseCNSTT, BaseCNTTS, BaseLLM, BaseMLLM, BaseSTT, BaseTTS, BytedanceDuplexTTS, BytedanceLLM, BytedanceTTS, CartesiaTTS, CosyVoiceTTS, CredentialMode, CustomLLM, DataChannel, DeepgramSTT, DeepgramTTS, DeepSeekLLM, Dify, ElevenLabsTTS, ExpiresIn, FengmingSTT, FillerWordsSelectionRule, FishAudioTTS, Gemini, GeminiLive, GenericAvatar, GenericTTS, Geofence, GoogleSTT, GoogleTTS, GradiumTTS, Groq, generateConvoAIToken, generateRtcToken, HeyGenAvatar, HumeAITTS, InterruptionDisabledStrategy, InterruptionDisabledStrategyAppend, InterruptionDisabledStrategyIgnore, InterruptionModeKeywords, InterruptionModeStartOfSpeech, InterruptionModeValues, isAkoolAvatar, isAnamAvatar, isAvatarTokenManaged, isGenericAvatar, isHeyGenAvatar, isLiveAvatarAvatar, isSensetimeAvatar, isSpatiusAvatar, LiveAvatarAvatar, MAX_EXPIRY_SECONDS, MicrosoftCNSTT, MicrosoftCNTTS, MicrosoftSTT, MicrosoftTTS, MiniMaxCNTTS, MiniMaxTTS, MistralTTS, MllmTurnDetectionModeAgoraVad, MllmTurnDetectionModeSemanticVad, MllmTurnDetectionModeServerVad, MllmTurnDetectionModeValues, MurfTTS, normalizePresetInput, OpenAI, OpenAIRealtime, OpenAISTT, OpenAITTS, QwenOmni, RimeTTS, SalModeValues, SarvamSTT, SarvamTTS, SensetimeAvatar, SilenceActionValues, SpatiusAvatar, SpeakPriorityAppend, SpeakPriorityIgnore, SpeakPriorityInterrupt, SpeakPriorityValues, SpeechmaticsSTT, StepFunTTS, TencentLLM, TencentSTT, TencentTTS, ThinkOnListeningActionIgnore, ThinkOnListeningActionInject, ThinkOnListeningActionInterrupt, ThinkOnSpeakingActionIgnore, ThinkOnSpeakingActionInterrupt, ThinkOnThinkingActionIgnore, ThinkOnThinkingActionInterrupt, TurnDetectionTypeValues, TypecastTTS, toBaseAvatarConfig, VertexAI, VertexAILLM, validateAvatarConfig, validateTtsSampleRate, XAiSTT, XAiTTS, XaiGrok, XfyunBigModelSTT, XfyunDialectSTT, XfyunSTT, } from "./agentkit/index.mjs";
|
|
6
6
|
export * as Agora from "./api/index.mjs";
|
|
7
7
|
export type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
|
|
8
8
|
export { Area } from "./core/domain/index.mjs";
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export { AgoraClient } from "./AgoraPoolClient.mjs";
|
|
2
2
|
// Agentkit layer exports - clean, ergonomic API
|
|
3
|
-
export { Agent, AgentPresets, AgentSession, AkoolAvatar, AliyunLLM, AmazonBedrock, AmazonSTT, AmazonTTS, AnamAvatar, Anthropic, AresSTT, AssemblyAISTT, AudioScenario, AzureOpenAI, BaseAvatar, BaseCNAvatar, BaseCNLLM, BaseCNSTT, BaseCNTTS,
|
|
3
|
+
export { Agent, AgentPresets, AgentSession, AkoolAvatar, AliyunLLM, AmazonBedrock, AmazonSTT, AmazonTTS, AnamAvatar, Anthropic, AresSTT, AssemblyAISTT, AudioScenario, AzureOpenAI, AzureOpenAIRealtime, BaseAvatar, BaseCNAvatar, BaseCNLLM, BaseCNMLLM, BaseCNSTT, BaseCNTTS,
|
|
4
4
|
// Base vendor classes
|
|
5
|
-
BaseLLM, BaseMLLM, BaseSTT, BaseTTS, BytedanceDuplexTTS, BytedanceLLM, BytedanceTTS, CartesiaTTS, CosyVoiceTTS, CustomLLM, DataChannel, DeepgramSTT, DeepgramTTS, DeepSeekLLM, Dify,
|
|
5
|
+
BaseLLM, BaseMLLM, BaseSTT, BaseTTS, BytedanceDuplexTTS, BytedanceLLM, BytedanceTTS, CartesiaTTS, CosyVoiceTTS, CredentialMode, CustomLLM, DataChannel, DeepgramSTT, DeepgramTTS, DeepSeekLLM, Dify,
|
|
6
6
|
// TTS vendors
|
|
7
|
-
ElevenLabsTTS, ExpiresIn, FengmingSTT, FillerWordsSelectionRule, FishAudioTTS, Gemini, GeminiLive, GenericAvatar, GenericTTS, Geofence, GoogleSTT, GoogleTTS, Groq, generateConvoAIToken, generateRtcToken,
|
|
7
|
+
ElevenLabsTTS, ExpiresIn, FengmingSTT, FillerWordsSelectionRule, FishAudioTTS, Gemini, GeminiLive, GenericAvatar, GenericTTS, Geofence, GoogleSTT, GoogleTTS, GradiumTTS, Groq, generateConvoAIToken, generateRtcToken,
|
|
8
8
|
// Avatar vendors
|
|
9
|
-
HeyGenAvatar, HumeAITTS, InterruptionDisabledStrategy, InterruptionDisabledStrategyAppend, InterruptionDisabledStrategyIgnore, InterruptionModeKeywords, InterruptionModeStartOfSpeech, InterruptionModeValues, isAkoolAvatar, isAnamAvatar, isAvatarTokenManaged, isGenericAvatar, isHeyGenAvatar, isLiveAvatarAvatar, isSensetimeAvatar, isSpatiusAvatar, LiveAvatarAvatar, MAX_EXPIRY_SECONDS, MicrosoftCNSTT, MicrosoftCNTTS, MicrosoftSTT, MicrosoftTTS, MiniMaxCNTTS, MiniMaxTTS, MllmTurnDetectionModeAgoraVad, MllmTurnDetectionModeSemanticVad, MllmTurnDetectionModeServerVad, MllmTurnDetectionModeValues, MurfTTS, normalizePresetInput,
|
|
9
|
+
HeyGenAvatar, HumeAITTS, InterruptionDisabledStrategy, InterruptionDisabledStrategyAppend, InterruptionDisabledStrategyIgnore, InterruptionModeKeywords, InterruptionModeStartOfSpeech, InterruptionModeValues, isAkoolAvatar, isAnamAvatar, isAvatarTokenManaged, isGenericAvatar, isHeyGenAvatar, isLiveAvatarAvatar, isSensetimeAvatar, isSpatiusAvatar, LiveAvatarAvatar, MAX_EXPIRY_SECONDS, MicrosoftCNSTT, MicrosoftCNTTS, MicrosoftSTT, MicrosoftTTS, MiniMaxCNTTS, MiniMaxTTS, MistralTTS, MllmTurnDetectionModeAgoraVad, MllmTurnDetectionModeSemanticVad, MllmTurnDetectionModeServerVad, MllmTurnDetectionModeValues, MurfTTS, normalizePresetInput,
|
|
10
10
|
// LLM vendors
|
|
11
11
|
OpenAI,
|
|
12
12
|
// MLLM vendors
|
|
13
|
-
OpenAIRealtime, OpenAISTT, OpenAITTS, RimeTTS, SalModeValues, SarvamSTT, SarvamTTS, SensetimeAvatar, SilenceActionValues, SpatiusAvatar, SpeakPriorityAppend, SpeakPriorityIgnore, SpeakPriorityInterrupt, SpeakPriorityValues,
|
|
13
|
+
OpenAIRealtime, OpenAISTT, OpenAITTS, QwenOmni, RimeTTS, SalModeValues, SarvamSTT, SarvamTTS, SensetimeAvatar, SilenceActionValues, SpatiusAvatar, SpeakPriorityAppend, SpeakPriorityIgnore, SpeakPriorityInterrupt, SpeakPriorityValues,
|
|
14
14
|
// STT vendors
|
|
15
|
-
SpeechmaticsSTT, StepFunTTS, TencentLLM, TencentSTT, TencentTTS, ThinkOnListeningActionIgnore, ThinkOnListeningActionInject, ThinkOnListeningActionInterrupt, ThinkOnSpeakingActionIgnore, ThinkOnSpeakingActionInterrupt, ThinkOnThinkingActionIgnore, ThinkOnThinkingActionInterrupt, TurnDetectionTypeValues, toBaseAvatarConfig, VertexAI, VertexAILLM, validateAvatarConfig, validateTtsSampleRate, XAiSTT, XAiTTS, XaiGrok, XfyunBigModelSTT, XfyunDialectSTT, XfyunSTT, } from "./agentkit/index.mjs";
|
|
15
|
+
SpeechmaticsSTT, StepFunTTS, TencentLLM, TencentSTT, TencentTTS, ThinkOnListeningActionIgnore, ThinkOnListeningActionInject, ThinkOnListeningActionInterrupt, ThinkOnSpeakingActionIgnore, ThinkOnSpeakingActionInterrupt, ThinkOnThinkingActionIgnore, ThinkOnThinkingActionInterrupt, TurnDetectionTypeValues, TypecastTTS, toBaseAvatarConfig, VertexAI, VertexAILLM, validateAvatarConfig, validateTtsSampleRate, XAiSTT, XAiTTS, XaiGrok, XfyunBigModelSTT, XfyunDialectSTT, XfyunSTT, } from "./agentkit/index.mjs";
|
|
16
16
|
export * as Agora from "./api/index.mjs";
|
|
17
17
|
export { Area } from "./core/domain/index.mjs";
|
|
18
18
|
export { AgoraEnvironment } from "./environments.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "v2.
|
|
1
|
+
export declare const SDK_VERSION = "v2.6.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "v2.
|
|
1
|
+
export const SDK_VERSION = "v2.6.0";
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|