agora-agents 2.2.0 → 2.3.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.
- package/README.md +48 -26
- package/dist/cjs/AgoraPoolClient.d.ts +9 -6
- package/dist/cjs/AgoraPoolClient.js +1 -0
- package/dist/cjs/agentkit/Agent.d.ts +52 -51
- package/dist/cjs/agentkit/Agent.js +40 -39
- package/dist/cjs/agentkit/AgentSession.d.ts +11 -10
- package/dist/cjs/agentkit/AgentSession.js +10 -6
- package/dist/cjs/agentkit/__tests__/area-aware-vendors.test.d.ts +1 -0
- package/dist/cjs/agentkit/__tests__/area-aware-vendors.test.js +57 -0
- package/dist/cjs/agentkit/__tests__/readme-examples.test.d.ts +1 -0
- package/dist/cjs/agentkit/__tests__/readme-examples.test.js +126 -0
- package/dist/cjs/agentkit/__tests__/type-safety.test.js +24 -17
- package/dist/cjs/agentkit/area.d.ts +4 -0
- package/dist/cjs/agentkit/area.js +2 -0
- package/dist/cjs/agentkit/avatar-types.d.ts +28 -2
- package/dist/cjs/agentkit/avatar-types.js +24 -2
- package/dist/cjs/agentkit/index.d.ts +8 -5
- package/dist/cjs/agentkit/index.js +27 -2
- package/dist/cjs/agentkit/region-vendors.d.ts +15 -0
- package/dist/cjs/agentkit/region-vendors.js +2 -0
- package/dist/cjs/agentkit/token.d.ts +3 -2
- package/dist/cjs/agentkit/token.js +3 -2
- package/dist/cjs/agentkit/types.d.ts +26 -5
- package/dist/cjs/agentkit/vendors/avatar.d.ts +6 -3
- package/dist/cjs/agentkit/vendors/avatar.js +6 -3
- package/dist/cjs/agentkit/vendors/base.d.ts +38 -5
- package/dist/cjs/agentkit/vendors/base.js +60 -6
- package/dist/cjs/agentkit/vendors/cn.d.ts +251 -0
- package/dist/cjs/agentkit/vendors/cn.js +293 -0
- package/dist/cjs/agentkit/vendors/mllm.d.ts +8 -4
- package/dist/cjs/agentkit/vendors/mllm.js +8 -4
- package/dist/cjs/agentkit/vendors/stt.js +5 -0
- package/dist/cjs/agentkit/vendors/tts.d.ts +3 -3
- package/dist/cjs/api/resources/agents/client/requests/StartAgentsRequest.d.ts +5 -2
- package/dist/cjs/api/resources/agents/client/requests/StartAgentsRequest.js +4 -0
- package/dist/cjs/api/types/Asr.d.ts +16 -1
- package/dist/cjs/api/types/BytedanceDuplexTts.d.ts +9 -0
- package/dist/cjs/api/types/BytedanceDuplexTts.js +3 -0
- package/dist/cjs/api/types/BytedanceDuplexTtsParams.d.ts +13 -0
- package/dist/cjs/api/types/BytedanceDuplexTtsParams.js +3 -0
- package/dist/cjs/api/types/BytedanceTts.d.ts +9 -0
- package/dist/cjs/api/types/BytedanceTts.js +3 -0
- package/dist/cjs/api/types/BytedanceTtsParams.d.ts +23 -0
- package/dist/cjs/api/types/BytedanceTtsParams.js +3 -0
- package/dist/cjs/api/types/CosyvoiceTts.d.ts +9 -0
- package/dist/cjs/api/types/CosyvoiceTts.js +3 -0
- package/dist/cjs/api/types/CosyvoiceTtsParams.d.ts +15 -0
- package/dist/cjs/api/types/CosyvoiceTtsParams.js +3 -0
- package/dist/cjs/api/types/FengmingAsr.d.ts +11 -0
- package/dist/cjs/api/types/FengmingAsr.js +3 -0
- package/dist/cjs/api/types/MinimaxTtsParams.d.ts +52 -3
- package/dist/cjs/api/types/OpenAiTtsParams.d.ts +1 -1
- package/dist/cjs/api/types/SensetimeAvatarParams.d.ts +48 -0
- package/dist/cjs/api/types/SensetimeAvatarParams.js +3 -0
- package/dist/cjs/api/types/StepfunTts.d.ts +9 -0
- package/dist/cjs/api/types/StepfunTts.js +3 -0
- package/dist/cjs/api/types/StepfunTtsParams.d.ts +13 -0
- package/dist/cjs/api/types/StepfunTtsParams.js +3 -0
- package/dist/cjs/api/types/TencentAsr.d.ts +10 -0
- package/dist/cjs/api/types/TencentAsr.js +3 -0
- package/dist/cjs/api/types/TencentAsrParams.d.ts +17 -0
- package/dist/cjs/api/types/TencentAsrParams.js +3 -0
- package/dist/cjs/api/types/TencentTts.d.ts +9 -0
- package/dist/cjs/api/types/TencentTts.js +3 -0
- package/dist/cjs/api/types/TencentTtsParams.d.ts +23 -0
- package/dist/cjs/api/types/TencentTtsParams.js +3 -0
- package/dist/cjs/api/types/Tts.d.ts +16 -1
- package/dist/cjs/api/types/XfyunAsr.d.ts +10 -0
- package/dist/cjs/api/types/XfyunAsr.js +3 -0
- package/dist/cjs/api/types/XfyunAsrParams.d.ts +15 -0
- package/dist/cjs/api/types/XfyunAsrParams.js +3 -0
- package/dist/cjs/api/types/XfyunBigmodelAsr.d.ts +10 -0
- package/dist/cjs/api/types/XfyunBigmodelAsr.js +3 -0
- package/dist/cjs/api/types/XfyunBigmodelAsrParams.d.ts +17 -0
- package/dist/cjs/api/types/XfyunBigmodelAsrParams.js +3 -0
- package/dist/cjs/api/types/XfyunDialectAsr.d.ts +10 -0
- package/dist/cjs/api/types/XfyunDialectAsr.js +3 -0
- package/dist/cjs/api/types/XfyunDialectAsrParams.d.ts +15 -0
- package/dist/cjs/api/types/XfyunDialectAsrParams.js +3 -0
- package/dist/cjs/api/types/index.d.ts +20 -0
- package/dist/cjs/api/types/index.js +20 -0
- package/dist/cjs/core/domain/index.d.ts +2 -1
- package/dist/cjs/core/domain/index.js +5 -3
- package/dist/cjs/index.d.ts +3 -2
- package/dist/cjs/index.js +26 -2
- package/dist/esm/AgoraPoolClient.d.mts +9 -6
- package/dist/esm/AgoraPoolClient.mjs +1 -0
- package/dist/esm/agentkit/Agent.d.mts +52 -51
- package/dist/esm/agentkit/Agent.mjs +40 -39
- package/dist/esm/agentkit/AgentSession.d.mts +11 -10
- package/dist/esm/agentkit/AgentSession.mjs +11 -7
- package/dist/esm/agentkit/__tests__/area-aware-vendors.test.d.mts +1 -0
- package/dist/esm/agentkit/__tests__/area-aware-vendors.test.mjs +55 -0
- package/dist/esm/agentkit/__tests__/readme-examples.test.d.mts +1 -0
- package/dist/esm/agentkit/__tests__/readme-examples.test.mjs +124 -0
- package/dist/esm/agentkit/__tests__/type-safety.test.mjs +24 -17
- package/dist/esm/agentkit/area.d.mts +4 -0
- package/dist/esm/agentkit/area.mjs +1 -0
- package/dist/esm/agentkit/avatar-types.d.mts +28 -2
- package/dist/esm/agentkit/avatar-types.mjs +23 -2
- package/dist/esm/agentkit/index.d.mts +8 -5
- package/dist/esm/agentkit/index.mjs +3 -2
- package/dist/esm/agentkit/region-vendors.d.mts +15 -0
- package/dist/esm/agentkit/region-vendors.mjs +1 -0
- package/dist/esm/agentkit/token.d.mts +3 -2
- package/dist/esm/agentkit/token.mjs +3 -2
- package/dist/esm/agentkit/types.d.mts +26 -5
- package/dist/esm/agentkit/vendors/avatar.d.mts +6 -3
- package/dist/esm/agentkit/vendors/avatar.mjs +6 -3
- package/dist/esm/agentkit/vendors/base.d.mts +38 -5
- package/dist/esm/agentkit/vendors/base.mjs +55 -5
- package/dist/esm/agentkit/vendors/cn.d.mts +251 -0
- package/dist/esm/agentkit/vendors/cn.mjs +272 -0
- package/dist/esm/agentkit/vendors/mllm.d.mts +8 -4
- package/dist/esm/agentkit/vendors/mllm.mjs +8 -4
- package/dist/esm/agentkit/vendors/stt.mjs +5 -0
- package/dist/esm/agentkit/vendors/tts.d.mts +3 -3
- package/dist/esm/api/resources/agents/client/requests/StartAgentsRequest.d.mts +5 -2
- package/dist/esm/api/resources/agents/client/requests/StartAgentsRequest.mjs +4 -0
- package/dist/esm/api/types/Asr.d.mts +16 -1
- package/dist/esm/api/types/BytedanceDuplexTts.d.mts +9 -0
- package/dist/esm/api/types/BytedanceDuplexTts.mjs +2 -0
- package/dist/esm/api/types/BytedanceDuplexTtsParams.d.mts +13 -0
- package/dist/esm/api/types/BytedanceDuplexTtsParams.mjs +2 -0
- package/dist/esm/api/types/BytedanceTts.d.mts +9 -0
- package/dist/esm/api/types/BytedanceTts.mjs +2 -0
- package/dist/esm/api/types/BytedanceTtsParams.d.mts +23 -0
- package/dist/esm/api/types/BytedanceTtsParams.mjs +2 -0
- package/dist/esm/api/types/CosyvoiceTts.d.mts +9 -0
- package/dist/esm/api/types/CosyvoiceTts.mjs +2 -0
- package/dist/esm/api/types/CosyvoiceTtsParams.d.mts +15 -0
- package/dist/esm/api/types/CosyvoiceTtsParams.mjs +2 -0
- package/dist/esm/api/types/FengmingAsr.d.mts +11 -0
- package/dist/esm/api/types/FengmingAsr.mjs +2 -0
- package/dist/esm/api/types/MinimaxTtsParams.d.mts +52 -3
- package/dist/esm/api/types/OpenAiTtsParams.d.mts +1 -1
- package/dist/esm/api/types/SensetimeAvatarParams.d.mts +48 -0
- package/dist/esm/api/types/SensetimeAvatarParams.mjs +2 -0
- package/dist/esm/api/types/StepfunTts.d.mts +9 -0
- package/dist/esm/api/types/StepfunTts.mjs +2 -0
- package/dist/esm/api/types/StepfunTtsParams.d.mts +13 -0
- package/dist/esm/api/types/StepfunTtsParams.mjs +2 -0
- package/dist/esm/api/types/TencentAsr.d.mts +10 -0
- package/dist/esm/api/types/TencentAsr.mjs +2 -0
- package/dist/esm/api/types/TencentAsrParams.d.mts +17 -0
- package/dist/esm/api/types/TencentAsrParams.mjs +2 -0
- package/dist/esm/api/types/TencentTts.d.mts +9 -0
- package/dist/esm/api/types/TencentTts.mjs +2 -0
- package/dist/esm/api/types/TencentTtsParams.d.mts +23 -0
- package/dist/esm/api/types/TencentTtsParams.mjs +2 -0
- package/dist/esm/api/types/Tts.d.mts +16 -1
- package/dist/esm/api/types/XfyunAsr.d.mts +10 -0
- package/dist/esm/api/types/XfyunAsr.mjs +2 -0
- package/dist/esm/api/types/XfyunAsrParams.d.mts +15 -0
- package/dist/esm/api/types/XfyunAsrParams.mjs +2 -0
- package/dist/esm/api/types/XfyunBigmodelAsr.d.mts +10 -0
- package/dist/esm/api/types/XfyunBigmodelAsr.mjs +2 -0
- package/dist/esm/api/types/XfyunBigmodelAsrParams.d.mts +17 -0
- package/dist/esm/api/types/XfyunBigmodelAsrParams.mjs +2 -0
- package/dist/esm/api/types/XfyunDialectAsr.d.mts +10 -0
- package/dist/esm/api/types/XfyunDialectAsr.mjs +2 -0
- package/dist/esm/api/types/XfyunDialectAsrParams.d.mts +15 -0
- package/dist/esm/api/types/XfyunDialectAsrParams.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +20 -0
- package/dist/esm/api/types/index.mjs +20 -0
- package/dist/esm/core/domain/index.d.mts +2 -1
- package/dist/esm/core/domain/index.mjs +4 -2
- package/dist/esm/index.d.mts +3 -2
- package/dist/esm/index.mjs +6 -6
- package/package.json +1 -1
|
@@ -31,6 +31,7 @@ export var StartAgentsRequest;
|
|
|
31
31
|
* - `liveavatar`: LiveAvatar (Beta)
|
|
32
32
|
* - `anam`: Anam (Beta)
|
|
33
33
|
* - `generic`: Generic (Beta)
|
|
34
|
+
* - `sensetime`: SenseTime Avatar
|
|
34
35
|
*/
|
|
35
36
|
Avatar.Vendor = {
|
|
36
37
|
Akool: "akool",
|
|
@@ -41,6 +42,9 @@ export var StartAgentsRequest;
|
|
|
41
42
|
/**
|
|
42
43
|
* Generic avatar (Beta) */
|
|
43
44
|
Generic: "generic",
|
|
45
|
+
/**
|
|
46
|
+
* SenseTime Avatar */
|
|
47
|
+
Sensetime: "sensetime",
|
|
44
48
|
/**
|
|
45
49
|
* Deprecated: HeyGen has renamed to LiveAvatar. Use `liveavatar` instead. */
|
|
46
50
|
Heygen: "heygen",
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import type * as Agora from "../index.mjs";
|
|
2
|
-
export type Asr = Agora.Asr.Ares | Agora.Asr.Microsoft | Agora.Asr.Deepgram | Agora.Asr.Openai | Agora.Asr.Google | Agora.Asr.Amazon | Agora.Asr.Assemblyai | Agora.Asr.Speechmatics | Agora.Asr.Sarvam;
|
|
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.Amazon | Agora.Asr.Assemblyai | Agora.Asr.Speechmatics | Agora.Asr.Sarvam | Agora.Asr.Xfyun | Agora.Asr.XfyunBigmodel | Agora.Asr.XfyunDialect;
|
|
3
3
|
export declare namespace Asr {
|
|
4
4
|
interface Ares extends Agora.AresAsr {
|
|
5
5
|
vendor: "ares";
|
|
6
6
|
}
|
|
7
|
+
interface Fengming extends Agora.FengmingAsr {
|
|
8
|
+
vendor: "fengming";
|
|
9
|
+
}
|
|
10
|
+
interface Tencent extends Agora.TencentAsr {
|
|
11
|
+
vendor: "tencent";
|
|
12
|
+
}
|
|
7
13
|
interface Microsoft extends Agora.MicrosoftAsr {
|
|
8
14
|
vendor: "microsoft";
|
|
9
15
|
}
|
|
@@ -28,4 +34,13 @@ export declare namespace Asr {
|
|
|
28
34
|
interface Sarvam extends Agora.SarvamAsr {
|
|
29
35
|
vendor: "sarvam";
|
|
30
36
|
}
|
|
37
|
+
interface Xfyun extends Agora.XfyunAsr {
|
|
38
|
+
vendor: "xfyun";
|
|
39
|
+
}
|
|
40
|
+
interface XfyunBigmodel extends Agora.XfyunBigmodelAsr {
|
|
41
|
+
vendor: "xfyun_bigmodel";
|
|
42
|
+
}
|
|
43
|
+
interface XfyunDialect extends Agora.XfyunDialectAsr {
|
|
44
|
+
vendor: "xfyun_dialect";
|
|
45
|
+
}
|
|
31
46
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as Agora from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Bytedance duplex streaming Text-to-Speech configuration.
|
|
4
|
+
*/
|
|
5
|
+
export interface BytedanceDuplexTts {
|
|
6
|
+
params: Agora.BytedanceDuplexTtsParams;
|
|
7
|
+
/** Controls whether the TTS module skips bracketed content when reading LLM response text. */
|
|
8
|
+
skip_patterns?: number[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bytedance duplex streaming TTS configuration parameters.
|
|
3
|
+
*/
|
|
4
|
+
export interface BytedanceDuplexTtsParams {
|
|
5
|
+
/** Bytedance application ID. */
|
|
6
|
+
app_id: string;
|
|
7
|
+
/** Bytedance API token. */
|
|
8
|
+
token: string;
|
|
9
|
+
/** Duplex TTS speaker identifier. */
|
|
10
|
+
speaker: string;
|
|
11
|
+
/** Accepts any additional properties */
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as Agora from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Bytedance Volcano Engine Text-to-Speech configuration.
|
|
4
|
+
*/
|
|
5
|
+
export interface BytedanceTts {
|
|
6
|
+
params: Agora.BytedanceTtsParams;
|
|
7
|
+
/** Controls whether the TTS module skips bracketed content when reading LLM response text. */
|
|
8
|
+
skip_patterns?: number[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bytedance Volcano Engine TTS configuration parameters.
|
|
3
|
+
*/
|
|
4
|
+
export interface BytedanceTtsParams {
|
|
5
|
+
/** Bytedance API token. */
|
|
6
|
+
token: string;
|
|
7
|
+
/** Bytedance application ID. */
|
|
8
|
+
app_id: string;
|
|
9
|
+
/** Bytedance cluster name. */
|
|
10
|
+
cluster: string;
|
|
11
|
+
/** Bytedance voice type. */
|
|
12
|
+
voice_type: string;
|
|
13
|
+
/** Speech speed ratio. */
|
|
14
|
+
speed_ratio?: number;
|
|
15
|
+
/** Volume ratio. */
|
|
16
|
+
volume_ratio?: number;
|
|
17
|
+
/** Pitch ratio. */
|
|
18
|
+
pitch_ratio?: number;
|
|
19
|
+
/** Emotion preset. */
|
|
20
|
+
emotion?: string;
|
|
21
|
+
/** Accepts any additional properties */
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as Agora from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Alibaba Cloud CosyVoice Text-to-Speech configuration.
|
|
4
|
+
*/
|
|
5
|
+
export interface CosyvoiceTts {
|
|
6
|
+
params: Agora.CosyvoiceTtsParams;
|
|
7
|
+
/** Controls whether the TTS module skips bracketed content when reading LLM response text. */
|
|
8
|
+
skip_patterns?: number[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CosyVoice TTS configuration parameters.
|
|
3
|
+
*/
|
|
4
|
+
export interface CosyvoiceTtsParams {
|
|
5
|
+
/** CosyVoice API key. */
|
|
6
|
+
api_key: string;
|
|
7
|
+
/** CosyVoice model identifier. */
|
|
8
|
+
model: string;
|
|
9
|
+
/** Audio sample rate in Hz. */
|
|
10
|
+
sample_rate: number;
|
|
11
|
+
/** CosyVoice speaker voice. */
|
|
12
|
+
voice: string;
|
|
13
|
+
/** Accepts any additional properties */
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as Agora from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Agora Fengming ASR configuration.
|
|
4
|
+
*/
|
|
5
|
+
export interface FengmingAsr {
|
|
6
|
+
language?: Agora.AsrLanguage;
|
|
7
|
+
/** Agora Fengming ASR configuration parameters. */
|
|
8
|
+
params?: Record<string, unknown>;
|
|
9
|
+
/** Accepts any additional properties */
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}
|
|
@@ -5,12 +5,20 @@ export interface MinimaxTtsParams {
|
|
|
5
5
|
/** MiniMax API key */
|
|
6
6
|
key: string;
|
|
7
7
|
/** MiniMax group identifier */
|
|
8
|
-
group_id
|
|
9
|
-
/** TTS model
|
|
8
|
+
group_id?: string;
|
|
9
|
+
/** BYOK TTS model. Managed MiniMax preset models are selected through the top-level preset field instead. */
|
|
10
10
|
model: string;
|
|
11
11
|
voice_setting: MinimaxTtsParams.VoiceSetting;
|
|
12
|
+
/** Audio output settings. */
|
|
13
|
+
audio_setting?: MinimaxTtsParams.AudioSetting;
|
|
14
|
+
/** Custom pronunciation dictionary settings. */
|
|
15
|
+
pronunciation_dict?: MinimaxTtsParams.PronunciationDict;
|
|
16
|
+
/** Weighted voice blending configuration. */
|
|
17
|
+
timber_weights?: MinimaxTtsParams.TimberWeights.Item[];
|
|
18
|
+
/** Language boost mode. */
|
|
19
|
+
language_boost?: string;
|
|
12
20
|
/** WebSocket endpoint (e.g., wss://api-uw.minimax.io/ws/v1/t2a_v2) */
|
|
13
|
-
url
|
|
21
|
+
url?: string;
|
|
14
22
|
/** Accepts any additional properties */
|
|
15
23
|
[key: string]: any;
|
|
16
24
|
}
|
|
@@ -18,7 +26,48 @@ export declare namespace MinimaxTtsParams {
|
|
|
18
26
|
interface VoiceSetting {
|
|
19
27
|
/** Voice style identifier (e.g., English_captivating_female1) */
|
|
20
28
|
voice_id: string;
|
|
29
|
+
/** Speech speed multiplier. */
|
|
30
|
+
speed?: number;
|
|
31
|
+
/** Voice volume multiplier. */
|
|
32
|
+
vol?: number;
|
|
33
|
+
/** Voice pitch adjustment. */
|
|
34
|
+
pitch?: number;
|
|
35
|
+
/** Emotion preset. */
|
|
36
|
+
emotion?: string;
|
|
37
|
+
/** Whether to read LaTeX expressions. */
|
|
38
|
+
latex_read?: boolean;
|
|
39
|
+
/** Whether to normalize English text before synthesis. */
|
|
40
|
+
english_normalization?: boolean;
|
|
21
41
|
/** Accepts any additional properties */
|
|
22
42
|
[key: string]: any;
|
|
23
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* Audio output settings.
|
|
46
|
+
*/
|
|
47
|
+
interface AudioSetting {
|
|
48
|
+
/** Audio sample rate in Hz. */
|
|
49
|
+
sample_rate?: number;
|
|
50
|
+
/** Accepts any additional properties */
|
|
51
|
+
[key: string]: any;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Custom pronunciation dictionary settings.
|
|
55
|
+
*/
|
|
56
|
+
interface PronunciationDict {
|
|
57
|
+
/** Tone override list. */
|
|
58
|
+
tone?: string[];
|
|
59
|
+
/** Accepts any additional properties */
|
|
60
|
+
[key: string]: any;
|
|
61
|
+
}
|
|
62
|
+
type TimberWeights = TimberWeights.Item[];
|
|
63
|
+
namespace TimberWeights {
|
|
64
|
+
interface Item {
|
|
65
|
+
/** Voice identifier for blending. */
|
|
66
|
+
voice_id?: string;
|
|
67
|
+
/** Relative blend weight. */
|
|
68
|
+
weight?: number;
|
|
69
|
+
/** Accepts any additional properties */
|
|
70
|
+
[key: string]: any;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
24
73
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* OpenAI TTS configuration parameters.
|
|
3
3
|
*/
|
|
4
4
|
export interface OpenAiTtsParams {
|
|
5
|
-
/** OpenAI API key. Optional for
|
|
5
|
+
/** OpenAI API key. Optional for preset-backed OpenAI TTS usage. */
|
|
6
6
|
api_key?: string;
|
|
7
7
|
/** Endpoint URL for the OpenAI TTS service. */
|
|
8
8
|
base_url?: string;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SenseTime Avatar configuration parameters.
|
|
3
|
+
*/
|
|
4
|
+
export interface SensetimeAvatarParams {
|
|
5
|
+
/** Agora token used by the avatar service. */
|
|
6
|
+
agora_token: string;
|
|
7
|
+
/** Numeric Agora UID string used by the avatar service. */
|
|
8
|
+
agora_uid: string;
|
|
9
|
+
/** SenseTime application ID. */
|
|
10
|
+
appId: string;
|
|
11
|
+
/** SenseTime application key. */
|
|
12
|
+
app_key: string;
|
|
13
|
+
/** SenseTime scene configuration list. */
|
|
14
|
+
sceneList: SensetimeAvatarParams.SceneList.Item[];
|
|
15
|
+
/** Accepts any additional properties */
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}
|
|
18
|
+
export declare namespace SensetimeAvatarParams {
|
|
19
|
+
type SceneList = SceneList.Item[];
|
|
20
|
+
namespace SceneList {
|
|
21
|
+
interface Item {
|
|
22
|
+
digital_role?: Item.DigitalRole;
|
|
23
|
+
/** Accepts any additional properties */
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
}
|
|
26
|
+
namespace Item {
|
|
27
|
+
interface DigitalRole {
|
|
28
|
+
/** SenseTime face feature identifier. */
|
|
29
|
+
face_feature_id?: string;
|
|
30
|
+
position?: DigitalRole.Position;
|
|
31
|
+
/** Avatar model package URL. */
|
|
32
|
+
url?: string;
|
|
33
|
+
/** Accepts any additional properties */
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
}
|
|
36
|
+
namespace DigitalRole {
|
|
37
|
+
interface Position {
|
|
38
|
+
/** Avatar x position. */
|
|
39
|
+
x?: number;
|
|
40
|
+
/** Avatar y position. */
|
|
41
|
+
y?: number;
|
|
42
|
+
/** Accepts any additional properties */
|
|
43
|
+
[key: string]: any;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as Agora from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* StepFun Text-to-Speech configuration.
|
|
4
|
+
*/
|
|
5
|
+
export interface StepfunTts {
|
|
6
|
+
params: Agora.StepfunTtsParams;
|
|
7
|
+
/** Controls whether the TTS module skips bracketed content when reading LLM response text. */
|
|
8
|
+
skip_patterns?: number[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* StepFun TTS configuration parameters.
|
|
3
|
+
*/
|
|
4
|
+
export interface StepfunTtsParams {
|
|
5
|
+
/** StepFun API key. */
|
|
6
|
+
api_key: string;
|
|
7
|
+
/** StepFun model identifier. */
|
|
8
|
+
model: string;
|
|
9
|
+
/** StepFun voice identifier. */
|
|
10
|
+
voice_id: string;
|
|
11
|
+
/** Accepts any additional properties */
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tencent ASR configuration parameters.
|
|
3
|
+
*/
|
|
4
|
+
export interface TencentAsrParams {
|
|
5
|
+
/** Tencent ASR secret key. */
|
|
6
|
+
key: string;
|
|
7
|
+
/** Tencent Cloud application ID. */
|
|
8
|
+
app_id: string;
|
|
9
|
+
/** Tencent ASR secret. */
|
|
10
|
+
secret: string;
|
|
11
|
+
/** Tencent ASR engine model type. */
|
|
12
|
+
engine_model_type: string;
|
|
13
|
+
/** Tencent ASR voice session identifier. */
|
|
14
|
+
voice_id: string;
|
|
15
|
+
/** Accepts any additional properties */
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as Agora from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Tencent Text-to-Speech configuration.
|
|
4
|
+
*/
|
|
5
|
+
export interface TencentTts {
|
|
6
|
+
params: Agora.TencentTtsParams;
|
|
7
|
+
/** Controls whether the TTS module skips bracketed content when reading LLM response text. */
|
|
8
|
+
skip_patterns?: number[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tencent TTS configuration parameters.
|
|
3
|
+
*/
|
|
4
|
+
export interface TencentTtsParams {
|
|
5
|
+
/** Tencent Cloud application ID. */
|
|
6
|
+
app_id: string;
|
|
7
|
+
/** Tencent Cloud secret ID. */
|
|
8
|
+
secret_id: string;
|
|
9
|
+
/** Tencent Cloud secret key. */
|
|
10
|
+
secret_key: string;
|
|
11
|
+
/** Tencent voice type identifier. */
|
|
12
|
+
voice_type: number;
|
|
13
|
+
/** Volume setting. */
|
|
14
|
+
volume?: number;
|
|
15
|
+
/** Speech speed setting. */
|
|
16
|
+
speed?: number;
|
|
17
|
+
/** Emotion category. */
|
|
18
|
+
emotion_category?: string;
|
|
19
|
+
/** Emotion intensity. */
|
|
20
|
+
emotion_intensity?: number;
|
|
21
|
+
/** Accepts any additional properties */
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import type * as Agora from "../index.mjs";
|
|
2
|
-
export type Tts = 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.Deepgram;
|
|
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.Deepgram | Agora.Tts.Cosyvoice | Agora.Tts.BytedanceDuplex | Agora.Tts.Stepfun;
|
|
3
3
|
export declare namespace Tts {
|
|
4
|
+
interface Tencent extends Agora.TencentTts {
|
|
5
|
+
vendor: "tencent";
|
|
6
|
+
}
|
|
7
|
+
interface Bytedance extends Agora.BytedanceTts {
|
|
8
|
+
vendor: "bytedance";
|
|
9
|
+
}
|
|
4
10
|
interface Microsoft extends Agora.MicrosoftTts {
|
|
5
11
|
vendor: "microsoft";
|
|
6
12
|
}
|
|
@@ -40,4 +46,13 @@ export declare namespace Tts {
|
|
|
40
46
|
interface Deepgram extends Agora.DeepgramTts {
|
|
41
47
|
vendor: "deepgram";
|
|
42
48
|
}
|
|
49
|
+
interface Cosyvoice extends Agora.CosyvoiceTts {
|
|
50
|
+
vendor: "cosyvoice";
|
|
51
|
+
}
|
|
52
|
+
interface BytedanceDuplex extends Agora.BytedanceDuplexTts {
|
|
53
|
+
vendor: "bytedance_duplex";
|
|
54
|
+
}
|
|
55
|
+
interface Stepfun extends Agora.StepfunTts {
|
|
56
|
+
vendor: "stepfun";
|
|
57
|
+
}
|
|
43
58
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* iFlytek ASR configuration parameters.
|
|
3
|
+
*/
|
|
4
|
+
export interface XfyunAsrParams {
|
|
5
|
+
/** iFlytek API key. */
|
|
6
|
+
api_key: string;
|
|
7
|
+
/** iFlytek application ID. */
|
|
8
|
+
app_id: string;
|
|
9
|
+
/** iFlytek API secret. */
|
|
10
|
+
api_secret: string;
|
|
11
|
+
/** iFlytek language code. */
|
|
12
|
+
language: string;
|
|
13
|
+
/** Accepts any additional properties */
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Agora from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* iFlytek large-model ASR configuration.
|
|
4
|
+
*/
|
|
5
|
+
export interface XfyunBigmodelAsr {
|
|
6
|
+
language?: Agora.AsrLanguage;
|
|
7
|
+
params: Agora.XfyunBigmodelAsrParams;
|
|
8
|
+
/** Accepts any additional properties */
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* iFlytek large-model ASR configuration parameters.
|
|
3
|
+
*/
|
|
4
|
+
export interface XfyunBigmodelAsrParams {
|
|
5
|
+
/** iFlytek large-model API key. */
|
|
6
|
+
api_key: string;
|
|
7
|
+
/** iFlytek large-model application ID. */
|
|
8
|
+
app_id: string;
|
|
9
|
+
/** iFlytek large-model API secret. */
|
|
10
|
+
api_secret: string;
|
|
11
|
+
/** iFlytek language family name. */
|
|
12
|
+
language_name: string;
|
|
13
|
+
/** iFlytek language mode. */
|
|
14
|
+
language: string;
|
|
15
|
+
/** Accepts any additional properties */
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Agora from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* iFlytek dialect ASR configuration.
|
|
4
|
+
*/
|
|
5
|
+
export interface XfyunDialectAsr {
|
|
6
|
+
language?: Agora.AsrLanguage;
|
|
7
|
+
params: Agora.XfyunDialectAsrParams;
|
|
8
|
+
/** Accepts any additional properties */
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* iFlytek dialect ASR configuration parameters.
|
|
3
|
+
*/
|
|
4
|
+
export interface XfyunDialectAsrParams {
|
|
5
|
+
/** iFlytek dialect application ID. */
|
|
6
|
+
app_id: string;
|
|
7
|
+
/** iFlytek access key ID. */
|
|
8
|
+
access_key_id: string;
|
|
9
|
+
/** iFlytek access key secret. */
|
|
10
|
+
access_key_secret: string;
|
|
11
|
+
/** Dialect recognition language code. */
|
|
12
|
+
language: string;
|
|
13
|
+
/** Accepts any additional properties */
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}
|
|
@@ -9,16 +9,23 @@ export * from "./Asr.mjs";
|
|
|
9
9
|
export * from "./AsrLanguage.mjs";
|
|
10
10
|
export * from "./AssemblyAiAsr.mjs";
|
|
11
11
|
export * from "./AssemblyAiAsrParams.mjs";
|
|
12
|
+
export * from "./BytedanceDuplexTts.mjs";
|
|
13
|
+
export * from "./BytedanceDuplexTtsParams.mjs";
|
|
14
|
+
export * from "./BytedanceTts.mjs";
|
|
15
|
+
export * from "./BytedanceTtsParams.mjs";
|
|
12
16
|
export * from "./CartesiaTts.mjs";
|
|
13
17
|
export * from "./CartesiaTtsOutputFormat.mjs";
|
|
14
18
|
export * from "./CartesiaTtsParams.mjs";
|
|
15
19
|
export * from "./CartesiaTtsVoice.mjs";
|
|
20
|
+
export * from "./CosyvoiceTts.mjs";
|
|
21
|
+
export * from "./CosyvoiceTtsParams.mjs";
|
|
16
22
|
export * from "./DeepgramAsr.mjs";
|
|
17
23
|
export * from "./DeepgramAsrParams.mjs";
|
|
18
24
|
export * from "./DeepgramTts.mjs";
|
|
19
25
|
export * from "./DeepgramTtsParams.mjs";
|
|
20
26
|
export * from "./ElevenLabsTts.mjs";
|
|
21
27
|
export * from "./ElevenLabsTtsParams.mjs";
|
|
28
|
+
export * from "./FengmingAsr.mjs";
|
|
22
29
|
export * from "./FishAudioTts.mjs";
|
|
23
30
|
export * from "./FishAudioTtsParams.mjs";
|
|
24
31
|
export * from "./GoogleAsr.mjs";
|
|
@@ -55,7 +62,20 @@ export * from "./SarvamAsr.mjs";
|
|
|
55
62
|
export * from "./SarvamAsrParams.mjs";
|
|
56
63
|
export * from "./SarvamTts.mjs";
|
|
57
64
|
export * from "./SarvamTtsParams.mjs";
|
|
65
|
+
export * from "./SensetimeAvatarParams.mjs";
|
|
58
66
|
export * from "./SpeechmaticsAsr.mjs";
|
|
59
67
|
export * from "./SpeechmaticsAsrParams.mjs";
|
|
68
|
+
export * from "./StepfunTts.mjs";
|
|
69
|
+
export * from "./StepfunTtsParams.mjs";
|
|
60
70
|
export * from "./TelephonyErrorResponse.mjs";
|
|
71
|
+
export * from "./TencentAsr.mjs";
|
|
72
|
+
export * from "./TencentAsrParams.mjs";
|
|
73
|
+
export * from "./TencentTts.mjs";
|
|
74
|
+
export * from "./TencentTtsParams.mjs";
|
|
61
75
|
export * from "./Tts.mjs";
|
|
76
|
+
export * from "./XfyunAsr.mjs";
|
|
77
|
+
export * from "./XfyunAsrParams.mjs";
|
|
78
|
+
export * from "./XfyunBigmodelAsr.mjs";
|
|
79
|
+
export * from "./XfyunBigmodelAsrParams.mjs";
|
|
80
|
+
export * from "./XfyunDialectAsr.mjs";
|
|
81
|
+
export * from "./XfyunDialectAsrParams.mjs";
|