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.
Files changed (109) hide show
  1. package/dist/cjs/AgoraPoolClient.js +39 -1
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/agentkit/Agent.d.ts +4 -4
  4. package/dist/cjs/agentkit/Agent.js +2 -1
  5. package/dist/cjs/agentkit/__tests__/area-aware-vendors.test.js +30 -0
  6. package/dist/cjs/agentkit/constants.d.ts +6 -0
  7. package/dist/cjs/agentkit/constants.js +6 -1
  8. package/dist/cjs/agentkit/index.d.ts +9 -9
  9. package/dist/cjs/agentkit/index.js +10 -3
  10. package/dist/cjs/agentkit/region-vendors.d.ts +5 -2
  11. package/dist/cjs/agentkit/types.d.ts +9 -3
  12. package/dist/cjs/agentkit/vendors/base.d.ts +11 -1
  13. package/dist/cjs/agentkit/vendors/base.js +18 -2
  14. package/dist/cjs/agentkit/vendors/cn.d.ts +8 -0
  15. package/dist/cjs/agentkit/vendors/cn.js +9 -3
  16. package/dist/cjs/agentkit/vendors/mllm.d.ts +100 -2
  17. package/dist/cjs/agentkit/vendors/mllm.js +69 -2
  18. package/dist/cjs/agentkit/vendors/stt.d.ts +3 -1
  19. package/dist/cjs/agentkit/vendors/stt.js +7 -4
  20. package/dist/cjs/agentkit/vendors/tts.d.ts +100 -9
  21. package/dist/cjs/agentkit/vendors/tts.js +85 -12
  22. package/dist/cjs/api/types/AresAsrParams.d.ts +6 -1
  23. package/dist/cjs/api/types/AssemblyAiAsrParams.d.ts +1 -1
  24. package/dist/cjs/api/types/FengmingAsr.d.ts +1 -2
  25. package/dist/cjs/api/types/FengmingAsrParams.d.ts +9 -0
  26. package/dist/cjs/api/types/{GenericTts.d.ts → GenericHttpTts.d.ts} +3 -3
  27. package/dist/cjs/api/types/{GenericTtsParams.d.ts → GenericHttpTtsParams.d.ts} +3 -3
  28. package/dist/cjs/api/types/GenericHttpTtsParams.js +3 -0
  29. package/dist/cjs/api/types/GradiumTts.d.ts +9 -0
  30. package/dist/cjs/api/types/GradiumTts.js +3 -0
  31. package/dist/cjs/api/types/GradiumTtsParams.d.ts +17 -0
  32. package/dist/cjs/api/types/GradiumTtsParams.js +3 -0
  33. package/dist/cjs/api/types/MistralTts.d.ts +9 -0
  34. package/dist/cjs/api/types/MistralTts.js +3 -0
  35. package/dist/cjs/api/types/MistralTtsParams.d.ts +13 -0
  36. package/dist/cjs/api/types/MistralTtsParams.js +3 -0
  37. package/dist/cjs/api/types/Mllm.d.ts +4 -0
  38. package/dist/cjs/api/types/Mllm.js +2 -0
  39. package/dist/cjs/api/types/RimeTts.d.ts +10 -0
  40. package/dist/cjs/api/types/RimeTts.js +9 -0
  41. package/dist/cjs/api/types/RimeTtsParams.d.ts +2 -2
  42. package/dist/cjs/api/types/Tts.d.ts +12 -3
  43. package/dist/cjs/api/types/TypecastTts.d.ts +9 -0
  44. package/dist/cjs/api/types/TypecastTts.js +3 -0
  45. package/dist/cjs/api/types/TypecastTtsParams.d.ts +13 -0
  46. package/dist/cjs/api/types/TypecastTtsParams.js +3 -0
  47. package/dist/cjs/api/types/index.d.ts +9 -2
  48. package/dist/cjs/api/types/index.js +9 -2
  49. package/dist/cjs/index.d.ts +2 -2
  50. package/dist/cjs/index.js +10 -3
  51. package/dist/cjs/version.d.ts +1 -1
  52. package/dist/cjs/version.js +1 -1
  53. package/dist/esm/AgoraPoolClient.mjs +40 -2
  54. package/dist/esm/BaseClient.mjs +2 -2
  55. package/dist/esm/agentkit/Agent.d.mts +4 -4
  56. package/dist/esm/agentkit/Agent.mjs +2 -1
  57. package/dist/esm/agentkit/__tests__/area-aware-vendors.test.mjs +31 -1
  58. package/dist/esm/agentkit/constants.d.mts +6 -0
  59. package/dist/esm/agentkit/constants.mjs +5 -0
  60. package/dist/esm/agentkit/index.d.mts +9 -9
  61. package/dist/esm/agentkit/index.mjs +4 -4
  62. package/dist/esm/agentkit/region-vendors.d.mts +5 -2
  63. package/dist/esm/agentkit/types.d.mts +9 -3
  64. package/dist/esm/agentkit/vendors/base.d.mts +11 -1
  65. package/dist/esm/agentkit/vendors/base.mjs +16 -1
  66. package/dist/esm/agentkit/vendors/cn.d.mts +8 -0
  67. package/dist/esm/agentkit/vendors/cn.mjs +9 -3
  68. package/dist/esm/agentkit/vendors/mllm.d.mts +100 -2
  69. package/dist/esm/agentkit/vendors/mllm.mjs +67 -2
  70. package/dist/esm/agentkit/vendors/stt.d.mts +3 -1
  71. package/dist/esm/agentkit/vendors/stt.mjs +7 -4
  72. package/dist/esm/agentkit/vendors/tts.d.mts +100 -9
  73. package/dist/esm/agentkit/vendors/tts.mjs +81 -11
  74. package/dist/esm/api/types/AresAsrParams.d.mts +6 -1
  75. package/dist/esm/api/types/AssemblyAiAsrParams.d.mts +1 -1
  76. package/dist/esm/api/types/FengmingAsr.d.mts +1 -2
  77. package/dist/esm/api/types/FengmingAsrParams.d.mts +9 -0
  78. package/dist/esm/api/types/{GenericTts.d.mts → GenericHttpTts.d.mts} +3 -3
  79. package/dist/esm/api/types/{GenericTtsParams.d.mts → GenericHttpTtsParams.d.mts} +3 -3
  80. package/dist/esm/api/types/GenericHttpTtsParams.mjs +2 -0
  81. package/dist/esm/api/types/GradiumTts.d.mts +9 -0
  82. package/dist/esm/api/types/GradiumTts.mjs +2 -0
  83. package/dist/esm/api/types/GradiumTtsParams.d.mts +17 -0
  84. package/dist/esm/api/types/GradiumTtsParams.mjs +2 -0
  85. package/dist/esm/api/types/MistralTts.d.mts +9 -0
  86. package/dist/esm/api/types/MistralTts.mjs +2 -0
  87. package/dist/esm/api/types/MistralTtsParams.d.mts +13 -0
  88. package/dist/esm/api/types/MistralTtsParams.mjs +2 -0
  89. package/dist/esm/api/types/Mllm.d.mts +4 -0
  90. package/dist/esm/api/types/Mllm.mjs +2 -0
  91. package/dist/esm/api/types/RimeTts.d.mts +10 -0
  92. package/dist/esm/api/types/RimeTts.mjs +8 -1
  93. package/dist/esm/api/types/RimeTtsParams.d.mts +2 -2
  94. package/dist/esm/api/types/Tts.d.mts +12 -3
  95. package/dist/esm/api/types/TypecastTts.d.mts +9 -0
  96. package/dist/esm/api/types/TypecastTts.mjs +2 -0
  97. package/dist/esm/api/types/TypecastTtsParams.d.mts +13 -0
  98. package/dist/esm/api/types/TypecastTtsParams.mjs +2 -0
  99. package/dist/esm/api/types/index.d.mts +9 -2
  100. package/dist/esm/api/types/index.mjs +9 -2
  101. package/dist/esm/index.d.mts +2 -2
  102. package/dist/esm/index.mjs +6 -6
  103. package/dist/esm/version.d.mts +1 -1
  104. package/dist/esm/version.mjs +1 -1
  105. package/package.json +1 -1
  106. /package/dist/cjs/api/types/{GenericTts.js → FengmingAsrParams.js} +0 -0
  107. /package/dist/cjs/api/types/{GenericTtsParams.js → GenericHttpTts.js} +0 -0
  108. /package/dist/esm/api/types/{GenericTts.mjs → FengmingAsrParams.mjs} +0 -0
  109. /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 tts = new RimeTTS({
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
- return Object.assign({ vendor: "rime", params: Object.assign({ api_key: key, speaker,
231
- modelId }, (baseUrl && { base_url: baseUrl })) }, (skipPatterns && { skip_patterns: skipPatterns }));
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
- requireString(options.url, "url", "GenericTTS");
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: "generic", url,
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 type AresAsrParams = Record<string, unknown>;
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
- uri?: string | null;
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
- /** Agora Fengming ASR configuration parameters. */
8
- params?: Record<string, unknown>;
7
+ params?: Agora.FengmingAsrParams;
9
8
  /** Accepts any additional properties */
10
9
  [key: string]: any;
11
10
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Agora Fengming ASR configuration parameters.
3
+ */
4
+ export interface FengmingAsrParams {
5
+ /** A list of hotwords to improve ASR accuracy. */
6
+ keywords?: string[];
7
+ /** Accepts any additional properties */
8
+ [key: string]: any;
9
+ }
@@ -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 GenericTts {
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: Record<string, string>;
10
- params: Agora.GenericTtsParams;
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 GenericTtsParams {
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: string;
8
+ model?: string;
9
9
  /** Voice name. */
10
- voice: string;
10
+ voice?: string;
11
11
  /** Speech rate. */
12
12
  speed?: number;
13
13
  /** Output audio sample rate in Hz. */
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -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,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -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,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -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,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -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
  }
@@ -4,8 +4,10 @@ export var Mllm;
4
4
  /** MLLM provider. */
5
5
  Mllm.Vendor = {
6
6
  Openai: "openai",
7
+ Azure: "azure",
7
8
  Gemini: "gemini",
8
9
  Vertexai: "vertexai",
9
10
  Xai: "xai",
11
+ QwenOmni: "qwen_omni",
10
12
  };
11
13
  })(Mllm || (Mllm = {}));
@@ -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: string;
6
+ api_key?: string;
7
7
  /** Rime speaker ID */
8
- speaker: string;
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.Generic | Agora.Tts.Xai | Agora.Tts.Deepgram | Agora.Tts.Cosyvoice | Agora.Tts.BytedanceDuplex | Agora.Tts.Stepfun;
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 Generic extends Agora.GenericTts {
47
- vendor: "generic";
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,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -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 "./GenericTts.mjs";
32
- export * from "./GenericTtsParams.mjs";
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 "./GenericTts.mjs";
32
- export * from "./GenericTtsParams.mjs";
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";
@@ -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";
@@ -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";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "v2.3.2";
1
+ export declare const SDK_VERSION = "v2.6.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "v2.3.2";
1
+ export const SDK_VERSION = "v2.6.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agora-agents",
3
- "version": "2.4.0",
3
+ "version": "2.6.0",
4
4
  "private": false,
5
5
  "repository": "github:AgoraIO/agora-agents-ts",
6
6
  "type": "commonjs",