polyv-live-api-sdk 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/index.d.ts +9 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/signature.d.ts +67 -0
- package/dist/auth/signature.d.ts.map +1 -0
- package/dist/client.d.ts +209 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/constants/error-codes.d.ts +134 -0
- package/dist/constants/error-codes.d.ts.map +1 -0
- package/dist/constants/index.d.ts +8 -0
- package/dist/constants/index.d.ts.map +1 -0
- package/dist/errors/index.d.ts +11 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/errors/polyv-api-error.d.ts +71 -0
- package/dist/errors/polyv-api-error.d.ts.map +1 -0
- package/dist/errors/polyv-error.d.ts +31 -0
- package/dist/errors/polyv-error.d.ts.map +1 -0
- package/dist/errors/polyv-validation-error.d.ts +72 -0
- package/dist/errors/polyv-validation-error.d.ts.map +1 -0
- package/dist/errors/type-guards.d.ts +19 -0
- package/dist/errors/type-guards.d.ts.map +1 -0
- package/dist/errors/types.d.ts +13 -0
- package/dist/errors/types.d.ts.map +1 -0
- package/dist/index.cjs +15295 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +19501 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15258 -0
- package/dist/index.js.map +1 -0
- package/dist/services/account.service.d.ts +402 -0
- package/dist/services/account.service.d.ts.map +1 -0
- package/dist/services/channel.service.d.ts +2033 -0
- package/dist/services/channel.service.d.ts.map +1 -0
- package/dist/services/chat.service.d.ts +592 -0
- package/dist/services/chat.service.d.ts.map +1 -0
- package/dist/services/finance.service.d.ts +160 -0
- package/dist/services/finance.service.d.ts.map +1 -0
- package/dist/services/group.service.d.ts +191 -0
- package/dist/services/group.service.d.ts.map +1 -0
- package/dist/services/index.d.ts +27 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/live-interaction.service.d.ts +474 -0
- package/dist/services/live-interaction.service.d.ts.map +1 -0
- package/dist/services/other.service.d.ts +687 -0
- package/dist/services/other.service.d.ts.map +1 -0
- package/dist/services/platform.service.d.ts +190 -0
- package/dist/services/platform.service.d.ts.map +1 -0
- package/dist/services/player.service.d.ts +195 -0
- package/dist/services/player.service.d.ts.map +1 -0
- package/dist/services/v4/ai.service.d.ts +205 -0
- package/dist/services/v4/ai.service.d.ts.map +1 -0
- package/dist/services/v4/channel.service.d.ts +854 -0
- package/dist/services/v4/channel.service.d.ts.map +1 -0
- package/dist/services/v4/chat.service.d.ts +199 -0
- package/dist/services/v4/chat.service.d.ts.map +1 -0
- package/dist/services/v4/global.service.d.ts +86 -0
- package/dist/services/v4/global.service.d.ts.map +1 -0
- package/dist/services/v4/group.service.d.ts +132 -0
- package/dist/services/v4/group.service.d.ts.map +1 -0
- package/dist/services/v4/material.service.d.ts +85 -0
- package/dist/services/v4/material.service.d.ts.map +1 -0
- package/dist/services/v4/platform.service.d.ts +148 -0
- package/dist/services/v4/platform.service.d.ts.map +1 -0
- package/dist/services/v4/robot.service.d.ts +144 -0
- package/dist/services/v4/robot.service.d.ts.map +1 -0
- package/dist/services/v4/statistics.service.d.ts +61 -0
- package/dist/services/v4/statistics.service.d.ts.map +1 -0
- package/dist/services/v4/user.service.d.ts +1014 -0
- package/dist/services/v4/user.service.d.ts.map +1 -0
- package/dist/services/v4/webapp.service.d.ts +131 -0
- package/dist/services/v4/webapp.service.d.ts.map +1 -0
- package/dist/services/web.service.d.ts +758 -0
- package/dist/services/web.service.d.ts.map +1 -0
- package/dist/types/account.d.ts +287 -0
- package/dist/types/account.d.ts.map +1 -0
- package/dist/types/auth.d.ts +31 -0
- package/dist/types/auth.d.ts.map +1 -0
- package/dist/types/callback.d.ts +156 -0
- package/dist/types/callback.d.ts.map +1 -0
- package/dist/types/channel.d.ts +2263 -0
- package/dist/types/channel.d.ts.map +1 -0
- package/dist/types/chat-banned.d.ts +366 -0
- package/dist/types/chat-banned.d.ts.map +1 -0
- package/dist/types/chat-censor-role.d.ts +190 -0
- package/dist/types/chat-censor-role.d.ts.map +1 -0
- package/dist/types/chat.d.ts +142 -0
- package/dist/types/chat.d.ts.map +1 -0
- package/dist/types/client.d.ts +43 -0
- package/dist/types/client.d.ts.map +1 -0
- package/dist/types/common.d.ts +52 -0
- package/dist/types/common.d.ts.map +1 -0
- package/dist/types/finance.d.ts +252 -0
- package/dist/types/finance.d.ts.map +1 -0
- package/dist/types/group.d.ts +129 -0
- package/dist/types/group.d.ts.map +1 -0
- package/dist/types/index.d.ts +50 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/live-interaction.d.ts +301 -0
- package/dist/types/live-interaction.d.ts.map +1 -0
- package/dist/types/pagination.d.ts +37 -0
- package/dist/types/pagination.d.ts.map +1 -0
- package/dist/types/platform.d.ts +178 -0
- package/dist/types/platform.d.ts.map +1 -0
- package/dist/types/player.d.ts +177 -0
- package/dist/types/player.d.ts.map +1 -0
- package/dist/types/request.d.ts +45 -0
- package/dist/types/request.d.ts.map +1 -0
- package/dist/types/response.d.ts +58 -0
- package/dist/types/response.d.ts.map +1 -0
- package/dist/types/signature.d.ts +50 -0
- package/dist/types/signature.d.ts.map +1 -0
- package/dist/types/upload.d.ts +32 -0
- package/dist/types/upload.d.ts.map +1 -0
- package/dist/types/v4-ai.d.ts +379 -0
- package/dist/types/v4-ai.d.ts.map +1 -0
- package/dist/types/v4-channel.d.ts +2400 -0
- package/dist/types/v4-channel.d.ts.map +1 -0
- package/dist/types/v4-chat.d.ts +190 -0
- package/dist/types/v4-chat.d.ts.map +1 -0
- package/dist/types/v4-global.d.ts +150 -0
- package/dist/types/v4-global.d.ts.map +1 -0
- package/dist/types/v4-group.d.ts +212 -0
- package/dist/types/v4-group.d.ts.map +1 -0
- package/dist/types/v4-material.d.ts +141 -0
- package/dist/types/v4-material.d.ts.map +1 -0
- package/dist/types/v4-platform.d.ts +223 -0
- package/dist/types/v4-platform.d.ts.map +1 -0
- package/dist/types/v4-robot.d.ts +149 -0
- package/dist/types/v4-robot.d.ts.map +1 -0
- package/dist/types/v4-statistics.d.ts +87 -0
- package/dist/types/v4-statistics.d.ts.map +1 -0
- package/dist/types/v4-user.d.ts +1021 -0
- package/dist/types/v4-user.d.ts.map +1 -0
- package/dist/types/v4-webapp.d.ts +161 -0
- package/dist/types/v4-webapp.d.ts.map +1 -0
- package/dist/types/version.d.ts +21 -0
- package/dist/types/version.d.ts.map +1 -0
- package/dist/types/web.d.ts +868 -0
- package/dist/types/web.d.ts.map +1 -0
- package/dist/utils/env.d.ts +54 -0
- package/dist/utils/env.d.ts.map +1 -0
- package/dist/utils/index.d.ts +11 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/pagination.d.ts +62 -0
- package/dist/utils/pagination.d.ts.map +1 -0
- package/dist/utils/signature.d.ts +67 -0
- package/dist/utils/signature.d.ts.map +1 -0
- package/package.json +76 -0
|
@@ -0,0 +1,379 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* V4 AI Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for V4 AI and Digital Human APIs.
|
|
5
|
+
*
|
|
6
|
+
* @module types/v4-ai
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Digital Human entity
|
|
10
|
+
*/
|
|
11
|
+
export interface DigitalHuman {
|
|
12
|
+
/** Digital human ID */
|
|
13
|
+
id: number;
|
|
14
|
+
/** Digital human name */
|
|
15
|
+
name: string;
|
|
16
|
+
/** Third-party role code */
|
|
17
|
+
thirdRoleCode: string;
|
|
18
|
+
/** Cover photo URL */
|
|
19
|
+
coverPhoto: string;
|
|
20
|
+
/** Full body photo URL */
|
|
21
|
+
fullBodyPhoto: string;
|
|
22
|
+
/** Clothes description */
|
|
23
|
+
clothesDesc: string;
|
|
24
|
+
/** Default TTS voice ID */
|
|
25
|
+
defaultTtsVoiceId: number;
|
|
26
|
+
/** Creation timestamp (milliseconds) */
|
|
27
|
+
createTime: number;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Parameters for listing digital humans
|
|
31
|
+
*/
|
|
32
|
+
export interface ListDigitalHumansParams {
|
|
33
|
+
/** Page number (>= 1) */
|
|
34
|
+
pageNumber: number;
|
|
35
|
+
/** Page size (1-1000) */
|
|
36
|
+
pageSize: number;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Response for listing digital humans
|
|
40
|
+
*/
|
|
41
|
+
export interface ListDigitalHumansResponse {
|
|
42
|
+
/** Current page number */
|
|
43
|
+
pageNumber: number;
|
|
44
|
+
/** Page size */
|
|
45
|
+
pageSize: number;
|
|
46
|
+
/** Total pages */
|
|
47
|
+
totalPages: number;
|
|
48
|
+
/** Total items */
|
|
49
|
+
totalItems: number;
|
|
50
|
+
/** Digital human list */
|
|
51
|
+
contents: DigitalHuman[];
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Digital human organization mapping
|
|
55
|
+
*/
|
|
56
|
+
export interface DigitalHumanOrganization {
|
|
57
|
+
/** Digital human ID */
|
|
58
|
+
aiDigitalHumanId: number;
|
|
59
|
+
/** Organization IDs */
|
|
60
|
+
organizationIds: number[];
|
|
61
|
+
/** Whether to include child organizations */
|
|
62
|
+
includeChildren: boolean;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Parameters for listing digital human organizations
|
|
66
|
+
*/
|
|
67
|
+
export interface ListOrganizationsParams {
|
|
68
|
+
/** Comma-separated digital human IDs */
|
|
69
|
+
aiDigitalHumanIds: string;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Item for setting digital human organizations
|
|
73
|
+
*/
|
|
74
|
+
export interface SetOrganizationsItem {
|
|
75
|
+
/** Digital human ID */
|
|
76
|
+
aiDigitalHumanId: number;
|
|
77
|
+
/** Organization IDs */
|
|
78
|
+
organizationIds: number[];
|
|
79
|
+
/** Whether to include child organizations */
|
|
80
|
+
includeChildren?: boolean;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Parameters for setting digital human organizations
|
|
84
|
+
*/
|
|
85
|
+
export interface SetOrganizationsParams {
|
|
86
|
+
/** Organization mapping items */
|
|
87
|
+
items: SetOrganizationsItem[];
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Video produce status enum
|
|
91
|
+
*/
|
|
92
|
+
export declare enum VideoProduceStatus {
|
|
93
|
+
/** Draft */
|
|
94
|
+
DRAFT = 5,
|
|
95
|
+
/** Waiting for processing */
|
|
96
|
+
WAITING = 10,
|
|
97
|
+
/** Processing */
|
|
98
|
+
PROCESSING = 15,
|
|
99
|
+
/** Success */
|
|
100
|
+
SUCCESS = 20,
|
|
101
|
+
/** Failed */
|
|
102
|
+
FAILED = 30,
|
|
103
|
+
/** Expired */
|
|
104
|
+
EXPIRED = 50
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Video produce task entity
|
|
108
|
+
*/
|
|
109
|
+
export interface VideoProduceTask {
|
|
110
|
+
/** Task ID */
|
|
111
|
+
id: number;
|
|
112
|
+
/** Video name */
|
|
113
|
+
videoName: string;
|
|
114
|
+
/** Type (1: no digital human, 3: with digital human) */
|
|
115
|
+
type: number;
|
|
116
|
+
/** Task status */
|
|
117
|
+
status: VideoProduceStatus;
|
|
118
|
+
/** Video path URL (null if not completed) */
|
|
119
|
+
videoPath: string | null;
|
|
120
|
+
/** Video thumbnail URL (null if not completed) */
|
|
121
|
+
videoImage: string | null;
|
|
122
|
+
/** Video file size in bytes (null if not completed) */
|
|
123
|
+
videoFileSize: number | null;
|
|
124
|
+
/** Duration in seconds (null if not completed) */
|
|
125
|
+
duration: number | null;
|
|
126
|
+
/** Digital human ID (null if no digital human) */
|
|
127
|
+
digitalHumanId: number | null;
|
|
128
|
+
/** Processing time in seconds (null if not completed) */
|
|
129
|
+
dealTime: number | null;
|
|
130
|
+
/** Creation timestamp (milliseconds) */
|
|
131
|
+
createTime: number;
|
|
132
|
+
/** Last modification timestamp (milliseconds) */
|
|
133
|
+
modifyTime: number;
|
|
134
|
+
/** Subtitle file path (null if no subtitle) */
|
|
135
|
+
subtitlePath: string | null;
|
|
136
|
+
/** Tags */
|
|
137
|
+
tags: string[];
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Parameters for listing video produce tasks
|
|
141
|
+
*/
|
|
142
|
+
export interface ListVideoProducesParams {
|
|
143
|
+
/** Page number (>= 1) */
|
|
144
|
+
pageNumber: number;
|
|
145
|
+
/** Page size (1-1000) */
|
|
146
|
+
pageSize: number;
|
|
147
|
+
/** Filter by video name (fuzzy match) */
|
|
148
|
+
videoName?: string;
|
|
149
|
+
/** Filter by status */
|
|
150
|
+
status?: VideoProduceStatus;
|
|
151
|
+
/** Filter by creation time start (milliseconds) */
|
|
152
|
+
createTimeStart?: number;
|
|
153
|
+
/** Filter by creation time end (milliseconds) */
|
|
154
|
+
createTimeEnd?: number;
|
|
155
|
+
/** Filter by tags */
|
|
156
|
+
tags?: string[];
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Response for listing video produce tasks
|
|
160
|
+
*/
|
|
161
|
+
export interface ListVideoProducesResponse {
|
|
162
|
+
/** Current page number */
|
|
163
|
+
pageNumber: number;
|
|
164
|
+
/** Page size */
|
|
165
|
+
pageSize: number;
|
|
166
|
+
/** Total pages */
|
|
167
|
+
totalPages: number;
|
|
168
|
+
/** Total items */
|
|
169
|
+
totalItems: number;
|
|
170
|
+
/** Video produce task list */
|
|
171
|
+
contents: VideoProduceTask[];
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Parameters for getting a video produce task
|
|
175
|
+
*/
|
|
176
|
+
export interface GetVideoProduceParams {
|
|
177
|
+
/** Task ID */
|
|
178
|
+
id: number;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* TTS voice info for video creation
|
|
182
|
+
*/
|
|
183
|
+
export interface TtsVoiceInfo {
|
|
184
|
+
/** TTS voice ID */
|
|
185
|
+
ttsVoiceId: number;
|
|
186
|
+
/** Speech rate (0.5 - 2.0) */
|
|
187
|
+
rate: number;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Subtitle info for video creation
|
|
191
|
+
*/
|
|
192
|
+
export interface SubtitleInfo {
|
|
193
|
+
/** Whether to enable subtitle */
|
|
194
|
+
enableSubtitle: boolean;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Material info for video creation
|
|
198
|
+
*/
|
|
199
|
+
export interface MaterialInfo {
|
|
200
|
+
/** Background image URL */
|
|
201
|
+
backgroundImage: string;
|
|
202
|
+
/** Remark/content text */
|
|
203
|
+
remark?: string;
|
|
204
|
+
/** Audio file URL */
|
|
205
|
+
audioFileUrl?: string;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Digital human position info for video creation
|
|
209
|
+
*/
|
|
210
|
+
export interface DigitalHumanInfo {
|
|
211
|
+
/** Digital human ID (null for random) */
|
|
212
|
+
digitalHumanId: number | null;
|
|
213
|
+
/** X position */
|
|
214
|
+
x: number | null;
|
|
215
|
+
/** Y position */
|
|
216
|
+
y: number | null;
|
|
217
|
+
/** Width */
|
|
218
|
+
w: number | null;
|
|
219
|
+
/** Height */
|
|
220
|
+
h: number | null;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Item for batch creating video produce tasks
|
|
224
|
+
*/
|
|
225
|
+
export interface BatchCreateVideoProducesItem {
|
|
226
|
+
/** Video name */
|
|
227
|
+
videoName: string;
|
|
228
|
+
/** Whether to include digital human */
|
|
229
|
+
hasDigitalHuman: boolean;
|
|
230
|
+
/** TTS voice info */
|
|
231
|
+
ttsVoiceInfo: TtsVoiceInfo;
|
|
232
|
+
/** Subtitle info */
|
|
233
|
+
subtitleInfo: SubtitleInfo;
|
|
234
|
+
/** PPT file ID */
|
|
235
|
+
fileId?: string;
|
|
236
|
+
/** Material info list */
|
|
237
|
+
materialInfos?: MaterialInfo[];
|
|
238
|
+
/** Digital human info list (required if hasDigitalHuman is true) */
|
|
239
|
+
digitalHumanInfos?: DigitalHumanInfo[];
|
|
240
|
+
/** Tags */
|
|
241
|
+
tags?: string[];
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Parameters for batch creating video produce tasks
|
|
245
|
+
*/
|
|
246
|
+
export interface BatchCreateVideoProducesParams {
|
|
247
|
+
/** Task list (max 20) */
|
|
248
|
+
tasks: BatchCreateVideoProducesItem[];
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Response for batch creating video produce tasks
|
|
252
|
+
*/
|
|
253
|
+
export interface BatchCreateVideoProducesResponse {
|
|
254
|
+
/** Whether successful */
|
|
255
|
+
success: boolean;
|
|
256
|
+
/** Number of created tasks */
|
|
257
|
+
createdCount: number;
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Parameters for deleting a video produce task
|
|
261
|
+
*/
|
|
262
|
+
export interface DeleteVideoProduceParams {
|
|
263
|
+
/** Task ID */
|
|
264
|
+
id: number;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* PPT status enum
|
|
268
|
+
*/
|
|
269
|
+
export declare enum PptStatus {
|
|
270
|
+
/** Normal */
|
|
271
|
+
NORMAL = "normal",
|
|
272
|
+
/** Upload failed */
|
|
273
|
+
FAIL_UPLOAD = "failUpload",
|
|
274
|
+
/** Waiting for conversion */
|
|
275
|
+
WAIT_CONVERT = "waitConvert",
|
|
276
|
+
/** Conversion failed */
|
|
277
|
+
FAIL_CONVERT = "failConvert"
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Video produce PPT entity
|
|
281
|
+
*/
|
|
282
|
+
export interface VideoProducePpt {
|
|
283
|
+
/** File ID */
|
|
284
|
+
fileId: string;
|
|
285
|
+
/** File name */
|
|
286
|
+
fileName: string;
|
|
287
|
+
/** File URL */
|
|
288
|
+
fileUrl: string;
|
|
289
|
+
/** Total pages (null if not converted) */
|
|
290
|
+
totalPage: number | null;
|
|
291
|
+
/** PPT status */
|
|
292
|
+
status: PptStatus;
|
|
293
|
+
/** Conversion type */
|
|
294
|
+
convertType: 'common' | 'animate';
|
|
295
|
+
/** Preview image URL */
|
|
296
|
+
previewImage: string;
|
|
297
|
+
/** Large preview image URL */
|
|
298
|
+
previewBigImage: string;
|
|
299
|
+
/** Creation timestamp (milliseconds) */
|
|
300
|
+
createTime: number;
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* Parameters for listing video produce PPTs
|
|
304
|
+
*/
|
|
305
|
+
export interface ListVideoProducePptsParams {
|
|
306
|
+
/** Page number (>= 1) */
|
|
307
|
+
pageNumber: number;
|
|
308
|
+
/** Page size (1-1000) */
|
|
309
|
+
pageSize: number;
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* Response for listing video produce PPTs
|
|
313
|
+
*/
|
|
314
|
+
export interface ListVideoProducePptsResponse {
|
|
315
|
+
/** Current page number */
|
|
316
|
+
pageNumber: number;
|
|
317
|
+
/** Page size */
|
|
318
|
+
pageSize: number;
|
|
319
|
+
/** Total pages */
|
|
320
|
+
totalPages: number;
|
|
321
|
+
/** Total items */
|
|
322
|
+
totalItems: number;
|
|
323
|
+
/** PPT list */
|
|
324
|
+
contents: VideoProducePpt[];
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* Parameters for getting a video produce PPT
|
|
328
|
+
*/
|
|
329
|
+
export interface GetVideoProducePptParams {
|
|
330
|
+
/** File ID */
|
|
331
|
+
fileId: string;
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* Parameters for uploading a video produce PPT
|
|
335
|
+
*/
|
|
336
|
+
export interface UploadVideoProducePptParams {
|
|
337
|
+
/** PPT file URL */
|
|
338
|
+
url: string;
|
|
339
|
+
/** Document name (optional) */
|
|
340
|
+
docName?: string;
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* Response for uploading a video produce PPT
|
|
344
|
+
*/
|
|
345
|
+
export interface UploadVideoProducePptResponse {
|
|
346
|
+
/** File ID */
|
|
347
|
+
fileId: string;
|
|
348
|
+
/** File name */
|
|
349
|
+
fileName: string;
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* TTS voice tag enum
|
|
353
|
+
*/
|
|
354
|
+
export declare enum TtsVoiceTag {
|
|
355
|
+
/** Male voice */
|
|
356
|
+
MALE_VOICE = "MALE_VOICE",
|
|
357
|
+
/** Female voice */
|
|
358
|
+
FEMALE_VOICE = "FEMALE_VOICE",
|
|
359
|
+
/** Children voice */
|
|
360
|
+
CHILDREN_VOICE = "CHILDREN_VOICE",
|
|
361
|
+
/** Custom voice */
|
|
362
|
+
CUSTOM_VOICE = "CUSTOM_VOICE",
|
|
363
|
+
/** Others */
|
|
364
|
+
OTHERS = "OTHERS"
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
* TTS voice entity
|
|
368
|
+
*/
|
|
369
|
+
export interface TtsVoice {
|
|
370
|
+
/** Voice ID */
|
|
371
|
+
id: number;
|
|
372
|
+
/** Voice name */
|
|
373
|
+
voiceName: string;
|
|
374
|
+
/** Demo audio URL */
|
|
375
|
+
voiceDemoUrl: string;
|
|
376
|
+
/** Voice tag */
|
|
377
|
+
tag: TtsVoiceTag;
|
|
378
|
+
}
|
|
379
|
+
//# sourceMappingURL=v4-ai.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v4-ai.d.ts","sourceRoot":"","sources":["../../src/types/v4-ai.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,uBAAuB;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,4BAA4B;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,sBAAsB;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,0BAA0B;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,0BAA0B;IAC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