agora-agents 2.12.0 → 2.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/README.md +2 -2
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/agentkit/Agent.js +10 -3
  4. package/dist/cjs/agentkit/AgentSession.js +6 -2
  5. package/dist/cjs/agentkit/avatar-types.d.ts +6 -0
  6. package/dist/cjs/agentkit/index.d.ts +7 -9
  7. package/dist/cjs/agentkit/index.js +8 -5
  8. package/dist/cjs/agentkit/presets.js +3 -3
  9. package/dist/cjs/agentkit/preview/client.d.ts +6 -5
  10. package/dist/cjs/agentkit/preview/client.js +7 -7
  11. package/dist/cjs/agentkit/preview/gemini-tts.d.ts +3 -31
  12. package/dist/cjs/agentkit/preview/gemini-tts.js +4 -30
  13. package/dist/cjs/agentkit/preview/index.d.ts +2 -2
  14. package/dist/cjs/agentkit/preview/index.js +4 -4
  15. package/dist/cjs/agentkit/token.d.ts +43 -7
  16. package/dist/cjs/agentkit/token.js +34 -6
  17. package/dist/cjs/agentkit/types.d.ts +12 -3
  18. package/dist/cjs/agentkit/vendors/avatar.d.ts +30 -12
  19. package/dist/cjs/agentkit/vendors/avatar.js +62 -5
  20. package/dist/cjs/agentkit/vendors/stt.d.ts +35 -0
  21. package/dist/cjs/agentkit/vendors/stt.js +19 -2
  22. package/dist/cjs/agentkit/vendors/tts.d.ts +72 -18
  23. package/dist/cjs/agentkit/vendors/tts.js +60 -11
  24. package/dist/cjs/api/resources/agents/client/requests/StartAgentsRequest.d.ts +13 -0
  25. package/dist/cjs/api/resources/agents/types/GetTurnsAgentsResponse.d.ts +3 -1
  26. package/dist/cjs/api/types/Asr.d.ts +4 -1
  27. package/dist/cjs/api/types/CartesiaTts.d.ts +10 -0
  28. package/dist/cjs/api/types/CartesiaTts.js +9 -0
  29. package/dist/cjs/api/types/CartesiaTtsParams.d.ts +1 -1
  30. package/dist/cjs/api/types/DeepgramAsrParams.d.ts +1 -1
  31. package/dist/cjs/api/types/FishAudioTts.d.ts +10 -0
  32. package/dist/cjs/api/types/FishAudioTts.js +9 -0
  33. package/dist/cjs/api/types/FishAudioTtsParams.d.ts +1 -1
  34. package/dist/cjs/api/types/GeminiTts.d.ts +9 -0
  35. package/dist/cjs/api/types/GeminiTts.js +3 -0
  36. package/dist/cjs/api/types/GeminiTtsParams.d.ts +15 -0
  37. package/dist/cjs/api/types/GeminiTtsParams.js +3 -0
  38. package/dist/cjs/api/types/RtzrAsr.d.ts +10 -0
  39. package/dist/cjs/api/types/RtzrAsr.js +3 -0
  40. package/dist/cjs/api/types/RtzrAsrParams.d.ts +31 -0
  41. package/dist/cjs/api/types/RtzrAsrParams.js +3 -0
  42. package/dist/cjs/api/types/SarvamTtsParams.d.ts +12 -8
  43. package/dist/cjs/api/types/SarvamTtsParams.js +1 -1
  44. package/dist/cjs/api/types/Tts.d.ts +4 -1
  45. package/dist/cjs/api/types/index.d.ts +4 -0
  46. package/dist/cjs/api/types/index.js +4 -0
  47. package/dist/cjs/index.d.ts +4 -4
  48. package/dist/cjs/index.js +9 -6
  49. package/dist/cjs/version.d.ts +1 -1
  50. package/dist/cjs/version.js +1 -1
  51. package/dist/esm/BaseClient.mjs +2 -2
  52. package/dist/esm/agentkit/Agent.mjs +10 -3
  53. package/dist/esm/agentkit/AgentSession.mjs +6 -2
  54. package/dist/esm/agentkit/avatar-types.d.mts +6 -0
  55. package/dist/esm/agentkit/index.d.mts +7 -9
  56. package/dist/esm/agentkit/index.mjs +3 -4
  57. package/dist/esm/agentkit/presets.mjs +3 -3
  58. package/dist/esm/agentkit/preview/client.d.mts +6 -5
  59. package/dist/esm/agentkit/preview/client.mjs +7 -7
  60. package/dist/esm/agentkit/preview/gemini-tts.d.mts +3 -31
  61. package/dist/esm/agentkit/preview/gemini-tts.mjs +1 -28
  62. package/dist/esm/agentkit/preview/index.d.mts +2 -2
  63. package/dist/esm/agentkit/preview/index.mjs +1 -1
  64. package/dist/esm/agentkit/token.d.mts +43 -7
  65. package/dist/esm/agentkit/token.mjs +33 -6
  66. package/dist/esm/agentkit/types.d.mts +12 -3
  67. package/dist/esm/agentkit/vendors/avatar.d.mts +30 -12
  68. package/dist/esm/agentkit/vendors/avatar.mjs +59 -8
  69. package/dist/esm/agentkit/vendors/stt.d.mts +35 -0
  70. package/dist/esm/agentkit/vendors/stt.mjs +17 -1
  71. package/dist/esm/agentkit/vendors/tts.d.mts +72 -18
  72. package/dist/esm/agentkit/vendors/tts.mjs +58 -10
  73. package/dist/esm/api/resources/agents/client/requests/StartAgentsRequest.d.mts +13 -0
  74. package/dist/esm/api/resources/agents/types/GetTurnsAgentsResponse.d.mts +3 -1
  75. package/dist/esm/api/types/Asr.d.mts +4 -1
  76. package/dist/esm/api/types/CartesiaTts.d.mts +10 -0
  77. package/dist/esm/api/types/CartesiaTts.mjs +8 -1
  78. package/dist/esm/api/types/CartesiaTtsParams.d.mts +1 -1
  79. package/dist/esm/api/types/DeepgramAsrParams.d.mts +1 -1
  80. package/dist/esm/api/types/FishAudioTts.d.mts +10 -0
  81. package/dist/esm/api/types/FishAudioTts.mjs +8 -1
  82. package/dist/esm/api/types/FishAudioTtsParams.d.mts +1 -1
  83. package/dist/esm/api/types/GeminiTts.d.mts +9 -0
  84. package/dist/esm/api/types/GeminiTts.mjs +2 -0
  85. package/dist/esm/api/types/GeminiTtsParams.d.mts +15 -0
  86. package/dist/esm/api/types/GeminiTtsParams.mjs +2 -0
  87. package/dist/esm/api/types/RtzrAsr.d.mts +10 -0
  88. package/dist/esm/api/types/RtzrAsr.mjs +2 -0
  89. package/dist/esm/api/types/RtzrAsrParams.d.mts +31 -0
  90. package/dist/esm/api/types/RtzrAsrParams.mjs +2 -0
  91. package/dist/esm/api/types/SarvamTtsParams.d.mts +12 -8
  92. package/dist/esm/api/types/SarvamTtsParams.mjs +1 -1
  93. package/dist/esm/api/types/Tts.d.mts +4 -1
  94. package/dist/esm/api/types/index.d.mts +4 -0
  95. package/dist/esm/api/types/index.mjs +4 -0
  96. package/dist/esm/index.d.mts +4 -4
  97. package/dist/esm/index.mjs +3 -3
  98. package/dist/esm/version.d.mts +1 -1
  99. package/dist/esm/version.mjs +1 -1
  100. package/package.json +2 -2
