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
@@ -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.js";
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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import type * as Agora from "../index.js";
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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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";
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.SarvamTtsParams = void 0;
5
5
  var SarvamTtsParams;
6
6
  (function (SarvamTtsParams) {
7
- /** Target language code (e.g., en-IN) */
7
+ /** Target language code in BCP-47 format (e.g., `hi-IN`, `bn-IN`, `en-IN`). */
8
8
  SarvamTtsParams.TargetLanguageCode = {
9
9
  EnIn: "en-IN",
10
10
  HiIn: "hi-IN",
@@ -1,5 +1,5 @@
1
1
  import type * as Agora from "../index.js";
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.js";
32
32
  export * from "./FishAudioTtsParams.js";
33
33
  export * from "./GeminiAsr.js";
34
34
  export * from "./GeminiAsrParams.js";
35
+ export * from "./GeminiTts.js";
36
+ export * from "./GeminiTtsParams.js";
35
37
  export * from "./GenericHttpTts.js";
36
38
  export * from "./GenericHttpTtsParams.js";
37
39
  export * from "./GoogleAsr.js";
@@ -73,6 +75,8 @@ export * from "./OpenAiTts.js";
73
75
  export * from "./OpenAiTtsParams.js";
74
76
  export * from "./RimeTts.js";
75
77
  export * from "./RimeTtsParams.js";
78
+ export * from "./RtzrAsr.js";
79
+ export * from "./RtzrAsrParams.js";
76
80
  export * from "./SarvamAsr.js";
77
81
  export * from "./SarvamAsrParams.js";
78
82
  export * from "./SarvamTts.js";
@@ -48,6 +48,8 @@ __exportStar(require("./FishAudioTts.js"), exports);
48
48
  __exportStar(require("./FishAudioTtsParams.js"), exports);
49
49
  __exportStar(require("./GeminiAsr.js"), exports);
50
50
  __exportStar(require("./GeminiAsrParams.js"), exports);
51
+ __exportStar(require("./GeminiTts.js"), exports);
52
+ __exportStar(require("./GeminiTtsParams.js"), exports);
51
53
  __exportStar(require("./GenericHttpTts.js"), exports);
52
54
  __exportStar(require("./GenericHttpTtsParams.js"), exports);
53
55
  __exportStar(require("./GoogleAsr.js"), exports);
@@ -89,6 +91,8 @@ __exportStar(require("./OpenAiTts.js"), exports);
89
91
  __exportStar(require("./OpenAiTtsParams.js"), exports);
90
92
  __exportStar(require("./RimeTts.js"), exports);
91
93
  __exportStar(require("./RimeTtsParams.js"), exports);
94
+ __exportStar(require("./RtzrAsr.js"), exports);
95
+ __exportStar(require("./RtzrAsrParams.js"), exports);
92
96
  __exportStar(require("./SarvamAsr.js"), exports);
93
97
  __exportStar(require("./SarvamAsrParams.js"), exports);
94
98
  __exportStar(require("./SarvamTts.js"), exports);
@@ -1,10 +1,10 @@
1
1
  export type { AgoraAuthMode } from "./AgoraPoolClient.js";
2
2
  export { AgoraClient } from "./AgoraPoolClient.js";
3
3
  export type { AgoraArea, AreaScope, GlobalArea } from "./agentkit/area.js";
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.js";
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.js";
6
- export type { GeminiTTSConfig, GeminiTTSModel, GeminiTTSOptions } from "./agentkit/preview/gemini-tts.js";
7
- export { GeminiTTS, GeminiTTSModels } from "./agentkit/preview/gemini-tts.js";
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.js";
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.js";
6
+ export type { GeminiTTSConfig, GeminiTTSModel, GeminiTTSOptions } from "./agentkit/vendors/tts.js";
7
+ export { GeminiTTS, GeminiTTSModels } from "./agentkit/vendors/tts.js";
8
8
  export * as Agora from "./api/index.js";
9
9
  export type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
10
10
  export { Area } from "./core/domain/index.js";
package/dist/cjs/index.js CHANGED
@@ -37,9 +37,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.GeminiLiveModels = exports.GeminiLive = exports.Gemini = exports.GEMINI_PREVIEW_MLLM_URL = exports.GEMINI_MLLM_URL = exports.GEMINI_MLLM_DEFAULT_MODEL = exports.FishAudioTTS = exports.FillerWordsSelectionRule = exports.FengmingSTT = exports.ExpiresIn = exports.ElevenLabsTTS = exports.Dify = exports.DeepSeekLLM = exports.DeepgramTTS = exports.DeepgramSTT = exports.DataChannel = exports.createPreviewRoute = exports.CustomLLM = exports.CredentialMode = exports.CosyVoiceTTS = exports.CartesiaTTS = exports.BytedanceTTS = exports.BytedanceLLM = exports.BytedanceDuplexTTS = exports.BaseTTS = exports.BaseSTT = exports.BaseMLLM = exports.BaseLLM = exports.BaseCNTTS = exports.BaseCNSTT = exports.BaseCNMLLM = exports.BaseCNLLM = exports.BaseCNAvatar = exports.BaseAvatar = exports.AzureOpenAIRealtime = exports.AzureOpenAI = exports.AudioScenario = exports.AssemblyAISTT = exports.AresSTT = exports.Anthropic = exports.AnamAvatar = exports.AmazonTTS = exports.AmazonSTT = exports.AmazonBedrock = exports.AliyunLLM = exports.AkoolAvatar = exports.AgentSession = exports.AgentPresets = exports.Agent = exports.AgoraClient = void 0;
40
- exports.OpenAITTS = exports.OpenAISTT = exports.OpenAIRealtime = exports.OpenAIGPTLive = exports.OpenAI = exports.normalizePresetInput = exports.MurfTTS = exports.MllmTurnDetectionModeValues = exports.MllmTurnDetectionModeServerVad = exports.MllmTurnDetectionModeSemanticVad = exports.MllmTurnDetectionModeAgoraVad = exports.MistralTTS = exports.MiniMaxTTS = exports.MiniMaxCNTTS = exports.MicrosoftTTS = exports.MicrosoftSTT = exports.MicrosoftCNTTS = exports.MicrosoftCNSTT = exports.MAX_EXPIRY_SECONDS = exports.LiveAvatarAvatar = exports.LemonSlice = exports.isSpatiusAvatar = exports.isSensetimeAvatar = exports.isLiveAvatarAvatar = exports.isHeyGenAvatar = exports.isGenericAvatar = exports.isAvatarTokenManaged = exports.isAnamAvatar = exports.isAkoolAvatar = exports.InterruptionModeValues = exports.InterruptionModeStartOfSpeech = exports.InterruptionModeKeywords = exports.InterruptionDisabledStrategyIgnore = exports.InterruptionDisabledStrategyAppend = exports.InterruptionDisabledStrategy = exports.HumeAITTS = exports.HeyGenAvatar = exports.generateRtcToken = exports.generateConvoAIToken = exports.Groq = exports.GradiumTTS = exports.GoogleTTS = exports.GoogleSTT = exports.Geofence = exports.GenericTTS = exports.GenericAvatar = exports.GeminiTranscriptionMode = exports.GeminiThinkingLevels = exports.GeminiSTTModels = exports.GeminiSTT = void 0;
41
- exports.GeminiTTSModels = exports.GeminiTTS = exports.XfyunSTT = exports.XfyunDialectSTT = exports.XfyunBigModelSTT = exports.XaiGrok = exports.XAiTTS = exports.XAiSTT = exports.validateTtsSampleRate = exports.validateAvatarConfig = exports.VertexAILLM = exports.VertexAI = exports.toBaseAvatarConfig = exports.TypecastTTS = exports.TurnDetectionTypeValues = exports.ThinkOnThinkingActionInterrupt = exports.ThinkOnThinkingActionIgnore = exports.ThinkOnSpeakingActionInterrupt = exports.ThinkOnSpeakingActionIgnore = exports.ThinkOnListeningActionInterrupt = exports.ThinkOnListeningActionInject = exports.ThinkOnListeningActionIgnore = exports.TencentTTS = exports.TencentSTT = exports.TencentLLM = exports.Tavus = exports.StepFunTTS = exports.SpeechmaticsSTT = exports.SpeakPriorityValues = exports.SpeakPriorityInterrupt = exports.SpeakPriorityIgnore = exports.SpeakPriorityAppend = exports.SpatiusAvatar = exports.SmallestAITTS = exports.SmallestAISTT = exports.SilenceActionValues = exports.SensetimeAvatar = exports.SarvamTTS = exports.SarvamSTT = exports.SalModeValues = exports.redactSecrets = exports.redactHeadersForDebug = exports.RimeTTS = exports.REDACTED = exports.QwenOmni = exports.previewRequestHeaders = exports.Protoface = exports.PreviewFeatures = exports.PREVIEW_FEATURE_HEADER = exports.PREVIEW_API_BASE_URL = void 0;
42
- exports.AgoraTimeoutError = exports.AgoraError = exports.AgoraEnvironment = exports.Area = exports.Agora = void 0;
40
+ exports.OpenAISTT = exports.OpenAIRealtime = exports.OpenAIGPTLive = exports.OpenAI = exports.normalizePresetInput = exports.MurfTTS = exports.MllmTurnDetectionModeValues = exports.MllmTurnDetectionModeServerVad = exports.MllmTurnDetectionModeSemanticVad = exports.MllmTurnDetectionModeAgoraVad = exports.MistralTTS = exports.MiniMaxTTS = exports.MiniMaxCNTTS = exports.MicrosoftTTS = exports.MicrosoftSTT = exports.MicrosoftCNTTS = exports.MicrosoftCNSTT = exports.MAX_EXPIRY_SECONDS = exports.LiveAvatarAvatar = exports.LemonSlice = exports.isSpatiusAvatar = exports.isSensetimeAvatar = exports.isLiveAvatarAvatar = exports.isHeyGenAvatar = exports.isGenericAvatar = exports.isAvatarTokenManaged = exports.isAnamAvatar = exports.isAkoolAvatar = exports.InterruptionModeValues = exports.InterruptionModeStartOfSpeech = exports.InterruptionModeKeywords = exports.InterruptionDisabledStrategyIgnore = exports.InterruptionDisabledStrategyAppend = exports.InterruptionDisabledStrategy = exports.HumeAITTS = exports.HeyGenAvatar = exports.generateRtcToken = exports.generateConvoAIToken = exports.generateClientToken = exports.Groq = exports.GradiumTTS = exports.GoogleTTS = exports.GoogleSTT = exports.Geofence = exports.GenericTTS = exports.GenericAvatar = exports.GeminiTranscriptionMode = exports.GeminiThinkingLevels = exports.GeminiSTTModels = exports.GeminiSTT = void 0;
41
+ exports.XfyunDialectSTT = exports.XfyunBigModelSTT = exports.XaiGrok = exports.XAiTTS = exports.XAiSTT = exports.validateTtsSampleRate = exports.validateAvatarConfig = exports.VertexAILLM = exports.VertexAI = exports.toBaseAvatarConfig = exports.TypecastTTS = exports.TurnDetectionTypeValues = exports.ThinkOnThinkingActionInterrupt = exports.ThinkOnThinkingActionIgnore = exports.ThinkOnSpeakingActionInterrupt = exports.ThinkOnSpeakingActionIgnore = exports.ThinkOnListeningActionInterrupt = exports.ThinkOnListeningActionInject = exports.ThinkOnListeningActionIgnore = exports.TencentTTS = exports.TencentSTT = exports.TencentLLM = exports.Tavus = exports.StepFunTTS = exports.SpeechmaticsSTT = exports.SpeakPriorityValues = exports.SpeakPriorityInterrupt = exports.SpeakPriorityIgnore = exports.SpeakPriorityAppend = exports.SpatiusAvatar = exports.SmallestAITTS = exports.SmallestAISTT = exports.SilenceActionValues = exports.SensetimeAvatar = exports.SarvamTTSLanguage = exports.SarvamTTS = exports.SarvamSTT = exports.SalModeValues = exports.redactSecrets = exports.redactHeadersForDebug = exports.RTZRSTT = exports.RimeTTS = exports.REDACTED = exports.QwenOmni = exports.previewRequestHeaders = exports.Protoface = exports.PreviewFeatures = exports.PREVIEW_FEATURE_HEADER = exports.PREVIEW_API_BASE_URL = exports.OpenAITTS = void 0;
42
+ exports.AgoraTimeoutError = exports.AgoraError = exports.AgoraEnvironment = exports.Area = exports.Agora = exports.GeminiTTSModels = exports.GeminiTTS = exports.XfyunSTT = void 0;
43
43
  var AgoraPoolClient_js_1 = require("./AgoraPoolClient.js");
44
44
  Object.defineProperty(exports, "AgoraClient", { enumerable: true, get: function () { return AgoraPoolClient_js_1.AgoraClient; } });
45
45
  // Agentkit layer exports - clean, ergonomic API
@@ -106,6 +106,7 @@ Object.defineProperty(exports, "GoogleSTT", { enumerable: true, get: function ()
106
106
  Object.defineProperty(exports, "GoogleTTS", { enumerable: true, get: function () { return index_js_1.GoogleTTS; } });
107
107
  Object.defineProperty(exports, "GradiumTTS", { enumerable: true, get: function () { return index_js_1.GradiumTTS; } });
108
108
  Object.defineProperty(exports, "Groq", { enumerable: true, get: function () { return index_js_1.Groq; } });
109
+ Object.defineProperty(exports, "generateClientToken", { enumerable: true, get: function () { return index_js_1.generateClientToken; } });
109
110
  Object.defineProperty(exports, "generateConvoAIToken", { enumerable: true, get: function () { return index_js_1.generateConvoAIToken; } });
110
111
  Object.defineProperty(exports, "generateRtcToken", { enumerable: true, get: function () { return index_js_1.generateRtcToken; } });
111
112
  // Avatar vendors
@@ -156,11 +157,13 @@ Object.defineProperty(exports, "previewRequestHeaders", { enumerable: true, get:
156
157
  Object.defineProperty(exports, "QwenOmni", { enumerable: true, get: function () { return index_js_1.QwenOmni; } });
157
158
  Object.defineProperty(exports, "REDACTED", { enumerable: true, get: function () { return index_js_1.REDACTED; } });
158
159
  Object.defineProperty(exports, "RimeTTS", { enumerable: true, get: function () { return index_js_1.RimeTTS; } });
160
+ Object.defineProperty(exports, "RTZRSTT", { enumerable: true, get: function () { return index_js_1.RTZRSTT; } });
159
161
  Object.defineProperty(exports, "redactHeadersForDebug", { enumerable: true, get: function () { return index_js_1.redactHeadersForDebug; } });
160
162
  Object.defineProperty(exports, "redactSecrets", { enumerable: true, get: function () { return index_js_1.redactSecrets; } });
161
163
  Object.defineProperty(exports, "SalModeValues", { enumerable: true, get: function () { return index_js_1.SalModeValues; } });
162
164
  Object.defineProperty(exports, "SarvamSTT", { enumerable: true, get: function () { return index_js_1.SarvamSTT; } });
163
165
  Object.defineProperty(exports, "SarvamTTS", { enumerable: true, get: function () { return index_js_1.SarvamTTS; } });
166
+ Object.defineProperty(exports, "SarvamTTSLanguage", { enumerable: true, get: function () { return index_js_1.SarvamTTSLanguage; } });
164
167
  Object.defineProperty(exports, "SensetimeAvatar", { enumerable: true, get: function () { return index_js_1.SensetimeAvatar; } });
165
168
  Object.defineProperty(exports, "SilenceActionValues", { enumerable: true, get: function () { return index_js_1.SilenceActionValues; } });
166
169
  Object.defineProperty(exports, "SmallestAISTT", { enumerable: true, get: function () { return index_js_1.SmallestAISTT; } });
@@ -197,9 +200,9 @@ Object.defineProperty(exports, "XaiGrok", { enumerable: true, get: function () {
197
200
  Object.defineProperty(exports, "XfyunBigModelSTT", { enumerable: true, get: function () { return index_js_1.XfyunBigModelSTT; } });
198
201
  Object.defineProperty(exports, "XfyunDialectSTT", { enumerable: true, get: function () { return index_js_1.XfyunDialectSTT; } });
199
202
  Object.defineProperty(exports, "XfyunSTT", { enumerable: true, get: function () { return index_js_1.XfyunSTT; } });
200
- var gemini_tts_js_1 = require("./agentkit/preview/gemini-tts.js");
201
- Object.defineProperty(exports, "GeminiTTS", { enumerable: true, get: function () { return gemini_tts_js_1.GeminiTTS; } });
202
- Object.defineProperty(exports, "GeminiTTSModels", { enumerable: true, get: function () { return gemini_tts_js_1.GeminiTTSModels; } });
203
+ var tts_js_1 = require("./agentkit/vendors/tts.js");
204
+ Object.defineProperty(exports, "GeminiTTS", { enumerable: true, get: function () { return tts_js_1.GeminiTTS; } });
205
+ Object.defineProperty(exports, "GeminiTTSModels", { enumerable: true, get: function () { return tts_js_1.GeminiTTSModels; } });
203
206
  exports.Agora = __importStar(require("./api/index.js"));
204
207
  var index_js_2 = require("./core/domain/index.js");
205
208
  Object.defineProperty(exports, "Area", { enumerable: true, get: function () { return index_js_2.Area; } });
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "v2.12.0";
1
+ export declare const SDK_VERSION = "v2.13.1";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "v2.12.0";
4
+ exports.SDK_VERSION = "v2.13.1";
@@ -5,8 +5,8 @@ export function normalizeClientOptions(options) {
5
5
  const headers = mergeHeaders({
6
6
  "X-Fern-Language": "JavaScript",
7
7
  "X-Fern-SDK-Name": "agora-agents",
8
- "X-Fern-SDK-Version": "v2.12.0",
9
- "User-Agent": "agora-agents/v2.12.0",
8
+ "X-Fern-SDK-Version": "v2.13.1",
9
+ "User-Agent": "agora-agents/v2.13.1",
10
10
  "X-Fern-Runtime": core.RUNTIME.type,
11
11
  "X-Fern-Runtime-Version": core.RUNTIME.version,
12
12
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -602,9 +602,8 @@ export class Agent {
602
602
  else {
603
603
  // opts is narrowed to the appId/appCertificate branch here
604
604
  const { appId, appCertificate, expiresIn } = opts;
605
- // Use buildTokenWithRtm (RTC + RTM) so the token works whether or not
606
- // the caller enables advanced_features.enable_rtm. The account string
607
- // works for both numeric and string UIDs.
605
+ // Build the ConvoAI-specific Token007 with RTC, RTM, and ConvoAI
606
+ // services. The account string works for numeric UIDs.
608
607
  token = generateConvoAIToken({
609
608
  appId,
610
609
  appCertificate,
@@ -744,6 +743,14 @@ export class Agent {
744
743
  delete params.language_codes;
745
744
  asrConfig.params = params;
746
745
  }
746
+ if (asrConfig.vendor === "deepgram" && asrConfig.params !== undefined) {
747
+ const params = Object.assign({}, asrConfig.params);
748
+ if (params.api_key === undefined && params.key !== undefined) {
749
+ params.api_key = params.key;
750
+ }
751
+ delete params.key;
752
+ asrConfig.params = params;
753
+ }
747
754
  // Turn detection is the single source of truth for the top-level
748
755
  // interaction language. Provider-specific languages remain in params.
749
756
  asrConfig.language = turnDetectionConfig.language;
@@ -259,9 +259,13 @@ export class AgentSession {
259
259
  }
260
260
  // Validate TTS sample rate against avatar requirements
261
261
  // Note: tts can be a string (shorthand) or an object with params
262
- // sample_rate may not exist on all TTS vendor params, so we check dynamically
262
+ // Sample-rate fields vary by provider, so check the generated wire names dynamically.
263
263
  const ttsParams = tts && typeof tts !== "string" ? tts.params : undefined;
264
- const sampleRate = ttsParams && "sample_rate" in ttsParams ? ttsParams.sample_rate : undefined;
264
+ const sampleRate = ttsParams && "sample_rate" in ttsParams
265
+ ? ttsParams.sample_rate
266
+ : ttsParams && "speech_sample_rate" in ttsParams
267
+ ? ttsParams.speech_sample_rate
268
+ : undefined;
265
269
  if (typeof sampleRate === "number") {
266
270
  if (isHeyGenAvatar(strictAvatar) || isLiveAvatarAvatar(strictAvatar) || isAkoolAvatar(strictAvatar)) {
267
271
  validateTtsSampleRate(strictAvatar, sampleRate);
@@ -77,6 +77,12 @@ export interface AnamAvatarConfig {
77
77
  api_key: string;
78
78
  /** Anam avatar ID (optional) */
79
79
  avatar_id?: string;
80
+ /** Anam avatar model, such as `cara_mk4` for Cara 4 portrait mode */
81
+ avatar_model?: string;
82
+ /** Output video width in pixels; set together with `video_height` */
83
+ video_width?: number;
84
+ /** Output video height in pixels; set together with `video_width` */
85
+ video_height?: number;
80
86
  [key: string]: unknown;
81
87
  };
82
88
  }
@@ -31,12 +31,10 @@ export type { AgentPreset, AsrPreset, DeepgramPresetModel, LlmPreset, MiniMaxPre
31
31
  export { AgentPresets, normalizePresetInput } from "./presets.mjs";
32
32
  export type { PreviewFeature, PreviewRoute } from "./preview/client.mjs";
33
33
  export { createPreviewRoute, PREVIEW_API_BASE_URL, PREVIEW_FEATURE_HEADER, PreviewFeatures, previewRequestHeaders, requiredPreviewFeatures, } from "./preview/client.mjs";
34
- export type { GeminiTTSConfig, GeminiTTSModel, GeminiTTSOptions } from "./preview/gemini-tts.mjs";
35
- export { GeminiTTS, GeminiTTSModels } from "./preview/gemini-tts.mjs";
36
34
  export type { AvatarVendor, CNAvatarVendor, CNLlmVendor, CNMllmVendor, CNSttVendor, CNTtsVendor, GlobalAvatarVendor, GlobalLlmVendor, GlobalMllmVendor, GlobalSttVendor, GlobalTtsVendor, LlmVendor, SttVendor, TtsVendor, } from "./region-vendors.mjs";
37
- export type { GenerateConvoAITokenOptions, GenerateTokenOptions, } from "./token.mjs";
38
- export { ExpiresIn, generateConvoAIToken, generateRtcToken, MAX_EXPIRY_SECONDS, } from "./token.mjs";
39
- export type { AdvancedFeatures, AgentConfig, AgentConfigUpdate, AmazonTts, AmazonTtsParams, AsrConfig, AsrVendorName, AvatarConfig, AvatarWireVendor, CartesiaTts, CartesiaTtsParams, ConversationHistory, ConversationRole, ConversationSessionTurn, ConversationTurn, ConversationTurns, Eagerness, ElevenLabsTts, ElevenLabsTtsParams, EndOfSpeechConfig, EndOfSpeechMode, EndOfSpeechSemanticConfig, EndOfSpeechVadConfig, FarewellConfig, FillerWordsConfig, FillerWordsContent, FillerWordsContentGeneratedConfig, FillerWordsContentSelectionRule, FillerWordsContentStaticConfig, FillerWordsGeneratedLlmProvider, FillerWordsTrigger, FillerWordsTriggerFixedTimeConfig, FishAudioTts, FishAudioTtsParams, GeminiAsrParams, GenericTts, GenericTtsParams, GeofenceArea, GeofenceConfig, GeofenceExcludeArea, GetTurnsOptions, GoogleTts, GoogleTtsParams, GradiumTts, GradiumTtsParams, HumeAiTts, HumeAiTtsParams, InterruptionConfig, InterruptionMode, InterruptMode, Labels, LlmConfig, LlmGreetingConfigs, LlmGreetingConfigsMode, LlmStyle, LlmTool, LlmToolExecution, LlmToolFunction, LlmToolServer, McpServer, McpServersItem, MicrosoftTts, MicrosoftTtsParams, MinimaxTts, MinimaxTtsParams, MistralTts, MistralTtsParams, MllmConfig, MllmTurnDetectionConfig, MllmTurnDetectionMode, MllmVendor, MurfTts, MurfTtsParams, OpenAiTts, OpenAiTtsParams, ParametersAudioScenario, ParametersDataChannel, RimeTts, RimeTtsParams, RtcConfig, SalConfig, SalMode, SarvamTts, SarvamTtsParams, SayOptions, SessionInfo, SessionListResponse, SessionOptions, SessionParams, SessionParamsInput, SessionStatus, SessionSummary, SilenceAction, SilenceConfig, SmallestAiAsr, SmallestAiAsrParams, SmallestAiTts, SmallestAiTtsParams, SpatiusAvatarParams, SpeakPriority, StartOfSpeechConfig, StartOfSpeechDisabledConfig, StartOfSpeechDisabledConfigStrategy, StartOfSpeechKeywordsConfig, StartOfSpeechMode, StartOfSpeechVadConfig, SttConfig, ThinkOnListeningAction, ThinkOnSpeakingAction, ThinkOnThinkingAction, ThinkOptions, ThinkResponse, TtsConfig, TurnDetectionConfig, TurnDetectionLanguage, TurnDetectionNestedConfig, TurnDetectionType, TypecastTts, TypecastTtsParams, XAiAsr, XAiAsrParams, XAiTts, XAiTtsParams, } from "./types.mjs";
35
+ export type { GenerateClientTokenOptions, GenerateConvoAITokenOptions, GenerateTokenOptions, } from "./token.mjs";
36
+ export { ExpiresIn, generateClientToken, generateConvoAIToken, generateRtcToken, MAX_EXPIRY_SECONDS, } from "./token.mjs";
37
+ export type { AdvancedFeatures, AgentConfig, AgentConfigUpdate, AmazonTts, AmazonTtsParams, AsrConfig, AsrVendorName, AvatarConfig, AvatarWireVendor, CartesiaTts, CartesiaTtsParams, ConversationHistory, ConversationRole, ConversationSessionTurn, ConversationTurn, ConversationTurns, Eagerness, ElevenLabsTts, ElevenLabsTtsParams, EndOfSpeechConfig, EndOfSpeechMode, EndOfSpeechSemanticConfig, EndOfSpeechVadConfig, FarewellConfig, FillerWordsConfig, FillerWordsContent, FillerWordsContentGeneratedConfig, FillerWordsContentSelectionRule, FillerWordsContentStaticConfig, FillerWordsGeneratedLlmProvider, FillerWordsTrigger, FillerWordsTriggerFixedTimeConfig, FishAudioTts, FishAudioTtsParams, GeminiAsrParams, GenericTts, GenericTtsParams, GeofenceArea, GeofenceConfig, GeofenceExcludeArea, GetTurnsOptions, GoogleTts, GoogleTtsParams, GradiumTts, GradiumTtsParams, HumeAiTts, HumeAiTtsParams, InterruptionConfig, InterruptionMode, InterruptMode, Labels, LlmConfig, LlmGreetingConfigs, LlmGreetingConfigsMode, LlmStyle, LlmTool, LlmToolExecution, LlmToolFunction, LlmToolServer, McpServer, McpServersItem, MicrosoftTts, MicrosoftTtsParams, MinimaxTts, MinimaxTtsParams, MistralTts, MistralTtsParams, MllmConfig, MllmTurnDetectionConfig, MllmTurnDetectionMode, MllmVendor, MurfTts, MurfTtsParams, OpenAiTts, OpenAiTtsParams, ParametersAudioScenario, ParametersDataChannel, RimeTts, RimeTtsParams, RtcConfig, RtzrAsr, RtzrAsrParams, SalConfig, SalMode, SarvamTts, SarvamTtsParams, SayOptions, SessionInfo, SessionListResponse, SessionOptions, SessionParams, SessionParamsInput, SessionStatus, SessionSummary, SilenceAction, SilenceConfig, SmallestAiAsr, SmallestAiAsrParams, SmallestAiTts, SmallestAiTtsParams, SpatiusAvatarParams, SpeakConfig, SpeakPriority, StartOfSpeechConfig, StartOfSpeechDisabledConfig, StartOfSpeechDisabledConfigStrategy, StartOfSpeechKeywordsConfig, StartOfSpeechMode, StartOfSpeechVadConfig, SttConfig, ThinkOnListeningAction, ThinkOnSpeakingAction, ThinkOnThinkingAction, ThinkOptions, ThinkResponse, TtsConfig, TurnDetectionConfig, TurnDetectionLanguage, TurnDetectionNestedConfig, TurnDetectionType, TypecastTts, TypecastTtsParams, XAiAsr, XAiAsrParams, XAiTts, XAiTtsParams, } from "./types.mjs";
40
38
  export type { AkoolAvatarOptions, AnamAvatarOptions, GenericAvatarOptions, HeyGenAvatarOptions, LemonSliceOptions, LiveAvatarAvatarOptions, ProtofaceOptions, TavusOptions, } from "./vendors/avatar.mjs";
41
39
  export { AkoolAvatar, AnamAvatar, GenericAvatar, HeyGenAvatar, LemonSlice, LiveAvatarAvatar, Protoface, Tavus, } from "./vendors/avatar.mjs";
42
40
  export type { AkoolSampleRate, CartesiaSampleRate, ElevenLabsSampleRate, HeyGenSampleRate, LiveAvatarSampleRate, MicrosoftSampleRate, SampleRate, } from "./vendors/base.mjs";
@@ -47,7 +45,7 @@ export type { AmazonBedrockOptions, AnthropicOptions, AzureOpenAIOptions, Custom
47
45
  export { AmazonBedrock, Anthropic, AzureOpenAI, CustomLLM, Dify, Gemini, Groq, OpenAI, VertexAILLM, } from "./vendors/llm.mjs";
48
46
  export type { AzureOpenAIRealtimeOptions, AzureOpenAIRealtimeParams, GeminiLiveModel, GeminiLiveOptions, GeminiLiveVoice, GeminiPreviewVoice, GeminiThinkingLevel, OpenAIGPTLiveOptions, OpenAIRealtimeOptions, QwenOmniOptions, VertexAIOptions, XaiGrokOptions, } from "./vendors/mllm.mjs";
49
47
  export { AzureOpenAIRealtime, GEMINI_MLLM_DEFAULT_MODEL, GEMINI_MLLM_URL, GEMINI_PREVIEW_MLLM_URL, GeminiLive, GeminiLiveModels, GeminiThinkingLevels, OpenAIGPTLive, OpenAIRealtime, QwenOmni, VertexAI, XaiGrok, } from "./vendors/mllm.mjs";
50
- export type { AmazonSTTOptions, AresSTTOptions, AssemblyAISTTOptions, DeepgramSTTOptions, GeminiSTTModel, GeminiSTTOptions, GoogleSTTOptions, MicrosoftSTTOptions, OpenAISTTOptions, SarvamSTTOptions, SmallestAISTTOptions, SpeechmaticsSTTOptions, XAiSTTOptions, } from "./vendors/stt.mjs";
51
- export { AmazonSTT, AresSTT, AssemblyAISTT, DeepgramSTT, GeminiSTT, GeminiSTTModels, GeminiTranscriptionMode, GoogleSTT, MicrosoftSTT, OpenAISTT, SarvamSTT, SmallestAISTT, SpeechmaticsSTT, XAiSTT, } from "./vendors/stt.mjs";
52
- export type { AmazonTTSOptions, CartesiaTTSOptions, DeepgramTTSOptions, ElevenLabsTTSOptions, FishAudioTTSOptions, GenericTTSOptions, GoogleTTSOptions, GradiumTTSOptions, HumeAITTSOptions, MicrosoftTTSOptions, MiniMaxTTSOptions, MistralTTSOptions, MurfTTSOptions, OpenAITTSOptions, RimeTTSOptions, SarvamTTSOptions, SmallestAITTSOptions, TypecastTTSOptions, XAiTTSOptions, } from "./vendors/tts.mjs";
53
- export { AmazonTTS, CartesiaTTS, DeepgramTTS, ElevenLabsTTS, FishAudioTTS, GenericTTS, GoogleTTS, GradiumTTS, HumeAITTS, MicrosoftTTS, MiniMaxTTS, MistralTTS, MurfTTS, OpenAITTS, RimeTTS, SarvamTTS, SmallestAITTS, TypecastTTS, XAiTTS, } from "./vendors/tts.mjs";
48
+ export type { AmazonSTTOptions, AresSTTOptions, AssemblyAISTTOptions, DeepgramSTTOptions, GeminiSTTModel, GeminiSTTOptions, GoogleSTTOptions, MicrosoftSTTOptions, OpenAISTTOptions, RTZRSTTOptions, SarvamSTTOptions, SmallestAISTTOptions, SpeechmaticsSTTOptions, XAiSTTOptions, } from "./vendors/stt.mjs";
49
+ export { AmazonSTT, AresSTT, AssemblyAISTT, DeepgramSTT, GeminiSTT, GeminiSTTModels, GeminiTranscriptionMode, GoogleSTT, MicrosoftSTT, OpenAISTT, RTZRSTT, SarvamSTT, SmallestAISTT, SpeechmaticsSTT, XAiSTT, } from "./vendors/stt.mjs";
50
+ export type { AmazonTTSOptions, CartesiaTTSOptions, DeepgramTTSOptions, ElevenLabsTTSOptions, FishAudioTTSOptions, GeminiTTSConfig, GeminiTTSModel, GeminiTTSOptions, GenericTTSOptions, GoogleTTSOptions, GradiumTTSOptions, HumeAITTSOptions, MicrosoftTTSOptions, MiniMaxTTSOptions, MistralTTSOptions, MurfTTSOptions, OpenAITTSOptions, RimeTTSOptions, SarvamTTSOptions, SmallestAITTSOptions, TypecastTTSOptions, XAiTTSOptions, } from "./vendors/tts.mjs";
51
+ export { AmazonTTS, CartesiaTTS, DeepgramTTS, ElevenLabsTTS, FishAudioTTS, GeminiTTS, GeminiTTSModels, GenericTTS, GoogleTTS, GradiumTTS, HumeAITTS, MicrosoftTTS, MiniMaxTTS, MistralTTS, MurfTTS, OpenAITTS, RimeTTS, SarvamTTS, SarvamTTSLanguage, SmallestAITTS, TypecastTTS, XAiTTS, } from "./vendors/tts.mjs";
@@ -27,9 +27,8 @@ export { AudioScenario, CredentialMode, DataChannel, FillerWordsSelectionRule, G
27
27
  export { REDACTED, redactHeadersForDebug, redactSecrets } from "./debug.mjs";
28
28
  export { AgentPresets, normalizePresetInput } from "./presets.mjs";
29
29
  export { createPreviewRoute, PREVIEW_API_BASE_URL, PREVIEW_FEATURE_HEADER, PreviewFeatures, previewRequestHeaders, requiredPreviewFeatures, } from "./preview/client.mjs";
30
- export { GeminiTTS, GeminiTTSModels } from "./preview/gemini-tts.mjs";
31
30
  // Token generation
32
- export { ExpiresIn, generateConvoAIToken, generateRtcToken, MAX_EXPIRY_SECONDS, } from "./token.mjs";
31
+ export { ExpiresIn, generateClientToken, generateConvoAIToken, generateRtcToken, MAX_EXPIRY_SECONDS, } from "./token.mjs";
33
32
  // Avatar vendor classes
34
33
  export { AkoolAvatar, AnamAvatar, GenericAvatar, HeyGenAvatar, LemonSlice, LiveAvatarAvatar, Protoface, Tavus, } from "./vendors/avatar.mjs";
35
34
  // Base vendor classes
@@ -40,6 +39,6 @@ export { AmazonBedrock, Anthropic, AzureOpenAI, CustomLLM, Dify, Gemini, Groq, O
40
39
  // MLLM vendor classes
41
40
  export { AzureOpenAIRealtime, GEMINI_MLLM_DEFAULT_MODEL, GEMINI_MLLM_URL, GEMINI_PREVIEW_MLLM_URL, GeminiLive, GeminiLiveModels, GeminiThinkingLevels, OpenAIGPTLive, OpenAIRealtime, QwenOmni, VertexAI, XaiGrok, } from "./vendors/mllm.mjs";
42
41
  // STT vendor classes
43
- export { AmazonSTT, AresSTT, AssemblyAISTT, DeepgramSTT, GeminiSTT, GeminiSTTModels, GeminiTranscriptionMode, GoogleSTT, MicrosoftSTT, OpenAISTT, SarvamSTT, SmallestAISTT, SpeechmaticsSTT, XAiSTT, } from "./vendors/stt.mjs";
42
+ export { AmazonSTT, AresSTT, AssemblyAISTT, DeepgramSTT, GeminiSTT, GeminiSTTModels, GeminiTranscriptionMode, GoogleSTT, MicrosoftSTT, OpenAISTT, RTZRSTT, SarvamSTT, SmallestAISTT, SpeechmaticsSTT, XAiSTT, } from "./vendors/stt.mjs";
44
43
  // TTS vendor classes
45
- export { AmazonTTS, CartesiaTTS, DeepgramTTS, ElevenLabsTTS, FishAudioTTS, GenericTTS, GoogleTTS, GradiumTTS, HumeAITTS, MicrosoftTTS, MiniMaxTTS, MistralTTS, MurfTTS, OpenAITTS, RimeTTS, SarvamTTS, SmallestAITTS, TypecastTTS, XAiTTS, } from "./vendors/tts.mjs";
44
+ export { AmazonTTS, CartesiaTTS, DeepgramTTS, ElevenLabsTTS, FishAudioTTS, GeminiTTS, GeminiTTSModels, GenericTTS, GoogleTTS, GradiumTTS, HumeAITTS, MicrosoftTTS, MiniMaxTTS, MistralTTS, MurfTTS, OpenAITTS, RimeTTS, SarvamTTS, SarvamTTSLanguage, SmallestAITTS, TypecastTTS, XAiTTS, } from "./vendors/tts.mjs";
@@ -84,10 +84,10 @@ function omitUndefinedKeys(value) {
84
84
  return Object.keys(next).length > 0 ? next : undefined;
85
85
  }
86
86
  export function inferAsrPreset(asr) {
87
- var _a, _b, _c;
88
- if (!asr || asr.vendor !== "deepgram" || ((_a = asr.params) === null || _a === void 0 ? void 0 : _a.key))
87
+ var _a, _b, _c, _d;
88
+ if (!asr || asr.vendor !== "deepgram" || ((_a = asr.params) === null || _a === void 0 ? void 0 : _a.api_key) || ((_b = asr.params) === null || _b === void 0 ? void 0 : _b.key))
89
89
  return undefined;
90
- const preset = deepgramModelToPreset[(_c = normalizeModelName((_b = asr.params) === null || _b === void 0 ? void 0 : _b.model)) !== null && _c !== void 0 ? _c : ""];
90
+ const preset = deepgramModelToPreset[(_d = normalizeModelName((_c = asr.params) === null || _c === void 0 ? void 0 : _c.model)) !== null && _d !== void 0 ? _d : ""];
91
91
  if (!preset)
92
92
  return undefined;
93
93
  return {
@@ -7,9 +7,9 @@
7
7
  * and binds that session to the preview host while ordinary AgoraClient calls
8
8
  * remain on the regional production endpoint.
9
9
  *
10
- * Everything under `agentkit/preview/` is temporary. When a provider ships on
11
- * the production gateway, remove its preview registration and move its class
12
- * into the corresponding production vendor module.
10
+ * Preview registrations are temporary. When a provider ships on the production
11
+ * gateway, remove its registration and move its class into the corresponding
12
+ * production vendor module, retaining historical imports as aliases.
13
13
  */
14
14
  import type { AgoraClient } from "../../AgoraPoolClient.mjs";
15
15
  import type * as Agora from "../../api/index.mjs";
@@ -31,7 +31,7 @@ export declare const PREVIEW_FEATURE_HEADER = "agora-feature";
31
31
  * preview endpoint.
32
32
  */
33
33
  export declare const PreviewFeatures: {
34
- /** Gemini TTS preview gate; Gemini ASR and Live use production. */
34
+ /** @deprecated Gemini ASR, Live, and TTS now use the production endpoint. */
35
35
  readonly GeminiLive: "gemini-live";
36
36
  /** @deprecated GPT Live now uses the production endpoint. */
37
37
  readonly LiveModels: "live-models";
@@ -52,7 +52,8 @@ export interface PreviewRoute {
52
52
  export declare function previewRequestHeaders(features: readonly PreviewFeature[], headers?: Record<string, string>): Record<string, string>;
53
53
  /** Build generated resource clients for one preview session. */
54
54
  export declare function createPreviewRoute(client: AgoraClient, features: readonly PreviewFeature[]): PreviewRoute;
55
- export declare function requiredPreviewFeatures(properties: Agora.StartAgentsRequest.Properties): PreviewFeature[];
55
+ /** Compatibility helper; all formerly registered providers now use production. */
56
+ export declare function requiredPreviewFeatures(_properties: Agora.StartAgentsRequest.Properties): PreviewFeature[];
56
57
  /**
57
58
  * Normalizes the historical Gemini preview greeting field for production.
58
59
  * Kept under its old name so callers importing this compatibility helper do
@@ -7,9 +7,9 @@
7
7
  * and binds that session to the preview host while ordinary AgoraClient calls
8
8
  * remain on the regional production endpoint.
9
9
  *
10
- * Everything under `agentkit/preview/` is temporary. When a provider ships on
11
- * the production gateway, remove its preview registration and move its class
12
- * into the corresponding production vendor module.
10
+ * Preview registrations are temporary. When a provider ships on the production
11
+ * gateway, remove its registration and move its class into the corresponding
12
+ * production vendor module, retaining historical imports as aliases.
13
13
  */
14
14
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
15
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
@@ -38,7 +38,7 @@ export const PREVIEW_FEATURE_HEADER = "agora-feature";
38
38
  * preview endpoint.
39
39
  */
40
40
  export const PreviewFeatures = {
41
- /** Gemini TTS preview gate; Gemini ASR and Live use production. */
41
+ /** @deprecated Gemini ASR, Live, and TTS now use the production endpoint. */
42
42
  GeminiLive: "gemini-live",
43
43
  /** @deprecated GPT Live now uses the production endpoint. */
44
44
  LiveModels: "live-models",
@@ -67,9 +67,9 @@ export function createPreviewRoute(client, features) {
67
67
  features: [...features],
68
68
  };
69
69
  }
70
- export function requiredPreviewFeatures(properties) {
71
- var _a;
72
- return ((_a = properties.tts) === null || _a === void 0 ? void 0 : _a.vendor) === "gemini" ? [PreviewFeatures.GeminiLive] : [];
70
+ /** Compatibility helper; all formerly registered providers now use production. */
71
+ export function requiredPreviewFeatures(_properties) {
72
+ return [];
73
73
  }
74
74
  const PRODUCTION_GEMINI_MLLM_MODELS = new Set([
75
75
  "models/gemini-3.8-live",
@@ -1,31 +1,3 @@
1
- import { BaseTTS } from "../vendors/base.mjs";
2
- /** Gemini 3.8 Flash TTS preview model. */
3
- export declare const GeminiTTSModels: {
4
- readonly Flash38: "gemini-3.8-flash-tts";
5
- };
6
- export type GeminiTTSModel = (typeof GeminiTTSModels)[keyof typeof GeminiTTSModels] | (string & {});
7
- export interface GeminiTTSOptions {
8
- apiKey: string;
9
- /** Sent verbatim; defaults to Gemini 3.8 Flash TTS. */
10
- model?: GeminiTTSModel;
11
- /** Defaults to Puck. */
12
- voice?: string;
13
- /** Natural-language speaking instructions. Omitted unless supplied. */
14
- style?: string;
15
- }
16
- /** Preview wire shape, kept separate from the generated production schema. */
17
- export interface GeminiTTSConfig {
18
- vendor: "gemini";
19
- params: {
20
- api_key: string;
21
- model: string;
22
- voice: string;
23
- style?: string;
24
- };
25
- }
26
- /** Preview-only TTS. AgentSession selects the gemini-live gate automatically. */
27
- export declare class GeminiTTS extends BaseTTS {
28
- private readonly options;
29
- constructor(options: GeminiTTSOptions);
30
- toConfig(): GeminiTTSConfig;
31
- }
1
+ /** Legacy preview import aliases for the production Gemini TTS implementation. */
2
+ export type { GeminiTTSConfig, GeminiTTSModel, GeminiTTSOptions } from "../vendors/tts.mjs";
3
+ export { GeminiTTS, GeminiTTSModels } from "../vendors/tts.mjs";
@@ -1,28 +1 @@
1
- import { BaseTTS } from "../vendors/base.mjs";
2
- /** Gemini 3.8 Flash TTS preview model. */
3
- export const GeminiTTSModels = {
4
- Flash38: "gemini-3.8-flash-tts",
5
- };
6
- /** Preview-only TTS. AgentSession selects the gemini-live gate automatically. */
7
- export class GeminiTTS extends BaseTTS {
8
- constructor(options) {
9
- super();
10
- for (const field of ["apiKey", "model", "voice"]) {
11
- const value = options[field];
12
- if ((field === "apiKey" || value !== undefined) && (typeof value !== "string" || !value.trim())) {
13
- throw new Error(`GeminiTTS requires ${field}`);
14
- }
15
- }
16
- if (options.style !== undefined && typeof options.style !== "string") {
17
- throw new Error("GeminiTTS style must be a string");
18
- }
19
- this.options = Object.assign({}, options);
20
- }
21
- toConfig() {
22
- const { apiKey, model = GeminiTTSModels.Flash38, voice = "Puck", style } = this.options;
23
- return {
24
- vendor: "gemini",
25
- params: Object.assign({ api_key: apiKey, model, voice }, (style !== undefined && { style })),
26
- };
27
- }
28
- }
1
+ export { GeminiTTS, GeminiTTSModels } from "../vendors/tts.mjs";