agora-agents 2.12.0 → 2.13.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 (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 +5 -7
  7. package/dist/cjs/agentkit/index.js +7 -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 +6 -5
  16. package/dist/cjs/agentkit/token.js +7 -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 +7 -5
  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 +5 -7
  56. package/dist/esm/agentkit/index.mjs +2 -3
  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 +6 -5
  65. package/dist/esm/agentkit/token.mjs +7 -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 +2 -2
  98. package/dist/esm/version.d.mts +1 -1
  99. package/dist/esm/version.mjs +1 -1
  100. package/package.json +2 -2
@@ -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, 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, 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";
@@ -10,10 +10,10 @@ HeyGenAvatar, HumeAITTS, InterruptionDisabledStrategy, InterruptionDisabledStrat
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.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "v2.12.0";
1
+ export const SDK_VERSION = "v2.13.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agora-agents",
3
- "version": "2.12.0",
3
+ "version": "2.13.0",
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",