@@ -1,9 +1,35 @@
1
1
  /**
2
2
  * Type-safe TTS (Text-to-Speech) vendor classes.
3
3
  */
4
+ import { SarvamTtsParams as SarvamTtsParamsNS } from "../../api/types/SarvamTtsParams.mjs";
4
5
  import { CredentialMode } from "../constants.mjs";
5
6
  import { MiniMaxPresetModels, OpenAITtsPresetModels, } from "../presets.mjs";
6
7
  import { BaseTTS } from "./base.mjs";
8
+ /** Gemini 3.8 Flash TTS model. */
9
+ export const GeminiTTSModels = {
10
+ Flash38: "gemini-3.8-flash-tts",
11
+ };
12
+ /** Gemini TTS uses the client's configured regional production endpoint. */
13
+ export class GeminiTTS extends BaseTTS {
14
+ constructor(options) {
15
+ super();
16
+ for (const field of ["apiKey", "model", "voice"]) {
17
+ const value = options[field];
18
+ if ((field === "apiKey" || value !== undefined) && (typeof value !== "string" || !value.trim())) {
19
+ throw new Error(`GeminiTTS requires ${field}`);
20
+ }
21
+ }
22
+ if (options.style !== undefined && typeof options.style !== "string") {
23
+ throw new Error("GeminiTTS style must be a string");
24
+ }
25
+ this.options = Object.assign({}, options);
26
+ }
27
+ toConfig() {
28
+ const { apiKey, model = GeminiTTSModels.Flash38, voice = "Puck", style, additionalParams, skipPatterns, } = this.options;
29
+ return Object.assign({ vendor: "gemini", params: Object.assign(Object.assign(Object.assign({}, additionalParams), { api_key: apiKey, model,
30
+ voice }), (style !== undefined && { style })) }, (skipPatterns !== undefined && { skip_patterns: skipPatterns }));
31
+ }
32
+ }
7
33
  function requireString(value, field, vendor) {
8
34
  if (typeof value !== "string" || value.length === 0) {
9
35
  throw new Error(`${vendor} requires ${field}`);
@@ -114,6 +140,7 @@ export class OpenAITTS extends BaseTTS {
114
140
  * const tts = new CartesiaTTS({
115
141
  * apiKey: process.env.CARTESIA_API_KEY,
116
142
  * voiceId: 'voice-id-here',
143
+ * modelId: 'sonic-2',
117
144
  * sampleRate: 24000,
118
145
  * });
119
146
  * ```
@@ -121,11 +148,21 @@ export class OpenAITTS extends BaseTTS {
121
148
  export class CartesiaTTS extends BaseTTS {
122
149
  constructor(options) {
123
150
  super();
151
+ if (options.credentialMode !== undefined &&
152
+ options.credentialMode !== CredentialMode.Managed &&
153
+ options.credentialMode !== CredentialMode.Byok) {
154
+ throw new Error("CartesiaTTS credentialMode must be one of: managed, byok");
155
+ }
156
+ if (options.credentialMode !== CredentialMode.Managed) {
157
+ requireString(options.apiKey, "apiKey", "CartesiaTTS");
158
+ }
159
+ requireString(options.voiceId, "voiceId", "CartesiaTTS");
160
+ requireString(options.modelId, "modelId", "CartesiaTTS");
124
161
  this.options = options;
125
162
  }
126
163
  toConfig() {
127
- const { apiKey, voiceId, modelId, baseUrl, language, sampleRate, skipPatterns } = this.options;
128
- return Object.assign({ vendor: "cartesia", params: Object.assign(Object.assign(Object.assign({ api_key: apiKey, voice: { mode: "id", id: voiceId }, model_id: modelId }, (baseUrl && { base_url: baseUrl })), (sampleRate && { output_format: { container: "raw", sample_rate: sampleRate } })), (language && { language })) }, (skipPatterns && { skip_patterns: skipPatterns }));
164
+ const { apiKey, credentialMode, voiceId, modelId, baseUrl, language, sampleRate, skipPatterns } = this.options;
165
+ return Object.assign(Object.assign(Object.assign({ vendor: "cartesia" }, (credentialMode !== undefined && { credential_mode: credentialMode })), { params: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (apiKey && { api_key: apiKey })), { voice: { mode: "id", id: voiceId }, model_id: modelId }), (baseUrl && { base_url: baseUrl })), (sampleRate && { output_format: { container: "raw", sample_rate: sampleRate } })), (language && { language })) }), (skipPatterns && { skip_patterns: skipPatterns }));
129
166
  }
130
167
  }
131
168
  /**
@@ -307,15 +344,21 @@ export class RimeTTS extends BaseTTS {
307
344
  export class FishAudioTTS extends BaseTTS {
308
345
  constructor(options) {
309
346
  super();
347
+ if (options.credentialMode !== undefined &&
348
+ options.credentialMode !== CredentialMode.Managed &&
349
+ options.credentialMode !== CredentialMode.Byok) {
350
+ throw new Error("FishAudioTTS credentialMode must be one of: managed, byok");
351
+ }
352
+ if (options.credentialMode !== CredentialMode.Managed) {
353
+ requireString(options.key, "key", "FishAudioTTS");
354
+ }
355
+ requireString(options.referenceId, "referenceId", "FishAudioTTS");
356
+ requireString(options.backend, "backend", "FishAudioTTS");
310
357
  this.options = options;
311
358
  }
312
359
  toConfig() {
313
- const { key, referenceId, backend, skipPatterns } = this.options;
314
- return Object.assign({ vendor: "fishaudio", params: {
315
- api_key: key,
316
- reference_id: referenceId,
317
- backend,
318
- } }, (skipPatterns && { skip_patterns: skipPatterns }));
360
+ const { key, credentialMode, referenceId, backend, skipPatterns } = this.options;
361
+ return Object.assign(Object.assign(Object.assign({ vendor: "fishaudio" }, (credentialMode !== undefined && { credential_mode: credentialMode })), { params: Object.assign(Object.assign({}, (key && { api_key: key })), { reference_id: referenceId, backend }) }), (skipPatterns && { skip_patterns: skipPatterns }));
319
362
  }
320
363
  }
321
364
  /**
@@ -351,6 +394,10 @@ export class MiniMaxTTS extends BaseTTS {
351
394
  return Object.assign(Object.assign({ vendor: "minimax", params: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (key && { key })), (key && groupId && { group_id: groupId })), (key && { model })), (voiceId && { voice_setting: { voice_id: voiceId } })), (key && url && { url })) }, (!key && { _minimaxPresetModel: model })), (skipPatterns && { skip_patterns: skipPatterns }));
352
395
  }
353
396
  }
397
+ /**
398
+ * Constructor options for Sarvam TTS (Beta).
399
+ */
400
+ export const SarvamTTSLanguage = SarvamTtsParamsNS.TargetLanguageCode;
354
401
  /**
355
402
  * Sarvam TTS vendor (Beta).
356
403
  *
@@ -369,8 +416,9 @@ export class SarvamTTS extends BaseTTS {
369
416
  this.options = options;
370
417
  }
371
418
  toConfig() {
372
- const { key, speaker, targetLanguageCode, pitch, pace, loudness, sampleRate, skipPatterns } = this.options;
373
- return Object.assign({ vendor: "sarvam", params: Object.assign(Object.assign(Object.assign(Object.assign({ api_subscription_key: key, speaker, target_language_code: targetLanguageCode }, (pitch !== undefined && { pitch })), (pace !== undefined && { pace })), (loudness !== undefined && { loudness })), (sampleRate !== undefined && { sample_rate: sampleRate })) }, (skipPatterns && { skip_patterns: skipPatterns }));
419
+ const { key, speaker, targetLanguageCode, pitch, pace, loudness, speechSampleRate, sampleRate, enablePreprocessing, model, additionalParams, skipPatterns, } = this.options;
420
+ const resolvedSampleRate = speechSampleRate !== null && speechSampleRate !== void 0 ? speechSampleRate : sampleRate;
421
+ return Object.assign({ vendor: "sarvam", params: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, additionalParams), { api_subscription_key: key, speaker, target_language_code: targetLanguageCode }), (pitch !== undefined && { pitch })), (pace !== undefined && { pace })), (loudness !== undefined && { loudness })), (resolvedSampleRate !== undefined && { speech_sample_rate: resolvedSampleRate })), (enablePreprocessing !== undefined && { enable_preprocessing: enablePreprocessing })), (model !== undefined && { model })) }, (skipPatterns && { skip_patterns: skipPatterns }));
374
422
  }
375
423
  }
376
424
  /**
@@ -688,6 +688,8 @@ export declare namespace StartAgentsRequest {
688
688
  * Agent configuration parameters.
689
689
  */
690
690
  interface Parameters {
691
+ /** Settings for the agent's speak behavior. */
692
+ speak?: Parameters.Speak;
691
693
  /** Settings related to agent silence behavior. Does not apply when you integrate a `mllm`. */
692
694
  silence_config?: Parameters.SilenceConfig;
693
695
  /** Graceful hang-up settings for the agent. */
@@ -717,6 +719,17 @@ export declare namespace StartAgentsRequest {
717
719
  opt_out?: boolean;
718
720
  }
719
721
  namespace Parameters {
722
+ /**
723
+ * Settings for the agent's speak behavior.
724
+ */
725
+ interface Speak {
726
+ /**
727
+ * Whether to skip sentence segmentation for speak requests:
728
+ * - `false`: Skip sentence segmentation.
729
+ * - Omitted or `true`: Preserve sentence segmentation.
730
+ */
731
+ batch?: boolean | null;
732
+ }
720
733
  /**
721
734
  * Settings related to agent silence behavior. Does not apply when you integrate a `mllm`.
722
735
  */
@@ -133,8 +133,10 @@ export declare namespace GetTurnsAgentsResponse {
133
133
  * Additional context about the turn end event. Included fields depend on the value of the `type` field.
134
134
  */
135
135
  interface Metadata {
136
- /** The audio playback duration in milliseconds. Included only when `type` is `ok`. */
136
+ /** The actual audio playback duration in milliseconds. Included when `type` is `ok` or `interrupted`. */
137
137
  playback_duration_ms?: number;
138
+ /** The intended audio playback duration in milliseconds. Included only when `type` is `interrupted`. */
139
+ intended_playback_duration_ms?: number;
138
140
  /**
139
141
  * The cause of the turn ending.
140
142
  *
@@ -1,5 +1,5 @@
1
1
  import type * as Agora from "../index.mjs";
2
- export type Asr = Agora.Asr.Ares | Agora.Asr.Fengming | Agora.Asr.Tencent | Agora.Asr.Microsoft | Agora.Asr.Deepgram | Agora.Asr.Openai | Agora.Asr.Google | Agora.Asr.Gemini | Agora.Asr.Amazon | Agora.Asr.Assemblyai | Agora.Asr.Speechmatics | Agora.Asr.Sarvam | Agora.Asr.Xai | Agora.Asr.Xfyun | Agora.Asr.XfyunBigmodel | Agora.Asr.XfyunDialect | Agora.Asr.Smallestai;
2
+ export type Asr = Agora.Asr.Ares | Agora.Asr.Fengming | Agora.Asr.Tencent | Agora.Asr.Microsoft | Agora.Asr.Deepgram | Agora.Asr.Openai | Agora.Asr.Google | Agora.Asr.Gemini | Agora.Asr.Amazon | Agora.Asr.Assemblyai | Agora.Asr.Speechmatics | Agora.Asr.Sarvam | Agora.Asr.Rtzr | Agora.Asr.Xai | Agora.Asr.Xfyun | Agora.Asr.XfyunBigmodel | Agora.Asr.XfyunDialect | Agora.Asr.Smallestai;
3
3
  export declare namespace Asr {
4
4
  interface Ares extends Agora.AresAsr {
5
5
  vendor: "ares";
@@ -37,6 +37,9 @@ export declare namespace Asr {
37
37
  interface Sarvam extends Agora.SarvamAsr {
38
38
  vendor: "sarvam";
39
39
  }
40
+ interface Rtzr extends Agora.RtzrAsr {
41
+ vendor: "rtzr";
42
+ }
40
43
  interface Xai extends Agora.XAiAsr {
41
44
  vendor: "xai";
42
45
  }
@@ -3,7 +3,17 @@ import type * as Agora from "../index.mjs";
3
3
  * Cartesia Text-to-Speech configuration (Beta).
4
4
  */
5
5
  export interface CartesiaTts {
6
+ /** Credential mode. When provided, must be "managed" (Agora managed mode) or "byok" (BYOK mode). */
7
+ credential_mode?: CartesiaTts.CredentialMode;
6
8
  params: Agora.CartesiaTtsParams;
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 CartesiaTts {
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 CartesiaTts;
3
+ (function (CartesiaTts) {
4
+ /** Credential mode. When provided, must be "managed" (Agora managed mode) or "byok" (BYOK mode). */
5
+ CartesiaTts.CredentialMode = {
6
+ Managed: "managed",
7
+ Byok: "byok",
8
+ };
9
+ })(CartesiaTts || (CartesiaTts = {}));
@@ -4,7 +4,7 @@ import type * as Agora from "../index.mjs";
4
4
  */
5
5
  export interface CartesiaTtsParams {
6
6
  /** Cartesia API key */
7
- api_key: string;
7
+ api_key?: string;
8
8
  /** Model ID (for example, sonic-2) */
9
9
  model_id: string;
10
10
  /** WebSocket URL for the Cartesia streaming API */
@@ -5,7 +5,7 @@ export interface DeepgramAsrParams {
5
5
  /** WebSocket URL for Deepgram's streaming API */
6
6
  url?: string | null;
7
7
  /** Deepgram API key */
8
- key: string;
8
+ api_key: string;
9
9
  /** Speech recognition model */
10
10
  model?: string | null;
11
11
  /** Language code for speech recognition */
@@ -3,7 +3,17 @@ import type * as Agora from "../index.mjs";
3
3
  * Fish Audio Text-to-Speech configuration (Beta).
4
4
  */
5
5
  export interface FishAudioTts {
6
+ /** Credential mode. When provided, must be "managed" (Agora managed mode) or "byok" (BYOK mode). */
7
+ credential_mode?: FishAudioTts.CredentialMode;
6
8
  params: Agora.FishAudioTtsParams;
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 FishAudioTts {
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 FishAudioTts;
3
+ (function (FishAudioTts) {
4
+ /** Credential mode. When provided, must be "managed" (Agora managed mode) or "byok" (BYOK mode). */
5
+ FishAudioTts.CredentialMode = {
6
+ Managed: "managed",
7
+ Byok: "byok",
8
+ };
9
+ })(FishAudioTts || (FishAudioTts = {}));
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export interface FishAudioTtsParams {
5
5
  /** Fish Audio API key */
6
- api_key: string;
6
+ api_key?: string;
7
7
  /** Fish Audio reference ID */
8
8
  reference_id: string;
9
9
  /** Backend model version to use */
@@ -0,0 +1,9 @@
1
+ import type * as Agora from "../index.mjs";
2
+ /**
3
+ * Gemini Text-to-Speech configuration.
4
+ */
5
+ export interface GeminiTts {
6
+ params: Agora.GeminiTtsParams;
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,15 @@
1
+ /**
2
+ * Gemini TTS configuration parameters.
3
+ */
4
+ export interface GeminiTtsParams {
5
+ /** Gemini API key. */
6
+ api_key: string;
7
+ /** Gemini TTS model name. */
8
+ model: string;
9
+ /** Gemini voice name. */
10
+ voice: string;
11
+ /** Style instruction for the generated speech. */
12
+ style?: string;
13
+ /** Accepts any additional properties */
14
+ [key: string]: any;
15
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,10 @@
1
+ import type * as Agora from "../index.mjs";
2
+ /**
3
+ * RTZR ASR configuration.
4
+ */
5
+ export interface RtzrAsr {
6
+ language?: Agora.AsrLanguage;
7
+ params: Agora.RtzrAsrParams;
8
+ /** Accepts any additional properties */
9
+ [key: string]: any;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,31 @@
1
+ /**
2
+ * RTZR ASR configuration parameters.
3
+ */
4
+ export interface RtzrAsrParams {
5
+ /** RTZR client ID. */
6
+ client_id: string;
7
+ /** RTZR client secret. */
8
+ client_secret: string;
9
+ /** RTZR API base URL. */
10
+ api_base?: string;
11
+ /** RTZR recognition model name. */
12
+ model_name?: string;
13
+ /** RTZR recognition language code. Defaults to Korean (`ko`). */
14
+ language?: string;
15
+ /** Input audio sample rate in Hz. */
16
+ sample_rate?: number;
17
+ /** Input audio encoding. */
18
+ encoding?: string;
19
+ /** Whether to enable inverse text normalization. */
20
+ use_itn?: boolean;
21
+ /** Whether to filter disfluencies such as stuttering. */
22
+ use_disfluency_filter?: boolean;
23
+ /** Whether to filter profanity. */
24
+ use_profanity_filter?: boolean;
25
+ /** Whether to add punctuation to the recognized text. */
26
+ use_punctuation?: boolean;
27
+ /** Keywords to improve recognition accuracy. */
28
+ keywords?: string[];
29
+ /** Accepts any additional properties */
30
+ [key: string]: any;
31
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -4,23 +4,27 @@
4
4
  export interface SarvamTtsParams {
5
5
  /** Sarvam API subscription key */
6
6
  api_subscription_key: string;
7
- /** Voice ID (e.g., anushka, abhilash, karun, hitesh, manisha, vidya, arya) */
7
+ /** Speaker voice to use. */
8
8
  speaker: string;
9
- /** Target language code (e.g., en-IN) */
9
+ /** Target language code in BCP-47 format (e.g., `hi-IN`, `bn-IN`, `en-IN`). */
10
10
  target_language_code: SarvamTtsParams.TargetLanguageCode;
11
- /** Pitch adjustment for the voice */
11
+ /** Pitch control for the `bulbul:v2` model. */
12
12
  pitch?: number;
13
- /** Speed of speech */
13
+ /** Speech speed. Defaults to `1.0`. */
14
14
  pace?: number;
15
- /** Volume level of the speech */
15
+ /** Audio loudness control for the `bulbul:v2` model. */
16
16
  loudness?: number;
17
- /** Audio sample rate in Hz */
18
- sample_rate?: number;
17
+ /** Output speech sample rate in Hz. Defaults to `24000`. */
18
+ speech_sample_rate?: number;
19
+ /** Whether to normalize English words and numeric entities. Defaults to `false`. */
20
+ enable_preprocessing?: boolean;
21
+ /** TTS model to use. Defaults to `bulbul:v3`. */
22
+ model?: string;
19
23
  /** Accepts any additional properties */
20
24
  [key: string]: any;
21
25
  }
22
26
  export declare namespace SarvamTtsParams {
23
- /** Target language code (e.g., en-IN) */
27
+ /** Target language code in BCP-47 format (e.g., `hi-IN`, `bn-IN`, `en-IN`). */
24
28
  const TargetLanguageCode: {
25
29
  readonly EnIn: "en-IN";
26
30
  readonly HiIn: "hi-IN";
@@ -1,7 +1,7 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  export var SarvamTtsParams;
3
3
  (function (SarvamTtsParams) {
4
- /** Target language code (e.g., en-IN) */
4
+ /** Target language code in BCP-47 format (e.g., `hi-IN`, `bn-IN`, `en-IN`). */
5
5
  SarvamTtsParams.TargetLanguageCode = {
6
6
  EnIn: "en-IN",
7
7
  HiIn: "hi-IN",
@@ -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.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 | Agora.Tts.Smallestai;
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.Gemini | 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 | Agora.Tts.Smallestai;
3
3
  export declare namespace Tts {
4
4
  interface Tencent extends Agora.TencentTts {
5
5
  vendor: "tencent";
@@ -37,6 +37,9 @@ export declare namespace Tts {
37
37
  interface Google extends Agora.GoogleTts {
38
38
  vendor: "google";
39
39
  }
40
+ interface Gemini extends Agora.GeminiTts {
41
+ vendor: "gemini";
42
+ }
40
43
  interface Amazon extends Agora.AmazonTts {
41
44
  vendor: "amazon";
42
45
  }
@@ -32,6 +32,8 @@ export * from "./FishAudioTts.mjs";
32
32
  export * from "./FishAudioTtsParams.mjs";
33
33
  export * from "./GeminiAsr.mjs";
34
34
  export * from "./GeminiAsrParams.mjs";
35
+ export * from "./GeminiTts.mjs";
36
+ export * from "./GeminiTtsParams.mjs";
35
37
  export * from "./GenericHttpTts.mjs";
36
38
  export * from "./GenericHttpTtsParams.mjs";
37
39
  export * from "./GoogleAsr.mjs";
@@ -73,6 +75,8 @@ export * from "./OpenAiTts.mjs";
73
75
  export * from "./OpenAiTtsParams.mjs";
74
76
  export * from "./RimeTts.mjs";
75
77
  export * from "./RimeTtsParams.mjs";
78
+ export * from "./RtzrAsr.mjs";
79
+ export * from "./RtzrAsrParams.mjs";
76
80
  export * from "./SarvamAsr.mjs";
77
81
  export * from "./SarvamAsrParams.mjs";
78
82
  export * from "./SarvamTts.mjs";
@@ -32,6 +32,8 @@ export * from "./FishAudioTts.mjs";
32
32
  export * from "./FishAudioTtsParams.mjs";
33
33
  export * from "./GeminiAsr.mjs";
34
34
  export * from "./GeminiAsrParams.mjs";
35
+ export * from "./GeminiTts.mjs";
36
+ export * from "./GeminiTtsParams.mjs";
35
37
  export * from "./GenericHttpTts.mjs";
36
38
  export * from "./GenericHttpTtsParams.mjs";
37
39
  export * from "./GoogleAsr.mjs";
@@ -73,6 +75,8 @@ export * from "./OpenAiTts.mjs";
73
75
  export * from "./OpenAiTtsParams.mjs";
74
76
  export * from "./RimeTts.mjs";
75
77
  export * from "./RimeTtsParams.mjs";
78
+ export * from "./RtzrAsr.mjs";
79
+ export * from "./RtzrAsrParams.mjs";
76
80
  export * from "./SarvamAsr.mjs";
77
81
  export * from "./SarvamAsrParams.mjs";
78
82
  export * from "./SarvamTts.mjs";
@@ -1,10 +1,10 @@
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, AzureOpenAIRealtimeOptions, AzureOpenAIRealtimeParams, BaseMllmOptions, 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, FillerWordsContentGeneratedConfig, FillerWordsContentSelectionRule, FillerWordsContentStaticConfig, FillerWordsGeneratedLlmProvider, FillerWordsTrigger, FillerWordsTriggerFixedTimeConfig, FishAudioTTSOptions, FishAudioTts, FishAudioTtsParams, GeminiAsrParams, GeminiLiveModel, GeminiLiveOptions, GeminiLiveVoice, GeminiOptions, GeminiPreviewVoice, GeminiSTTModel, GeminiSTTOptions, GeminiThinkingLevel, 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, LemonSliceOptions, LiveAvatarAvatarConfig, LiveAvatarAvatarOptions, LiveAvatarSampleRate, LlmConfig, LlmGreetingConfigs, LlmGreetingConfigsMode, LlmPreset, LlmStyle, LlmTool, LlmToolExecution, LlmToolFunction, LlmToolServer, LlmVendor, McpServer, McpServersItem, MicrosoftCNSampleRate, MicrosoftCNSTTOptions, MicrosoftCNTTSOptions, MicrosoftSampleRate, MicrosoftSTTOptions, MicrosoftTTSOptions, MicrosoftTts, MicrosoftTtsParams, MiniMaxCNTTSOptions, MiniMaxTTSOptions, MinimaxTts, MinimaxTtsParams, MistralTTSOptions, MistralTts, MistralTtsParams, MllmConfig, MllmTurnDetectionConfig, MllmTurnDetectionMode, MllmVendor, MurfTTSOptions, MurfTts, MurfTtsParams, OpenAIGPTLiveOptions, OpenAIOptions, OpenAIRealtimeOptions, OpenAISTTOptions, OpenAITTSOptions, OpenAiTts, OpenAiTtsParams, ParametersAudioScenario, ParametersDataChannel, PresetCategory, PresetInput, PreviewFeature, PreviewRoute, ProtofaceOptions, QwenOmniOptions, RimeTTSOptions, RimeTts, RimeTtsParams, RtcConfig, SalConfig, SalMode, SampleRate, SarvamSTTOptions, SarvamTTSOptions, SarvamTts, SarvamTtsParams, SayOptions, SensetimeAvatarConfig, SensetimeAvatarOptions, SessionInfo, SessionListResponse, SessionOptions, SessionParams, SessionParamsInput, SessionStatus, SessionSummary, SilenceAction, SilenceConfig, SmallestAISTTOptions, SmallestAITTSOptions, SmallestAiAsr, SmallestAiAsrParams, SmallestAiTts, SmallestAiTtsParams, SpatiusAvatarConfig, SpatiusAvatarOptions, SpatiusAvatarParams, SpeakPriority, SpeechmaticsSTTOptions, StartOfSpeechConfig, StartOfSpeechDisabledConfig, StartOfSpeechDisabledConfigStrategy, StartOfSpeechKeywordsConfig, StartOfSpeechMode, StartOfSpeechVadConfig, StepFunTTSOptions, StrictAvatarConfig, SttConfig, SttVendor, TavusOptions, 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, createPreviewRoute, DataChannel, DeepgramSTT, DeepgramTTS, DeepSeekLLM, Dify, ElevenLabsTTS, ExpiresIn, FengmingSTT, FillerWordsSelectionRule, FishAudioTTS, GEMINI_MLLM_DEFAULT_MODEL, GEMINI_MLLM_URL, GEMINI_PREVIEW_MLLM_URL, Gemini, GeminiLive, GeminiLiveModels, GeminiSTT, GeminiSTTModels, GeminiThinkingLevels, GeminiTranscriptionMode, 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, LemonSlice, LiveAvatarAvatar, MAX_EXPIRY_SECONDS, MicrosoftCNSTT, MicrosoftCNTTS, MicrosoftSTT, MicrosoftTTS, MiniMaxCNTTS, MiniMaxTTS, MistralTTS, MllmTurnDetectionModeAgoraVad, MllmTurnDetectionModeSemanticVad, MllmTurnDetectionModeServerVad, MllmTurnDetectionModeValues, MurfTTS, normalizePresetInput, OpenAI, OpenAIGPTLive, OpenAIRealtime, OpenAISTT, OpenAITTS, PREVIEW_API_BASE_URL, PREVIEW_FEATURE_HEADER, PreviewFeatures, Protoface, previewRequestHeaders, QwenOmni, REDACTED, RimeTTS, redactHeadersForDebug, redactSecrets, SalModeValues, SarvamSTT, SarvamTTS, SensetimeAvatar, SilenceActionValues, SmallestAISTT, SmallestAITTS, SpatiusAvatar, SpeakPriorityAppend, SpeakPriorityIgnore, SpeakPriorityInterrupt, SpeakPriorityValues, SpeechmaticsSTT, StepFunTTS, Tavus, 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
- export type { GeminiTTSConfig, GeminiTTSModel, GeminiTTSOptions } from "./agentkit/preview/gemini-tts.mjs";
7
- export { GeminiTTS, GeminiTTSModels } from "./agentkit/preview/gemini-tts.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, BaseMllmOptions, 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, FillerWordsContentGeneratedConfig, FillerWordsContentSelectionRule, FillerWordsContentStaticConfig, FillerWordsGeneratedLlmProvider, FillerWordsTrigger, FillerWordsTriggerFixedTimeConfig, FishAudioTTSOptions, FishAudioTts, FishAudioTtsParams, GeminiAsrParams, GeminiLiveModel, GeminiLiveOptions, GeminiLiveVoice, GeminiOptions, GeminiPreviewVoice, GeminiSTTModel, GeminiSTTOptions, GeminiThinkingLevel, GenerateClientTokenOptions, 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, LemonSliceOptions, LiveAvatarAvatarConfig, LiveAvatarAvatarOptions, LiveAvatarSampleRate, LlmConfig, LlmGreetingConfigs, LlmGreetingConfigsMode, LlmPreset, LlmStyle, LlmTool, LlmToolExecution, LlmToolFunction, LlmToolServer, LlmVendor, McpServer, McpServersItem, MicrosoftCNSampleRate, MicrosoftCNSTTOptions, MicrosoftCNTTSOptions, MicrosoftSampleRate, MicrosoftSTTOptions, MicrosoftTTSOptions, MicrosoftTts, MicrosoftTtsParams, MiniMaxCNTTSOptions, MiniMaxTTSOptions, MinimaxTts, MinimaxTtsParams, MistralTTSOptions, MistralTts, MistralTtsParams, MllmConfig, MllmTurnDetectionConfig, MllmTurnDetectionMode, MllmVendor, MurfTTSOptions, MurfTts, MurfTtsParams, OpenAIGPTLiveOptions, OpenAIOptions, OpenAIRealtimeOptions, OpenAISTTOptions, OpenAITTSOptions, OpenAiTts, OpenAiTtsParams, ParametersAudioScenario, ParametersDataChannel, PresetCategory, PresetInput, PreviewFeature, PreviewRoute, ProtofaceOptions, QwenOmniOptions, RimeTTSOptions, RimeTts, RimeTtsParams, RTZRSTTOptions, RtcConfig, RtzrAsr, RtzrAsrParams, SalConfig, SalMode, SampleRate, SarvamSTTOptions, SarvamTTSOptions, SarvamTts, SarvamTtsParams, SayOptions, SensetimeAvatarConfig, SensetimeAvatarOptions, SessionInfo, SessionListResponse, SessionOptions, SessionParams, SessionParamsInput, SessionStatus, SessionSummary, SilenceAction, SilenceConfig, SmallestAISTTOptions, SmallestAITTSOptions, SmallestAiAsr, SmallestAiAsrParams, SmallestAiTts, SmallestAiTtsParams, SpatiusAvatarConfig, SpatiusAvatarOptions, SpatiusAvatarParams, SpeakConfig, SpeakPriority, SpeechmaticsSTTOptions, StartOfSpeechConfig, StartOfSpeechDisabledConfig, StartOfSpeechDisabledConfigStrategy, StartOfSpeechKeywordsConfig, StartOfSpeechMode, StartOfSpeechVadConfig, StepFunTTSOptions, StrictAvatarConfig, SttConfig, SttVendor, TavusOptions, 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, createPreviewRoute, DataChannel, DeepgramSTT, DeepgramTTS, DeepSeekLLM, Dify, ElevenLabsTTS, ExpiresIn, FengmingSTT, FillerWordsSelectionRule, FishAudioTTS, GEMINI_MLLM_DEFAULT_MODEL, GEMINI_MLLM_URL, GEMINI_PREVIEW_MLLM_URL, Gemini, GeminiLive, GeminiLiveModels, GeminiSTT, GeminiSTTModels, GeminiThinkingLevels, GeminiTranscriptionMode, GenericAvatar, GenericTTS, Geofence, GoogleSTT, GoogleTTS, GradiumTTS, Groq, generateClientToken, generateConvoAIToken, generateRtcToken, HeyGenAvatar, HumeAITTS, InterruptionDisabledStrategy, InterruptionDisabledStrategyAppend, InterruptionDisabledStrategyIgnore, InterruptionModeKeywords, InterruptionModeStartOfSpeech, InterruptionModeValues, isAkoolAvatar, isAnamAvatar, isAvatarTokenManaged, isGenericAvatar, isHeyGenAvatar, isLiveAvatarAvatar, isSensetimeAvatar, isSpatiusAvatar, LemonSlice, LiveAvatarAvatar, MAX_EXPIRY_SECONDS, MicrosoftCNSTT, MicrosoftCNTTS, MicrosoftSTT, MicrosoftTTS, MiniMaxCNTTS, MiniMaxTTS, MistralTTS, MllmTurnDetectionModeAgoraVad, MllmTurnDetectionModeSemanticVad, MllmTurnDetectionModeServerVad, MllmTurnDetectionModeValues, MurfTTS, normalizePresetInput, OpenAI, OpenAIGPTLive, OpenAIRealtime, OpenAISTT, OpenAITTS, PREVIEW_API_BASE_URL, PREVIEW_FEATURE_HEADER, PreviewFeatures, Protoface, previewRequestHeaders, QwenOmni, REDACTED, RimeTTS, RTZRSTT, redactHeadersForDebug, redactSecrets, SalModeValues, SarvamSTT, SarvamTTS, SarvamTTSLanguage, SensetimeAvatar, SilenceActionValues, SmallestAISTT, SmallestAITTS, SpatiusAvatar, SpeakPriorityAppend, SpeakPriorityIgnore, SpeakPriorityInterrupt, SpeakPriorityValues, SpeechmaticsSTT, StepFunTTS, Tavus, 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
+ export type { GeminiTTSConfig, GeminiTTSModel, GeminiTTSOptions } from "./agentkit/vendors/tts.mjs";
7
+ export { GeminiTTS, GeminiTTSModels } from "./agentkit/vendors/tts.mjs";
8
8
  export * as Agora from "./api/index.mjs";
9
9
  export type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
10
10
  export { Area } from "./core/domain/index.mjs";
@@ -4,16 +4,16 @@ export { Agent, AgentPresets, AgentSession, AkoolAvatar, AliyunLLM, AmazonBedroc
4
4
  // Base vendor classes
5
5
  BaseLLM, BaseMLLM, BaseSTT, BaseTTS, BytedanceDuplexTTS, BytedanceLLM, BytedanceTTS, CartesiaTTS, CosyVoiceTTS, CredentialMode, CustomLLM, createPreviewRoute, DataChannel, DeepgramSTT, DeepgramTTS, DeepSeekLLM, Dify,
6
6
  // TTS vendors
7
- ElevenLabsTTS, ExpiresIn, FengmingSTT, FillerWordsSelectionRule, FishAudioTTS, GEMINI_MLLM_DEFAULT_MODEL, GEMINI_MLLM_URL, GEMINI_PREVIEW_MLLM_URL, Gemini, GeminiLive, GeminiLiveModels, GeminiSTT, GeminiSTTModels, GeminiThinkingLevels, GeminiTranscriptionMode, GenericAvatar, GenericTTS, Geofence, GoogleSTT, GoogleTTS, GradiumTTS, Groq, generateConvoAIToken, generateRtcToken,
7
+ ElevenLabsTTS, ExpiresIn, FengmingSTT, FillerWordsSelectionRule, FishAudioTTS, GEMINI_MLLM_DEFAULT_MODEL, GEMINI_MLLM_URL, GEMINI_PREVIEW_MLLM_URL, Gemini, GeminiLive, GeminiLiveModels, GeminiSTT, GeminiSTTModels, GeminiThinkingLevels, GeminiTranscriptionMode, GenericAvatar, GenericTTS, Geofence, GoogleSTT, GoogleTTS, GradiumTTS, Groq, generateClientToken, generateConvoAIToken, generateRtcToken,
8
8
  // Avatar vendors
9
9
  HeyGenAvatar, HumeAITTS, InterruptionDisabledStrategy, InterruptionDisabledStrategyAppend, InterruptionDisabledStrategyIgnore, InterruptionModeKeywords, InterruptionModeStartOfSpeech, InterruptionModeValues, isAkoolAvatar, isAnamAvatar, isAvatarTokenManaged, isGenericAvatar, isHeyGenAvatar, isLiveAvatarAvatar, isSensetimeAvatar, isSpatiusAvatar, LemonSlice, LiveAvatarAvatar, MAX_EXPIRY_SECONDS, MicrosoftCNSTT, MicrosoftCNTTS, MicrosoftSTT, MicrosoftTTS, MiniMaxCNTTS, MiniMaxTTS, MistralTTS, MllmTurnDetectionModeAgoraVad, MllmTurnDetectionModeSemanticVad, MllmTurnDetectionModeServerVad, MllmTurnDetectionModeValues, MurfTTS, normalizePresetInput,
10
10
  // LLM vendors
11
11
  OpenAI, OpenAIGPTLive,
12
12
  // MLLM vendors
13
- OpenAIRealtime, OpenAISTT, OpenAITTS, PREVIEW_API_BASE_URL, PREVIEW_FEATURE_HEADER, PreviewFeatures, Protoface, previewRequestHeaders, QwenOmni, REDACTED, RimeTTS, redactHeadersForDebug, redactSecrets, SalModeValues, SarvamSTT, SarvamTTS, SensetimeAvatar, SilenceActionValues, SmallestAISTT, SmallestAITTS, SpatiusAvatar, SpeakPriorityAppend, SpeakPriorityIgnore, SpeakPriorityInterrupt, SpeakPriorityValues,
13
+ OpenAIRealtime, OpenAISTT, OpenAITTS, PREVIEW_API_BASE_URL, PREVIEW_FEATURE_HEADER, PreviewFeatures, Protoface, previewRequestHeaders, QwenOmni, REDACTED, RimeTTS, RTZRSTT, redactHeadersForDebug, redactSecrets, SalModeValues, SarvamSTT, SarvamTTS, SarvamTTSLanguage, SensetimeAvatar, SilenceActionValues, SmallestAISTT, SmallestAITTS, SpatiusAvatar, SpeakPriorityAppend, SpeakPriorityIgnore, SpeakPriorityInterrupt, SpeakPriorityValues,
14
14
  // STT vendors
15
15
  SpeechmaticsSTT, StepFunTTS, Tavus, 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
- export { GeminiTTS, GeminiTTSModels } from "./agentkit/preview/gemini-tts.mjs";
16
+ export { GeminiTTS, GeminiTTSModels } from "./agentkit/vendors/tts.mjs";
17
17
  export * as Agora from "./api/index.mjs";
18
18
  export { Area } from "./core/domain/index.mjs";
19
19
  export { AgoraEnvironment } from "./environments.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "v2.12.0";
1
+ export declare const SDK_VERSION = "v2.13.1";
@@ -1 +1 @@
1
- export const SDK_VERSION = "v2.12.0";
1
+ export const SDK_VERSION = "v2.13.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agora-agents",
3
- "version": "2.12.0",
3
+ "version": "2.13.1",
4
4
  "private": false,
5
5
  "repository": "github:AgoraIO/agora-agents-ts",
6
6
  "type": "commonjs",
@@ -49,7 +49,7 @@
49
49
  "test:coverage:unit": "vitest run --project unit --coverage"
50
50
  },
51
51
  "dependencies": {
52
- "agora-token": "^2.0.5"
52
+ "agora-token": "^2.0.6"
53
53
  },
54
54
  "devDependencies": {
55
55
  "webpack": "^5.97.1",