@ray-js/api 1.7.79 → 1.7.80
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/@types/AIKit.d.ts +1140 -1009
- package/@types/AVideoKit.d.ts +26 -101
- package/@types/BaseKit.d.ts +234 -210
- package/@types/BizKit.d.ts +271 -296
- package/@types/DeviceKit.d.ts +57 -88
- package/@types/GroupCITestKit.d.ts +1 -3
- package/@types/HealthKit.d.ts +273 -230
- package/@types/HomeKit.d.ts +1062 -891
- package/@types/IPCKit.d.ts +23 -50
- package/@types/LightKit.d.ts +2 -2
- package/@types/MapKit.d.ts +592 -381
- package/@types/MediaPlayerKit.d.ts +4 -28
- package/@types/MiniKit.d.ts +198 -375
- package/@types/P2PKit.d.ts +139 -205
- package/@types/PayKit.d.ts +10 -79
- package/@types/SweeperKit.d.ts +10 -10
- package/@types/ThirdAuthKit.d.ts +28 -252
- package/@types/WearKit.d.ts +630 -1593
- package/@types/api-extend.d.ts +0 -63
- package/lib/AIKit-1.6.0.d.ts +732 -35
- package/lib/AIKit-1.6.0.js +732 -51
- package/lib/BaseKit-3.17.7.d.ts +0 -214
- package/lib/BaseKit-3.17.7.js +1 -227
- package/lib/DeviceKit-4.13.1.d.ts +3666 -0
- package/lib/DeviceKit-4.13.1.js +3666 -0
- package/lib/HealthKit-6.5.0.d.ts +603 -0
- package/lib/HealthKit-6.5.0.js +603 -0
- package/lib/HomeKit-3.1.4.d.ts +4 -0
- package/lib/HomeKit-3.1.4.js +4 -0
- package/lib/IPCKit-6.4.5.d.ts +0 -1
- package/lib/IPCKit-6.4.5.js +0 -1
- package/lib/MapKit-3.4.13.d.ts +251 -0
- package/lib/MapKit-3.4.13.js +251 -0
- package/lib/MediaKit-3.4.1.d.ts +16 -0
- package/lib/MediaKit-3.4.1.js +16 -0
- package/lib/PlayNetKit-1.3.30.d.ts +930 -0
- package/lib/PlayNetKit-1.3.30.js +930 -0
- package/lib/cloud/alarm.d.ts +38 -5
- package/lib/cloud/alarm.js +38 -5
- package/lib/cloud/device.d.ts +42 -6
- package/lib/cloud/device.js +42 -6
- package/lib/cloud/gateway.d.ts +16 -0
- package/lib/cloud/gateway.js +16 -0
- package/lib/cloud/health.d.ts +1 -0
- package/lib/cloud/health.js +272 -0
- package/lib/cloud/interface.d.ts +161 -0
- package/lib/cloud/interface.js +18 -0
- package/lib/cloud/statistic.d.ts +112 -26
- package/lib/cloud/statistic.js +112 -26
- package/lib/cloud/timer.d.ts +2 -4
- package/lib/nativeRouters/outdoors.d.ts +2 -0
- package/lib/nativeRouters/outdoors.js +2 -0
- package/lib/nativeRouters/remoteGroup.d.ts +2 -0
- package/lib/nativeRouters/remoteGroup.js +2 -0
- package/lib/panel/publishDps.js +1 -1
- package/package.json +5 -5
package/@types/AIKit.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* AIKit
|
|
3
3
|
*
|
|
4
|
-
* @version 2.1.
|
|
4
|
+
* @version 2.1.2
|
|
5
5
|
*/
|
|
6
6
|
declare namespace ty.ai {
|
|
7
7
|
/**
|
|
@@ -11,11 +11,11 @@ declare namespace ty.ai {
|
|
|
11
11
|
* @platform iOS Android
|
|
12
12
|
*/
|
|
13
13
|
export function createForegroundVideoService(params?: {
|
|
14
|
-
/**
|
|
14
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
15
15
|
complete?: () => void
|
|
16
|
-
/**
|
|
16
|
+
/** success 成功回调 */
|
|
17
17
|
success?: (params: null) => void
|
|
18
|
-
/**
|
|
18
|
+
/** fail 失败回调 */
|
|
19
19
|
fail?: (params: {
|
|
20
20
|
/** 错误信息 */
|
|
21
21
|
errorMsg: string
|
|
@@ -38,11 +38,11 @@ declare namespace ty.ai {
|
|
|
38
38
|
* @platform iOS Android
|
|
39
39
|
*/
|
|
40
40
|
export function destroyForegroundVideoService(params?: {
|
|
41
|
-
/**
|
|
41
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
42
42
|
complete?: () => void
|
|
43
|
-
/**
|
|
43
|
+
/** success 成功回调 */
|
|
44
44
|
success?: (params: null) => void
|
|
45
|
-
/**
|
|
45
|
+
/** fail 失败回调 */
|
|
46
46
|
fail?: (params: {
|
|
47
47
|
/** 错误信息 */
|
|
48
48
|
errorMsg: string
|
|
@@ -65,11 +65,11 @@ declare namespace ty.ai {
|
|
|
65
65
|
* @platform iOS Android
|
|
66
66
|
*/
|
|
67
67
|
export function downloadFaceLandmarkerModel(params?: {
|
|
68
|
-
/**
|
|
68
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
69
69
|
complete?: () => void
|
|
70
|
-
/**
|
|
70
|
+
/** success 成功回调 */
|
|
71
71
|
success?: (params: null) => void
|
|
72
|
-
/**
|
|
72
|
+
/** fail 失败回调 */
|
|
73
73
|
fail?: (params: {
|
|
74
74
|
/** 错误信息 */
|
|
75
75
|
errorMsg: string
|
|
@@ -102,23 +102,23 @@ declare namespace ty.ai {
|
|
|
102
102
|
* extend param
|
|
103
103
|
* @since AIKit 1.3.2
|
|
104
104
|
*/
|
|
105
|
-
extendParam?:
|
|
106
|
-
/**
|
|
105
|
+
extendParam?: Object_i9SXlm
|
|
106
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
107
107
|
complete?: () => void
|
|
108
|
-
/**
|
|
108
|
+
/** success 成功回调 */
|
|
109
109
|
success?: (params: {
|
|
110
110
|
/**
|
|
111
111
|
* Face landmark points
|
|
112
112
|
* @since AIKit 1.3.2
|
|
113
113
|
*/
|
|
114
|
-
faceLandmarks:
|
|
114
|
+
faceLandmarks: FaceLandmark_cqImu8[]
|
|
115
115
|
/**
|
|
116
116
|
* ext data
|
|
117
117
|
* @since AIKit 1.3.2
|
|
118
118
|
*/
|
|
119
|
-
extData?:
|
|
119
|
+
extData?: Object_i9SXlm
|
|
120
120
|
}) => void
|
|
121
|
-
/**
|
|
121
|
+
/** fail 失败回调 */
|
|
122
122
|
fail?: (params: {
|
|
123
123
|
/** 错误信息 */
|
|
124
124
|
errorMsg: string
|
|
@@ -145,22 +145,22 @@ declare namespace ty.ai {
|
|
|
145
145
|
* Input data sources
|
|
146
146
|
* @since AIKit 1.3.2
|
|
147
147
|
*/
|
|
148
|
-
sources:
|
|
148
|
+
sources: ForegroundMediaSource_3Vh2fz[]
|
|
149
149
|
/**
|
|
150
150
|
* Output configuration
|
|
151
151
|
* @since AIKit 1.3.2
|
|
152
152
|
*/
|
|
153
|
-
outputConfig:
|
|
153
|
+
outputConfig: OutputConfig_ybFIye
|
|
154
154
|
/**
|
|
155
155
|
* extend param
|
|
156
156
|
* @since AIKit 1.3.2
|
|
157
157
|
*/
|
|
158
|
-
extendParam?:
|
|
159
|
-
/**
|
|
158
|
+
extendParam?: Object_i9SXlm
|
|
159
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
160
160
|
complete?: () => void
|
|
161
|
-
/**
|
|
161
|
+
/** success 成功回调 */
|
|
162
162
|
success?: (params: null) => void
|
|
163
|
-
/**
|
|
163
|
+
/** fail 失败回调 */
|
|
164
164
|
fail?: (params: {
|
|
165
165
|
/** 错误信息 */
|
|
166
166
|
errorMsg: string
|
|
@@ -186,39 +186,45 @@ declare namespace ty.ai {
|
|
|
186
186
|
/**
|
|
187
187
|
* template object
|
|
188
188
|
* @since AIKit 1.3.2
|
|
189
|
+
* @since AIKit 1.4.3
|
|
189
190
|
*/
|
|
190
|
-
templateObject:
|
|
191
|
+
templateObject: ForegroundMediaTemplateObject_0PUdd4
|
|
191
192
|
/**
|
|
192
193
|
* Input data sources
|
|
193
194
|
* @since AIKit 1.3.2
|
|
195
|
+
* @since AIKit 1.4.3
|
|
194
196
|
*/
|
|
195
197
|
mediaSource: string
|
|
196
198
|
/**
|
|
197
199
|
* Output configuration
|
|
198
200
|
* @since AIKit 1.3.2
|
|
201
|
+
* @since AIKit 1.4.3
|
|
199
202
|
*/
|
|
200
|
-
outputConfig?:
|
|
203
|
+
outputConfig?: OutputConfig_ybFIye
|
|
201
204
|
/**
|
|
202
205
|
* extend param
|
|
203
206
|
* @since AIKit 1.3.2
|
|
207
|
+
* @since AIKit 1.4.3
|
|
204
208
|
*/
|
|
205
|
-
extendParam?:
|
|
206
|
-
/**
|
|
209
|
+
extendParam?: Object_i9SXlm
|
|
210
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
207
211
|
complete?: () => void
|
|
208
|
-
/**
|
|
212
|
+
/** success 成功回调 */
|
|
209
213
|
success?: (params: {
|
|
210
214
|
/**
|
|
211
215
|
* Output foreground media's path
|
|
212
216
|
* @since AIKit 1.3.2
|
|
217
|
+
* @since AIKit 1.4.3
|
|
213
218
|
*/
|
|
214
219
|
outputPath: string
|
|
215
220
|
/**
|
|
216
221
|
* ext data
|
|
217
222
|
* @since AIKit 1.3.2
|
|
223
|
+
* @since AIKit 1.4.3
|
|
218
224
|
*/
|
|
219
|
-
extData?:
|
|
225
|
+
extData?: Object_i9SXlm
|
|
220
226
|
}) => void
|
|
221
|
-
/**
|
|
227
|
+
/** fail 失败回调 */
|
|
222
228
|
fail?: (params: {
|
|
223
229
|
/** 错误信息 */
|
|
224
230
|
errorMsg: string
|
|
@@ -243,40 +249,46 @@ declare namespace ty.ai {
|
|
|
243
249
|
export function processPetForegroundMediaByTemplate(params: {
|
|
244
250
|
/**
|
|
245
251
|
* template object
|
|
252
|
+
* @since AIKit 1.3.2
|
|
246
253
|
* @since AIKit 1.4.3
|
|
247
254
|
*/
|
|
248
|
-
templateObject:
|
|
255
|
+
templateObject: ForegroundMediaTemplateObject_0PUdd4
|
|
249
256
|
/**
|
|
250
257
|
* Input data sources
|
|
258
|
+
* @since AIKit 1.3.2
|
|
251
259
|
* @since AIKit 1.4.3
|
|
252
260
|
*/
|
|
253
261
|
mediaSource: string
|
|
254
262
|
/**
|
|
255
263
|
* Output configuration
|
|
264
|
+
* @since AIKit 1.3.2
|
|
256
265
|
* @since AIKit 1.4.3
|
|
257
266
|
*/
|
|
258
|
-
outputConfig?:
|
|
267
|
+
outputConfig?: OutputConfig_ybFIye
|
|
259
268
|
/**
|
|
260
269
|
* extend param
|
|
270
|
+
* @since AIKit 1.3.2
|
|
261
271
|
* @since AIKit 1.4.3
|
|
262
272
|
*/
|
|
263
|
-
extendParam?:
|
|
264
|
-
/**
|
|
273
|
+
extendParam?: Object_i9SXlm
|
|
274
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
265
275
|
complete?: () => void
|
|
266
|
-
/**
|
|
276
|
+
/** success 成功回调 */
|
|
267
277
|
success?: (params: {
|
|
268
278
|
/**
|
|
269
279
|
* Output foreground media's path
|
|
280
|
+
* @since AIKit 1.3.2
|
|
270
281
|
* @since AIKit 1.4.3
|
|
271
282
|
*/
|
|
272
283
|
outputPath: string
|
|
273
284
|
/**
|
|
274
285
|
* ext data
|
|
286
|
+
* @since AIKit 1.3.2
|
|
275
287
|
* @since AIKit 1.4.3
|
|
276
288
|
*/
|
|
277
|
-
extData?:
|
|
289
|
+
extData?: Object_i9SXlm
|
|
278
290
|
}) => void
|
|
279
|
-
/**
|
|
291
|
+
/** fail 失败回调 */
|
|
280
292
|
fail?: (params: {
|
|
281
293
|
/** 错误信息 */
|
|
282
294
|
errorMsg: string
|
|
@@ -299,11 +311,11 @@ declare namespace ty.ai {
|
|
|
299
311
|
* @platform iOS Android
|
|
300
312
|
*/
|
|
301
313
|
export function oralDiseaseInit(params?: {
|
|
302
|
-
/**
|
|
314
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
303
315
|
complete?: () => void
|
|
304
|
-
/**
|
|
316
|
+
/** success 成功回调 */
|
|
305
317
|
success?: (params: null) => void
|
|
306
|
-
/**
|
|
318
|
+
/** fail 失败回调 */
|
|
307
319
|
fail?: (params: {
|
|
308
320
|
/** 错误信息 */
|
|
309
321
|
errorMsg: string
|
|
@@ -328,7 +340,7 @@ declare namespace ty.ai {
|
|
|
328
340
|
export function oralDiseasePredictionRun(params: {
|
|
329
341
|
/**
|
|
330
342
|
* 设备名称
|
|
331
|
-
* @since AIKit
|
|
343
|
+
* @since AIKit 1.9.3
|
|
332
344
|
*/
|
|
333
345
|
devId: string
|
|
334
346
|
/**
|
|
@@ -341,9 +353,9 @@ declare namespace ty.ai {
|
|
|
341
353
|
* @since AIKit 1.6.0
|
|
342
354
|
*/
|
|
343
355
|
outImagePath: string
|
|
344
|
-
/**
|
|
356
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
345
357
|
complete?: () => void
|
|
346
|
-
/**
|
|
358
|
+
/** success 成功回调 */
|
|
347
359
|
success?: (params: {
|
|
348
360
|
/**
|
|
349
361
|
* 是否非口腔图片
|
|
@@ -383,7 +395,7 @@ declare namespace ty.ai {
|
|
|
383
395
|
*/
|
|
384
396
|
grayscalePath?: string
|
|
385
397
|
}) => void
|
|
386
|
-
/**
|
|
398
|
+
/** fail 失败回调 */
|
|
387
399
|
fail?: (params: {
|
|
388
400
|
/** 错误信息 */
|
|
389
401
|
errorMsg: string
|
|
@@ -426,12 +438,12 @@ declare namespace ty.ai {
|
|
|
426
438
|
* @since AIKit 2.1.0
|
|
427
439
|
* @defaultValue EnhanceType.EnhanceTypeNULL
|
|
428
440
|
*/
|
|
429
|
-
enhance_type?:
|
|
430
|
-
/**
|
|
441
|
+
enhance_type?: EnhanceType_VzwqnG
|
|
442
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
431
443
|
complete?: () => void
|
|
432
|
-
/**
|
|
444
|
+
/** success 成功回调 */
|
|
433
445
|
success?: (params: null) => void
|
|
434
|
-
/**
|
|
446
|
+
/** fail 失败回调 */
|
|
435
447
|
fail?: (params: {
|
|
436
448
|
/** 错误信息 */
|
|
437
449
|
errorMsg: string
|
|
@@ -474,12 +486,12 @@ declare namespace ty.ai {
|
|
|
474
486
|
* @since AIKit 2.1.0
|
|
475
487
|
* @defaultValue EnhanceType.EnhanceTypeNULL
|
|
476
488
|
*/
|
|
477
|
-
enhance_type?:
|
|
478
|
-
/**
|
|
489
|
+
enhance_type?: EnhanceType_VzwqnG
|
|
490
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
479
491
|
complete?: () => void
|
|
480
|
-
/**
|
|
492
|
+
/** success 成功回调 */
|
|
481
493
|
success?: (params: null) => void
|
|
482
|
-
/**
|
|
494
|
+
/** fail 失败回调 */
|
|
483
495
|
fail?: (params: {
|
|
484
496
|
/** 错误信息 */
|
|
485
497
|
errorMsg: string
|
|
@@ -519,7 +531,7 @@ declare namespace ty.ai {
|
|
|
519
531
|
scene_type: string
|
|
520
532
|
/**
|
|
521
533
|
* 设备ID
|
|
522
|
-
* @since AIKit
|
|
534
|
+
* @since AIKit 1.9.3
|
|
523
535
|
*/
|
|
524
536
|
devId: string
|
|
525
537
|
/**
|
|
@@ -538,16 +550,16 @@ declare namespace ty.ai {
|
|
|
538
550
|
* @since AIKit 1.4.1
|
|
539
551
|
* @defaultValue EnhanceOutputResolution.EnhanceOutputResolutionOriginal
|
|
540
552
|
*/
|
|
541
|
-
enhanceOutputResolution?:
|
|
553
|
+
enhanceOutputResolution?: EnhanceOutputResolution_RQGshk
|
|
542
554
|
/**
|
|
543
555
|
* 图像增强类型
|
|
544
556
|
* @since AIKit 1.4.1
|
|
545
557
|
* @defaultValue EnhanceType.EnhanceTypeNULL
|
|
546
558
|
*/
|
|
547
|
-
enhanceType?:
|
|
548
|
-
/**
|
|
559
|
+
enhanceType?: EnhanceType_VzwqnG
|
|
560
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
549
561
|
complete?: () => void
|
|
550
|
-
/**
|
|
562
|
+
/** success 成功回调 */
|
|
551
563
|
success?: (params: {
|
|
552
564
|
/**
|
|
553
565
|
* 图片地址
|
|
@@ -565,7 +577,7 @@ declare namespace ty.ai {
|
|
|
565
577
|
*/
|
|
566
578
|
enhanceFaileReason: string
|
|
567
579
|
}) => void
|
|
568
|
-
/**
|
|
580
|
+
/** fail 失败回调 */
|
|
569
581
|
fail?: (params: {
|
|
570
582
|
/** 错误信息 */
|
|
571
583
|
errorMsg: string
|
|
@@ -608,12 +620,12 @@ declare namespace ty.ai {
|
|
|
608
620
|
* @since AIKit 2.1.0
|
|
609
621
|
* @defaultValue EnhanceType.EnhanceTypeNULL
|
|
610
622
|
*/
|
|
611
|
-
enhance_type?:
|
|
612
|
-
/**
|
|
623
|
+
enhance_type?: EnhanceType_VzwqnG
|
|
624
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
613
625
|
complete?: () => void
|
|
614
|
-
/**
|
|
626
|
+
/** success 成功回调 */
|
|
615
627
|
success?: (params: null) => void
|
|
616
|
-
/**
|
|
628
|
+
/** fail 失败回调 */
|
|
617
629
|
fail?: (params: {
|
|
618
630
|
/** 错误信息 */
|
|
619
631
|
errorMsg: string
|
|
@@ -630,7 +642,7 @@ declare namespace ty.ai {
|
|
|
630
642
|
}): void
|
|
631
643
|
|
|
632
644
|
/**
|
|
633
|
-
*
|
|
645
|
+
* 图像畸变增强处理
|
|
634
646
|
* @public
|
|
635
647
|
* @since AIKit 1.4.1
|
|
636
648
|
* @platform iOS Android
|
|
@@ -666,7 +678,7 @@ declare namespace ty.ai {
|
|
|
666
678
|
* @since AIKit 1.4.1
|
|
667
679
|
* @defaultValue EnhanceInterpolationType.EnhanceInterpolationTypeNULL
|
|
668
680
|
*/
|
|
669
|
-
interpolationType?:
|
|
681
|
+
interpolationType?: EnhanceInterpolationType_zhrioy
|
|
670
682
|
/**
|
|
671
683
|
* 比例
|
|
672
684
|
* @since AIKit 1.4.1
|
|
@@ -717,9 +729,9 @@ declare namespace ty.ai {
|
|
|
717
729
|
* @since AIKit 1.4.1
|
|
718
730
|
*/
|
|
719
731
|
fP2: number
|
|
720
|
-
/**
|
|
732
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
721
733
|
complete?: () => void
|
|
722
|
-
/**
|
|
734
|
+
/** success 成功回调 */
|
|
723
735
|
success?: (params: {
|
|
724
736
|
/**
|
|
725
737
|
* 图片地址
|
|
@@ -737,7 +749,7 @@ declare namespace ty.ai {
|
|
|
737
749
|
*/
|
|
738
750
|
enhanceFaileReason: string
|
|
739
751
|
}) => void
|
|
740
|
-
/**
|
|
752
|
+
/** fail 失败回调 */
|
|
741
753
|
fail?: (params: {
|
|
742
754
|
/** 错误信息 */
|
|
743
755
|
errorMsg: string
|
|
@@ -754,17 +766,17 @@ declare namespace ty.ai {
|
|
|
754
766
|
}): void
|
|
755
767
|
|
|
756
768
|
/**
|
|
757
|
-
*
|
|
769
|
+
* 取消图像畸变增强处理
|
|
758
770
|
* @public
|
|
759
771
|
* @since AIKit 1.4.1
|
|
760
772
|
* @platform iOS Android
|
|
761
773
|
*/
|
|
762
774
|
export function enhanceCalibrationCancel(params?: {
|
|
763
|
-
/**
|
|
775
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
764
776
|
complete?: () => void
|
|
765
|
-
/**
|
|
777
|
+
/** success 成功回调 */
|
|
766
778
|
success?: (params: null) => void
|
|
767
|
-
/**
|
|
779
|
+
/** fail 失败回调 */
|
|
768
780
|
fail?: (params: {
|
|
769
781
|
/** 错误信息 */
|
|
770
782
|
errorMsg: string
|
|
@@ -818,16 +830,16 @@ declare namespace ty.ai {
|
|
|
818
830
|
* @since AIKit 2.1.0
|
|
819
831
|
* @defaultValue EnhanceOutputResolution.EnhanceOutputResolutionOriginal
|
|
820
832
|
*/
|
|
821
|
-
enhanceOutputResolution?:
|
|
833
|
+
enhanceOutputResolution?: EnhanceOutputResolution_RQGshk
|
|
822
834
|
/**
|
|
823
835
|
* 视频增强类型
|
|
824
836
|
* @since AIKit 2.1.0
|
|
825
837
|
* @defaultValue EnhanceType.EnhanceTypeNULL
|
|
826
838
|
*/
|
|
827
|
-
enhanceType?:
|
|
828
|
-
/**
|
|
839
|
+
enhanceType?: EnhanceType_VzwqnG
|
|
840
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
829
841
|
complete?: () => void
|
|
830
|
-
/**
|
|
842
|
+
/** success 成功回调 */
|
|
831
843
|
success?: (params: {
|
|
832
844
|
/**
|
|
833
845
|
* 视频输出路径
|
|
@@ -845,7 +857,7 @@ declare namespace ty.ai {
|
|
|
845
857
|
*/
|
|
846
858
|
enhanceFaileReason: string
|
|
847
859
|
}) => void
|
|
848
|
-
/**
|
|
860
|
+
/** fail 失败回调 */
|
|
849
861
|
fail?: (params: {
|
|
850
862
|
/** 错误信息 */
|
|
851
863
|
errorMsg: string
|
|
@@ -868,11 +880,11 @@ declare namespace ty.ai {
|
|
|
868
880
|
* @platform iOS Android
|
|
869
881
|
*/
|
|
870
882
|
export function enhanceVideoClarityCancel(params?: {
|
|
871
|
-
/**
|
|
883
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
872
884
|
complete?: () => void
|
|
873
|
-
/**
|
|
885
|
+
/** success 成功回调 */
|
|
874
886
|
success?: (params: null) => void
|
|
875
|
-
/**
|
|
887
|
+
/** fail 失败回调 */
|
|
876
888
|
fail?: (params: {
|
|
877
889
|
/** 错误信息 */
|
|
878
890
|
errorMsg: string
|
|
@@ -889,7 +901,7 @@ declare namespace ty.ai {
|
|
|
889
901
|
}): void
|
|
890
902
|
|
|
891
903
|
/**
|
|
892
|
-
*
|
|
904
|
+
* 图像页面浏览
|
|
893
905
|
* @public
|
|
894
906
|
* @since AIKit 2.1.0
|
|
895
907
|
* @platform iOS Android
|
|
@@ -915,12 +927,12 @@ declare namespace ty.ai {
|
|
|
915
927
|
* @since AIKit 2.1.0
|
|
916
928
|
* @defaultValue EnhanceType.EnhanceTypeNULL
|
|
917
929
|
*/
|
|
918
|
-
enhance_type?:
|
|
919
|
-
/**
|
|
930
|
+
enhance_type?: EnhanceType_VzwqnG
|
|
931
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
920
932
|
complete?: () => void
|
|
921
|
-
/**
|
|
933
|
+
/** success 成功回调 */
|
|
922
934
|
success?: (params: null) => void
|
|
923
|
-
/**
|
|
935
|
+
/** fail 失败回调 */
|
|
924
936
|
fail?: (params: {
|
|
925
937
|
/** 错误信息 */
|
|
926
938
|
errorMsg: string
|
|
@@ -937,7 +949,7 @@ declare namespace ty.ai {
|
|
|
937
949
|
}): void
|
|
938
950
|
|
|
939
951
|
/**
|
|
940
|
-
*
|
|
952
|
+
* 图片文件下载
|
|
941
953
|
* @public
|
|
942
954
|
* @since AIKit 2.1.0
|
|
943
955
|
* @platform iOS Android
|
|
@@ -963,12 +975,12 @@ declare namespace ty.ai {
|
|
|
963
975
|
* @since AIKit 2.1.0
|
|
964
976
|
* @defaultValue EnhanceType.EnhanceTypeNULL
|
|
965
977
|
*/
|
|
966
|
-
enhance_type?:
|
|
967
|
-
/**
|
|
978
|
+
enhance_type?: EnhanceType_VzwqnG
|
|
979
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
968
980
|
complete?: () => void
|
|
969
|
-
/**
|
|
981
|
+
/** success 成功回调 */
|
|
970
982
|
success?: (params: null) => void
|
|
971
|
-
/**
|
|
983
|
+
/** fail 失败回调 */
|
|
972
984
|
fail?: (params: {
|
|
973
985
|
/** 错误信息 */
|
|
974
986
|
errorMsg: string
|
|
@@ -985,7 +997,7 @@ declare namespace ty.ai {
|
|
|
985
997
|
}): void
|
|
986
998
|
|
|
987
999
|
/**
|
|
988
|
-
*
|
|
1000
|
+
* 视频页面浏览
|
|
989
1001
|
* @public
|
|
990
1002
|
* @since AIKit 2.1.0
|
|
991
1003
|
* @platform iOS Android
|
|
@@ -1011,12 +1023,12 @@ declare namespace ty.ai {
|
|
|
1011
1023
|
* @since AIKit 2.1.0
|
|
1012
1024
|
* @defaultValue EnhanceType.EnhanceTypeNULL
|
|
1013
1025
|
*/
|
|
1014
|
-
enhance_type?:
|
|
1015
|
-
/**
|
|
1026
|
+
enhance_type?: EnhanceType_VzwqnG
|
|
1027
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
1016
1028
|
complete?: () => void
|
|
1017
|
-
/**
|
|
1029
|
+
/** success 成功回调 */
|
|
1018
1030
|
success?: (params: null) => void
|
|
1019
|
-
/**
|
|
1031
|
+
/** fail 失败回调 */
|
|
1020
1032
|
fail?: (params: {
|
|
1021
1033
|
/** 错误信息 */
|
|
1022
1034
|
errorMsg: string
|
|
@@ -1033,7 +1045,7 @@ declare namespace ty.ai {
|
|
|
1033
1045
|
}): void
|
|
1034
1046
|
|
|
1035
1047
|
/**
|
|
1036
|
-
*
|
|
1048
|
+
* 视频文件下载
|
|
1037
1049
|
* @public
|
|
1038
1050
|
* @since AIKit 2.1.0
|
|
1039
1051
|
* @platform iOS Android
|
|
@@ -1059,12 +1071,12 @@ declare namespace ty.ai {
|
|
|
1059
1071
|
* @since AIKit 2.1.0
|
|
1060
1072
|
* @defaultValue EnhanceType.EnhanceTypeNULL
|
|
1061
1073
|
*/
|
|
1062
|
-
enhance_type?:
|
|
1063
|
-
/**
|
|
1074
|
+
enhance_type?: EnhanceType_VzwqnG
|
|
1075
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
1064
1076
|
complete?: () => void
|
|
1065
|
-
/**
|
|
1077
|
+
/** success 成功回调 */
|
|
1066
1078
|
success?: (params: null) => void
|
|
1067
|
-
/**
|
|
1079
|
+
/** fail 失败回调 */
|
|
1068
1080
|
fail?: (params: {
|
|
1069
1081
|
/** 错误信息 */
|
|
1070
1082
|
errorMsg: string
|
|
@@ -1087,11 +1099,11 @@ declare namespace ty.ai {
|
|
|
1087
1099
|
* @platform iOS Android
|
|
1088
1100
|
*/
|
|
1089
1101
|
export function pixelImageInit(params?: {
|
|
1090
|
-
/**
|
|
1102
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
1091
1103
|
complete?: () => void
|
|
1092
|
-
/**
|
|
1104
|
+
/** success 成功回调 */
|
|
1093
1105
|
success?: (params: null) => void
|
|
1094
|
-
/**
|
|
1106
|
+
/** fail 失败回调 */
|
|
1095
1107
|
fail?: (params: {
|
|
1096
1108
|
/** 错误信息 */
|
|
1097
1109
|
errorMsg: string
|
|
@@ -1108,23 +1120,23 @@ declare namespace ty.ai {
|
|
|
1108
1120
|
}): void
|
|
1109
1121
|
|
|
1110
1122
|
/**
|
|
1111
|
-
*
|
|
1123
|
+
* 图像生成标签列表
|
|
1112
1124
|
* @public
|
|
1113
1125
|
* @since AIKit 1.8.0
|
|
1114
1126
|
* @platform iOS Android
|
|
1115
1127
|
*/
|
|
1116
1128
|
export function fetchPixelImageCategoryInfo(params?: {
|
|
1117
|
-
/**
|
|
1129
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
1118
1130
|
complete?: () => void
|
|
1119
|
-
/**
|
|
1131
|
+
/** success 成功回调 */
|
|
1120
1132
|
success?: (params: {
|
|
1121
1133
|
/**
|
|
1122
1134
|
* 类目信息
|
|
1123
1135
|
* @since AIKit 1.8.0
|
|
1124
1136
|
*/
|
|
1125
|
-
imageCategory?:
|
|
1137
|
+
imageCategory?: PixelImageCategoryBean_aFw7lN[]
|
|
1126
1138
|
}) => void
|
|
1127
|
-
/**
|
|
1139
|
+
/** fail 失败回调 */
|
|
1128
1140
|
fail?: (params: {
|
|
1129
1141
|
/** 错误信息 */
|
|
1130
1142
|
errorMsg: string
|
|
@@ -1141,7 +1153,7 @@ declare namespace ty.ai {
|
|
|
1141
1153
|
}): void
|
|
1142
1154
|
|
|
1143
1155
|
/**
|
|
1144
|
-
*
|
|
1156
|
+
* 图像生成
|
|
1145
1157
|
* @public
|
|
1146
1158
|
* @since AIKit 1.8.0
|
|
1147
1159
|
* @platform iOS Android
|
|
@@ -1172,22 +1184,22 @@ declare namespace ty.ai {
|
|
|
1172
1184
|
* @since AIKit 1.8.0
|
|
1173
1185
|
*/
|
|
1174
1186
|
outImagePath: string
|
|
1175
|
-
/**
|
|
1187
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
1176
1188
|
complete?: () => void
|
|
1177
|
-
/**
|
|
1189
|
+
/** success 成功回调 */
|
|
1178
1190
|
success?: (params: {
|
|
1179
1191
|
/**
|
|
1180
|
-
*
|
|
1192
|
+
* 成功回调
|
|
1181
1193
|
* @since AIKit 1.8.0
|
|
1182
1194
|
*/
|
|
1183
1195
|
success: boolean
|
|
1184
1196
|
/**
|
|
1185
|
-
*
|
|
1197
|
+
* 生成的图像路径
|
|
1186
1198
|
* @since AIKit 1.8.0
|
|
1187
1199
|
*/
|
|
1188
1200
|
imagePath: string
|
|
1189
1201
|
}) => void
|
|
1190
|
-
/**
|
|
1202
|
+
/** fail 失败回调 */
|
|
1191
1203
|
fail?: (params: {
|
|
1192
1204
|
/** 错误信息 */
|
|
1193
1205
|
errorMsg: string
|
|
@@ -1204,7 +1216,7 @@ declare namespace ty.ai {
|
|
|
1204
1216
|
}): void
|
|
1205
1217
|
|
|
1206
1218
|
/**
|
|
1207
|
-
*
|
|
1219
|
+
* 图像GIF生成
|
|
1208
1220
|
* @public
|
|
1209
1221
|
* @since AIKit 1.8.0
|
|
1210
1222
|
* @platform iOS Android
|
|
@@ -1240,22 +1252,22 @@ declare namespace ty.ai {
|
|
|
1240
1252
|
* @since AIKit 1.8.0
|
|
1241
1253
|
*/
|
|
1242
1254
|
outImagePath: string
|
|
1243
|
-
/**
|
|
1255
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
1244
1256
|
complete?: () => void
|
|
1245
|
-
/**
|
|
1257
|
+
/** success 成功回调 */
|
|
1246
1258
|
success?: (params: {
|
|
1247
1259
|
/**
|
|
1248
|
-
*
|
|
1260
|
+
* 成功回调
|
|
1249
1261
|
* @since AIKit 1.8.0
|
|
1250
1262
|
*/
|
|
1251
1263
|
success: boolean
|
|
1252
1264
|
/**
|
|
1253
|
-
*
|
|
1265
|
+
* 生成的图像路径
|
|
1254
1266
|
* @since AIKit 1.8.0
|
|
1255
1267
|
*/
|
|
1256
1268
|
imagePath: string
|
|
1257
1269
|
}) => void
|
|
1258
|
-
/**
|
|
1270
|
+
/** fail 失败回调 */
|
|
1259
1271
|
fail?: (params: {
|
|
1260
1272
|
/** 错误信息 */
|
|
1261
1273
|
errorMsg: string
|
|
@@ -1283,11 +1295,11 @@ declare namespace ty.ai {
|
|
|
1283
1295
|
* @since AIKit 1.8.0
|
|
1284
1296
|
*/
|
|
1285
1297
|
device_id: string
|
|
1286
|
-
/**
|
|
1298
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
1287
1299
|
complete?: () => void
|
|
1288
|
-
/**
|
|
1300
|
+
/** success 成功回调 */
|
|
1289
1301
|
success?: (params: null) => void
|
|
1290
|
-
/**
|
|
1302
|
+
/** fail 失败回调 */
|
|
1291
1303
|
fail?: (params: {
|
|
1292
1304
|
/** 错误信息 */
|
|
1293
1305
|
errorMsg: string
|
|
@@ -1325,11 +1337,11 @@ declare namespace ty.ai {
|
|
|
1325
1337
|
* @since AIKit 1.8.0
|
|
1326
1338
|
*/
|
|
1327
1339
|
image_generation_like: boolean
|
|
1328
|
-
/**
|
|
1340
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
1329
1341
|
complete?: () => void
|
|
1330
|
-
/**
|
|
1342
|
+
/** success 成功回调 */
|
|
1331
1343
|
success?: (params: null) => void
|
|
1332
|
-
/**
|
|
1344
|
+
/** fail 失败回调 */
|
|
1333
1345
|
fail?: (params: {
|
|
1334
1346
|
/** 错误信息 */
|
|
1335
1347
|
errorMsg: string
|
|
@@ -1346,7 +1358,7 @@ declare namespace ty.ai {
|
|
|
1346
1358
|
}): void
|
|
1347
1359
|
|
|
1348
1360
|
/**
|
|
1349
|
-
*
|
|
1361
|
+
* 埋点:图像生像素屏使用
|
|
1350
1362
|
* @public
|
|
1351
1363
|
* @since AIKit 1.8.0
|
|
1352
1364
|
* @platform iOS Android
|
|
@@ -1367,11 +1379,11 @@ declare namespace ty.ai {
|
|
|
1367
1379
|
* @since AIKit 1.8.0
|
|
1368
1380
|
*/
|
|
1369
1381
|
image_generation_use: boolean
|
|
1370
|
-
/**
|
|
1382
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
1371
1383
|
complete?: () => void
|
|
1372
|
-
/**
|
|
1384
|
+
/** success 成功回调 */
|
|
1373
1385
|
success?: (params: null) => void
|
|
1374
|
-
/**
|
|
1386
|
+
/** fail 失败回调 */
|
|
1375
1387
|
fail?: (params: {
|
|
1376
1388
|
/** 错误信息 */
|
|
1377
1389
|
errorMsg: string
|
|
@@ -1404,11 +1416,11 @@ declare namespace ty.ai {
|
|
|
1404
1416
|
* @since AIKit 2.0.2
|
|
1405
1417
|
*/
|
|
1406
1418
|
entityIdList: string[]
|
|
1407
|
-
/**
|
|
1419
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
1408
1420
|
complete?: () => void
|
|
1409
|
-
/**
|
|
1410
|
-
success?: (params:
|
|
1411
|
-
/**
|
|
1421
|
+
/** success 成功回调 */
|
|
1422
|
+
success?: (params: LightSceneInfo_kCPwIX[]) => void
|
|
1423
|
+
/** fail 失败回调 */
|
|
1412
1424
|
fail?: (params: {
|
|
1413
1425
|
/** 错误信息 */
|
|
1414
1426
|
errorMsg: string
|
|
@@ -1427,30 +1439,30 @@ declare namespace ty.ai {
|
|
|
1427
1439
|
/**
|
|
1428
1440
|
* 预测灯光场景
|
|
1429
1441
|
* @public
|
|
1430
|
-
* @since AIKit
|
|
1442
|
+
* @since AIKit 1.9.0
|
|
1431
1443
|
* @platform iOS Android
|
|
1432
1444
|
*/
|
|
1433
1445
|
export function predictLightScenes(params: {
|
|
1434
1446
|
/**
|
|
1435
1447
|
* 房间id
|
|
1436
|
-
* @since AIKit
|
|
1448
|
+
* @since AIKit 1.9.0
|
|
1437
1449
|
*/
|
|
1438
1450
|
roomId: number
|
|
1439
1451
|
/**
|
|
1440
1452
|
* 场景风格列表,开灯比例百分比
|
|
1441
|
-
* @since AIKit
|
|
1453
|
+
* @since AIKit 1.9.0
|
|
1442
1454
|
*/
|
|
1443
|
-
generateSceneStyles:
|
|
1455
|
+
generateSceneStyles: SceneStyleInfo_JuS8PR[]
|
|
1444
1456
|
/**
|
|
1445
1457
|
* 场景类型
|
|
1446
|
-
* @since AIKit
|
|
1458
|
+
* @since AIKit 1.9.0
|
|
1447
1459
|
*/
|
|
1448
1460
|
sceneType: number
|
|
1449
|
-
/**
|
|
1461
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
1450
1462
|
complete?: () => void
|
|
1451
|
-
/**
|
|
1452
|
-
success?: (params:
|
|
1453
|
-
/**
|
|
1463
|
+
/** success 成功回调 */
|
|
1464
|
+
success?: (params: LightSceneInfo_lZtQ5x[]) => void
|
|
1465
|
+
/** fail 失败回调 */
|
|
1454
1466
|
fail?: (params: {
|
|
1455
1467
|
/** 错误信息 */
|
|
1456
1468
|
errorMsg: string
|
|
@@ -1467,23 +1479,23 @@ declare namespace ty.ai {
|
|
|
1467
1479
|
}): void
|
|
1468
1480
|
|
|
1469
1481
|
/**
|
|
1470
|
-
*
|
|
1482
|
+
* 背景音乐列表查询
|
|
1471
1483
|
* @public
|
|
1472
1484
|
* @since AIKit 1.1.0
|
|
1473
1485
|
* @platform iOS Android
|
|
1474
1486
|
*/
|
|
1475
1487
|
export function backgroundMusicList(params?: {
|
|
1476
|
-
/**
|
|
1488
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
1477
1489
|
complete?: () => void
|
|
1478
|
-
/**
|
|
1490
|
+
/** success 成功回调 */
|
|
1479
1491
|
success?: (params: {
|
|
1480
1492
|
/**
|
|
1481
1493
|
* 音乐列表
|
|
1482
1494
|
* @since AIKit 1.1.0
|
|
1483
1495
|
*/
|
|
1484
|
-
musicList?:
|
|
1496
|
+
musicList?: MusicModel_K30D1u[]
|
|
1485
1497
|
}) => void
|
|
1486
|
-
/**
|
|
1498
|
+
/** fail 失败回调 */
|
|
1487
1499
|
fail?: (params: {
|
|
1488
1500
|
/** 错误信息 */
|
|
1489
1501
|
errorMsg: string
|
|
@@ -1500,7 +1512,7 @@ declare namespace ty.ai {
|
|
|
1500
1512
|
}): void
|
|
1501
1513
|
|
|
1502
1514
|
/**
|
|
1503
|
-
*
|
|
1515
|
+
* 背景音乐下载
|
|
1504
1516
|
* @public
|
|
1505
1517
|
* @since AIKit 1.1.0
|
|
1506
1518
|
* @platform iOS Android
|
|
@@ -1516,9 +1528,9 @@ declare namespace ty.ai {
|
|
|
1516
1528
|
* @since AIKit 1.1.0
|
|
1517
1529
|
*/
|
|
1518
1530
|
musicPath: string
|
|
1519
|
-
/**
|
|
1531
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
1520
1532
|
complete?: () => void
|
|
1521
|
-
/**
|
|
1533
|
+
/** success 成功回调 */
|
|
1522
1534
|
success?: (params: {
|
|
1523
1535
|
/**
|
|
1524
1536
|
* 音乐本地地址
|
|
@@ -1526,7 +1538,7 @@ declare namespace ty.ai {
|
|
|
1526
1538
|
*/
|
|
1527
1539
|
musicPath: string
|
|
1528
1540
|
}) => void
|
|
1529
|
-
/**
|
|
1541
|
+
/** fail 失败回调 */
|
|
1530
1542
|
fail?: (params: {
|
|
1531
1543
|
/** 错误信息 */
|
|
1532
1544
|
errorMsg: string
|
|
@@ -1543,17 +1555,17 @@ declare namespace ty.ai {
|
|
|
1543
1555
|
}): void
|
|
1544
1556
|
|
|
1545
1557
|
/**
|
|
1546
|
-
*
|
|
1558
|
+
* 对象识别模型初始化
|
|
1547
1559
|
* @public
|
|
1548
1560
|
* @since AIKit 1.1.0
|
|
1549
1561
|
* @platform iOS Android
|
|
1550
1562
|
*/
|
|
1551
1563
|
export function objectDetectCreate(params?: {
|
|
1552
|
-
/**
|
|
1564
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
1553
1565
|
complete?: () => void
|
|
1554
|
-
/**
|
|
1566
|
+
/** success 成功回调 */
|
|
1555
1567
|
success?: (params: null) => void
|
|
1556
|
-
/**
|
|
1568
|
+
/** fail 失败回调 */
|
|
1557
1569
|
fail?: (params: {
|
|
1558
1570
|
/** 错误信息 */
|
|
1559
1571
|
errorMsg: string
|
|
@@ -1570,17 +1582,17 @@ declare namespace ty.ai {
|
|
|
1570
1582
|
}): void
|
|
1571
1583
|
|
|
1572
1584
|
/**
|
|
1573
|
-
*
|
|
1585
|
+
* 对象识别模型销毁
|
|
1574
1586
|
* @public
|
|
1575
1587
|
* @since AIKit 1.1.0
|
|
1576
1588
|
* @platform iOS Android
|
|
1577
1589
|
*/
|
|
1578
1590
|
export function objectDetectDestroy(params?: {
|
|
1579
|
-
/**
|
|
1591
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
1580
1592
|
complete?: () => void
|
|
1581
|
-
/**
|
|
1593
|
+
/** success 成功回调 */
|
|
1582
1594
|
success?: (params: null) => void
|
|
1583
|
-
/**
|
|
1595
|
+
/** fail 失败回调 */
|
|
1584
1596
|
fail?: (params: {
|
|
1585
1597
|
/** 错误信息 */
|
|
1586
1598
|
errorMsg: string
|
|
@@ -1597,7 +1609,7 @@ declare namespace ty.ai {
|
|
|
1597
1609
|
}): void
|
|
1598
1610
|
|
|
1599
1611
|
/**
|
|
1600
|
-
*
|
|
1612
|
+
* 视频对象识别处理
|
|
1601
1613
|
* @public
|
|
1602
1614
|
* @since AIKit 1.1.0
|
|
1603
1615
|
* @platform iOS Android
|
|
@@ -1606,66 +1618,76 @@ declare namespace ty.ai {
|
|
|
1606
1618
|
/**
|
|
1607
1619
|
* 视频输入路径
|
|
1608
1620
|
* @since AIKit 1.1.0
|
|
1621
|
+
* @since AIKit 1.2.0
|
|
1609
1622
|
*/
|
|
1610
1623
|
inputVideoPath: string
|
|
1611
1624
|
/**
|
|
1612
1625
|
* 视频输出路径
|
|
1613
1626
|
* @since AIKit 1.1.0
|
|
1627
|
+
* @since AIKit 1.2.0
|
|
1614
1628
|
*/
|
|
1615
1629
|
outputVideoPath: string
|
|
1616
1630
|
/**
|
|
1617
1631
|
* 视频配置信息
|
|
1618
1632
|
* -- 默认1080
|
|
1619
1633
|
* @since AIKit 1.1.0
|
|
1634
|
+
* @since AIKit 1.2.0
|
|
1620
1635
|
* @defaultValue VideoConfig.Level_1080
|
|
1621
1636
|
*/
|
|
1622
|
-
videoConfig?:
|
|
1637
|
+
videoConfig?: VideoConfig_rKanwz
|
|
1623
1638
|
/**
|
|
1624
1639
|
* 识别类型
|
|
1625
1640
|
* @since AIKit 1.1.0
|
|
1641
|
+
* @since AIKit 1.2.0
|
|
1626
1642
|
* @defaultValue DetectType.VideoDetectMainBodyTypePet
|
|
1627
1643
|
*/
|
|
1628
|
-
detectType?:
|
|
1644
|
+
detectType?: DetectType_82p4U1
|
|
1629
1645
|
/**
|
|
1630
1646
|
* 图像处理类型
|
|
1631
1647
|
* @since AIKit 1.1.0
|
|
1648
|
+
* @since AIKit 1.2.0
|
|
1632
1649
|
* @defaultValue ImageEditType.ImageEditTypeNoEffect
|
|
1633
1650
|
*/
|
|
1634
|
-
imageEditType?:
|
|
1651
|
+
imageEditType?: ImageEditType_nocoE4
|
|
1635
1652
|
/**
|
|
1636
1653
|
* 配乐本地地址
|
|
1637
1654
|
* @since AIKit 1.1.0
|
|
1655
|
+
* @since AIKit 1.2.0
|
|
1638
1656
|
*/
|
|
1639
1657
|
musicPath: string
|
|
1640
1658
|
/**
|
|
1641
1659
|
* 音频处理类型
|
|
1642
1660
|
* @since AIKit 1.1.0
|
|
1661
|
+
* @since AIKit 1.2.0
|
|
1643
1662
|
* @defaultValue AudioEditType.audioEditTypeNULL
|
|
1644
1663
|
*/
|
|
1645
|
-
audioEditType?:
|
|
1664
|
+
audioEditType?: AudioEditType_XwIdMW
|
|
1646
1665
|
/**
|
|
1647
1666
|
* 原始音频音量
|
|
1648
1667
|
* @since AIKit 1.1.0
|
|
1668
|
+
* @since AIKit 1.2.0
|
|
1649
1669
|
* @defaultValue 0.5
|
|
1650
1670
|
*/
|
|
1651
1671
|
originAudioVolume?: number
|
|
1652
1672
|
/**
|
|
1653
1673
|
* 覆盖音频音量
|
|
1654
1674
|
* @since AIKit 1.1.0
|
|
1675
|
+
* @since AIKit 1.2.0
|
|
1655
1676
|
* @defaultValue 0.5
|
|
1656
1677
|
*/
|
|
1657
1678
|
overlayAudioVolume?: number
|
|
1658
|
-
/**
|
|
1679
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
1659
1680
|
complete?: () => void
|
|
1660
|
-
/**
|
|
1681
|
+
/** success 成功回调 */
|
|
1661
1682
|
success?: (params: {
|
|
1662
1683
|
/**
|
|
1663
1684
|
* 输出路径
|
|
1664
1685
|
* @since AIKit 1.1.0
|
|
1686
|
+
* @since AIKit 1.2.0
|
|
1665
1687
|
*/
|
|
1666
1688
|
path: string
|
|
1667
1689
|
}) => void
|
|
1668
|
-
/**
|
|
1690
|
+
/** fail 失败回调 */
|
|
1669
1691
|
fail?: (params: {
|
|
1670
1692
|
/** 错误信息 */
|
|
1671
1693
|
errorMsg: string
|
|
@@ -1682,17 +1704,17 @@ declare namespace ty.ai {
|
|
|
1682
1704
|
}): void
|
|
1683
1705
|
|
|
1684
1706
|
/**
|
|
1685
|
-
*
|
|
1707
|
+
* 取消视频对象识别处理
|
|
1686
1708
|
* @public
|
|
1687
1709
|
* @since AIKit 1.1.0
|
|
1688
1710
|
* @platform iOS Android
|
|
1689
1711
|
*/
|
|
1690
1712
|
export function objectDetectForVideoCancel(params?: {
|
|
1691
|
-
/**
|
|
1713
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
1692
1714
|
complete?: () => void
|
|
1693
|
-
/**
|
|
1715
|
+
/** success 成功回调 */
|
|
1694
1716
|
success?: (params: null) => void
|
|
1695
|
-
/**
|
|
1717
|
+
/** fail 失败回调 */
|
|
1696
1718
|
fail?: (params: {
|
|
1697
1719
|
/** 错误信息 */
|
|
1698
1720
|
errorMsg: string
|
|
@@ -1709,7 +1731,7 @@ declare namespace ty.ai {
|
|
|
1709
1731
|
}): void
|
|
1710
1732
|
|
|
1711
1733
|
/**
|
|
1712
|
-
*
|
|
1734
|
+
* 图片对象识别处理
|
|
1713
1735
|
* @public
|
|
1714
1736
|
* @since AIKit 1.1.0
|
|
1715
1737
|
* @platform iOS Android
|
|
@@ -1718,36 +1740,41 @@ declare namespace ty.ai {
|
|
|
1718
1740
|
/**
|
|
1719
1741
|
* 图片输入路径
|
|
1720
1742
|
* @since AIKit 1.1.0
|
|
1743
|
+
* @since AIKit 1.2.0
|
|
1721
1744
|
*/
|
|
1722
1745
|
inputPath: string
|
|
1723
1746
|
/**
|
|
1724
1747
|
* 图片输出路径
|
|
1725
1748
|
* @since AIKit 1.1.0
|
|
1749
|
+
* @since AIKit 1.2.0
|
|
1726
1750
|
*/
|
|
1727
1751
|
outputPath: string
|
|
1728
1752
|
/**
|
|
1729
1753
|
* 识别类型
|
|
1730
1754
|
* @since AIKit 1.1.0
|
|
1755
|
+
* @since AIKit 1.2.0
|
|
1731
1756
|
* @defaultValue DetectType.VideoDetectMainBodyTypePet
|
|
1732
1757
|
*/
|
|
1733
|
-
detectType?:
|
|
1758
|
+
detectType?: DetectType_82p4U1
|
|
1734
1759
|
/**
|
|
1735
1760
|
* 图像处理类型
|
|
1736
1761
|
* @since AIKit 1.1.0
|
|
1762
|
+
* @since AIKit 1.2.0
|
|
1737
1763
|
* @defaultValue ImageEditType.ImageEditTypeNoEffect
|
|
1738
1764
|
*/
|
|
1739
|
-
imageEditType?:
|
|
1740
|
-
/**
|
|
1765
|
+
imageEditType?: ImageEditType_nocoE4
|
|
1766
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
1741
1767
|
complete?: () => void
|
|
1742
|
-
/**
|
|
1768
|
+
/** success 成功回调 */
|
|
1743
1769
|
success?: (params: {
|
|
1744
1770
|
/**
|
|
1745
1771
|
* 输出路径
|
|
1746
1772
|
* @since AIKit 1.1.0
|
|
1773
|
+
* @since AIKit 1.2.0
|
|
1747
1774
|
*/
|
|
1748
1775
|
path: string
|
|
1749
1776
|
}) => void
|
|
1750
|
-
/**
|
|
1777
|
+
/** fail 失败回调 */
|
|
1751
1778
|
fail?: (params: {
|
|
1752
1779
|
/** 错误信息 */
|
|
1753
1780
|
errorMsg: string
|
|
@@ -1764,7 +1791,7 @@ declare namespace ty.ai {
|
|
|
1764
1791
|
}): void
|
|
1765
1792
|
|
|
1766
1793
|
/**
|
|
1767
|
-
*
|
|
1794
|
+
* 视频隐私保护识别处理
|
|
1768
1795
|
* @public
|
|
1769
1796
|
* @since AIKit 1.2.0
|
|
1770
1797
|
* @platform iOS Android
|
|
@@ -1772,67 +1799,77 @@ declare namespace ty.ai {
|
|
|
1772
1799
|
export function privacyProtectDetectForVideo(params: {
|
|
1773
1800
|
/**
|
|
1774
1801
|
* 视频输入路径
|
|
1802
|
+
* @since AIKit 1.1.0
|
|
1775
1803
|
* @since AIKit 1.2.0
|
|
1776
1804
|
*/
|
|
1777
1805
|
inputVideoPath: string
|
|
1778
1806
|
/**
|
|
1779
1807
|
* 视频输出路径
|
|
1808
|
+
* @since AIKit 1.1.0
|
|
1780
1809
|
* @since AIKit 1.2.0
|
|
1781
1810
|
*/
|
|
1782
1811
|
outputVideoPath: string
|
|
1783
1812
|
/**
|
|
1784
1813
|
* 视频配置信息
|
|
1785
1814
|
* -- 默认1080
|
|
1815
|
+
* @since AIKit 1.1.0
|
|
1786
1816
|
* @since AIKit 1.2.0
|
|
1787
1817
|
* @defaultValue VideoConfig.Level_1080
|
|
1788
1818
|
*/
|
|
1789
|
-
videoConfig?:
|
|
1819
|
+
videoConfig?: VideoConfig_rKanwz
|
|
1790
1820
|
/**
|
|
1791
1821
|
* 识别类型
|
|
1822
|
+
* @since AIKit 1.1.0
|
|
1792
1823
|
* @since AIKit 1.2.0
|
|
1793
1824
|
* @defaultValue DetectType.VideoDetectMainBodyTypePet
|
|
1794
1825
|
*/
|
|
1795
|
-
detectType?:
|
|
1826
|
+
detectType?: DetectType_82p4U1
|
|
1796
1827
|
/**
|
|
1797
1828
|
* 图像处理类型
|
|
1829
|
+
* @since AIKit 1.1.0
|
|
1798
1830
|
* @since AIKit 1.2.0
|
|
1799
1831
|
* @defaultValue ImageEditType.ImageEditTypeNoEffect
|
|
1800
1832
|
*/
|
|
1801
|
-
imageEditType?:
|
|
1833
|
+
imageEditType?: ImageEditType_nocoE4
|
|
1802
1834
|
/**
|
|
1803
1835
|
* 配乐本地地址
|
|
1836
|
+
* @since AIKit 1.1.0
|
|
1804
1837
|
* @since AIKit 1.2.0
|
|
1805
1838
|
*/
|
|
1806
1839
|
musicPath: string
|
|
1807
1840
|
/**
|
|
1808
1841
|
* 音频处理类型
|
|
1842
|
+
* @since AIKit 1.1.0
|
|
1809
1843
|
* @since AIKit 1.2.0
|
|
1810
1844
|
* @defaultValue AudioEditType.audioEditTypeNULL
|
|
1811
1845
|
*/
|
|
1812
|
-
audioEditType?:
|
|
1846
|
+
audioEditType?: AudioEditType_XwIdMW
|
|
1813
1847
|
/**
|
|
1814
1848
|
* 原始音频音量
|
|
1849
|
+
* @since AIKit 1.1.0
|
|
1815
1850
|
* @since AIKit 1.2.0
|
|
1816
1851
|
* @defaultValue 0.5
|
|
1817
1852
|
*/
|
|
1818
1853
|
originAudioVolume?: number
|
|
1819
1854
|
/**
|
|
1820
1855
|
* 覆盖音频音量
|
|
1856
|
+
* @since AIKit 1.1.0
|
|
1821
1857
|
* @since AIKit 1.2.0
|
|
1822
1858
|
* @defaultValue 0.5
|
|
1823
1859
|
*/
|
|
1824
1860
|
overlayAudioVolume?: number
|
|
1825
|
-
/**
|
|
1861
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
1826
1862
|
complete?: () => void
|
|
1827
|
-
/**
|
|
1863
|
+
/** success 成功回调 */
|
|
1828
1864
|
success?: (params: {
|
|
1829
1865
|
/**
|
|
1830
1866
|
* 输出路径
|
|
1867
|
+
* @since AIKit 1.1.0
|
|
1831
1868
|
* @since AIKit 1.2.0
|
|
1832
1869
|
*/
|
|
1833
1870
|
path: string
|
|
1834
1871
|
}) => void
|
|
1835
|
-
/**
|
|
1872
|
+
/** fail 失败回调 */
|
|
1836
1873
|
fail?: (params: {
|
|
1837
1874
|
/** 错误信息 */
|
|
1838
1875
|
errorMsg: string
|
|
@@ -1849,7 +1886,7 @@ declare namespace ty.ai {
|
|
|
1849
1886
|
}): void
|
|
1850
1887
|
|
|
1851
1888
|
/**
|
|
1852
|
-
*
|
|
1889
|
+
* 图片隐私保护识别处理
|
|
1853
1890
|
* @public
|
|
1854
1891
|
* @since AIKit 1.2.0
|
|
1855
1892
|
* @platform iOS Android
|
|
@@ -1857,37 +1894,42 @@ declare namespace ty.ai {
|
|
|
1857
1894
|
export function privacyProtectDetectForImage(params: {
|
|
1858
1895
|
/**
|
|
1859
1896
|
* 图片输入路径
|
|
1897
|
+
* @since AIKit 1.1.0
|
|
1860
1898
|
* @since AIKit 1.2.0
|
|
1861
1899
|
*/
|
|
1862
1900
|
inputPath: string
|
|
1863
1901
|
/**
|
|
1864
1902
|
* 图片输出路径
|
|
1903
|
+
* @since AIKit 1.1.0
|
|
1865
1904
|
* @since AIKit 1.2.0
|
|
1866
1905
|
*/
|
|
1867
1906
|
outputPath: string
|
|
1868
1907
|
/**
|
|
1869
1908
|
* 识别类型
|
|
1909
|
+
* @since AIKit 1.1.0
|
|
1870
1910
|
* @since AIKit 1.2.0
|
|
1871
1911
|
* @defaultValue DetectType.VideoDetectMainBodyTypePet
|
|
1872
1912
|
*/
|
|
1873
|
-
detectType?:
|
|
1913
|
+
detectType?: DetectType_82p4U1
|
|
1874
1914
|
/**
|
|
1875
1915
|
* 图像处理类型
|
|
1916
|
+
* @since AIKit 1.1.0
|
|
1876
1917
|
* @since AIKit 1.2.0
|
|
1877
1918
|
* @defaultValue ImageEditType.ImageEditTypeNoEffect
|
|
1878
1919
|
*/
|
|
1879
|
-
imageEditType?:
|
|
1880
|
-
/**
|
|
1920
|
+
imageEditType?: ImageEditType_nocoE4
|
|
1921
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
1881
1922
|
complete?: () => void
|
|
1882
|
-
/**
|
|
1923
|
+
/** success 成功回调 */
|
|
1883
1924
|
success?: (params: {
|
|
1884
1925
|
/**
|
|
1885
1926
|
* 输出路径
|
|
1927
|
+
* @since AIKit 1.1.0
|
|
1886
1928
|
* @since AIKit 1.2.0
|
|
1887
1929
|
*/
|
|
1888
1930
|
path: string
|
|
1889
1931
|
}) => void
|
|
1890
|
-
/**
|
|
1932
|
+
/** fail 失败回调 */
|
|
1891
1933
|
fail?: (params: {
|
|
1892
1934
|
/** 错误信息 */
|
|
1893
1935
|
errorMsg: string
|
|
@@ -1904,17 +1946,17 @@ declare namespace ty.ai {
|
|
|
1904
1946
|
}): void
|
|
1905
1947
|
|
|
1906
1948
|
/**
|
|
1907
|
-
*
|
|
1949
|
+
* 取消图片对象识别处理
|
|
1908
1950
|
* @public
|
|
1909
1951
|
* @since AIKit 1.1.0
|
|
1910
1952
|
* @platform iOS Android
|
|
1911
1953
|
*/
|
|
1912
1954
|
export function objectDetectForImageCancel(params?: {
|
|
1913
|
-
/**
|
|
1955
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
1914
1956
|
complete?: () => void
|
|
1915
|
-
/**
|
|
1957
|
+
/** success 成功回调 */
|
|
1916
1958
|
success?: (params: null) => void
|
|
1917
|
-
/**
|
|
1959
|
+
/** fail 失败回调 */
|
|
1918
1960
|
fail?: (params: {
|
|
1919
1961
|
/** 错误信息 */
|
|
1920
1962
|
errorMsg: string
|
|
@@ -1931,7 +1973,7 @@ declare namespace ty.ai {
|
|
|
1931
1973
|
}): void
|
|
1932
1974
|
|
|
1933
1975
|
/**
|
|
1934
|
-
*
|
|
1976
|
+
* 获取清晰度和主体信息
|
|
1935
1977
|
* @public
|
|
1936
1978
|
* @since AIKit 1.6.0
|
|
1937
1979
|
* @platform iOS Android
|
|
@@ -1942,9 +1984,9 @@ declare namespace ty.ai {
|
|
|
1942
1984
|
* @since AIKit 1.6.0
|
|
1943
1985
|
*/
|
|
1944
1986
|
inputImagePath: string
|
|
1945
|
-
/**
|
|
1987
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
1946
1988
|
complete?: () => void
|
|
1947
|
-
/**
|
|
1989
|
+
/** success 成功回调 */
|
|
1948
1990
|
success?: (params: {
|
|
1949
1991
|
/**
|
|
1950
1992
|
* 清晰置信度 0-1
|
|
@@ -1962,7 +2004,7 @@ declare namespace ty.ai {
|
|
|
1962
2004
|
*/
|
|
1963
2005
|
hasObject: boolean
|
|
1964
2006
|
}) => void
|
|
1965
|
-
/**
|
|
2007
|
+
/** fail 失败回调 */
|
|
1966
2008
|
fail?: (params: {
|
|
1967
2009
|
/** 错误信息 */
|
|
1968
2010
|
errorMsg: string
|
|
@@ -1979,15 +2021,15 @@ declare namespace ty.ai {
|
|
|
1979
2021
|
}): void
|
|
1980
2022
|
|
|
1981
2023
|
/**
|
|
1982
|
-
*
|
|
2024
|
+
* 瞬时值:当前FPS查询
|
|
1983
2025
|
* @public
|
|
1984
2026
|
* @since AIKit 1.8.0
|
|
1985
2027
|
* @platform iOS Android
|
|
1986
2028
|
*/
|
|
1987
2029
|
export function OnAppAISnapshotWithFPS(params?: {
|
|
1988
|
-
/**
|
|
2030
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
1989
2031
|
complete?: () => void
|
|
1990
|
-
/**
|
|
2032
|
+
/** success 成功回调 */
|
|
1991
2033
|
success?: (params: {
|
|
1992
2034
|
/**
|
|
1993
2035
|
* 时间戳(13位)
|
|
@@ -2000,7 +2042,7 @@ declare namespace ty.ai {
|
|
|
2000
2042
|
*/
|
|
2001
2043
|
fps: number
|
|
2002
2044
|
}) => void
|
|
2003
|
-
/**
|
|
2045
|
+
/** fail 失败回调 */
|
|
2004
2046
|
fail?: (params: {
|
|
2005
2047
|
/** 错误信息 */
|
|
2006
2048
|
errorMsg: string
|
|
@@ -2017,7 +2059,7 @@ declare namespace ty.ai {
|
|
|
2017
2059
|
}): void
|
|
2018
2060
|
|
|
2019
2061
|
/**
|
|
2020
|
-
*
|
|
2062
|
+
* 监控连续时间:FPS监控会话开始
|
|
2021
2063
|
* @public
|
|
2022
2064
|
* @since AIKit 1.8.0
|
|
2023
2065
|
* @platform iOS Android
|
|
@@ -2029,11 +2071,11 @@ declare namespace ty.ai {
|
|
|
2029
2071
|
* @defaultValue 200
|
|
2030
2072
|
*/
|
|
2031
2073
|
frequency?: number
|
|
2032
|
-
/**
|
|
2074
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
2033
2075
|
complete?: () => void
|
|
2034
|
-
/**
|
|
2076
|
+
/** success 成功回调 */
|
|
2035
2077
|
success?: (params: null) => void
|
|
2036
|
-
/**
|
|
2078
|
+
/** fail 失败回调 */
|
|
2037
2079
|
fail?: (params: {
|
|
2038
2080
|
/** 错误信息 */
|
|
2039
2081
|
errorMsg: string
|
|
@@ -2050,28 +2092,28 @@ declare namespace ty.ai {
|
|
|
2050
2092
|
}): void
|
|
2051
2093
|
|
|
2052
2094
|
/**
|
|
2053
|
-
*
|
|
2095
|
+
* 监控连续时间:FPS监控会话结束
|
|
2054
2096
|
* @public
|
|
2055
2097
|
* @since AIKit 1.8.0
|
|
2056
2098
|
* @platform iOS Android
|
|
2057
2099
|
*/
|
|
2058
2100
|
export function OnAppAISessionWithFPSEnd(params?: {
|
|
2059
|
-
/**
|
|
2101
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
2060
2102
|
complete?: () => void
|
|
2061
|
-
/**
|
|
2103
|
+
/** success 成功回调 */
|
|
2062
2104
|
success?: (params: {
|
|
2063
2105
|
/**
|
|
2064
2106
|
* FPS时间变化列表
|
|
2065
2107
|
* @since AIKit 1.8.0
|
|
2066
2108
|
*/
|
|
2067
|
-
fpsList?:
|
|
2109
|
+
fpsList?: FPSModel_4gI3N5[]
|
|
2068
2110
|
/**
|
|
2069
2111
|
* 最低fps值
|
|
2070
2112
|
* @since AIKit 1.8.0
|
|
2071
2113
|
*/
|
|
2072
2114
|
lowestFps: number
|
|
2073
2115
|
/**
|
|
2074
|
-
* 最高
|
|
2116
|
+
* 最高ps值
|
|
2075
2117
|
* @since AIKit 1.8.0
|
|
2076
2118
|
*/
|
|
2077
2119
|
topFps: number
|
|
@@ -2081,7 +2123,7 @@ declare namespace ty.ai {
|
|
|
2081
2123
|
*/
|
|
2082
2124
|
averageFps: number
|
|
2083
2125
|
}) => void
|
|
2084
|
-
/**
|
|
2126
|
+
/** fail 失败回调 */
|
|
2085
2127
|
fail?: (params: {
|
|
2086
2128
|
/** 错误信息 */
|
|
2087
2129
|
errorMsg: string
|
|
@@ -2098,15 +2140,15 @@ declare namespace ty.ai {
|
|
|
2098
2140
|
}): void
|
|
2099
2141
|
|
|
2100
2142
|
/**
|
|
2101
|
-
*
|
|
2143
|
+
* 瞬时值:当前CPU查询
|
|
2102
2144
|
* @public
|
|
2103
2145
|
* @since AIKit 1.8.0
|
|
2104
2146
|
* @platform iOS Android
|
|
2105
2147
|
*/
|
|
2106
2148
|
export function OnAppAISnapshotWithCPU(params?: {
|
|
2107
|
-
/**
|
|
2149
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
2108
2150
|
complete?: () => void
|
|
2109
|
-
/**
|
|
2151
|
+
/** success 成功回调 */
|
|
2110
2152
|
success?: (params: {
|
|
2111
2153
|
/**
|
|
2112
2154
|
* 时间戳(13位)
|
|
@@ -2119,7 +2161,7 @@ declare namespace ty.ai {
|
|
|
2119
2161
|
*/
|
|
2120
2162
|
cpu: number
|
|
2121
2163
|
}) => void
|
|
2122
|
-
/**
|
|
2164
|
+
/** fail 失败回调 */
|
|
2123
2165
|
fail?: (params: {
|
|
2124
2166
|
/** 错误信息 */
|
|
2125
2167
|
errorMsg: string
|
|
@@ -2136,7 +2178,7 @@ declare namespace ty.ai {
|
|
|
2136
2178
|
}): void
|
|
2137
2179
|
|
|
2138
2180
|
/**
|
|
2139
|
-
*
|
|
2181
|
+
* 监控连续时间:CPU监控会话开始
|
|
2140
2182
|
* @public
|
|
2141
2183
|
* @since AIKit 1.8.0
|
|
2142
2184
|
* @platform iOS Android
|
|
@@ -2148,11 +2190,11 @@ declare namespace ty.ai {
|
|
|
2148
2190
|
* @defaultValue 200
|
|
2149
2191
|
*/
|
|
2150
2192
|
frequency?: number
|
|
2151
|
-
/**
|
|
2193
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
2152
2194
|
complete?: () => void
|
|
2153
|
-
/**
|
|
2195
|
+
/** success 成功回调 */
|
|
2154
2196
|
success?: (params: null) => void
|
|
2155
|
-
/**
|
|
2197
|
+
/** fail 失败回调 */
|
|
2156
2198
|
fail?: (params: {
|
|
2157
2199
|
/** 错误信息 */
|
|
2158
2200
|
errorMsg: string
|
|
@@ -2169,21 +2211,21 @@ declare namespace ty.ai {
|
|
|
2169
2211
|
}): void
|
|
2170
2212
|
|
|
2171
2213
|
/**
|
|
2172
|
-
*
|
|
2214
|
+
* 监控连续时间:CPU监控会话结束
|
|
2173
2215
|
* @public
|
|
2174
2216
|
* @since AIKit 1.8.0
|
|
2175
2217
|
* @platform iOS Android
|
|
2176
2218
|
*/
|
|
2177
2219
|
export function OnAppAISessionWithCPUEnd(params?: {
|
|
2178
|
-
/**
|
|
2220
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
2179
2221
|
complete?: () => void
|
|
2180
|
-
/**
|
|
2222
|
+
/** success 成功回调 */
|
|
2181
2223
|
success?: (params: {
|
|
2182
2224
|
/**
|
|
2183
2225
|
* CPU时间变化列表
|
|
2184
2226
|
* @since AIKit 1.8.0
|
|
2185
2227
|
*/
|
|
2186
|
-
cpuList?:
|
|
2228
|
+
cpuList?: CPUModel_pXDLoE[]
|
|
2187
2229
|
/**
|
|
2188
2230
|
* 最低cpu值
|
|
2189
2231
|
* @since AIKit 1.8.0
|
|
@@ -2200,7 +2242,7 @@ declare namespace ty.ai {
|
|
|
2200
2242
|
*/
|
|
2201
2243
|
incrementCPUUsage: number
|
|
2202
2244
|
}) => void
|
|
2203
|
-
/**
|
|
2245
|
+
/** fail 失败回调 */
|
|
2204
2246
|
fail?: (params: {
|
|
2205
2247
|
/** 错误信息 */
|
|
2206
2248
|
errorMsg: string
|
|
@@ -2217,15 +2259,15 @@ declare namespace ty.ai {
|
|
|
2217
2259
|
}): void
|
|
2218
2260
|
|
|
2219
2261
|
/**
|
|
2220
|
-
*
|
|
2262
|
+
* 瞬时值:当前内存查询
|
|
2221
2263
|
* @public
|
|
2222
2264
|
* @since AIKit 1.8.0
|
|
2223
2265
|
* @platform iOS Android
|
|
2224
2266
|
*/
|
|
2225
2267
|
export function OnAppAISnapshotWithMemory(params?: {
|
|
2226
|
-
/**
|
|
2268
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
2227
2269
|
complete?: () => void
|
|
2228
|
-
/**
|
|
2270
|
+
/** success 成功回调 */
|
|
2229
2271
|
success?: (params: {
|
|
2230
2272
|
/**
|
|
2231
2273
|
* 时间戳(13位)
|
|
@@ -2243,7 +2285,7 @@ declare namespace ty.ai {
|
|
|
2243
2285
|
*/
|
|
2244
2286
|
deviceMemoryMB: number
|
|
2245
2287
|
}) => void
|
|
2246
|
-
/**
|
|
2288
|
+
/** fail 失败回调 */
|
|
2247
2289
|
fail?: (params: {
|
|
2248
2290
|
/** 错误信息 */
|
|
2249
2291
|
errorMsg: string
|
|
@@ -2260,7 +2302,7 @@ declare namespace ty.ai {
|
|
|
2260
2302
|
}): void
|
|
2261
2303
|
|
|
2262
2304
|
/**
|
|
2263
|
-
*
|
|
2305
|
+
* 监控连续时间:内存监控会话开始
|
|
2264
2306
|
* @public
|
|
2265
2307
|
* @since AIKit 1.8.0
|
|
2266
2308
|
* @platform iOS Android
|
|
@@ -2272,11 +2314,11 @@ declare namespace ty.ai {
|
|
|
2272
2314
|
* @defaultValue 200
|
|
2273
2315
|
*/
|
|
2274
2316
|
frequency?: number
|
|
2275
|
-
/**
|
|
2317
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
2276
2318
|
complete?: () => void
|
|
2277
|
-
/**
|
|
2319
|
+
/** success 成功回调 */
|
|
2278
2320
|
success?: (params: null) => void
|
|
2279
|
-
/**
|
|
2321
|
+
/** fail 失败回调 */
|
|
2280
2322
|
fail?: (params: {
|
|
2281
2323
|
/** 错误信息 */
|
|
2282
2324
|
errorMsg: string
|
|
@@ -2293,21 +2335,21 @@ declare namespace ty.ai {
|
|
|
2293
2335
|
}): void
|
|
2294
2336
|
|
|
2295
2337
|
/**
|
|
2296
|
-
*
|
|
2338
|
+
* 监控连续时间:内存监控会话结束
|
|
2297
2339
|
* @public
|
|
2298
2340
|
* @since AIKit 1.8.0
|
|
2299
2341
|
* @platform iOS Android
|
|
2300
2342
|
*/
|
|
2301
2343
|
export function OnAppAISessionWithMemoryEnd(params?: {
|
|
2302
|
-
/**
|
|
2344
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
2303
2345
|
complete?: () => void
|
|
2304
|
-
/**
|
|
2346
|
+
/** success 成功回调 */
|
|
2305
2347
|
success?: (params: {
|
|
2306
2348
|
/**
|
|
2307
2349
|
* 内存时间变化列表
|
|
2308
2350
|
* @since AIKit 1.8.0
|
|
2309
2351
|
*/
|
|
2310
|
-
memoryList?:
|
|
2352
|
+
memoryList?: MemoryModel_TLE4WR[]
|
|
2311
2353
|
/**
|
|
2312
2354
|
* 内存最低值
|
|
2313
2355
|
* @since AIKit 1.8.0
|
|
@@ -2329,7 +2371,7 @@ declare namespace ty.ai {
|
|
|
2329
2371
|
*/
|
|
2330
2372
|
deviceMemoryMB: number
|
|
2331
2373
|
}) => void
|
|
2332
|
-
/**
|
|
2374
|
+
/** fail 失败回调 */
|
|
2333
2375
|
fail?: (params: {
|
|
2334
2376
|
/** 错误信息 */
|
|
2335
2377
|
errorMsg: string
|
|
@@ -2346,15 +2388,15 @@ declare namespace ty.ai {
|
|
|
2346
2388
|
}): void
|
|
2347
2389
|
|
|
2348
2390
|
/**
|
|
2349
|
-
*
|
|
2391
|
+
* 瞬时值:当前GPU查询
|
|
2350
2392
|
* @public
|
|
2351
2393
|
* @since AIKit 1.8.0
|
|
2352
2394
|
* @platform iOS Android
|
|
2353
2395
|
*/
|
|
2354
2396
|
export function OnAppAISnapshotWithGPU(params?: {
|
|
2355
|
-
/**
|
|
2397
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
2356
2398
|
complete?: () => void
|
|
2357
|
-
/**
|
|
2399
|
+
/** success 成功回调 */
|
|
2358
2400
|
success?: (params: {
|
|
2359
2401
|
/**
|
|
2360
2402
|
* 时间戳(13位)
|
|
@@ -2367,7 +2409,7 @@ declare namespace ty.ai {
|
|
|
2367
2409
|
*/
|
|
2368
2410
|
gpuUsage: number
|
|
2369
2411
|
}) => void
|
|
2370
|
-
/**
|
|
2412
|
+
/** fail 失败回调 */
|
|
2371
2413
|
fail?: (params: {
|
|
2372
2414
|
/** 错误信息 */
|
|
2373
2415
|
errorMsg: string
|
|
@@ -2384,7 +2426,7 @@ declare namespace ty.ai {
|
|
|
2384
2426
|
}): void
|
|
2385
2427
|
|
|
2386
2428
|
/**
|
|
2387
|
-
*
|
|
2429
|
+
* 监控连续时间:GPU监控会话开始
|
|
2388
2430
|
* @public
|
|
2389
2431
|
* @since AIKit 1.8.0
|
|
2390
2432
|
* @platform iOS Android
|
|
@@ -2396,11 +2438,11 @@ declare namespace ty.ai {
|
|
|
2396
2438
|
* @defaultValue 200
|
|
2397
2439
|
*/
|
|
2398
2440
|
frequency?: number
|
|
2399
|
-
/**
|
|
2441
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
2400
2442
|
complete?: () => void
|
|
2401
|
-
/**
|
|
2443
|
+
/** success 成功回调 */
|
|
2402
2444
|
success?: (params: null) => void
|
|
2403
|
-
/**
|
|
2445
|
+
/** fail 失败回调 */
|
|
2404
2446
|
fail?: (params: {
|
|
2405
2447
|
/** 错误信息 */
|
|
2406
2448
|
errorMsg: string
|
|
@@ -2417,21 +2459,21 @@ declare namespace ty.ai {
|
|
|
2417
2459
|
}): void
|
|
2418
2460
|
|
|
2419
2461
|
/**
|
|
2420
|
-
*
|
|
2462
|
+
* 监控连续时间:GPU监控会话结束
|
|
2421
2463
|
* @public
|
|
2422
2464
|
* @since AIKit 1.8.0
|
|
2423
2465
|
* @platform iOS Android
|
|
2424
2466
|
*/
|
|
2425
2467
|
export function OnAppAISessionWithGPUEnd(params?: {
|
|
2426
|
-
/**
|
|
2468
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
2427
2469
|
complete?: () => void
|
|
2428
|
-
/**
|
|
2470
|
+
/** success 成功回调 */
|
|
2429
2471
|
success?: (params: {
|
|
2430
2472
|
/**
|
|
2431
|
-
*
|
|
2473
|
+
* 内存时间变化列表
|
|
2432
2474
|
* @since AIKit 1.8.0
|
|
2433
2475
|
*/
|
|
2434
|
-
gpuList?:
|
|
2476
|
+
gpuList?: GPUModel_3BJU8C[]
|
|
2435
2477
|
/**
|
|
2436
2478
|
* GPU最低值
|
|
2437
2479
|
* @since AIKit 1.8.0
|
|
@@ -2448,7 +2490,7 @@ declare namespace ty.ai {
|
|
|
2448
2490
|
*/
|
|
2449
2491
|
incrementGPU: number
|
|
2450
2492
|
}) => void
|
|
2451
|
-
/**
|
|
2493
|
+
/** fail 失败回调 */
|
|
2452
2494
|
fail?: (params: {
|
|
2453
2495
|
/** 错误信息 */
|
|
2454
2496
|
errorMsg: string
|
|
@@ -2471,11 +2513,11 @@ declare namespace ty.ai {
|
|
|
2471
2513
|
* @platform iOS Android
|
|
2472
2514
|
*/
|
|
2473
2515
|
export function petsDetectCreate(params?: {
|
|
2474
|
-
/**
|
|
2516
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
2475
2517
|
complete?: () => void
|
|
2476
|
-
/**
|
|
2518
|
+
/** success 成功回调 */
|
|
2477
2519
|
success?: (params: null) => void
|
|
2478
|
-
/**
|
|
2520
|
+
/** fail 失败回调 */
|
|
2479
2521
|
fail?: (params: {
|
|
2480
2522
|
/** 错误信息 */
|
|
2481
2523
|
errorMsg: string
|
|
@@ -2498,11 +2540,11 @@ declare namespace ty.ai {
|
|
|
2498
2540
|
* @platform iOS Android
|
|
2499
2541
|
*/
|
|
2500
2542
|
export function petsDetectDestory(params?: {
|
|
2501
|
-
/**
|
|
2543
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
2502
2544
|
complete?: () => void
|
|
2503
|
-
/**
|
|
2545
|
+
/** success 成功回调 */
|
|
2504
2546
|
success?: (params: null) => void
|
|
2505
|
-
/**
|
|
2547
|
+
/** fail 失败回调 */
|
|
2506
2548
|
fail?: (params: {
|
|
2507
2549
|
/** 错误信息 */
|
|
2508
2550
|
errorMsg: string
|
|
@@ -2535,7 +2577,7 @@ declare namespace ty.ai {
|
|
|
2535
2577
|
* @since AIKit 1.3.0
|
|
2536
2578
|
* @defaultValue LabelAllowEnum.labelTypeCat
|
|
2537
2579
|
*/
|
|
2538
|
-
labelAllow?:
|
|
2580
|
+
labelAllow?: LabelAllowEnum_EgqpRQ
|
|
2539
2581
|
/**
|
|
2540
2582
|
* 识别对象大小占整个图片的比值,默认值30,含义:小于30%过滤
|
|
2541
2583
|
* @since AIKit 1.3.0
|
|
@@ -2561,9 +2603,9 @@ declare namespace ty.ai {
|
|
|
2561
2603
|
* @since AIKit 1.3.0
|
|
2562
2604
|
*/
|
|
2563
2605
|
minimumPictureBrightness: number
|
|
2564
|
-
/**
|
|
2606
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
2565
2607
|
complete?: () => void
|
|
2566
|
-
/**
|
|
2608
|
+
/** success 成功回调 */
|
|
2567
2609
|
success?: (params: {
|
|
2568
2610
|
/**
|
|
2569
2611
|
* 图片地址
|
|
@@ -2581,7 +2623,7 @@ declare namespace ty.ai {
|
|
|
2581
2623
|
*/
|
|
2582
2624
|
lowQualityReason: number
|
|
2583
2625
|
}) => void
|
|
2584
|
-
/**
|
|
2626
|
+
/** fail 失败回调 */
|
|
2585
2627
|
fail?: (params: {
|
|
2586
2628
|
/** 错误信息 */
|
|
2587
2629
|
errorMsg: string
|
|
@@ -2604,11 +2646,11 @@ declare namespace ty.ai {
|
|
|
2604
2646
|
* @platform iOS Android
|
|
2605
2647
|
*/
|
|
2606
2648
|
export function supportPetDogPictureQuality(params?: {
|
|
2607
|
-
/**
|
|
2649
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
2608
2650
|
complete?: () => void
|
|
2609
|
-
/**
|
|
2651
|
+
/** success 成功回调 */
|
|
2610
2652
|
success?: (params: null) => void
|
|
2611
|
-
/**
|
|
2653
|
+
/** fail 失败回调 */
|
|
2612
2654
|
fail?: (params: {
|
|
2613
2655
|
/** 错误信息 */
|
|
2614
2656
|
errorMsg: string
|
|
@@ -2625,7 +2667,7 @@ declare namespace ty.ai {
|
|
|
2625
2667
|
}): void
|
|
2626
2668
|
|
|
2627
2669
|
/**
|
|
2628
|
-
* 获取
|
|
2670
|
+
* 获取ai翻译列表
|
|
2629
2671
|
* @public
|
|
2630
2672
|
* @since AIKit 0.0.1
|
|
2631
2673
|
* @platform iOS Android
|
|
@@ -2646,17 +2688,17 @@ declare namespace ty.ai {
|
|
|
2646
2688
|
* @since AIKit 0.0.1
|
|
2647
2689
|
*/
|
|
2648
2690
|
pageSize?: number
|
|
2649
|
-
/**
|
|
2691
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
2650
2692
|
complete?: () => void
|
|
2651
|
-
/**
|
|
2693
|
+
/** success 成功回调 */
|
|
2652
2694
|
success?: (params: {
|
|
2653
2695
|
/**
|
|
2654
2696
|
* 列表
|
|
2655
2697
|
* @since AIKit 0.0.1
|
|
2656
2698
|
*/
|
|
2657
|
-
list?:
|
|
2699
|
+
list?: TranslateRecord_EPAtG5[]
|
|
2658
2700
|
}) => void
|
|
2659
|
-
/**
|
|
2701
|
+
/** fail 失败回调 */
|
|
2660
2702
|
fail?: (params: {
|
|
2661
2703
|
/** 错误信息 */
|
|
2662
2704
|
errorMsg: string
|
|
@@ -2684,9 +2726,9 @@ declare namespace ty.ai {
|
|
|
2684
2726
|
* @since AIKit 0.0.1
|
|
2685
2727
|
*/
|
|
2686
2728
|
translateId: number
|
|
2687
|
-
/**
|
|
2729
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
2688
2730
|
complete?: () => void
|
|
2689
|
-
/**
|
|
2731
|
+
/** success 成功回调 */
|
|
2690
2732
|
success?: (params: {
|
|
2691
2733
|
/**
|
|
2692
2734
|
* 翻译记录id
|
|
@@ -2759,7 +2801,7 @@ declare namespace ty.ai {
|
|
|
2759
2801
|
*/
|
|
2760
2802
|
summaryStatus: number
|
|
2761
2803
|
}) => void
|
|
2762
|
-
/**
|
|
2804
|
+
/** fail 失败回调 */
|
|
2763
2805
|
fail?: (params: {
|
|
2764
2806
|
/** 错误信息 */
|
|
2765
2807
|
errorMsg: string
|
|
@@ -2807,11 +2849,11 @@ declare namespace ty.ai {
|
|
|
2807
2849
|
* @since AIKit 0.0.1
|
|
2808
2850
|
*/
|
|
2809
2851
|
remove?: string
|
|
2810
|
-
/**
|
|
2852
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
2811
2853
|
complete?: () => void
|
|
2812
|
-
/**
|
|
2854
|
+
/** success 成功回调 */
|
|
2813
2855
|
success?: (params: null) => void
|
|
2814
|
-
/**
|
|
2856
|
+
/** fail 失败回调 */
|
|
2815
2857
|
fail?: (params: {
|
|
2816
2858
|
/** 错误信息 */
|
|
2817
2859
|
errorMsg: string
|
|
@@ -2839,11 +2881,11 @@ declare namespace ty.ai {
|
|
|
2839
2881
|
* @since AIKit 0.0.1
|
|
2840
2882
|
*/
|
|
2841
2883
|
translateId: number
|
|
2842
|
-
/**
|
|
2884
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
2843
2885
|
complete?: () => void
|
|
2844
|
-
/**
|
|
2886
|
+
/** success 成功回调 */
|
|
2845
2887
|
success?: (params: null) => void
|
|
2846
|
-
/**
|
|
2888
|
+
/** fail 失败回调 */
|
|
2847
2889
|
fail?: (params: {
|
|
2848
2890
|
/** 错误信息 */
|
|
2849
2891
|
errorMsg: string
|
|
@@ -2871,17 +2913,17 @@ declare namespace ty.ai {
|
|
|
2871
2913
|
* @since AIKit 0.0.1
|
|
2872
2914
|
*/
|
|
2873
2915
|
translateId: string
|
|
2874
|
-
/**
|
|
2916
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
2875
2917
|
complete?: () => void
|
|
2876
|
-
/**
|
|
2918
|
+
/** success 成功回调 */
|
|
2877
2919
|
success?: (params: {
|
|
2878
2920
|
/**
|
|
2879
2921
|
* 实时转写数据列表
|
|
2880
2922
|
* @since AIKit 0.0.1
|
|
2881
2923
|
*/
|
|
2882
|
-
list?:
|
|
2924
|
+
list?: TranslateRealTimeResult_EQjFDA[]
|
|
2883
2925
|
}) => void
|
|
2884
|
-
/**
|
|
2926
|
+
/** fail 失败回调 */
|
|
2885
2927
|
fail?: (params: {
|
|
2886
2928
|
/** 错误信息 */
|
|
2887
2929
|
errorMsg: string
|
|
@@ -2919,11 +2961,11 @@ declare namespace ty.ai {
|
|
|
2919
2961
|
* @since AIKit 0.0.1
|
|
2920
2962
|
*/
|
|
2921
2963
|
language: string
|
|
2922
|
-
/**
|
|
2964
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
2923
2965
|
complete?: () => void
|
|
2924
|
-
/**
|
|
2966
|
+
/** success 成功回调 */
|
|
2925
2967
|
success?: (params: null) => void
|
|
2926
|
-
/**
|
|
2968
|
+
/** fail 失败回调 */
|
|
2927
2969
|
fail?: (params: {
|
|
2928
2970
|
/** 错误信息 */
|
|
2929
2971
|
errorMsg: string
|
|
@@ -2956,9 +2998,9 @@ declare namespace ty.ai {
|
|
|
2956
2998
|
* @since AIKit 0.0.1
|
|
2957
2999
|
*/
|
|
2958
3000
|
translateIds: string[]
|
|
2959
|
-
/**
|
|
3001
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
2960
3002
|
complete?: () => void
|
|
2961
|
-
/**
|
|
3003
|
+
/** success 成功回调 */
|
|
2962
3004
|
success?: (params: {
|
|
2963
3005
|
/**
|
|
2964
3006
|
* 转写成功的文件id列表
|
|
@@ -2971,7 +3013,7 @@ declare namespace ty.ai {
|
|
|
2971
3013
|
*/
|
|
2972
3014
|
fail: string[]
|
|
2973
3015
|
}) => void
|
|
2974
|
-
/**
|
|
3016
|
+
/** fail 失败回调 */
|
|
2975
3017
|
fail?: (params: {
|
|
2976
3018
|
/** 错误信息 */
|
|
2977
3019
|
errorMsg: string
|
|
@@ -2999,9 +3041,9 @@ declare namespace ty.ai {
|
|
|
2999
3041
|
* @since AIKit 0.0.1
|
|
3000
3042
|
*/
|
|
3001
3043
|
translateId: number
|
|
3002
|
-
/**
|
|
3044
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
3003
3045
|
complete?: () => void
|
|
3004
|
-
/**
|
|
3046
|
+
/** success 成功回调 */
|
|
3005
3047
|
success?: (params: {
|
|
3006
3048
|
/**
|
|
3007
3049
|
* 总结文案
|
|
@@ -3009,7 +3051,7 @@ declare namespace ty.ai {
|
|
|
3009
3051
|
*/
|
|
3010
3052
|
text: string
|
|
3011
3053
|
}) => void
|
|
3012
|
-
/**
|
|
3054
|
+
/** fail 失败回调 */
|
|
3013
3055
|
fail?: (params: {
|
|
3014
3056
|
/** 错误信息 */
|
|
3015
3057
|
errorMsg: string
|
|
@@ -3028,61 +3070,61 @@ declare namespace ty.ai {
|
|
|
3028
3070
|
/**
|
|
3029
3071
|
* 口腔模型下载进度
|
|
3030
3072
|
* @public
|
|
3031
|
-
* @since AIKit 1.
|
|
3073
|
+
* @since AIKit 2.1.0
|
|
3032
3074
|
* @platform iOS Android
|
|
3033
3075
|
*/
|
|
3034
3076
|
export function onOralModelDownProgress(
|
|
3035
|
-
listener: (params:
|
|
3077
|
+
listener: (params: OralModelDownProgressEvent_N3OXGB) => void
|
|
3036
3078
|
): void
|
|
3037
3079
|
|
|
3038
3080
|
/**
|
|
3039
3081
|
* 口腔模型下载进度
|
|
3040
3082
|
* @public
|
|
3041
|
-
* @since AIKit 1.
|
|
3083
|
+
* @since AIKit 2.1.0
|
|
3042
3084
|
* @platform iOS Android
|
|
3043
3085
|
*/
|
|
3044
3086
|
export function offOralModelDownProgress(
|
|
3045
|
-
listener: (params:
|
|
3087
|
+
listener: (params: OralModelDownProgressEvent_N3OXGB) => void
|
|
3046
3088
|
): void
|
|
3047
3089
|
|
|
3048
3090
|
/**
|
|
3049
3091
|
* 图像清晰度增强处理进度
|
|
3050
3092
|
* @public
|
|
3051
|
-
* @since AIKit 1.
|
|
3093
|
+
* @since AIKit 2.1.0
|
|
3052
3094
|
* @platform iOS Android
|
|
3053
3095
|
*/
|
|
3054
3096
|
export function onEnhanceClarityProgress(
|
|
3055
|
-
listener: (params:
|
|
3097
|
+
listener: (params: EnhanceProgressEvent_WIOGkI) => void
|
|
3056
3098
|
): void
|
|
3057
3099
|
|
|
3058
3100
|
/**
|
|
3059
3101
|
* 图像清晰度增强处理进度
|
|
3060
3102
|
* @public
|
|
3061
|
-
* @since AIKit 1.
|
|
3103
|
+
* @since AIKit 2.1.0
|
|
3062
3104
|
* @platform iOS Android
|
|
3063
3105
|
*/
|
|
3064
3106
|
export function offEnhanceClarityProgress(
|
|
3065
|
-
listener: (params:
|
|
3107
|
+
listener: (params: EnhanceProgressEvent_WIOGkI) => void
|
|
3066
3108
|
): void
|
|
3067
3109
|
|
|
3068
3110
|
/**
|
|
3069
3111
|
* 图像畸变增强处理进度
|
|
3070
3112
|
* @public
|
|
3071
|
-
* @since AIKit 1.
|
|
3113
|
+
* @since AIKit 2.1.0
|
|
3072
3114
|
* @platform iOS Android
|
|
3073
3115
|
*/
|
|
3074
3116
|
export function onEnhanceCalibrationProgress(
|
|
3075
|
-
listener: (params:
|
|
3117
|
+
listener: (params: EnhanceProgressEvent_WIOGkI) => void
|
|
3076
3118
|
): void
|
|
3077
3119
|
|
|
3078
3120
|
/**
|
|
3079
3121
|
* 图像畸变增强处理进度
|
|
3080
3122
|
* @public
|
|
3081
|
-
* @since AIKit 1.
|
|
3123
|
+
* @since AIKit 2.1.0
|
|
3082
3124
|
* @platform iOS Android
|
|
3083
3125
|
*/
|
|
3084
3126
|
export function offEnhanceCalibrationProgress(
|
|
3085
|
-
listener: (params:
|
|
3127
|
+
listener: (params: EnhanceProgressEvent_WIOGkI) => void
|
|
3086
3128
|
): void
|
|
3087
3129
|
|
|
3088
3130
|
/**
|
|
@@ -3092,7 +3134,7 @@ declare namespace ty.ai {
|
|
|
3092
3134
|
* @platform iOS Android
|
|
3093
3135
|
*/
|
|
3094
3136
|
export function onEnhanceVideoClarityProgress(
|
|
3095
|
-
listener: (params:
|
|
3137
|
+
listener: (params: EnhanceProgressEvent_WIOGkI) => void
|
|
3096
3138
|
): void
|
|
3097
3139
|
|
|
3098
3140
|
/**
|
|
@@ -3102,151 +3144,152 @@ declare namespace ty.ai {
|
|
|
3102
3144
|
* @platform iOS Android
|
|
3103
3145
|
*/
|
|
3104
3146
|
export function offEnhanceVideoClarityProgress(
|
|
3105
|
-
listener: (params:
|
|
3147
|
+
listener: (params: EnhanceProgressEvent_WIOGkI) => void
|
|
3106
3148
|
): void
|
|
3107
3149
|
|
|
3108
3150
|
/**
|
|
3109
|
-
*
|
|
3151
|
+
* 初始化进度
|
|
3110
3152
|
* @public
|
|
3111
|
-
* @since AIKit 1.
|
|
3153
|
+
* @since AIKit 2.1.0
|
|
3112
3154
|
* @platform iOS Android
|
|
3113
3155
|
*/
|
|
3114
3156
|
export function onPixelImageInitProgressEvent(
|
|
3115
|
-
listener: (params:
|
|
3157
|
+
listener: (params: PixelImageInitProgressModel_3TaM87) => void
|
|
3116
3158
|
): void
|
|
3117
3159
|
|
|
3118
3160
|
/**
|
|
3119
|
-
*
|
|
3161
|
+
* 初始化进度
|
|
3120
3162
|
* @public
|
|
3121
|
-
* @since AIKit 1.
|
|
3163
|
+
* @since AIKit 2.1.0
|
|
3122
3164
|
* @platform iOS Android
|
|
3123
3165
|
*/
|
|
3124
3166
|
export function offPixelImageInitProgressEvent(
|
|
3125
|
-
listener: (params:
|
|
3167
|
+
listener: (params: PixelImageInitProgressModel_3TaM87) => void
|
|
3126
3168
|
): void
|
|
3127
3169
|
|
|
3128
3170
|
/**
|
|
3129
|
-
*
|
|
3171
|
+
* 处理进度
|
|
3130
3172
|
* @public
|
|
3131
|
-
* @since AIKit
|
|
3173
|
+
* @since AIKit 2.1.0
|
|
3132
3174
|
* @platform iOS Android
|
|
3133
3175
|
*/
|
|
3134
3176
|
export function onVideoObjectDetectProgress(
|
|
3135
|
-
listener: (params:
|
|
3177
|
+
listener: (params: DetectProgressEvent_EymCmz) => void
|
|
3136
3178
|
): void
|
|
3137
3179
|
|
|
3138
3180
|
/**
|
|
3139
|
-
*
|
|
3181
|
+
* 处理进度
|
|
3140
3182
|
* @public
|
|
3141
|
-
* @since AIKit
|
|
3183
|
+
* @since AIKit 2.1.0
|
|
3142
3184
|
* @platform iOS Android
|
|
3143
3185
|
*/
|
|
3144
3186
|
export function offVideoObjectDetectProgress(
|
|
3145
|
-
listener: (params:
|
|
3187
|
+
listener: (params: DetectProgressEvent_EymCmz) => void
|
|
3146
3188
|
): void
|
|
3147
3189
|
|
|
3148
3190
|
/**
|
|
3149
|
-
* FPS
|
|
3191
|
+
* 监控连续时间:FPS监控会话回调
|
|
3150
3192
|
* @public
|
|
3151
|
-
* @since AIKit 1.
|
|
3193
|
+
* @since AIKit 2.1.0
|
|
3152
3194
|
* @platform iOS Android
|
|
3153
3195
|
*/
|
|
3154
3196
|
export function onAppAIWithFPSEvent(
|
|
3155
|
-
listener: (params:
|
|
3197
|
+
listener: (params: FPSModel_4gI3N5) => void
|
|
3156
3198
|
): void
|
|
3157
3199
|
|
|
3158
3200
|
/**
|
|
3159
|
-
* FPS
|
|
3201
|
+
* 监控连续时间:FPS监控会话回调
|
|
3160
3202
|
* @public
|
|
3161
|
-
* @since AIKit 1.
|
|
3203
|
+
* @since AIKit 2.1.0
|
|
3162
3204
|
* @platform iOS Android
|
|
3163
3205
|
*/
|
|
3164
3206
|
export function offAppAIWithFPSEvent(
|
|
3165
|
-
listener: (params:
|
|
3207
|
+
listener: (params: FPSModel_4gI3N5) => void
|
|
3166
3208
|
): void
|
|
3167
3209
|
|
|
3168
3210
|
/**
|
|
3169
|
-
* CPU
|
|
3211
|
+
* 监控连续时间:CPU监控会话回调
|
|
3170
3212
|
* @public
|
|
3171
|
-
* @since AIKit 1.
|
|
3213
|
+
* @since AIKit 2.1.0
|
|
3172
3214
|
* @platform iOS Android
|
|
3173
3215
|
*/
|
|
3174
3216
|
export function onAppAIWithCPUEvent(
|
|
3175
|
-
listener: (params:
|
|
3217
|
+
listener: (params: CPUModel_pXDLoE) => void
|
|
3176
3218
|
): void
|
|
3177
3219
|
|
|
3178
3220
|
/**
|
|
3179
|
-
* CPU
|
|
3221
|
+
* 监控连续时间:CPU监控会话回调
|
|
3180
3222
|
* @public
|
|
3181
|
-
* @since AIKit 1.
|
|
3223
|
+
* @since AIKit 2.1.0
|
|
3182
3224
|
* @platform iOS Android
|
|
3183
3225
|
*/
|
|
3184
3226
|
export function offAppAIWithCPUEvent(
|
|
3185
|
-
listener: (params:
|
|
3227
|
+
listener: (params: CPUModel_pXDLoE) => void
|
|
3186
3228
|
): void
|
|
3187
3229
|
|
|
3188
3230
|
/**
|
|
3189
|
-
*
|
|
3231
|
+
* 监控连续时间:内存监控会话回调
|
|
3190
3232
|
* @public
|
|
3191
|
-
* @since AIKit 1.
|
|
3233
|
+
* @since AIKit 2.1.0
|
|
3192
3234
|
* @platform iOS Android
|
|
3193
3235
|
*/
|
|
3194
3236
|
export function onAppAIWithMemoryEvent(
|
|
3195
|
-
listener: (params:
|
|
3237
|
+
listener: (params: MemoryModel_TLE4WR) => void
|
|
3196
3238
|
): void
|
|
3197
3239
|
|
|
3198
3240
|
/**
|
|
3199
|
-
*
|
|
3241
|
+
* 监控连续时间:内存监控会话回调
|
|
3200
3242
|
* @public
|
|
3201
|
-
* @since AIKit 1.
|
|
3243
|
+
* @since AIKit 2.1.0
|
|
3202
3244
|
* @platform iOS Android
|
|
3203
3245
|
*/
|
|
3204
3246
|
export function offAppAIWithMemoryEvent(
|
|
3205
|
-
listener: (params:
|
|
3247
|
+
listener: (params: MemoryModel_TLE4WR) => void
|
|
3206
3248
|
): void
|
|
3207
3249
|
|
|
3208
3250
|
/**
|
|
3209
|
-
* GPU
|
|
3251
|
+
* 监控连续时间:GPU监控会话回调
|
|
3210
3252
|
* @public
|
|
3211
|
-
* @since AIKit 1.
|
|
3253
|
+
* @since AIKit 2.1.0
|
|
3212
3254
|
* @platform iOS Android
|
|
3213
3255
|
*/
|
|
3214
3256
|
export function onAppAIWithGPUEvent(
|
|
3215
|
-
listener: (params:
|
|
3257
|
+
listener: (params: GPUModel_3BJU8C) => void
|
|
3216
3258
|
): void
|
|
3217
3259
|
|
|
3218
3260
|
/**
|
|
3219
|
-
* GPU
|
|
3261
|
+
* 监控连续时间:GPU监控会话回调
|
|
3220
3262
|
* @public
|
|
3221
|
-
* @since AIKit 1.
|
|
3263
|
+
* @since AIKit 2.1.0
|
|
3222
3264
|
* @platform iOS Android
|
|
3223
3265
|
*/
|
|
3224
3266
|
export function offAppAIWithGPUEvent(
|
|
3225
|
-
listener: (params:
|
|
3267
|
+
listener: (params: GPUModel_3BJU8C) => void
|
|
3226
3268
|
): void
|
|
3227
3269
|
|
|
3228
3270
|
/**
|
|
3229
3271
|
* 处理进度
|
|
3230
3272
|
* @public
|
|
3231
|
-
* @since AIKit 1.
|
|
3273
|
+
* @since AIKit 2.1.0
|
|
3232
3274
|
* @platform iOS Android
|
|
3233
3275
|
*/
|
|
3234
3276
|
export function onPetsDetectProgress(
|
|
3235
|
-
listener: (params:
|
|
3277
|
+
listener: (params: DetectProgressEvent_IfCnJQ) => void
|
|
3236
3278
|
): void
|
|
3237
3279
|
|
|
3238
3280
|
/**
|
|
3239
3281
|
* 处理进度
|
|
3240
3282
|
* @public
|
|
3241
|
-
* @since AIKit 1.
|
|
3283
|
+
* @since AIKit 2.1.0
|
|
3242
3284
|
* @platform iOS Android
|
|
3243
3285
|
*/
|
|
3244
3286
|
export function offPetsDetectProgress(
|
|
3245
|
-
listener: (params:
|
|
3287
|
+
listener: (params: DetectProgressEvent_IfCnJQ) => void
|
|
3246
3288
|
): void
|
|
3247
3289
|
|
|
3248
|
-
|
|
3249
|
-
|
|
3290
|
+
export interface Object_i9SXlm {}
|
|
3291
|
+
|
|
3292
|
+
export interface DetectFaceLandmarksParams_NtlpRj {
|
|
3250
3293
|
/**
|
|
3251
3294
|
* Input data source path
|
|
3252
3295
|
* @since AIKit 1.3.2
|
|
@@ -3256,11 +3299,10 @@ declare namespace ty.ai {
|
|
|
3256
3299
|
* extend param
|
|
3257
3300
|
* @since AIKit 1.3.2
|
|
3258
3301
|
*/
|
|
3259
|
-
extendParam?:
|
|
3302
|
+
extendParam?: Object_i9SXlm
|
|
3260
3303
|
}
|
|
3261
3304
|
|
|
3262
|
-
|
|
3263
|
-
export interface NormalizedLandmark {
|
|
3305
|
+
export interface NormalizedLandmark_kJ96B3 {
|
|
3264
3306
|
/** @since AIKit 1.3.2 */
|
|
3265
3307
|
x: number
|
|
3266
3308
|
/** @since AIKit 1.3.2 */
|
|
@@ -3275,39 +3317,36 @@ declare namespace ty.ai {
|
|
|
3275
3317
|
* ext data
|
|
3276
3318
|
* @since AIKit 1.3.2
|
|
3277
3319
|
*/
|
|
3278
|
-
extData?:
|
|
3320
|
+
extData?: Object_i9SXlm
|
|
3279
3321
|
}
|
|
3280
3322
|
|
|
3281
|
-
|
|
3282
|
-
export interface FaceLandmark {
|
|
3323
|
+
export interface FaceLandmark_cqImu8 {
|
|
3283
3324
|
/**
|
|
3284
3325
|
* Face landmark points
|
|
3285
3326
|
* @since AIKit 1.3.2
|
|
3286
3327
|
*/
|
|
3287
|
-
faceLandmarks:
|
|
3328
|
+
faceLandmarks: NormalizedLandmark_kJ96B3[]
|
|
3288
3329
|
/**
|
|
3289
3330
|
* ext data
|
|
3290
3331
|
* @since AIKit 1.3.2
|
|
3291
3332
|
*/
|
|
3292
|
-
extData?:
|
|
3333
|
+
extData?: Object_i9SXlm
|
|
3293
3334
|
}
|
|
3294
3335
|
|
|
3295
|
-
|
|
3296
|
-
export interface DetectFaceLandmarksCB {
|
|
3336
|
+
export interface DetectFaceLandmarksCB_3HSb5b {
|
|
3297
3337
|
/**
|
|
3298
3338
|
* Face landmark points
|
|
3299
3339
|
* @since AIKit 1.3.2
|
|
3300
3340
|
*/
|
|
3301
|
-
faceLandmarks:
|
|
3341
|
+
faceLandmarks: FaceLandmark_cqImu8[]
|
|
3302
3342
|
/**
|
|
3303
3343
|
* ext data
|
|
3304
3344
|
* @since AIKit 1.3.2
|
|
3305
3345
|
*/
|
|
3306
|
-
extData?:
|
|
3346
|
+
extData?: Object_i9SXlm
|
|
3307
3347
|
}
|
|
3308
3348
|
|
|
3309
|
-
|
|
3310
|
-
export interface ForegroundMediaSource {
|
|
3349
|
+
export interface ForegroundMediaSource_3Vh2fz {
|
|
3311
3350
|
/**
|
|
3312
3351
|
* Input data source type
|
|
3313
3352
|
* Media type (image/video/audio),
|
|
@@ -3354,24 +3393,26 @@ declare namespace ty.ai {
|
|
|
3354
3393
|
* extend param
|
|
3355
3394
|
* @since AIKit 1.3.2
|
|
3356
3395
|
*/
|
|
3357
|
-
extendParam?:
|
|
3396
|
+
extendParam?: Object_i9SXlm
|
|
3358
3397
|
}
|
|
3359
3398
|
|
|
3360
|
-
|
|
3361
|
-
export interface OutputConfig {
|
|
3399
|
+
export interface OutputConfig_ybFIye {
|
|
3362
3400
|
/**
|
|
3363
3401
|
* Output foreground media's path
|
|
3364
3402
|
* @since AIKit 1.3.2
|
|
3403
|
+
* @since AIKit 1.4.3
|
|
3365
3404
|
*/
|
|
3366
3405
|
path?: string
|
|
3367
3406
|
/**
|
|
3368
3407
|
* Output foreground media's name
|
|
3369
3408
|
* @since AIKit 1.3.2
|
|
3409
|
+
* @since AIKit 1.4.3
|
|
3370
3410
|
*/
|
|
3371
3411
|
name?: string
|
|
3372
3412
|
/**
|
|
3373
3413
|
* Output foreground media's min duration,the unit is seconds
|
|
3374
3414
|
* @since AIKit 1.3.2
|
|
3415
|
+
* @since AIKit 1.4.3
|
|
3375
3416
|
*/
|
|
3376
3417
|
min_duration?: number
|
|
3377
3418
|
/**
|
|
@@ -3382,44 +3423,46 @@ declare namespace ty.ai {
|
|
|
3382
3423
|
/**
|
|
3383
3424
|
* extend param
|
|
3384
3425
|
* @since AIKit 1.3.2
|
|
3426
|
+
* @since AIKit 1.4.3
|
|
3385
3427
|
*/
|
|
3386
|
-
extendParam?:
|
|
3428
|
+
extendParam?: Object_i9SXlm
|
|
3387
3429
|
}
|
|
3388
3430
|
|
|
3389
|
-
|
|
3390
|
-
export interface ForegroundMediaParams {
|
|
3431
|
+
export interface ForegroundMediaParams_qFE6QW {
|
|
3391
3432
|
/**
|
|
3392
3433
|
* Input data sources
|
|
3393
3434
|
* @since AIKit 1.3.2
|
|
3394
3435
|
*/
|
|
3395
|
-
sources:
|
|
3436
|
+
sources: ForegroundMediaSource_3Vh2fz[]
|
|
3396
3437
|
/**
|
|
3397
3438
|
* Output configuration
|
|
3398
3439
|
* @since AIKit 1.3.2
|
|
3399
3440
|
*/
|
|
3400
|
-
outputConfig:
|
|
3441
|
+
outputConfig: OutputConfig_ybFIye
|
|
3401
3442
|
/**
|
|
3402
3443
|
* extend param
|
|
3403
3444
|
* @since AIKit 1.3.2
|
|
3404
3445
|
*/
|
|
3405
|
-
extendParam?:
|
|
3446
|
+
extendParam?: Object_i9SXlm
|
|
3406
3447
|
}
|
|
3407
3448
|
|
|
3408
|
-
|
|
3409
|
-
export interface ForegroundMediaTemplateEffectObject {
|
|
3449
|
+
export interface ForegroundMediaTemplateEffectObject_qL3XLI {
|
|
3410
3450
|
/**
|
|
3411
3451
|
* effect's code
|
|
3412
3452
|
* @since AIKit 1.3.2
|
|
3453
|
+
* @since AIKit 1.4.3
|
|
3413
3454
|
*/
|
|
3414
3455
|
code: string
|
|
3415
3456
|
/**
|
|
3416
3457
|
* effect's name
|
|
3417
3458
|
* @since AIKit 1.3.2
|
|
3459
|
+
* @since AIKit 1.4.3
|
|
3418
3460
|
*/
|
|
3419
3461
|
name: string
|
|
3420
3462
|
/**
|
|
3421
3463
|
* Deprecated, please use 'outputDuration'.
|
|
3422
3464
|
* @since AIKit 1.3.2
|
|
3465
|
+
* @since AIKit 1.4.3
|
|
3423
3466
|
*/
|
|
3424
3467
|
ouputDuration: number
|
|
3425
3468
|
/**
|
|
@@ -3435,110 +3478,107 @@ declare namespace ty.ai {
|
|
|
3435
3478
|
/**
|
|
3436
3479
|
* effect's preview url
|
|
3437
3480
|
* @since AIKit 1.3.2
|
|
3481
|
+
* @since AIKit 1.4.3
|
|
3438
3482
|
*/
|
|
3439
3483
|
image: string
|
|
3440
3484
|
/**
|
|
3441
3485
|
* effect's resource url
|
|
3442
3486
|
* @since AIKit 1.3.2
|
|
3487
|
+
* @since AIKit 1.4.3
|
|
3443
3488
|
*/
|
|
3444
3489
|
resource: string
|
|
3445
3490
|
/**
|
|
3446
3491
|
* extend param
|
|
3447
3492
|
* @since AIKit 1.3.2
|
|
3493
|
+
* @since AIKit 1.4.3
|
|
3448
3494
|
*/
|
|
3449
|
-
extendParam?:
|
|
3495
|
+
extendParam?: Object_i9SXlm
|
|
3450
3496
|
}
|
|
3451
3497
|
|
|
3452
|
-
|
|
3453
|
-
export interface ForegroundMediaTemplateObject {
|
|
3498
|
+
export interface ForegroundMediaTemplateObject_0PUdd4 {
|
|
3454
3499
|
/**
|
|
3455
3500
|
* template type which is from the cloud
|
|
3456
3501
|
* @since AIKit 1.3.2
|
|
3502
|
+
* @since AIKit 1.4.3
|
|
3457
3503
|
*/
|
|
3458
3504
|
type: string
|
|
3459
3505
|
/**
|
|
3460
3506
|
* template effect object
|
|
3461
3507
|
* @since AIKit 1.3.2
|
|
3508
|
+
* @since AIKit 1.4.3
|
|
3462
3509
|
*/
|
|
3463
|
-
effect:
|
|
3510
|
+
effect: ForegroundMediaTemplateEffectObject_qL3XLI
|
|
3464
3511
|
/**
|
|
3465
3512
|
* extend param
|
|
3466
3513
|
* @since AIKit 1.3.2
|
|
3514
|
+
* @since AIKit 1.4.3
|
|
3467
3515
|
*/
|
|
3468
|
-
extendParam?:
|
|
3516
|
+
extendParam?: Object_i9SXlm
|
|
3469
3517
|
}
|
|
3470
3518
|
|
|
3471
|
-
|
|
3472
|
-
export interface ForegroundMediaByTemplateParams {
|
|
3519
|
+
export interface ForegroundMediaByTemplateParams_7j35pV {
|
|
3473
3520
|
/**
|
|
3474
3521
|
* template object
|
|
3475
3522
|
* @since AIKit 1.3.2
|
|
3523
|
+
* @since AIKit 1.4.3
|
|
3476
3524
|
*/
|
|
3477
|
-
templateObject:
|
|
3525
|
+
templateObject: ForegroundMediaTemplateObject_0PUdd4
|
|
3478
3526
|
/**
|
|
3479
3527
|
* Input data sources
|
|
3480
3528
|
* @since AIKit 1.3.2
|
|
3529
|
+
* @since AIKit 1.4.3
|
|
3481
3530
|
*/
|
|
3482
3531
|
mediaSource: string
|
|
3483
3532
|
/**
|
|
3484
3533
|
* Output configuration
|
|
3485
3534
|
* @since AIKit 1.3.2
|
|
3535
|
+
* @since AIKit 1.4.3
|
|
3486
3536
|
*/
|
|
3487
|
-
outputConfig?:
|
|
3537
|
+
outputConfig?: OutputConfig_ybFIye
|
|
3488
3538
|
/**
|
|
3489
3539
|
* extend param
|
|
3490
3540
|
* @since AIKit 1.3.2
|
|
3541
|
+
* @since AIKit 1.4.3
|
|
3491
3542
|
*/
|
|
3492
|
-
extendParam?:
|
|
3543
|
+
extendParam?: Object_i9SXlm
|
|
3493
3544
|
}
|
|
3494
3545
|
|
|
3495
|
-
|
|
3496
|
-
export interface ForegroundMediaByTemplateCB {
|
|
3546
|
+
export interface ForegroundMediaByTemplateCB_gGKRjA {
|
|
3497
3547
|
/**
|
|
3498
3548
|
* Output foreground media's path
|
|
3499
3549
|
* @since AIKit 1.3.2
|
|
3550
|
+
* @since AIKit 1.4.3
|
|
3500
3551
|
*/
|
|
3501
3552
|
outputPath: string
|
|
3502
3553
|
/**
|
|
3503
3554
|
* ext data
|
|
3504
3555
|
* @since AIKit 1.3.2
|
|
3556
|
+
* @since AIKit 1.4.3
|
|
3505
3557
|
*/
|
|
3506
|
-
extData?:
|
|
3558
|
+
extData?: Object_i9SXlm
|
|
3507
3559
|
}
|
|
3508
3560
|
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
/**
|
|
3512
|
-
* 480
|
|
3513
|
-
* @since AIKit 1.3.2
|
|
3514
|
-
*/
|
|
3561
|
+
export enum ForegroundMediaVideoLevel_v0CYph {
|
|
3562
|
+
/** 480 */
|
|
3515
3563
|
Level_480 = 1,
|
|
3516
3564
|
|
|
3517
|
-
/**
|
|
3518
|
-
* 540
|
|
3519
|
-
* @since AIKit 1.3.2
|
|
3520
|
-
*/
|
|
3565
|
+
/** 540 */
|
|
3521
3566
|
Level_540 = 2,
|
|
3522
3567
|
|
|
3523
|
-
/**
|
|
3524
|
-
* 720
|
|
3525
|
-
* @since AIKit 1.3.2
|
|
3526
|
-
*/
|
|
3568
|
+
/** 720 */
|
|
3527
3569
|
Level_720 = 3,
|
|
3528
3570
|
|
|
3529
3571
|
/**
|
|
3530
3572
|
* ·
|
|
3531
3573
|
* 1080
|
|
3532
|
-
* @since AIKit 1.3.2
|
|
3533
3574
|
*/
|
|
3534
3575
|
Level_1080 = 4,
|
|
3535
3576
|
}
|
|
3536
3577
|
|
|
3537
|
-
|
|
3538
|
-
export interface OralDiseaseParams {
|
|
3578
|
+
export interface OralDiseaseParams_QOm1Ul {
|
|
3539
3579
|
/**
|
|
3540
3580
|
* 设备名称
|
|
3541
|
-
* @since AIKit
|
|
3581
|
+
* @since AIKit 1.9.3
|
|
3542
3582
|
*/
|
|
3543
3583
|
devId: string
|
|
3544
3584
|
/**
|
|
@@ -3553,8 +3593,7 @@ declare namespace ty.ai {
|
|
|
3553
3593
|
outImagePath: string
|
|
3554
3594
|
}
|
|
3555
3595
|
|
|
3556
|
-
|
|
3557
|
-
export interface OralDiseaseResult {
|
|
3596
|
+
export interface OralDiseaseResult_HezPVE {
|
|
3558
3597
|
/**
|
|
3559
3598
|
* 是否非口腔图片
|
|
3560
3599
|
* @since AIKit 1.6.0
|
|
@@ -3594,68 +3633,55 @@ declare namespace ty.ai {
|
|
|
3594
3633
|
grayscalePath?: string
|
|
3595
3634
|
}
|
|
3596
3635
|
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
/**
|
|
3600
|
-
* 处理进度 1-100
|
|
3601
|
-
* @since AIKit 1.6.0
|
|
3602
|
-
*/
|
|
3636
|
+
export interface OralModelDownProgressEvent_N3OXGB {
|
|
3637
|
+
/** 处理进度 1-100 */
|
|
3603
3638
|
progress: number
|
|
3604
3639
|
}
|
|
3605
3640
|
|
|
3606
|
-
/**
|
|
3607
|
-
export
|
|
3608
|
-
/**
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3641
|
+
/** 图像分类插件 */
|
|
3642
|
+
export interface ThingPlugin_OI0Z1L {
|
|
3643
|
+
/** 口腔疾病预测初始化 */
|
|
3644
|
+
oralDiseaseInit: (
|
|
3645
|
+
success: SuccessCb_yabVNd<null>,
|
|
3646
|
+
fail: FailureCb_VqopUT
|
|
3647
|
+
) => void
|
|
3648
|
+
/** 口腔疾病预测 */
|
|
3649
|
+
oralDiseasePredictionRun: (
|
|
3650
|
+
params: OralDiseaseParams_QOm1Ul,
|
|
3651
|
+
success: SuccessCb_yVNqVC<OralDiseaseResult_HezPVE>,
|
|
3652
|
+
fail: FailureCb_VqopUT
|
|
3653
|
+
) => void
|
|
3654
|
+
/** 口腔模型下载进度 */
|
|
3655
|
+
onOralModelDownProgress: (body: OralModelDownProgressEvent_N3OXGB) => void
|
|
3656
|
+
}
|
|
3657
|
+
|
|
3658
|
+
export enum EnhanceType_VzwqnG {
|
|
3659
|
+
/** 没有操作,默认 */
|
|
3612
3660
|
EnhanceTypeNULL = 1,
|
|
3613
3661
|
|
|
3614
|
-
/**
|
|
3615
|
-
* 降噪
|
|
3616
|
-
* @since AIKit 2.1.0
|
|
3617
|
-
*/
|
|
3662
|
+
/** 降噪 */
|
|
3618
3663
|
EnhanceTypeDenoise = 2,
|
|
3619
3664
|
|
|
3620
|
-
/**
|
|
3621
|
-
* 暗光增强
|
|
3622
|
-
* @since AIKit 2.1.0
|
|
3623
|
-
*/
|
|
3665
|
+
/** 暗光增强 */
|
|
3624
3666
|
EnhanceTypeShadows = 3,
|
|
3625
3667
|
|
|
3626
|
-
/**
|
|
3627
|
-
* 超分
|
|
3628
|
-
* @since AIKit 2.1.0
|
|
3629
|
-
*/
|
|
3668
|
+
/** 超分 */
|
|
3630
3669
|
EnhanceTypeSuperResolution = 4,
|
|
3631
3670
|
|
|
3632
|
-
/**
|
|
3633
|
-
* 降噪+暗光增强
|
|
3634
|
-
* @since AIKit 2.1.0
|
|
3635
|
-
*/
|
|
3671
|
+
/** 降噪+暗光增强 */
|
|
3636
3672
|
EnhanceTypeDenoiseShadows = 5,
|
|
3637
3673
|
|
|
3638
|
-
/**
|
|
3639
|
-
* 降噪+超分
|
|
3640
|
-
* @since AIKit 2.1.0
|
|
3641
|
-
*/
|
|
3674
|
+
/** 降噪+超分 */
|
|
3642
3675
|
EnhanceTypeDenoiseSuperResolution = 6,
|
|
3643
3676
|
|
|
3644
|
-
/**
|
|
3645
|
-
* 暗光增强+超分
|
|
3646
|
-
* @since AIKit 2.1.0
|
|
3647
|
-
*/
|
|
3677
|
+
/** 暗光增强+超分 */
|
|
3648
3678
|
EnhanceTypeShadowsSuperResolution = 7,
|
|
3649
3679
|
|
|
3650
|
-
/**
|
|
3651
|
-
* 降噪+暗光增强+超分
|
|
3652
|
-
* @since AIKit 2.1.0
|
|
3653
|
-
*/
|
|
3680
|
+
/** 降噪+暗光增强+超分 */
|
|
3654
3681
|
EnhanceTypeDenoiseShadowsSuperResolution = 8,
|
|
3655
3682
|
}
|
|
3656
3683
|
|
|
3657
|
-
|
|
3658
|
-
export interface EnhanceBaseParams {
|
|
3684
|
+
export interface EnhanceBaseParams_MRlGho {
|
|
3659
3685
|
/**
|
|
3660
3686
|
* 链路id
|
|
3661
3687
|
* @since AIKit 2.1.0
|
|
@@ -3676,32 +3702,21 @@ declare namespace ty.ai {
|
|
|
3676
3702
|
* @since AIKit 2.1.0
|
|
3677
3703
|
* @defaultValue EnhanceType.EnhanceTypeNULL
|
|
3678
3704
|
*/
|
|
3679
|
-
enhance_type?:
|
|
3705
|
+
enhance_type?: EnhanceType_VzwqnG
|
|
3680
3706
|
}
|
|
3681
3707
|
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
/**
|
|
3685
|
-
* 原生尺寸
|
|
3686
|
-
* @since AIKit 1.4.1
|
|
3687
|
-
*/
|
|
3708
|
+
export enum EnhanceOutputResolution_RQGshk {
|
|
3709
|
+
/** 原生尺寸 */
|
|
3688
3710
|
EnhanceOutputResolutionOriginal = 1,
|
|
3689
3711
|
|
|
3690
|
-
/**
|
|
3691
|
-
* 640
|
|
3692
|
-
* @since AIKit 1.4.1
|
|
3693
|
-
*/
|
|
3712
|
+
/** 640 */
|
|
3694
3713
|
EnhanceOutputResolution640P = 2,
|
|
3695
3714
|
|
|
3696
|
-
/**
|
|
3697
|
-
* 720
|
|
3698
|
-
* @since AIKit 1.4.1
|
|
3699
|
-
*/
|
|
3715
|
+
/** 720 */
|
|
3700
3716
|
EnhanceOutputResolution720P = 3,
|
|
3701
3717
|
}
|
|
3702
3718
|
|
|
3703
|
-
|
|
3704
|
-
export interface EnhanceClarityParams {
|
|
3719
|
+
export interface EnhanceClarityParams_dEZ7d3 {
|
|
3705
3720
|
/**
|
|
3706
3721
|
* 链路id
|
|
3707
3722
|
* @since AIKit 2.1.0
|
|
@@ -3719,7 +3734,7 @@ declare namespace ty.ai {
|
|
|
3719
3734
|
scene_type: string
|
|
3720
3735
|
/**
|
|
3721
3736
|
* 设备ID
|
|
3722
|
-
* @since AIKit
|
|
3737
|
+
* @since AIKit 1.9.3
|
|
3723
3738
|
*/
|
|
3724
3739
|
devId: string
|
|
3725
3740
|
/**
|
|
@@ -3738,17 +3753,16 @@ declare namespace ty.ai {
|
|
|
3738
3753
|
* @since AIKit 1.4.1
|
|
3739
3754
|
* @defaultValue EnhanceOutputResolution.EnhanceOutputResolutionOriginal
|
|
3740
3755
|
*/
|
|
3741
|
-
enhanceOutputResolution?:
|
|
3756
|
+
enhanceOutputResolution?: EnhanceOutputResolution_RQGshk
|
|
3742
3757
|
/**
|
|
3743
3758
|
* 图像增强类型
|
|
3744
3759
|
* @since AIKit 1.4.1
|
|
3745
3760
|
* @defaultValue EnhanceType.EnhanceTypeNULL
|
|
3746
3761
|
*/
|
|
3747
|
-
enhanceType?:
|
|
3762
|
+
enhanceType?: EnhanceType_VzwqnG
|
|
3748
3763
|
}
|
|
3749
3764
|
|
|
3750
|
-
|
|
3751
|
-
export interface EnhanceResult {
|
|
3765
|
+
export interface EnhanceResult_VBY0Sm {
|
|
3752
3766
|
/**
|
|
3753
3767
|
* 图片地址
|
|
3754
3768
|
* @since AIKit 1.4.1
|
|
@@ -3766,50 +3780,29 @@ declare namespace ty.ai {
|
|
|
3766
3780
|
enhanceFaileReason: string
|
|
3767
3781
|
}
|
|
3768
3782
|
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
/**
|
|
3772
|
-
* 处理进度 1-100
|
|
3773
|
-
* @since AIKit 1.4.1
|
|
3774
|
-
*/
|
|
3783
|
+
export interface EnhanceProgressEvent_WIOGkI {
|
|
3784
|
+
/** 处理进度 1-100 */
|
|
3775
3785
|
progress: number
|
|
3776
3786
|
}
|
|
3777
3787
|
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
/**
|
|
3781
|
-
* 默认,BILINEAR
|
|
3782
|
-
* @since AIKit 1.4.1
|
|
3783
|
-
*/
|
|
3788
|
+
export enum EnhanceInterpolationType_zhrioy {
|
|
3789
|
+
/** 默认,BILINEAR */
|
|
3784
3790
|
EnhanceInterpolationTypeNULL = 1,
|
|
3785
3791
|
|
|
3786
|
-
/**
|
|
3787
|
-
* BILINEAR
|
|
3788
|
-
* @since AIKit 1.4.1
|
|
3789
|
-
*/
|
|
3792
|
+
/** BILINEAR */
|
|
3790
3793
|
EnhanceInterpolationTypeBILINEAR = 2,
|
|
3791
3794
|
|
|
3792
|
-
/**
|
|
3793
|
-
* BICUBIC
|
|
3794
|
-
* @since AIKit 1.4.1
|
|
3795
|
-
*/
|
|
3795
|
+
/** BICUBIC */
|
|
3796
3796
|
EnhanceInterpolationTypeBICUBIC = 3,
|
|
3797
3797
|
|
|
3798
|
-
/**
|
|
3799
|
-
* LANZCOS
|
|
3800
|
-
* @since AIKit 1.4.1
|
|
3801
|
-
*/
|
|
3798
|
+
/** LANZCOS */
|
|
3802
3799
|
EnhanceInterpolationTypeLANZCOS = 4,
|
|
3803
3800
|
|
|
3804
|
-
/**
|
|
3805
|
-
* EDGE
|
|
3806
|
-
* @since AIKit 1.4.1
|
|
3807
|
-
*/
|
|
3801
|
+
/** EDGE */
|
|
3808
3802
|
EnhanceInterpolationTypeEDGE = 5,
|
|
3809
3803
|
}
|
|
3810
3804
|
|
|
3811
|
-
|
|
3812
|
-
export interface EnhanceCalibrationParams {
|
|
3805
|
+
export interface EnhanceCalibrationParams_jsch5V {
|
|
3813
3806
|
/**
|
|
3814
3807
|
* 链路id
|
|
3815
3808
|
* @since AIKit 2.1.0
|
|
@@ -3840,7 +3833,7 @@ declare namespace ty.ai {
|
|
|
3840
3833
|
* @since AIKit 1.4.1
|
|
3841
3834
|
* @defaultValue EnhanceInterpolationType.EnhanceInterpolationTypeNULL
|
|
3842
3835
|
*/
|
|
3843
|
-
interpolationType?:
|
|
3836
|
+
interpolationType?: EnhanceInterpolationType_zhrioy
|
|
3844
3837
|
/**
|
|
3845
3838
|
* 比例
|
|
3846
3839
|
* @since AIKit 1.4.1
|
|
@@ -3893,8 +3886,7 @@ declare namespace ty.ai {
|
|
|
3893
3886
|
fP2: number
|
|
3894
3887
|
}
|
|
3895
3888
|
|
|
3896
|
-
|
|
3897
|
-
export interface EnhanceVideoClarityParams {
|
|
3889
|
+
export interface EnhanceVideoClarityParams_SZhfXC {
|
|
3898
3890
|
/**
|
|
3899
3891
|
* 链路id
|
|
3900
3892
|
* @since AIKit 2.1.0
|
|
@@ -3926,17 +3918,16 @@ declare namespace ty.ai {
|
|
|
3926
3918
|
* @since AIKit 2.1.0
|
|
3927
3919
|
* @defaultValue EnhanceOutputResolution.EnhanceOutputResolutionOriginal
|
|
3928
3920
|
*/
|
|
3929
|
-
enhanceOutputResolution?:
|
|
3921
|
+
enhanceOutputResolution?: EnhanceOutputResolution_RQGshk
|
|
3930
3922
|
/**
|
|
3931
3923
|
* 视频增强类型
|
|
3932
3924
|
* @since AIKit 2.1.0
|
|
3933
3925
|
* @defaultValue EnhanceType.EnhanceTypeNULL
|
|
3934
3926
|
*/
|
|
3935
|
-
enhanceType?:
|
|
3927
|
+
enhanceType?: EnhanceType_VzwqnG
|
|
3936
3928
|
}
|
|
3937
3929
|
|
|
3938
|
-
|
|
3939
|
-
export interface EnhanceVideoResult {
|
|
3930
|
+
export interface EnhanceVideoResult_k5zAeI {
|
|
3940
3931
|
/**
|
|
3941
3932
|
* 视频输出路径
|
|
3942
3933
|
* @since AIKit 2.1.0
|
|
@@ -3954,17 +3945,92 @@ declare namespace ty.ai {
|
|
|
3954
3945
|
enhanceFaileReason: string
|
|
3955
3946
|
}
|
|
3956
3947
|
|
|
3957
|
-
/**
|
|
3958
|
-
export interface
|
|
3959
|
-
/**
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3948
|
+
/** 手机设备相关API */
|
|
3949
|
+
export interface ThingPlugin_ghpwNu {
|
|
3950
|
+
/** 图像增强初始化 */
|
|
3951
|
+
imageEnhanceCreate: (
|
|
3952
|
+
params: EnhanceBaseParams_MRlGho,
|
|
3953
|
+
success: SuccessCb_yabVNd<null>,
|
|
3954
|
+
fail: FailureCb_VqopUT
|
|
3955
|
+
) => void
|
|
3956
|
+
/** 图像增强销毁 */
|
|
3957
|
+
imageEnhanceDestroy: (
|
|
3958
|
+
params: EnhanceBaseParams_MRlGho,
|
|
3959
|
+
success: SuccessCb_yabVNd<null>,
|
|
3960
|
+
fail: FailureCb_VqopUT
|
|
3961
|
+
) => void
|
|
3962
|
+
/** 图像清晰度增强处理 */
|
|
3963
|
+
enhanceClarityForImage: (
|
|
3964
|
+
params: EnhanceClarityParams_dEZ7d3,
|
|
3965
|
+
success: SuccessCb_IBazCj<EnhanceResult_VBY0Sm>,
|
|
3966
|
+
fail: FailureCb_VqopUT
|
|
3967
|
+
) => void
|
|
3968
|
+
/** 取消图像清晰度增强处理 */
|
|
3969
|
+
enhanceClarityCancel: (
|
|
3970
|
+
params: EnhanceBaseParams_MRlGho,
|
|
3971
|
+
success: SuccessCb_yabVNd<null>,
|
|
3972
|
+
fail: FailureCb_VqopUT
|
|
3973
|
+
) => void
|
|
3974
|
+
/** 图像清晰度增强处理进度 */
|
|
3975
|
+
onEnhanceClarityProgress: (body: EnhanceProgressEvent_WIOGkI) => void
|
|
3976
|
+
/** 图像畸变增强处理 */
|
|
3977
|
+
enhanceCalibrationForImage: (
|
|
3978
|
+
params: EnhanceCalibrationParams_jsch5V,
|
|
3979
|
+
success: SuccessCb_IBazCj<EnhanceResult_VBY0Sm>,
|
|
3980
|
+
fail: FailureCb_VqopUT
|
|
3981
|
+
) => void
|
|
3982
|
+
/** 取消图像畸变增强处理 */
|
|
3983
|
+
enhanceCalibrationCancel: (
|
|
3984
|
+
success: SuccessCb_yabVNd<null>,
|
|
3985
|
+
fail: FailureCb_VqopUT
|
|
3986
|
+
) => void
|
|
3987
|
+
/** 图像畸变增强处理进度 */
|
|
3988
|
+
onEnhanceCalibrationProgress: (body: EnhanceProgressEvent_WIOGkI) => void
|
|
3989
|
+
/** 视频清晰度增强处理 */
|
|
3990
|
+
enhanceClarityForVideo: (
|
|
3991
|
+
params: EnhanceVideoClarityParams_SZhfXC,
|
|
3992
|
+
success: SuccessCb_lrqBrS<EnhanceVideoResult_k5zAeI>,
|
|
3993
|
+
fail: FailureCb_VqopUT
|
|
3994
|
+
) => void
|
|
3995
|
+
/** 取消视频清晰度增强处理 */
|
|
3996
|
+
enhanceVideoClarityCancel: (
|
|
3997
|
+
success: SuccessCb_yabVNd<null>,
|
|
3998
|
+
fail: FailureCb_VqopUT
|
|
3999
|
+
) => void
|
|
4000
|
+
/** 视频清晰度增强处理进度 */
|
|
4001
|
+
onEnhanceVideoClarityProgress: (body: EnhanceProgressEvent_WIOGkI) => void
|
|
4002
|
+
/** 图像页面浏览 */
|
|
4003
|
+
imageEnhancePageView: (
|
|
4004
|
+
params: EnhanceBaseParams_MRlGho,
|
|
4005
|
+
success: SuccessCb_yabVNd<null>,
|
|
4006
|
+
fail: FailureCb_VqopUT
|
|
4007
|
+
) => void
|
|
4008
|
+
/** 图片文件下载 */
|
|
4009
|
+
imageEnhanceDownload: (
|
|
4010
|
+
params: EnhanceBaseParams_MRlGho,
|
|
4011
|
+
success: SuccessCb_yabVNd<null>,
|
|
4012
|
+
fail: FailureCb_VqopUT
|
|
4013
|
+
) => void
|
|
4014
|
+
/** 视频页面浏览 */
|
|
4015
|
+
videoEnhancePageView: (
|
|
4016
|
+
params: EnhanceBaseParams_MRlGho,
|
|
4017
|
+
success: SuccessCb_yabVNd<null>,
|
|
4018
|
+
fail: FailureCb_VqopUT
|
|
4019
|
+
) => void
|
|
4020
|
+
/** 视频文件下载 */
|
|
4021
|
+
videoEnhanceDownload: (
|
|
4022
|
+
params: EnhanceBaseParams_MRlGho,
|
|
4023
|
+
success: SuccessCb_yabVNd<null>,
|
|
4024
|
+
fail: FailureCb_VqopUT
|
|
4025
|
+
) => void
|
|
4026
|
+
}
|
|
4027
|
+
|
|
4028
|
+
export interface PixelImageInitProgressModel_3TaM87 {
|
|
4029
|
+
/** 初始化进度 */
|
|
3963
4030
|
progress: number
|
|
3964
4031
|
}
|
|
3965
4032
|
|
|
3966
|
-
|
|
3967
|
-
export interface PixelImageCategoryBean {
|
|
4033
|
+
export interface PixelImageCategoryBean_aFw7lN {
|
|
3968
4034
|
/**
|
|
3969
4035
|
* 类目名称
|
|
3970
4036
|
* @since AIKit 1.8.0
|
|
@@ -3977,17 +4043,15 @@ declare namespace ty.ai {
|
|
|
3977
4043
|
categoryLabel: string[]
|
|
3978
4044
|
}
|
|
3979
4045
|
|
|
3980
|
-
|
|
3981
|
-
export interface PixelImageCategoryListBean {
|
|
4046
|
+
export interface PixelImageCategoryListBean_w3HZE9 {
|
|
3982
4047
|
/**
|
|
3983
4048
|
* 类目信息
|
|
3984
4049
|
* @since AIKit 1.8.0
|
|
3985
4050
|
*/
|
|
3986
|
-
imageCategory?:
|
|
4051
|
+
imageCategory?: PixelImageCategoryBean_aFw7lN[]
|
|
3987
4052
|
}
|
|
3988
4053
|
|
|
3989
|
-
|
|
3990
|
-
export interface PixelImageParams {
|
|
4054
|
+
export interface PixelImageParams_ZFqPJY {
|
|
3991
4055
|
/**
|
|
3992
4056
|
* 设备ID
|
|
3993
4057
|
* @since AIKit 1.8.0
|
|
@@ -4015,22 +4079,20 @@ declare namespace ty.ai {
|
|
|
4015
4079
|
outImagePath: string
|
|
4016
4080
|
}
|
|
4017
4081
|
|
|
4018
|
-
|
|
4019
|
-
export interface PixelImageResult {
|
|
4082
|
+
export interface PixelImageResult_lUwJ6Q {
|
|
4020
4083
|
/**
|
|
4021
|
-
*
|
|
4084
|
+
* 成功回调
|
|
4022
4085
|
* @since AIKit 1.8.0
|
|
4023
4086
|
*/
|
|
4024
4087
|
success: boolean
|
|
4025
4088
|
/**
|
|
4026
|
-
*
|
|
4089
|
+
* 生成的图像路径
|
|
4027
4090
|
* @since AIKit 1.8.0
|
|
4028
4091
|
*/
|
|
4029
4092
|
imagePath: string
|
|
4030
4093
|
}
|
|
4031
4094
|
|
|
4032
|
-
|
|
4033
|
-
export interface PixelImageGifParams {
|
|
4095
|
+
export interface PixelImageGifParams_4FyQL2 {
|
|
4034
4096
|
/**
|
|
4035
4097
|
* 设备ID
|
|
4036
4098
|
* @since AIKit 1.8.0
|
|
@@ -4063,22 +4125,20 @@ declare namespace ty.ai {
|
|
|
4063
4125
|
outImagePath: string
|
|
4064
4126
|
}
|
|
4065
4127
|
|
|
4066
|
-
|
|
4067
|
-
export interface PixelGifImageResult {
|
|
4128
|
+
export interface PixelGifImageResult_0HN6TO {
|
|
4068
4129
|
/**
|
|
4069
|
-
*
|
|
4130
|
+
* 成功回调
|
|
4070
4131
|
* @since AIKit 1.8.0
|
|
4071
4132
|
*/
|
|
4072
4133
|
success: boolean
|
|
4073
4134
|
/**
|
|
4074
|
-
*
|
|
4135
|
+
* 生成的图像路径
|
|
4075
4136
|
* @since AIKit 1.8.0
|
|
4076
4137
|
*/
|
|
4077
4138
|
imagePath: string
|
|
4078
4139
|
}
|
|
4079
4140
|
|
|
4080
|
-
|
|
4081
|
-
export interface PixelImageDataTrackingInitParams {
|
|
4141
|
+
export interface PixelImageDataTrackingInitParams_NGv170 {
|
|
4082
4142
|
/**
|
|
4083
4143
|
* 设备ID
|
|
4084
4144
|
* @since AIKit 1.8.0
|
|
@@ -4086,8 +4146,7 @@ declare namespace ty.ai {
|
|
|
4086
4146
|
device_id: string
|
|
4087
4147
|
}
|
|
4088
4148
|
|
|
4089
|
-
|
|
4090
|
-
export interface PixelImageDataTrackingLikeParams {
|
|
4149
|
+
export interface PixelImageDataTrackingLikeParams_1JCoZR {
|
|
4091
4150
|
/**
|
|
4092
4151
|
* 设备ID
|
|
4093
4152
|
* @since AIKit 1.8.0
|
|
@@ -4105,8 +4164,7 @@ declare namespace ty.ai {
|
|
|
4105
4164
|
image_generation_like: boolean
|
|
4106
4165
|
}
|
|
4107
4166
|
|
|
4108
|
-
|
|
4109
|
-
export interface PixelImageDataTrackingUseParams {
|
|
4167
|
+
export interface PixelImageDataTrackingUseParams_inhKsq {
|
|
4110
4168
|
/**
|
|
4111
4169
|
* 设备ID
|
|
4112
4170
|
* @since AIKit 1.8.0
|
|
@@ -4124,8 +4182,55 @@ declare namespace ty.ai {
|
|
|
4124
4182
|
image_generation_use: boolean
|
|
4125
4183
|
}
|
|
4126
4184
|
|
|
4127
|
-
/**
|
|
4128
|
-
export interface
|
|
4185
|
+
/** 像素图生成 */
|
|
4186
|
+
export interface ThingPlugin_GDh7zH {
|
|
4187
|
+
/** 图像生成初始化 */
|
|
4188
|
+
pixelImageInit: (
|
|
4189
|
+
success: SuccessCb_yabVNd<null>,
|
|
4190
|
+
fail: FailureCb_VqopUT
|
|
4191
|
+
) => void
|
|
4192
|
+
/** 初始化进度 */
|
|
4193
|
+
onPixelImageInitProgressEvent: (
|
|
4194
|
+
body: PixelImageInitProgressModel_3TaM87
|
|
4195
|
+
) => void
|
|
4196
|
+
/** 图像生成标签列表 */
|
|
4197
|
+
fetchPixelImageCategoryInfo: (
|
|
4198
|
+
success: SuccessCb_Dfzub2<PixelImageCategoryListBean_w3HZE9>,
|
|
4199
|
+
fail: FailureCb_VqopUT
|
|
4200
|
+
) => void
|
|
4201
|
+
/** 图像生成 */
|
|
4202
|
+
generationPixelImage: (
|
|
4203
|
+
params: PixelImageParams_ZFqPJY,
|
|
4204
|
+
success: SuccessCb_Cmd13L<PixelImageResult_lUwJ6Q>,
|
|
4205
|
+
fail: FailureCb_VqopUT
|
|
4206
|
+
) => void
|
|
4207
|
+
/** 图像GIF生成 */
|
|
4208
|
+
generationPixeGifImage: (
|
|
4209
|
+
params: PixelImageGifParams_4FyQL2,
|
|
4210
|
+
success: SuccessCb_cGatdQ<PixelGifImageResult_0HN6TO>,
|
|
4211
|
+
fail: FailureCb_VqopUT
|
|
4212
|
+
) => void
|
|
4213
|
+
/** 埋点:AI业务初始化 */
|
|
4214
|
+
on_app_ai_data_tracking_image_generation_init: (
|
|
4215
|
+
params: PixelImageDataTrackingInitParams_NGv170,
|
|
4216
|
+
success: SuccessCb_yabVNd<null>,
|
|
4217
|
+
fail: FailureCb_VqopUT
|
|
4218
|
+
) => void
|
|
4219
|
+
/** 埋点:图像生成收藏 */
|
|
4220
|
+
on_app_ai_data_tracking_image_generation_like: (
|
|
4221
|
+
params: PixelImageDataTrackingLikeParams_1JCoZR,
|
|
4222
|
+
success: SuccessCb_yabVNd<null>,
|
|
4223
|
+
fail: FailureCb_VqopUT
|
|
4224
|
+
) => void
|
|
4225
|
+
/** 埋点:图像生像素屏使用 */
|
|
4226
|
+
on_app_ai_data_tracking_image_generation_use: (
|
|
4227
|
+
params: PixelImageDataTrackingUseParams_inhKsq,
|
|
4228
|
+
success: SuccessCb_yabVNd<null>,
|
|
4229
|
+
fail: FailureCb_VqopUT
|
|
4230
|
+
) => void
|
|
4231
|
+
}
|
|
4232
|
+
|
|
4233
|
+
export interface AutoAdaptParams_sovSHT {
|
|
4129
4234
|
/**
|
|
4130
4235
|
* 房间id
|
|
4131
4236
|
* @since AIKit 2.0.2
|
|
@@ -4138,206 +4243,170 @@ declare namespace ty.ai {
|
|
|
4138
4243
|
entityIdList: string[]
|
|
4139
4244
|
}
|
|
4140
4245
|
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
/**
|
|
4144
|
-
* 动作执行器
|
|
4145
|
-
* @since AIKit 2.0.2
|
|
4146
|
-
*/
|
|
4246
|
+
export interface LightSceneAction_PglyaT {
|
|
4247
|
+
/** @since AIKit 2.0.2 */
|
|
4147
4248
|
actionExecutor: string
|
|
4148
|
-
/**
|
|
4149
|
-
* 设备或群组ID
|
|
4150
|
-
* @since AIKit 2.0.2
|
|
4151
|
-
*/
|
|
4249
|
+
/** @since AIKit 2.0.2 */
|
|
4152
4250
|
entityId: string
|
|
4153
|
-
/**
|
|
4154
|
-
* 设备或群组名称
|
|
4155
|
-
* @since AIKit 2.0.2
|
|
4156
|
-
*/
|
|
4251
|
+
/** @since AIKit 2.0.2 */
|
|
4157
4252
|
entityName: string
|
|
4158
|
-
/**
|
|
4159
|
-
* 执行器属性
|
|
4160
|
-
* @since AIKit 2.0.2
|
|
4161
|
-
*/
|
|
4253
|
+
/** @since AIKit 2.0.2 */
|
|
4162
4254
|
executorProperty: Record<string, any>
|
|
4163
|
-
/**
|
|
4164
|
-
* 扩展属性
|
|
4165
|
-
* @since AIKit 2.0.2
|
|
4166
|
-
*/
|
|
4255
|
+
/** @since AIKit 2.0.2 */
|
|
4167
4256
|
extraProperty: Record<string, any>
|
|
4168
4257
|
}
|
|
4169
4258
|
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
/**
|
|
4173
|
-
* 父区域ID
|
|
4174
|
-
* @since AIKit 2.0.2
|
|
4175
|
-
*/
|
|
4259
|
+
export interface LightSceneInfo_kCPwIX {
|
|
4260
|
+
/** @since AIKit 2.0.2 */
|
|
4176
4261
|
parentRegionId: string
|
|
4177
|
-
/**
|
|
4178
|
-
* 场景类型
|
|
4179
|
-
* @since AIKit 2.0.2
|
|
4180
|
-
*/
|
|
4262
|
+
/** @since AIKit 2.0.2 */
|
|
4181
4263
|
sceneType: number
|
|
4182
|
-
/**
|
|
4183
|
-
* 场景名称
|
|
4184
|
-
* @since AIKit 2.0.2
|
|
4185
|
-
*/
|
|
4264
|
+
/** @since AIKit 2.0.2 */
|
|
4186
4265
|
name: string
|
|
4187
|
-
/**
|
|
4188
|
-
* 场景图标
|
|
4189
|
-
* @since AIKit 2.0.2
|
|
4190
|
-
*/
|
|
4266
|
+
/** @since AIKit 2.0.2 */
|
|
4191
4267
|
icon: string
|
|
4192
|
-
/**
|
|
4193
|
-
* 匹配类型
|
|
4194
|
-
* @since AIKit 2.0.2
|
|
4195
|
-
*/
|
|
4268
|
+
/** @since AIKit 2.0.2 */
|
|
4196
4269
|
matchType: number
|
|
4197
|
-
/**
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4270
|
+
/** @since AIKit 2.0.2 */
|
|
4271
|
+
actions: LightSceneAction_PglyaT[]
|
|
4272
|
+
}
|
|
4273
|
+
|
|
4274
|
+
/** 灯具自动适配场景相关Api */
|
|
4275
|
+
export interface ThingPlugin_doyzGD {
|
|
4276
|
+
/** 灯具自动适配场景 */
|
|
4277
|
+
lightAutoAdaptScene: (
|
|
4278
|
+
params: AutoAdaptParams_sovSHT,
|
|
4279
|
+
success: SuccessCb_HLtX43<LightSceneInfo_kCPwIX[]>,
|
|
4280
|
+
fail: FailureCb_VqopUT
|
|
4281
|
+
) => void
|
|
4202
4282
|
}
|
|
4203
4283
|
|
|
4204
|
-
|
|
4205
|
-
export interface SceneData {
|
|
4284
|
+
export interface SceneData_NF6lwz {
|
|
4206
4285
|
/**
|
|
4207
4286
|
* 产品id
|
|
4208
|
-
* @since AIKit
|
|
4287
|
+
* @since AIKit 1.9.0
|
|
4209
4288
|
*/
|
|
4210
4289
|
productId: string
|
|
4211
4290
|
/**
|
|
4212
4291
|
* 情景库数据
|
|
4213
|
-
* @since AIKit
|
|
4292
|
+
* @since AIKit 1.9.0
|
|
4214
4293
|
*/
|
|
4215
4294
|
sceneData: string
|
|
4216
4295
|
/**
|
|
4217
4296
|
* 情景图
|
|
4218
|
-
* @since AIKit
|
|
4297
|
+
* @since AIKit 1.9.0
|
|
4219
4298
|
*/
|
|
4220
4299
|
sceneCellBackground: string
|
|
4221
4300
|
/**
|
|
4222
4301
|
* 情景id
|
|
4223
|
-
* @since AIKit
|
|
4302
|
+
* @since AIKit 1.9.0
|
|
4224
4303
|
*/
|
|
4225
4304
|
sceneId: string
|
|
4226
4305
|
/**
|
|
4227
4306
|
* 情景dpCode
|
|
4228
|
-
* @since AIKit
|
|
4307
|
+
* @since AIKit 1.9.0
|
|
4229
4308
|
*/
|
|
4230
4309
|
dpCode: string
|
|
4231
4310
|
}
|
|
4232
4311
|
|
|
4233
|
-
|
|
4234
|
-
export interface SceneStyleInfo {
|
|
4312
|
+
export interface SceneStyleInfo_JuS8PR {
|
|
4235
4313
|
/**
|
|
4236
4314
|
* 风格名称
|
|
4237
|
-
* @since AIKit
|
|
4315
|
+
* @since AIKit 1.9.0
|
|
4238
4316
|
*/
|
|
4239
4317
|
name: string
|
|
4240
4318
|
/**
|
|
4241
4319
|
* 开灯比例百分比
|
|
4242
|
-
* @since AIKit
|
|
4320
|
+
* @since AIKit 1.9.0
|
|
4243
4321
|
*/
|
|
4244
4322
|
turnOnPercent?: number
|
|
4245
4323
|
/**
|
|
4246
4324
|
* 情景库数据列表,以此参数是否存在数据区分是情景库还是生成式风格
|
|
4247
|
-
* @since AIKit
|
|
4325
|
+
* @since AIKit 1.9.0
|
|
4248
4326
|
*/
|
|
4249
|
-
sceneDataList?:
|
|
4327
|
+
sceneDataList?: SceneData_NF6lwz[]
|
|
4250
4328
|
/**
|
|
4251
4329
|
* 生成风格名称key,唯一标识
|
|
4252
|
-
* @since AIKit
|
|
4330
|
+
* @since AIKit 1.9.0
|
|
4253
4331
|
*/
|
|
4254
4332
|
nameRosettaKey?: string
|
|
4255
4333
|
}
|
|
4256
4334
|
|
|
4257
|
-
|
|
4258
|
-
export interface PredictLightSceneRequestParams {
|
|
4335
|
+
export interface PredictLightSceneRequestParams_CWEvI6 {
|
|
4259
4336
|
/**
|
|
4260
4337
|
* 房间id
|
|
4261
|
-
* @since AIKit
|
|
4338
|
+
* @since AIKit 1.9.0
|
|
4262
4339
|
*/
|
|
4263
4340
|
roomId: number
|
|
4264
4341
|
/**
|
|
4265
4342
|
* 场景风格列表,开灯比例百分比
|
|
4266
|
-
* @since AIKit
|
|
4343
|
+
* @since AIKit 1.9.0
|
|
4267
4344
|
*/
|
|
4268
|
-
generateSceneStyles:
|
|
4345
|
+
generateSceneStyles: SceneStyleInfo_JuS8PR[]
|
|
4269
4346
|
/**
|
|
4270
4347
|
* 场景类型
|
|
4271
|
-
* @since AIKit
|
|
4348
|
+
* @since AIKit 1.9.0
|
|
4272
4349
|
*/
|
|
4273
4350
|
sceneType: number
|
|
4274
4351
|
}
|
|
4275
4352
|
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
/**
|
|
4279
|
-
* 动作执行器
|
|
4280
|
-
* @since AIKit 2.0.1
|
|
4281
|
-
*/
|
|
4353
|
+
export interface LightSceneAction_Dy3wCx {
|
|
4354
|
+
/** @since AIKit 1.9.0 */
|
|
4282
4355
|
actionExecutor: string
|
|
4283
|
-
/**
|
|
4284
|
-
* 设备或群组ID
|
|
4285
|
-
* @since AIKit 2.0.1
|
|
4286
|
-
*/
|
|
4356
|
+
/** @since AIKit 1.9.0 */
|
|
4287
4357
|
entityId: string
|
|
4288
|
-
/**
|
|
4289
|
-
* 设备或群组名称
|
|
4290
|
-
* @since AIKit 2.0.1
|
|
4291
|
-
*/
|
|
4358
|
+
/** @since AIKit 1.9.0 */
|
|
4292
4359
|
entityName: string
|
|
4293
|
-
/**
|
|
4294
|
-
* 执行器属性
|
|
4295
|
-
* @since AIKit 2.0.1
|
|
4296
|
-
*/
|
|
4360
|
+
/** @since AIKit 1.9.0 */
|
|
4297
4361
|
executorProperty: Record<string, any>
|
|
4298
|
-
/**
|
|
4299
|
-
* 扩展属性
|
|
4300
|
-
* @since AIKit 2.0.1
|
|
4301
|
-
*/
|
|
4362
|
+
/** @since AIKit 1.9.0 */
|
|
4302
4363
|
extraProperty: Record<string, any>
|
|
4303
4364
|
}
|
|
4304
4365
|
|
|
4305
|
-
|
|
4306
|
-
export interface LightSceneGenerateLightSceneInfo {
|
|
4366
|
+
export interface LightSceneInfo_lZtQ5x {
|
|
4307
4367
|
/**
|
|
4308
|
-
* 父区域ID
|
|
4309
|
-
* @since AIKit
|
|
4368
|
+
* 父区域 ID
|
|
4369
|
+
* @since AIKit 1.9.0
|
|
4310
4370
|
*/
|
|
4311
4371
|
parentRegionId: string
|
|
4312
4372
|
/**
|
|
4313
4373
|
* 场景类型
|
|
4314
|
-
* @since AIKit
|
|
4374
|
+
* @since AIKit 1.9.0
|
|
4315
4375
|
*/
|
|
4316
4376
|
sceneType: number
|
|
4317
4377
|
/**
|
|
4318
4378
|
* 场景名称
|
|
4319
|
-
* @since AIKit
|
|
4379
|
+
* @since AIKit 1.9.0
|
|
4320
4380
|
*/
|
|
4321
4381
|
name: string
|
|
4322
4382
|
/**
|
|
4323
|
-
* 场景图标
|
|
4324
|
-
* @since AIKit
|
|
4383
|
+
* 场景图标 URL
|
|
4384
|
+
* @since AIKit 1.9.0
|
|
4325
4385
|
*/
|
|
4326
4386
|
icon: string
|
|
4327
4387
|
/**
|
|
4328
4388
|
* 匹配类型
|
|
4329
|
-
* @since AIKit
|
|
4389
|
+
* @since AIKit 1.9.0
|
|
4330
4390
|
*/
|
|
4331
4391
|
matchType: number
|
|
4332
4392
|
/**
|
|
4333
4393
|
* 场景动作列表
|
|
4334
|
-
* @since AIKit
|
|
4394
|
+
* @since AIKit 1.9.0
|
|
4335
4395
|
*/
|
|
4336
|
-
actions:
|
|
4396
|
+
actions: LightSceneAction_Dy3wCx[]
|
|
4337
4397
|
}
|
|
4338
4398
|
|
|
4339
|
-
/**
|
|
4340
|
-
export interface
|
|
4399
|
+
/** 创建灯光场景相关Api */
|
|
4400
|
+
export interface ThingPlugin_qX1D41 {
|
|
4401
|
+
/** 预测灯光场景 */
|
|
4402
|
+
predictLightScenes: (
|
|
4403
|
+
params: PredictLightSceneRequestParams_CWEvI6,
|
|
4404
|
+
success: SuccessCb_ljBHsO<LightSceneInfo_lZtQ5x[]>,
|
|
4405
|
+
fail: FailureCb_VqopUT
|
|
4406
|
+
) => void
|
|
4407
|
+
}
|
|
4408
|
+
|
|
4409
|
+
export interface MusicModel_K30D1u {
|
|
4341
4410
|
/**
|
|
4342
4411
|
* 音乐标题
|
|
4343
4412
|
* @since AIKit 1.1.0
|
|
@@ -4350,17 +4419,15 @@ declare namespace ty.ai {
|
|
|
4350
4419
|
musicUrl: string
|
|
4351
4420
|
}
|
|
4352
4421
|
|
|
4353
|
-
|
|
4354
|
-
export interface MusicModelList {
|
|
4422
|
+
export interface MusicModelList_ooYDjK {
|
|
4355
4423
|
/**
|
|
4356
4424
|
* 音乐列表
|
|
4357
4425
|
* @since AIKit 1.1.0
|
|
4358
4426
|
*/
|
|
4359
|
-
musicList?:
|
|
4427
|
+
musicList?: MusicModel_K30D1u[]
|
|
4360
4428
|
}
|
|
4361
4429
|
|
|
4362
|
-
|
|
4363
|
-
export interface MusicParams {
|
|
4430
|
+
export interface MusicParams_Q1kTQ1 {
|
|
4364
4431
|
/**
|
|
4365
4432
|
* 音乐下载URL地址
|
|
4366
4433
|
* @since AIKit 1.1.0
|
|
@@ -4373,8 +4440,7 @@ declare namespace ty.ai {
|
|
|
4373
4440
|
musicPath: string
|
|
4374
4441
|
}
|
|
4375
4442
|
|
|
4376
|
-
|
|
4377
|
-
export interface MusicResponse {
|
|
4443
|
+
export interface MusicResponse_wzERlU {
|
|
4378
4444
|
/**
|
|
4379
4445
|
* 音乐本地地址
|
|
4380
4446
|
* @since AIKit 1.1.0
|
|
@@ -4382,201 +4448,167 @@ declare namespace ty.ai {
|
|
|
4382
4448
|
musicPath: string
|
|
4383
4449
|
}
|
|
4384
4450
|
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
/**
|
|
4388
|
-
* 480
|
|
4389
|
-
* @since AIKit 1.1.0
|
|
4390
|
-
*/
|
|
4451
|
+
export enum VideoConfig_rKanwz {
|
|
4452
|
+
/** 480 */
|
|
4391
4453
|
Level_480 = 1,
|
|
4392
4454
|
|
|
4393
|
-
/**
|
|
4394
|
-
* 540
|
|
4395
|
-
* @since AIKit 1.1.0
|
|
4396
|
-
*/
|
|
4455
|
+
/** 540 */
|
|
4397
4456
|
Level_540 = 2,
|
|
4398
4457
|
|
|
4399
|
-
/**
|
|
4400
|
-
* 720
|
|
4401
|
-
* @since AIKit 1.1.0
|
|
4402
|
-
*/
|
|
4458
|
+
/** 720 */
|
|
4403
4459
|
Level_720 = 3,
|
|
4404
4460
|
|
|
4405
|
-
/**
|
|
4406
|
-
* 1080(默认)
|
|
4407
|
-
* @since AIKit 1.1.0
|
|
4408
|
-
*/
|
|
4461
|
+
/** 1080(默认) */
|
|
4409
4462
|
Level_1080 = 4,
|
|
4410
4463
|
}
|
|
4411
4464
|
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
/**
|
|
4415
|
-
* 宠物
|
|
4416
|
-
* @since AIKit 1.1.0
|
|
4417
|
-
*/
|
|
4465
|
+
export enum DetectType_82p4U1 {
|
|
4466
|
+
/** 宠物 */
|
|
4418
4467
|
VideoDetectMainBodyTypePet = 1,
|
|
4419
4468
|
|
|
4420
|
-
/**
|
|
4421
|
-
* 人物
|
|
4422
|
-
* @since AIKit 1.1.0
|
|
4423
|
-
*/
|
|
4469
|
+
/** 人物 */
|
|
4424
4470
|
VideoDetectMainBodyTypePerson = 2,
|
|
4425
4471
|
}
|
|
4426
4472
|
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
/**
|
|
4430
|
-
* 没有效果
|
|
4431
|
-
* @since AIKit 1.1.0
|
|
4432
|
-
*/
|
|
4473
|
+
export enum ImageEditType_nocoE4 {
|
|
4474
|
+
/** 没有效果 */
|
|
4433
4475
|
ImageEditTypeNoEffect = 1,
|
|
4434
4476
|
|
|
4435
|
-
/**
|
|
4436
|
-
* 主体突出
|
|
4437
|
-
* @since AIKit 1.1.0
|
|
4438
|
-
*/
|
|
4477
|
+
/** 主体突出 */
|
|
4439
4478
|
ImageEditTypeHighlight = 2,
|
|
4440
4479
|
|
|
4441
|
-
/**
|
|
4442
|
-
* 隐私保护
|
|
4443
|
-
* @since AIKit 1.2.0
|
|
4444
|
-
*/
|
|
4480
|
+
/** 隐私保护 */
|
|
4445
4481
|
ImageEditTypeMosaic = 3,
|
|
4446
4482
|
}
|
|
4447
4483
|
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
/**
|
|
4451
|
-
* 不处理
|
|
4452
|
-
* @since AIKit 1.1.0
|
|
4453
|
-
*/
|
|
4484
|
+
export enum AudioEditType_XwIdMW {
|
|
4485
|
+
/** 不处理 */
|
|
4454
4486
|
audioEditTypeNULL = 1,
|
|
4455
4487
|
|
|
4456
|
-
/**
|
|
4457
|
-
* 0.5 0.5 混音
|
|
4458
|
-
* @since AIKit 1.1.0
|
|
4459
|
-
*/
|
|
4488
|
+
/** 0.5 0.5 混音 */
|
|
4460
4489
|
audioEditTypeMix = 2,
|
|
4461
4490
|
|
|
4462
|
-
/**
|
|
4463
|
-
* 视频静音
|
|
4464
|
-
* @since AIKit 1.1.0
|
|
4465
|
-
*/
|
|
4491
|
+
/** 视频静音 */
|
|
4466
4492
|
audioEditTypeMute = 3,
|
|
4467
4493
|
}
|
|
4468
4494
|
|
|
4469
|
-
|
|
4470
|
-
export interface DetectVideoParams {
|
|
4495
|
+
export interface DetectVideoParams_6qoHSj {
|
|
4471
4496
|
/**
|
|
4472
4497
|
* 视频输入路径
|
|
4473
4498
|
* @since AIKit 1.1.0
|
|
4499
|
+
* @since AIKit 1.2.0
|
|
4474
4500
|
*/
|
|
4475
4501
|
inputVideoPath: string
|
|
4476
4502
|
/**
|
|
4477
4503
|
* 视频输出路径
|
|
4478
4504
|
* @since AIKit 1.1.0
|
|
4505
|
+
* @since AIKit 1.2.0
|
|
4479
4506
|
*/
|
|
4480
4507
|
outputVideoPath: string
|
|
4481
4508
|
/**
|
|
4482
4509
|
* 视频配置信息
|
|
4483
4510
|
* -- 默认1080
|
|
4484
4511
|
* @since AIKit 1.1.0
|
|
4512
|
+
* @since AIKit 1.2.0
|
|
4485
4513
|
* @defaultValue VideoConfig.Level_1080
|
|
4486
4514
|
*/
|
|
4487
|
-
videoConfig?:
|
|
4515
|
+
videoConfig?: VideoConfig_rKanwz
|
|
4488
4516
|
/**
|
|
4489
4517
|
* 识别类型
|
|
4490
4518
|
* @since AIKit 1.1.0
|
|
4519
|
+
* @since AIKit 1.2.0
|
|
4491
4520
|
* @defaultValue DetectType.VideoDetectMainBodyTypePet
|
|
4492
4521
|
*/
|
|
4493
|
-
detectType?:
|
|
4522
|
+
detectType?: DetectType_82p4U1
|
|
4494
4523
|
/**
|
|
4495
4524
|
* 图像处理类型
|
|
4496
4525
|
* @since AIKit 1.1.0
|
|
4526
|
+
* @since AIKit 1.2.0
|
|
4497
4527
|
* @defaultValue ImageEditType.ImageEditTypeNoEffect
|
|
4498
4528
|
*/
|
|
4499
|
-
imageEditType?:
|
|
4529
|
+
imageEditType?: ImageEditType_nocoE4
|
|
4500
4530
|
/**
|
|
4501
4531
|
* 配乐本地地址
|
|
4502
4532
|
* @since AIKit 1.1.0
|
|
4533
|
+
* @since AIKit 1.2.0
|
|
4503
4534
|
*/
|
|
4504
4535
|
musicPath: string
|
|
4505
4536
|
/**
|
|
4506
4537
|
* 音频处理类型
|
|
4507
4538
|
* @since AIKit 1.1.0
|
|
4539
|
+
* @since AIKit 1.2.0
|
|
4508
4540
|
* @defaultValue AudioEditType.audioEditTypeNULL
|
|
4509
4541
|
*/
|
|
4510
|
-
audioEditType?:
|
|
4542
|
+
audioEditType?: AudioEditType_XwIdMW
|
|
4511
4543
|
/**
|
|
4512
4544
|
* 原始音频音量
|
|
4513
4545
|
* @since AIKit 1.1.0
|
|
4546
|
+
* @since AIKit 1.2.0
|
|
4514
4547
|
* @defaultValue 0.5
|
|
4515
4548
|
*/
|
|
4516
4549
|
originAudioVolume?: number
|
|
4517
4550
|
/**
|
|
4518
4551
|
* 覆盖音频音量
|
|
4519
4552
|
* @since AIKit 1.1.0
|
|
4553
|
+
* @since AIKit 1.2.0
|
|
4520
4554
|
* @defaultValue 0.5
|
|
4521
4555
|
*/
|
|
4522
4556
|
overlayAudioVolume?: number
|
|
4523
4557
|
}
|
|
4524
4558
|
|
|
4525
|
-
|
|
4526
|
-
export interface DetectVideoResponse {
|
|
4559
|
+
export interface DetectVideoResponse_zvFqW2 {
|
|
4527
4560
|
/**
|
|
4528
4561
|
* 输出路径
|
|
4529
4562
|
* @since AIKit 1.1.0
|
|
4563
|
+
* @since AIKit 1.2.0
|
|
4530
4564
|
*/
|
|
4531
4565
|
path: string
|
|
4532
4566
|
}
|
|
4533
4567
|
|
|
4534
|
-
|
|
4535
|
-
export interface DetectImageParams {
|
|
4568
|
+
export interface DetectImageParams_wMJMFc {
|
|
4536
4569
|
/**
|
|
4537
4570
|
* 图片输入路径
|
|
4538
4571
|
* @since AIKit 1.1.0
|
|
4572
|
+
* @since AIKit 1.2.0
|
|
4539
4573
|
*/
|
|
4540
4574
|
inputPath: string
|
|
4541
4575
|
/**
|
|
4542
4576
|
* 图片输出路径
|
|
4543
4577
|
* @since AIKit 1.1.0
|
|
4578
|
+
* @since AIKit 1.2.0
|
|
4544
4579
|
*/
|
|
4545
4580
|
outputPath: string
|
|
4546
4581
|
/**
|
|
4547
4582
|
* 识别类型
|
|
4548
4583
|
* @since AIKit 1.1.0
|
|
4584
|
+
* @since AIKit 1.2.0
|
|
4549
4585
|
* @defaultValue DetectType.VideoDetectMainBodyTypePet
|
|
4550
4586
|
*/
|
|
4551
|
-
detectType?:
|
|
4587
|
+
detectType?: DetectType_82p4U1
|
|
4552
4588
|
/**
|
|
4553
4589
|
* 图像处理类型
|
|
4554
4590
|
* @since AIKit 1.1.0
|
|
4591
|
+
* @since AIKit 1.2.0
|
|
4555
4592
|
* @defaultValue ImageEditType.ImageEditTypeNoEffect
|
|
4556
4593
|
*/
|
|
4557
|
-
imageEditType?:
|
|
4594
|
+
imageEditType?: ImageEditType_nocoE4
|
|
4558
4595
|
}
|
|
4559
4596
|
|
|
4560
|
-
|
|
4561
|
-
export interface DetectImageResponse {
|
|
4597
|
+
export interface DetectImageResponse_4w2fy1 {
|
|
4562
4598
|
/**
|
|
4563
4599
|
* 输出路径
|
|
4564
4600
|
* @since AIKit 1.1.0
|
|
4601
|
+
* @since AIKit 1.2.0
|
|
4565
4602
|
*/
|
|
4566
4603
|
path: string
|
|
4567
4604
|
}
|
|
4568
4605
|
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
/**
|
|
4572
|
-
* 处理进度 1-100
|
|
4573
|
-
* @since AIKit 1.1.0
|
|
4574
|
-
*/
|
|
4606
|
+
export interface DetectProgressEvent_EymCmz {
|
|
4607
|
+
/** 处理进度 1-100 */
|
|
4575
4608
|
progress: number
|
|
4576
4609
|
}
|
|
4577
4610
|
|
|
4578
|
-
|
|
4579
|
-
export interface ClarityAndObjectParams {
|
|
4611
|
+
export interface ClarityAndObjectParams_T8ItOv {
|
|
4580
4612
|
/**
|
|
4581
4613
|
* 图片路径
|
|
4582
4614
|
* @since AIKit 1.6.0
|
|
@@ -4584,8 +4616,7 @@ declare namespace ty.ai {
|
|
|
4584
4616
|
inputImagePath: string
|
|
4585
4617
|
}
|
|
4586
4618
|
|
|
4587
|
-
|
|
4588
|
-
export interface ClarityAndObjectResult {
|
|
4619
|
+
export interface ClarityAndObjectResult_On4Wxk {
|
|
4589
4620
|
/**
|
|
4590
4621
|
* 清晰置信度 0-1
|
|
4591
4622
|
* @since AIKit 1.6.0
|
|
@@ -4603,8 +4634,74 @@ declare namespace ty.ai {
|
|
|
4603
4634
|
hasObject: boolean
|
|
4604
4635
|
}
|
|
4605
4636
|
|
|
4606
|
-
/**
|
|
4607
|
-
export interface
|
|
4637
|
+
/** 对象检测插件 */
|
|
4638
|
+
export interface ThingPlugin_UklKhD {
|
|
4639
|
+
/** 背景音乐列表查询 */
|
|
4640
|
+
backgroundMusicList: (
|
|
4641
|
+
success: SuccessCb_23Q8yZ<MusicModelList_ooYDjK>,
|
|
4642
|
+
fail: FailureCb_VqopUT
|
|
4643
|
+
) => void
|
|
4644
|
+
/** 背景音乐下载 */
|
|
4645
|
+
backgroundMusicDownload: (
|
|
4646
|
+
params: MusicParams_Q1kTQ1,
|
|
4647
|
+
success: SuccessCb_ar9av3<MusicResponse_wzERlU>,
|
|
4648
|
+
fail: FailureCb_VqopUT
|
|
4649
|
+
) => void
|
|
4650
|
+
/** 对象识别模型初始化 */
|
|
4651
|
+
objectDetectCreate: (
|
|
4652
|
+
success: SuccessCb_yabVNd<null>,
|
|
4653
|
+
fail: FailureCb_VqopUT
|
|
4654
|
+
) => void
|
|
4655
|
+
/** 对象识别模型销毁 */
|
|
4656
|
+
objectDetectDestroy: (
|
|
4657
|
+
success: SuccessCb_yabVNd<null>,
|
|
4658
|
+
fail: FailureCb_VqopUT
|
|
4659
|
+
) => void
|
|
4660
|
+
/** 视频对象识别处理 */
|
|
4661
|
+
objectDetectForVideo: (
|
|
4662
|
+
params: DetectVideoParams_6qoHSj,
|
|
4663
|
+
success: SuccessCb_v7xyMp<DetectVideoResponse_zvFqW2>,
|
|
4664
|
+
fail: FailureCb_VqopUT
|
|
4665
|
+
) => void
|
|
4666
|
+
/** 取消视频对象识别处理 */
|
|
4667
|
+
objectDetectForVideoCancel: (
|
|
4668
|
+
success: SuccessCb_yabVNd<null>,
|
|
4669
|
+
fail: FailureCb_VqopUT
|
|
4670
|
+
) => void
|
|
4671
|
+
/** 图片对象识别处理 */
|
|
4672
|
+
objectDetectForImage: (
|
|
4673
|
+
params: DetectImageParams_wMJMFc,
|
|
4674
|
+
success: SuccessCb_Hfs66O<DetectImageResponse_4w2fy1>,
|
|
4675
|
+
fail: FailureCb_VqopUT
|
|
4676
|
+
) => void
|
|
4677
|
+
/** 视频隐私保护识别处理 */
|
|
4678
|
+
privacyProtectDetectForVideo: (
|
|
4679
|
+
params: DetectVideoParams_6qoHSj,
|
|
4680
|
+
success: SuccessCb_v7xyMp<DetectVideoResponse_zvFqW2>,
|
|
4681
|
+
fail: FailureCb_VqopUT
|
|
4682
|
+
) => void
|
|
4683
|
+
/** 图片隐私保护识别处理 */
|
|
4684
|
+
privacyProtectDetectForImage: (
|
|
4685
|
+
params: DetectImageParams_wMJMFc,
|
|
4686
|
+
success: SuccessCb_Hfs66O<DetectImageResponse_4w2fy1>,
|
|
4687
|
+
fail: FailureCb_VqopUT
|
|
4688
|
+
) => void
|
|
4689
|
+
/** 取消图片对象识别处理 */
|
|
4690
|
+
objectDetectForImageCancel: (
|
|
4691
|
+
success: SuccessCb_yabVNd<null>,
|
|
4692
|
+
fail: FailureCb_VqopUT
|
|
4693
|
+
) => void
|
|
4694
|
+
/** 处理进度 */
|
|
4695
|
+
onVideoObjectDetectProgress: (body: DetectProgressEvent_EymCmz) => void
|
|
4696
|
+
/** 获取清晰度和主体信息 */
|
|
4697
|
+
getClarityAndObjectForImage: (
|
|
4698
|
+
params: ClarityAndObjectParams_T8ItOv,
|
|
4699
|
+
success: SuccessCb_d8S3wk<ClarityAndObjectResult_On4Wxk>,
|
|
4700
|
+
fail: FailureCb_VqopUT
|
|
4701
|
+
) => void
|
|
4702
|
+
}
|
|
4703
|
+
|
|
4704
|
+
export interface FPSModel_4gI3N5 {
|
|
4608
4705
|
/**
|
|
4609
4706
|
* 时间戳(13位)
|
|
4610
4707
|
* @since AIKit 1.8.0
|
|
@@ -4617,8 +4714,7 @@ declare namespace ty.ai {
|
|
|
4617
4714
|
fps: number
|
|
4618
4715
|
}
|
|
4619
4716
|
|
|
4620
|
-
|
|
4621
|
-
export interface MonitorFrequencyParams {
|
|
4717
|
+
export interface MonitorFrequencyParams_OA1RsF {
|
|
4622
4718
|
/**
|
|
4623
4719
|
* 监控频率,默认200ms
|
|
4624
4720
|
* @since AIKit 1.8.0
|
|
@@ -4627,20 +4723,19 @@ declare namespace ty.ai {
|
|
|
4627
4723
|
frequency?: number
|
|
4628
4724
|
}
|
|
4629
4725
|
|
|
4630
|
-
|
|
4631
|
-
export interface FPSSessionModelList {
|
|
4726
|
+
export interface FPSSessionModelList_r4guzf {
|
|
4632
4727
|
/**
|
|
4633
4728
|
* FPS时间变化列表
|
|
4634
4729
|
* @since AIKit 1.8.0
|
|
4635
4730
|
*/
|
|
4636
|
-
fpsList?:
|
|
4731
|
+
fpsList?: FPSModel_4gI3N5[]
|
|
4637
4732
|
/**
|
|
4638
4733
|
* 最低fps值
|
|
4639
4734
|
* @since AIKit 1.8.0
|
|
4640
4735
|
*/
|
|
4641
4736
|
lowestFps: number
|
|
4642
4737
|
/**
|
|
4643
|
-
* 最高
|
|
4738
|
+
* 最高ps值
|
|
4644
4739
|
* @since AIKit 1.8.0
|
|
4645
4740
|
*/
|
|
4646
4741
|
topFps: number
|
|
@@ -4651,8 +4746,7 @@ declare namespace ty.ai {
|
|
|
4651
4746
|
averageFps: number
|
|
4652
4747
|
}
|
|
4653
4748
|
|
|
4654
|
-
|
|
4655
|
-
export interface CPUModel {
|
|
4749
|
+
export interface CPUModel_pXDLoE {
|
|
4656
4750
|
/**
|
|
4657
4751
|
* 时间戳(13位)
|
|
4658
4752
|
* @since AIKit 1.8.0
|
|
@@ -4665,13 +4759,12 @@ declare namespace ty.ai {
|
|
|
4665
4759
|
cpu: number
|
|
4666
4760
|
}
|
|
4667
4761
|
|
|
4668
|
-
|
|
4669
|
-
export interface CPUSessionModelList {
|
|
4762
|
+
export interface CPUSessionModelList_0cUFo7 {
|
|
4670
4763
|
/**
|
|
4671
4764
|
* CPU时间变化列表
|
|
4672
4765
|
* @since AIKit 1.8.0
|
|
4673
4766
|
*/
|
|
4674
|
-
cpuList?:
|
|
4767
|
+
cpuList?: CPUModel_pXDLoE[]
|
|
4675
4768
|
/**
|
|
4676
4769
|
* 最低cpu值
|
|
4677
4770
|
* @since AIKit 1.8.0
|
|
@@ -4689,8 +4782,7 @@ declare namespace ty.ai {
|
|
|
4689
4782
|
incrementCPUUsage: number
|
|
4690
4783
|
}
|
|
4691
4784
|
|
|
4692
|
-
|
|
4693
|
-
export interface MemoryModel {
|
|
4785
|
+
export interface MemoryModel_TLE4WR {
|
|
4694
4786
|
/**
|
|
4695
4787
|
* 时间戳(13位)
|
|
4696
4788
|
* @since AIKit 1.8.0
|
|
@@ -4708,13 +4800,12 @@ declare namespace ty.ai {
|
|
|
4708
4800
|
deviceMemoryMB: number
|
|
4709
4801
|
}
|
|
4710
4802
|
|
|
4711
|
-
|
|
4712
|
-
export interface MemorySessionModelList {
|
|
4803
|
+
export interface MemorySessionModelList_HZUoWi {
|
|
4713
4804
|
/**
|
|
4714
4805
|
* 内存时间变化列表
|
|
4715
4806
|
* @since AIKit 1.8.0
|
|
4716
4807
|
*/
|
|
4717
|
-
memoryList?:
|
|
4808
|
+
memoryList?: MemoryModel_TLE4WR[]
|
|
4718
4809
|
/**
|
|
4719
4810
|
* 内存最低值
|
|
4720
4811
|
* @since AIKit 1.8.0
|
|
@@ -4737,8 +4828,7 @@ declare namespace ty.ai {
|
|
|
4737
4828
|
deviceMemoryMB: number
|
|
4738
4829
|
}
|
|
4739
4830
|
|
|
4740
|
-
|
|
4741
|
-
export interface GPUModel {
|
|
4831
|
+
export interface GPUModel_3BJU8C {
|
|
4742
4832
|
/**
|
|
4743
4833
|
* 时间戳(13位)
|
|
4744
4834
|
* @since AIKit 1.8.0
|
|
@@ -4751,13 +4841,12 @@ declare namespace ty.ai {
|
|
|
4751
4841
|
gpuUsage: number
|
|
4752
4842
|
}
|
|
4753
4843
|
|
|
4754
|
-
|
|
4755
|
-
export interface GPUSessionModelList {
|
|
4844
|
+
export interface GPUSessionModelList_Wrwd8l {
|
|
4756
4845
|
/**
|
|
4757
|
-
*
|
|
4846
|
+
* 内存时间变化列表
|
|
4758
4847
|
* @since AIKit 1.8.0
|
|
4759
4848
|
*/
|
|
4760
|
-
gpuList?:
|
|
4849
|
+
gpuList?: GPUModel_3BJU8C[]
|
|
4761
4850
|
/**
|
|
4762
4851
|
* GPU最低值
|
|
4763
4852
|
* @since AIKit 1.8.0
|
|
@@ -4775,23 +4864,91 @@ declare namespace ty.ai {
|
|
|
4775
4864
|
incrementGPU: number
|
|
4776
4865
|
}
|
|
4777
4866
|
|
|
4778
|
-
/**
|
|
4779
|
-
export
|
|
4780
|
-
/**
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4867
|
+
/** 性能监控 */
|
|
4868
|
+
export interface ThingPlugin_7t9w2S {
|
|
4869
|
+
/** 瞬时值:当前FPS查询 */
|
|
4870
|
+
OnAppAISnapshotWithFPS: (
|
|
4871
|
+
success: SuccessCb_AEuhKA<FPSModel_4gI3N5>,
|
|
4872
|
+
fail: FailureCb_VqopUT
|
|
4873
|
+
) => void
|
|
4874
|
+
/** 监控连续时间:FPS监控会话开始 */
|
|
4875
|
+
OnAppAISessionWithFPSStart: (
|
|
4876
|
+
params: MonitorFrequencyParams_OA1RsF,
|
|
4877
|
+
success: SuccessCb_yabVNd<null>,
|
|
4878
|
+
fail: FailureCb_VqopUT
|
|
4879
|
+
) => void
|
|
4880
|
+
/** 监控连续时间:FPS监控会话结束 */
|
|
4881
|
+
OnAppAISessionWithFPSEnd: (
|
|
4882
|
+
success: SuccessCb_Z5385K<FPSSessionModelList_r4guzf>,
|
|
4883
|
+
fail: FailureCb_VqopUT
|
|
4884
|
+
) => void
|
|
4885
|
+
/** 监控连续时间:FPS监控会话回调 */
|
|
4886
|
+
onAppAIWithFPSEvent: (body: FPSModel_4gI3N5) => void
|
|
4887
|
+
/** 瞬时值:当前CPU查询 */
|
|
4888
|
+
OnAppAISnapshotWithCPU: (
|
|
4889
|
+
success: SuccessCb_83ZAIW<CPUModel_pXDLoE>,
|
|
4890
|
+
fail: FailureCb_VqopUT
|
|
4891
|
+
) => void
|
|
4892
|
+
/** 监控连续时间:CPU监控会话开始 */
|
|
4893
|
+
OnAppAISessionWithCPUStart: (
|
|
4894
|
+
params: MonitorFrequencyParams_OA1RsF,
|
|
4895
|
+
success: SuccessCb_yabVNd<null>,
|
|
4896
|
+
fail: FailureCb_VqopUT
|
|
4897
|
+
) => void
|
|
4898
|
+
/** 监控连续时间:CPU监控会话结束 */
|
|
4899
|
+
OnAppAISessionWithCPUEnd: (
|
|
4900
|
+
success: SuccessCb_H6vdSZ<CPUSessionModelList_0cUFo7>,
|
|
4901
|
+
fail: FailureCb_VqopUT
|
|
4902
|
+
) => void
|
|
4903
|
+
/** 监控连续时间:CPU监控会话回调 */
|
|
4904
|
+
onAppAIWithCPUEvent: (body: CPUModel_pXDLoE) => void
|
|
4905
|
+
/** 瞬时值:当前内存查询 */
|
|
4906
|
+
OnAppAISnapshotWithMemory: (
|
|
4907
|
+
success: SuccessCb_H3xBjc<MemoryModel_TLE4WR>,
|
|
4908
|
+
fail: FailureCb_VqopUT
|
|
4909
|
+
) => void
|
|
4910
|
+
/** 监控连续时间:内存监控会话开始 */
|
|
4911
|
+
OnAppAISessionWithMemoryStart: (
|
|
4912
|
+
params: MonitorFrequencyParams_OA1RsF,
|
|
4913
|
+
success: SuccessCb_yabVNd<null>,
|
|
4914
|
+
fail: FailureCb_VqopUT
|
|
4915
|
+
) => void
|
|
4916
|
+
/** 监控连续时间:内存监控会话结束 */
|
|
4917
|
+
OnAppAISessionWithMemoryEnd: (
|
|
4918
|
+
success: SuccessCb_QtfOaU<MemorySessionModelList_HZUoWi>,
|
|
4919
|
+
fail: FailureCb_VqopUT
|
|
4920
|
+
) => void
|
|
4921
|
+
/** 监控连续时间:内存监控会话回调 */
|
|
4922
|
+
onAppAIWithMemoryEvent: (body: MemoryModel_TLE4WR) => void
|
|
4923
|
+
/** 瞬时值:当前GPU查询 */
|
|
4924
|
+
OnAppAISnapshotWithGPU: (
|
|
4925
|
+
success: SuccessCb_UlVcMG<GPUModel_3BJU8C>,
|
|
4926
|
+
fail: FailureCb_VqopUT
|
|
4927
|
+
) => void
|
|
4928
|
+
/** 监控连续时间:GPU监控会话开始 */
|
|
4929
|
+
OnAppAISessionWithGPUStart: (
|
|
4930
|
+
params: MonitorFrequencyParams_OA1RsF,
|
|
4931
|
+
success: SuccessCb_yabVNd<null>,
|
|
4932
|
+
fail: FailureCb_VqopUT
|
|
4933
|
+
) => void
|
|
4934
|
+
/** 监控连续时间:GPU监控会话结束 */
|
|
4935
|
+
OnAppAISessionWithGPUEnd: (
|
|
4936
|
+
success: SuccessCb_jdMxYY<GPUSessionModelList_Wrwd8l>,
|
|
4937
|
+
fail: FailureCb_VqopUT
|
|
4938
|
+
) => void
|
|
4939
|
+
/** 监控连续时间:GPU监控会话回调 */
|
|
4940
|
+
onAppAIWithGPUEvent: (body: GPUModel_3BJU8C) => void
|
|
4941
|
+
}
|
|
4942
|
+
|
|
4943
|
+
export enum LabelAllowEnum_EgqpRQ {
|
|
4944
|
+
/** 猫 */
|
|
4784
4945
|
labelTypeCat = 1,
|
|
4785
4946
|
|
|
4786
|
-
/**
|
|
4787
|
-
* 狗
|
|
4788
|
-
* @since AIKit 1.7.0
|
|
4789
|
-
*/
|
|
4947
|
+
/** 狗 */
|
|
4790
4948
|
labelTypeDog = 2,
|
|
4791
4949
|
}
|
|
4792
4950
|
|
|
4793
|
-
|
|
4794
|
-
export interface DetectParams {
|
|
4951
|
+
export interface DetectParams_CzcOQq {
|
|
4795
4952
|
/**
|
|
4796
4953
|
* 图片输入路径
|
|
4797
4954
|
* @since AIKit 1.3.0
|
|
@@ -4802,7 +4959,7 @@ declare namespace ty.ai {
|
|
|
4802
4959
|
* @since AIKit 1.3.0
|
|
4803
4960
|
* @defaultValue LabelAllowEnum.labelTypeCat
|
|
4804
4961
|
*/
|
|
4805
|
-
labelAllow?:
|
|
4962
|
+
labelAllow?: LabelAllowEnum_EgqpRQ
|
|
4806
4963
|
/**
|
|
4807
4964
|
* 识别对象大小占整个图片的比值,默认值30,含义:小于30%过滤
|
|
4808
4965
|
* @since AIKit 1.3.0
|
|
@@ -4830,8 +4987,7 @@ declare namespace ty.ai {
|
|
|
4830
4987
|
minimumPictureBrightness: number
|
|
4831
4988
|
}
|
|
4832
4989
|
|
|
4833
|
-
|
|
4834
|
-
export interface DetectResult {
|
|
4990
|
+
export interface DetectResult_dBCfLm {
|
|
4835
4991
|
/**
|
|
4836
4992
|
* 图片地址
|
|
4837
4993
|
* @since AIKit 1.3.0
|
|
@@ -4849,12 +5005,40 @@ declare namespace ty.ai {
|
|
|
4849
5005
|
lowQualityReason: number
|
|
4850
5006
|
}
|
|
4851
5007
|
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
5008
|
+
export interface DetectProgressEvent_IfCnJQ {
|
|
5009
|
+
/** 处理进度 1-100 */
|
|
5010
|
+
progress: number
|
|
5011
|
+
}
|
|
5012
|
+
|
|
5013
|
+
/** 宠物图像质量检测插件 */
|
|
5014
|
+
export interface ThingPlugin_MDxxyQ {
|
|
5015
|
+
/** 宠物图像质量检测初始化 */
|
|
5016
|
+
petsDetectCreate: (
|
|
5017
|
+
success: SuccessCb_yabVNd<null>,
|
|
5018
|
+
fail: FailureCb_VqopUT
|
|
5019
|
+
) => void
|
|
5020
|
+
/** 宠物图像质量检测销毁 */
|
|
5021
|
+
petsDetectDestory: (
|
|
5022
|
+
success: SuccessCb_yabVNd<null>,
|
|
5023
|
+
fail: FailureCb_VqopUT
|
|
5024
|
+
) => void
|
|
5025
|
+
/** 宠物图像质量检测 */
|
|
5026
|
+
petsPictureQualityDetectForImage: (
|
|
5027
|
+
params: DetectParams_CzcOQq,
|
|
5028
|
+
success: SuccessCb_4K7QaG<DetectResult_dBCfLm>,
|
|
5029
|
+
fail: FailureCb_VqopUT
|
|
5030
|
+
) => void
|
|
5031
|
+
/** 是否支持宠物狗脸检测 */
|
|
5032
|
+
supportPetDogPictureQuality: (
|
|
5033
|
+
success: SuccessCb_yabVNd<null>,
|
|
5034
|
+
fail: FailureCb_VqopUT
|
|
5035
|
+
) => void
|
|
5036
|
+
/** 处理进度 */
|
|
5037
|
+
onPetsDetectProgress: (body: DetectProgressEvent_IfCnJQ) => void
|
|
5038
|
+
}
|
|
5039
|
+
|
|
5040
|
+
export interface GenerateTranslateTaskParams_USoi8q {
|
|
5041
|
+
/** 翻译任务id */
|
|
4858
5042
|
contextId?: string
|
|
4859
5043
|
/**
|
|
4860
5044
|
* 设备id
|
|
@@ -4883,12 +5067,8 @@ declare namespace ty.ai {
|
|
|
4883
5067
|
agentId: string
|
|
4884
5068
|
}
|
|
4885
5069
|
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
/**
|
|
4889
|
-
* 翻译任务id
|
|
4890
|
-
* @since AIKit 0.0.1
|
|
4891
|
-
*/
|
|
5070
|
+
export interface StartSpeakParams_r7RWuu {
|
|
5071
|
+
/** 翻译任务id */
|
|
4892
5072
|
contextId: string
|
|
4893
5073
|
/**
|
|
4894
5074
|
* 通道: 0近端, 1远端
|
|
@@ -4897,35 +5077,22 @@ declare namespace ty.ai {
|
|
|
4897
5077
|
channel: number
|
|
4898
5078
|
}
|
|
4899
5079
|
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
/**
|
|
4903
|
-
* 翻译任务id
|
|
4904
|
-
* @since AIKit 0.0.1
|
|
4905
|
-
*/
|
|
5080
|
+
export interface StopSpeakParams_bYHiOQ {
|
|
5081
|
+
/** 翻译任务id */
|
|
4906
5082
|
contextId: string
|
|
4907
5083
|
}
|
|
4908
5084
|
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
/**
|
|
4912
|
-
* 翻译任务id
|
|
4913
|
-
* @since AIKit 0.0.1
|
|
4914
|
-
*/
|
|
5085
|
+
export interface DisposeParams_ZgRm0w {
|
|
5086
|
+
/** 翻译任务id */
|
|
4915
5087
|
contextId: string
|
|
4916
5088
|
}
|
|
4917
5089
|
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
/**
|
|
4921
|
-
* 翻译任务id
|
|
4922
|
-
* @since AIKit 0.0.1
|
|
4923
|
-
*/
|
|
5090
|
+
export interface TranslateEvent_8JjARc {
|
|
5091
|
+
/** 翻译任务id */
|
|
4924
5092
|
contextId: string
|
|
4925
5093
|
}
|
|
4926
5094
|
|
|
4927
|
-
|
|
4928
|
-
export interface GetTranslateRecordsParams {
|
|
5095
|
+
export interface GetTranslateRecordsParams_3TqswQ {
|
|
4929
5096
|
/**
|
|
4930
5097
|
* 设备id, 不传会查出所有设备
|
|
4931
5098
|
* @since AIKit 0.0.1
|
|
@@ -4943,8 +5110,7 @@ declare namespace ty.ai {
|
|
|
4943
5110
|
pageSize?: number
|
|
4944
5111
|
}
|
|
4945
5112
|
|
|
4946
|
-
|
|
4947
|
-
export interface TranslateRecord {
|
|
5113
|
+
export interface TranslateRecord_EPAtG5 {
|
|
4948
5114
|
/**
|
|
4949
5115
|
* 翻译记录id
|
|
4950
5116
|
* @since AIKit 0.0.1
|
|
@@ -5017,17 +5183,15 @@ declare namespace ty.ai {
|
|
|
5017
5183
|
summaryStatus: number
|
|
5018
5184
|
}
|
|
5019
5185
|
|
|
5020
|
-
|
|
5021
|
-
export interface GetTranslateRecordsResponse {
|
|
5186
|
+
export interface GetTranslateRecordsResponse_L3qNfC {
|
|
5022
5187
|
/**
|
|
5023
5188
|
* 列表
|
|
5024
5189
|
* @since AIKit 0.0.1
|
|
5025
5190
|
*/
|
|
5026
|
-
list?:
|
|
5191
|
+
list?: TranslateRecord_EPAtG5[]
|
|
5027
5192
|
}
|
|
5028
5193
|
|
|
5029
|
-
|
|
5030
|
-
export interface GetTranslateRecordParams {
|
|
5194
|
+
export interface GetTranslateRecordParams_pJw3ln {
|
|
5031
5195
|
/**
|
|
5032
5196
|
* 翻译记录id
|
|
5033
5197
|
* @since AIKit 0.0.1
|
|
@@ -5035,8 +5199,7 @@ declare namespace ty.ai {
|
|
|
5035
5199
|
translateId: number
|
|
5036
5200
|
}
|
|
5037
5201
|
|
|
5038
|
-
|
|
5039
|
-
export interface UpdateTranslateRecordParams {
|
|
5202
|
+
export interface UpdateTranslateRecordParams_QvqzJG {
|
|
5040
5203
|
/**
|
|
5041
5204
|
* 翻译记录id
|
|
5042
5205
|
* @since AIKit 0.0.1
|
|
@@ -5064,8 +5227,7 @@ declare namespace ty.ai {
|
|
|
5064
5227
|
remove?: string
|
|
5065
5228
|
}
|
|
5066
5229
|
|
|
5067
|
-
|
|
5068
|
-
export interface RemoveTranslateRecordParams {
|
|
5230
|
+
export interface RemoveTranslateRecordParams_eZF9ii {
|
|
5069
5231
|
/**
|
|
5070
5232
|
* 翻译记录id
|
|
5071
5233
|
* @since AIKit 0.0.1
|
|
@@ -5073,8 +5235,7 @@ declare namespace ty.ai {
|
|
|
5073
5235
|
translateId: number
|
|
5074
5236
|
}
|
|
5075
5237
|
|
|
5076
|
-
|
|
5077
|
-
export interface GetTranslateRealTimeResultParams {
|
|
5238
|
+
export interface GetTranslateRealTimeResultParams_p1cNa7 {
|
|
5078
5239
|
/**
|
|
5079
5240
|
* 翻译记录id
|
|
5080
5241
|
* @since AIKit 0.0.1
|
|
@@ -5082,15 +5243,14 @@ declare namespace ty.ai {
|
|
|
5082
5243
|
translateId: string
|
|
5083
5244
|
}
|
|
5084
5245
|
|
|
5085
|
-
|
|
5086
|
-
export interface TranslateRealTimeResult {
|
|
5246
|
+
export interface TranslateRealTimeResult_EQjFDA {
|
|
5087
5247
|
/**
|
|
5088
|
-
*
|
|
5248
|
+
* asrId
|
|
5089
5249
|
* @since AIKit 0.0.1
|
|
5090
5250
|
*/
|
|
5091
5251
|
asrId: number
|
|
5092
5252
|
/**
|
|
5093
|
-
* 翻译记录
|
|
5253
|
+
* 翻译记录id
|
|
5094
5254
|
* @since AIKit 0.0.1
|
|
5095
5255
|
*/
|
|
5096
5256
|
translateId: number
|
|
@@ -5100,7 +5260,7 @@ declare namespace ty.ai {
|
|
|
5100
5260
|
*/
|
|
5101
5261
|
requestId: string
|
|
5102
5262
|
/**
|
|
5103
|
-
* 翻译
|
|
5263
|
+
* 翻译ai识别唯一标识id
|
|
5104
5264
|
* @since AIKit 0.0.1
|
|
5105
5265
|
*/
|
|
5106
5266
|
recordId: string
|
|
@@ -5131,17 +5291,15 @@ declare namespace ty.ai {
|
|
|
5131
5291
|
channel: number
|
|
5132
5292
|
}
|
|
5133
5293
|
|
|
5134
|
-
|
|
5135
|
-
export interface GetTranslateRealTimeResultResponse {
|
|
5294
|
+
export interface GetTranslateRealTimeResultResponse_g9SR0S {
|
|
5136
5295
|
/**
|
|
5137
5296
|
* 实时转写数据列表
|
|
5138
5297
|
* @since AIKit 0.0.1
|
|
5139
5298
|
*/
|
|
5140
|
-
list?:
|
|
5299
|
+
list?: TranslateRealTimeResult_EQjFDA[]
|
|
5141
5300
|
}
|
|
5142
5301
|
|
|
5143
|
-
|
|
5144
|
-
export interface ProcessTranslateSummaryParams {
|
|
5302
|
+
export interface ProcessTranslateSummaryParams_S3guZk {
|
|
5145
5303
|
/**
|
|
5146
5304
|
* 翻译记录id
|
|
5147
5305
|
* @since AIKit 0.0.1
|
|
@@ -5159,8 +5317,7 @@ declare namespace ty.ai {
|
|
|
5159
5317
|
language: string
|
|
5160
5318
|
}
|
|
5161
5319
|
|
|
5162
|
-
|
|
5163
|
-
export interface GetTranslateSummaryProcessStatusParams {
|
|
5320
|
+
export interface GetTranslateSummaryProcessStatusParams_Ni4TkZ {
|
|
5164
5321
|
/**
|
|
5165
5322
|
* 设备id
|
|
5166
5323
|
* @since AIKit 0.0.1
|
|
@@ -5173,8 +5330,7 @@ declare namespace ty.ai {
|
|
|
5173
5330
|
translateIds: string[]
|
|
5174
5331
|
}
|
|
5175
5332
|
|
|
5176
|
-
|
|
5177
|
-
export interface GetTranslateSummaryProcessStatusResponse {
|
|
5333
|
+
export interface GetTranslateSummaryProcessStatusResponse_LbjipR {
|
|
5178
5334
|
/**
|
|
5179
5335
|
* 转写成功的文件id列表
|
|
5180
5336
|
* @since AIKit 0.0.1
|
|
@@ -5187,8 +5343,7 @@ declare namespace ty.ai {
|
|
|
5187
5343
|
fail: string[]
|
|
5188
5344
|
}
|
|
5189
5345
|
|
|
5190
|
-
|
|
5191
|
-
export interface GetTranslateSummaryParams {
|
|
5346
|
+
export interface GetTranslateSummaryParams_JWTzkC {
|
|
5192
5347
|
/**
|
|
5193
5348
|
* 翻译记录id
|
|
5194
5349
|
* @since AIKit 0.0.1
|
|
@@ -5196,8 +5351,7 @@ declare namespace ty.ai {
|
|
|
5196
5351
|
translateId: number
|
|
5197
5352
|
}
|
|
5198
5353
|
|
|
5199
|
-
|
|
5200
|
-
export interface GetTranslateSummaryResponse {
|
|
5354
|
+
export interface GetTranslateSummaryResponse_c94Kac {
|
|
5201
5355
|
/**
|
|
5202
5356
|
* 总结文案
|
|
5203
5357
|
* @since AIKit 0.0.1
|
|
@@ -5205,76 +5359,135 @@ declare namespace ty.ai {
|
|
|
5205
5359
|
text: string
|
|
5206
5360
|
}
|
|
5207
5361
|
|
|
5208
|
-
/**
|
|
5209
|
-
export interface
|
|
5210
|
-
/**
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5362
|
+
/** ai翻译API */
|
|
5363
|
+
export interface ThingPlugin_FjoKpX {
|
|
5364
|
+
/** 创建内部 Translate 上下文 */
|
|
5365
|
+
generateTranslateTask: (
|
|
5366
|
+
params: GenerateTranslateTaskParams_USoi8q,
|
|
5367
|
+
success: SuccessCb_yabVNd<null>,
|
|
5368
|
+
fail: FailureCb_VqopUT
|
|
5369
|
+
) => void
|
|
5370
|
+
/** 开始说话 */
|
|
5371
|
+
startSpeak: (
|
|
5372
|
+
params: StartSpeakParams_r7RWuu,
|
|
5373
|
+
success: SuccessCb_yabVNd<null>,
|
|
5374
|
+
fail: FailureCb_VqopUT
|
|
5375
|
+
) => void
|
|
5376
|
+
/** 停止说话 */
|
|
5377
|
+
stopSpeak: (
|
|
5378
|
+
params: StopSpeakParams_bYHiOQ,
|
|
5379
|
+
success: SuccessCb_yabVNd<null>,
|
|
5380
|
+
fail: FailureCb_VqopUT
|
|
5381
|
+
) => void
|
|
5382
|
+
/** 释放翻译任务 */
|
|
5383
|
+
dispose: (
|
|
5384
|
+
params: DisposeParams_ZgRm0w,
|
|
5385
|
+
success: SuccessCb_yabVNd<null>,
|
|
5386
|
+
fail: FailureCb_VqopUT
|
|
5387
|
+
) => void
|
|
5388
|
+
/** 监听翻译异常事件 */
|
|
5389
|
+
onTranslateError: (
|
|
5390
|
+
event: TranslateEvent_8JjARc,
|
|
5391
|
+
success: SuccessCb_yabVNd<null>,
|
|
5392
|
+
fail: FailureCb_VqopUT
|
|
5393
|
+
) => void
|
|
5394
|
+
/** 取消监听翻译异常事件 */
|
|
5395
|
+
offTranslateError: (
|
|
5396
|
+
event: TranslateEvent_8JjARc,
|
|
5397
|
+
success: SuccessCb_yabVNd<null>,
|
|
5398
|
+
fail: FailureCb_VqopUT
|
|
5399
|
+
) => void
|
|
5400
|
+
/** 监听翻译实时asr状态变更事件 */
|
|
5401
|
+
onTranslateRealTimeStatusUpdate: (
|
|
5402
|
+
event: TranslateEvent_8JjARc,
|
|
5403
|
+
success: SuccessCb_yabVNd<null>,
|
|
5404
|
+
fail: FailureCb_VqopUT
|
|
5405
|
+
) => void
|
|
5406
|
+
/** 取消监听翻译实时asr状态变更事件 */
|
|
5407
|
+
offTranslateRealTimeStatusUpdate: (
|
|
5408
|
+
event: TranslateEvent_8JjARc,
|
|
5409
|
+
success: SuccessCb_yabVNd<null>,
|
|
5410
|
+
fail: FailureCb_VqopUT
|
|
5411
|
+
) => void
|
|
5412
|
+
/** 获取ai翻译列表 */
|
|
5413
|
+
getTranslateRecords: (
|
|
5414
|
+
params: GetTranslateRecordsParams_3TqswQ,
|
|
5415
|
+
success: SuccessCb_j7kt1l<GetTranslateRecordsResponse_L3qNfC>,
|
|
5416
|
+
fail: FailureCb_VqopUT
|
|
5417
|
+
) => void
|
|
5418
|
+
/** 获取翻译详情 */
|
|
5419
|
+
getTranslateRecord: (
|
|
5420
|
+
params: GetTranslateRecordParams_pJw3ln,
|
|
5421
|
+
success: SuccessCb_9hGPh7<TranslateRecord_EPAtG5>,
|
|
5422
|
+
fail: FailureCb_VqopUT
|
|
5423
|
+
) => void
|
|
5424
|
+
/** 更新翻译记录 */
|
|
5425
|
+
updateTranslateRecord: (
|
|
5426
|
+
params: UpdateTranslateRecordParams_QvqzJG,
|
|
5427
|
+
success: SuccessCb_yabVNd<null>,
|
|
5428
|
+
fail: FailureCb_VqopUT
|
|
5429
|
+
) => void
|
|
5430
|
+
/** 删除翻译记录 */
|
|
5431
|
+
removeTranslateRecord: (
|
|
5432
|
+
params: RemoveTranslateRecordParams_eZF9ii,
|
|
5433
|
+
success: SuccessCb_yabVNd<null>,
|
|
5434
|
+
fail: FailureCb_VqopUT
|
|
5435
|
+
) => void
|
|
5436
|
+
/** 获取翻译实时数据 */
|
|
5437
|
+
getTranslateRealTimeResult: (
|
|
5438
|
+
params: GetTranslateRealTimeResultParams_p1cNa7,
|
|
5439
|
+
success: SuccessCb_FmAZLn<GetTranslateRealTimeResultResponse_g9SR0S>,
|
|
5440
|
+
fail: FailureCb_VqopUT
|
|
5441
|
+
) => void
|
|
5442
|
+
/** 执行总结 */
|
|
5443
|
+
processTranslateSummary: (
|
|
5444
|
+
params: ProcessTranslateSummaryParams_S3guZk,
|
|
5445
|
+
success: SuccessCb_yabVNd<null>,
|
|
5446
|
+
fail: FailureCb_VqopUT
|
|
5447
|
+
) => void
|
|
5448
|
+
/** 总结状态查询 */
|
|
5449
|
+
getTranslateSummaryProcessStatus: (
|
|
5450
|
+
params: GetTranslateSummaryProcessStatusParams_Ni4TkZ,
|
|
5451
|
+
success: SuccessCb_sGoPwc<GetTranslateSummaryProcessStatusResponse_LbjipR>,
|
|
5452
|
+
fail: FailureCb_VqopUT
|
|
5453
|
+
) => void
|
|
5454
|
+
/** 总结查询 */
|
|
5455
|
+
getTranslateSummary: (
|
|
5456
|
+
params: GetTranslateSummaryParams_JWTzkC,
|
|
5457
|
+
success: SuccessCb_Sn4yeW<GetTranslateSummaryResponse_c94Kac>,
|
|
5458
|
+
fail: FailureCb_VqopUT
|
|
5459
|
+
) => void
|
|
5460
|
+
}
|
|
5461
|
+
|
|
5462
|
+
export interface TranslateErrorEvent_p9vusv {
|
|
5463
|
+
/** 翻译任务id */
|
|
5214
5464
|
contextId: string
|
|
5215
|
-
/**
|
|
5216
|
-
* 错误码
|
|
5217
|
-
* @since AIKit 0.0.1
|
|
5218
|
-
*/
|
|
5465
|
+
/** 错误码 */
|
|
5219
5466
|
code: number
|
|
5220
|
-
/**
|
|
5221
|
-
* 错误消息
|
|
5222
|
-
* @since AIKit 0.0.1
|
|
5223
|
-
*/
|
|
5467
|
+
/** 错误消息 */
|
|
5224
5468
|
message?: string
|
|
5225
5469
|
}
|
|
5226
5470
|
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
/**
|
|
5230
|
-
* 翻译任务id
|
|
5231
|
-
* @since AIKit 2.1.0
|
|
5232
|
-
*/
|
|
5471
|
+
export interface TranslateRealTimeStatusUpdateEvent_1eVhp0 {
|
|
5472
|
+
/** 翻译任务id */
|
|
5233
5473
|
contextId: string
|
|
5234
|
-
/**
|
|
5235
|
-
* 实时转写记录id
|
|
5236
|
-
* @since AIKit 0.0.1
|
|
5237
|
-
*/
|
|
5474
|
+
/** 实时转写记录id */
|
|
5238
5475
|
recordId: string
|
|
5239
|
-
/**
|
|
5240
|
-
* 实时转写请求id
|
|
5241
|
-
* @since AIKit 0.0.1
|
|
5242
|
-
*/
|
|
5476
|
+
/** 实时转写请求id */
|
|
5243
5477
|
requestId: string
|
|
5244
|
-
/**
|
|
5245
|
-
* 实时转写asrId
|
|
5246
|
-
* @since AIKit 0.0.1
|
|
5247
|
-
*/
|
|
5478
|
+
/** 实时转写asrId */
|
|
5248
5479
|
asrId: number
|
|
5249
|
-
/**
|
|
5250
|
-
* 声道
|
|
5251
|
-
* @since AIKit 0.0.1
|
|
5252
|
-
*/
|
|
5480
|
+
/** 声道 */
|
|
5253
5481
|
channel: number
|
|
5254
|
-
/**
|
|
5255
|
-
* 阶段 0.任务 1.收音 2.发数据 3.收数据 4.asr 5.text 6.skill 7.tts
|
|
5256
|
-
* @since AIKit 0.0.1
|
|
5257
|
-
*/
|
|
5482
|
+
/** 阶段 0.任务 1.收音 2.发数据 3.收数据 4.asr 5.text 6.skill 7.tts */
|
|
5258
5483
|
phase: number
|
|
5259
|
-
/**
|
|
5260
|
-
* 阶段状态 0. 未开启 1.进行中 2.结束 3.取消
|
|
5261
|
-
* @since AIKit 0.0.1
|
|
5262
|
-
*/
|
|
5484
|
+
/** 阶段状态 0. 未开启 1.进行中 2.结束 3.取消 */
|
|
5263
5485
|
status: number
|
|
5264
|
-
/**
|
|
5265
|
-
* 文本
|
|
5266
|
-
* @since AIKit 0.0.1
|
|
5267
|
-
*/
|
|
5486
|
+
/** 文本 */
|
|
5268
5487
|
text?: string
|
|
5269
|
-
/**
|
|
5270
|
-
* 错误码
|
|
5271
|
-
* @since AIKit 0.0.1
|
|
5272
|
-
*/
|
|
5488
|
+
/** 错误码 */
|
|
5273
5489
|
errorCode?: number
|
|
5274
|
-
/**
|
|
5275
|
-
* 错误消息
|
|
5276
|
-
* @since AIKit 0.0.1
|
|
5277
|
-
*/
|
|
5490
|
+
/** 错误消息 */
|
|
5278
5491
|
errorMessage?: string
|
|
5279
5492
|
}
|
|
5280
5493
|
|
|
@@ -5291,11 +5504,11 @@ declare namespace ty.ai {
|
|
|
5291
5504
|
* @since AIKit 0.0.1
|
|
5292
5505
|
*/
|
|
5293
5506
|
channel: number
|
|
5294
|
-
/**
|
|
5507
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
5295
5508
|
complete?: () => void
|
|
5296
|
-
/**
|
|
5509
|
+
/** success 成功回调 */
|
|
5297
5510
|
success?: (params: null) => void
|
|
5298
|
-
/**
|
|
5511
|
+
/** fail 失败回调 */
|
|
5299
5512
|
fail?: (params: {
|
|
5300
5513
|
/** 错误信息 */
|
|
5301
5514
|
errorMsg: string
|
|
@@ -5318,11 +5531,11 @@ declare namespace ty.ai {
|
|
|
5318
5531
|
* @platform iOS Android
|
|
5319
5532
|
*/
|
|
5320
5533
|
stopSpeak(params: {
|
|
5321
|
-
/**
|
|
5534
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
5322
5535
|
complete?: () => void
|
|
5323
|
-
/**
|
|
5536
|
+
/** success 成功回调 */
|
|
5324
5537
|
success?: (params: null) => void
|
|
5325
|
-
/**
|
|
5538
|
+
/** fail 失败回调 */
|
|
5326
5539
|
fail?: (params: {
|
|
5327
5540
|
/** 错误信息 */
|
|
5328
5541
|
errorMsg: string
|
|
@@ -5345,11 +5558,11 @@ declare namespace ty.ai {
|
|
|
5345
5558
|
* @platform iOS Android
|
|
5346
5559
|
*/
|
|
5347
5560
|
dispose(params: {
|
|
5348
|
-
/**
|
|
5561
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
5349
5562
|
complete?: () => void
|
|
5350
|
-
/**
|
|
5563
|
+
/** success 成功回调 */
|
|
5351
5564
|
success?: (params: null) => void
|
|
5352
|
-
/**
|
|
5565
|
+
/** fail 失败回调 */
|
|
5353
5566
|
fail?: (params: {
|
|
5354
5567
|
/** 错误信息 */
|
|
5355
5568
|
errorMsg: string
|
|
@@ -5368,25 +5581,15 @@ declare namespace ty.ai {
|
|
|
5368
5581
|
/**
|
|
5369
5582
|
* 监听翻译异常事件
|
|
5370
5583
|
* @public
|
|
5371
|
-
* @since AIKit 0.0.1
|
|
5372
5584
|
* @platform iOS Android
|
|
5373
5585
|
*/
|
|
5374
5586
|
onTranslateError(
|
|
5375
5587
|
listener: (params: {
|
|
5376
|
-
/**
|
|
5377
|
-
* 翻译任务id
|
|
5378
|
-
* @since AIKit 2.1.0
|
|
5379
|
-
*/
|
|
5588
|
+
/** 翻译任务id */
|
|
5380
5589
|
contextId: string
|
|
5381
|
-
/**
|
|
5382
|
-
* 错误码
|
|
5383
|
-
* @since AIKit 0.0.1
|
|
5384
|
-
*/
|
|
5590
|
+
/** 错误码 */
|
|
5385
5591
|
code: number
|
|
5386
|
-
/**
|
|
5387
|
-
* 错误消息
|
|
5388
|
-
* @since AIKit 0.0.1
|
|
5389
|
-
*/
|
|
5592
|
+
/** 错误消息 */
|
|
5390
5593
|
message?: string
|
|
5391
5594
|
}) => void
|
|
5392
5595
|
): void
|
|
@@ -5394,147 +5597,75 @@ declare namespace ty.ai {
|
|
|
5394
5597
|
/**
|
|
5395
5598
|
* 取消监听翻译异常事件
|
|
5396
5599
|
* @public
|
|
5397
|
-
* @since AIKit 0.0.1
|
|
5398
5600
|
* @platform iOS Android
|
|
5399
5601
|
*/
|
|
5400
5602
|
offTranslateError(
|
|
5401
5603
|
listener: (params: {
|
|
5402
|
-
/**
|
|
5403
|
-
* 翻译任务id
|
|
5404
|
-
* @since AIKit 2.1.0
|
|
5405
|
-
*/
|
|
5604
|
+
/** 翻译任务id */
|
|
5406
5605
|
contextId: string
|
|
5407
|
-
/**
|
|
5408
|
-
* 错误码
|
|
5409
|
-
* @since AIKit 0.0.1
|
|
5410
|
-
*/
|
|
5606
|
+
/** 错误码 */
|
|
5411
5607
|
code: number
|
|
5412
|
-
/**
|
|
5413
|
-
* 错误消息
|
|
5414
|
-
* @since AIKit 0.0.1
|
|
5415
|
-
*/
|
|
5608
|
+
/** 错误消息 */
|
|
5416
5609
|
message?: string
|
|
5417
5610
|
}) => void
|
|
5418
5611
|
): void
|
|
5419
5612
|
|
|
5420
5613
|
/**
|
|
5421
|
-
* 监听翻译实时
|
|
5614
|
+
* 监听翻译实时asr状态变更事件
|
|
5422
5615
|
* @public
|
|
5423
|
-
* @since AIKit 0.0.1
|
|
5424
5616
|
* @platform iOS Android
|
|
5425
5617
|
*/
|
|
5426
5618
|
onTranslateRealTimeStatusUpdate(
|
|
5427
5619
|
listener: (params: {
|
|
5428
|
-
/**
|
|
5429
|
-
* 翻译任务id
|
|
5430
|
-
* @since AIKit 2.1.0
|
|
5431
|
-
*/
|
|
5620
|
+
/** 翻译任务id */
|
|
5432
5621
|
contextId: string
|
|
5433
|
-
/**
|
|
5434
|
-
* 实时转写记录id
|
|
5435
|
-
* @since AIKit 0.0.1
|
|
5436
|
-
*/
|
|
5622
|
+
/** 实时转写记录id */
|
|
5437
5623
|
recordId: string
|
|
5438
|
-
/**
|
|
5439
|
-
* 实时转写请求id
|
|
5440
|
-
* @since AIKit 0.0.1
|
|
5441
|
-
*/
|
|
5624
|
+
/** 实时转写请求id */
|
|
5442
5625
|
requestId: string
|
|
5443
|
-
/**
|
|
5444
|
-
* 实时转写asrId
|
|
5445
|
-
* @since AIKit 0.0.1
|
|
5446
|
-
*/
|
|
5626
|
+
/** 实时转写asrId */
|
|
5447
5627
|
asrId: number
|
|
5448
|
-
/**
|
|
5449
|
-
* 声道
|
|
5450
|
-
* @since AIKit 0.0.1
|
|
5451
|
-
*/
|
|
5628
|
+
/** 声道 */
|
|
5452
5629
|
channel: number
|
|
5453
|
-
/**
|
|
5454
|
-
* 阶段 0.任务 1.收音 2.发数据 3.收数据 4.asr 5.text 6.skill 7.tts
|
|
5455
|
-
* @since AIKit 0.0.1
|
|
5456
|
-
*/
|
|
5630
|
+
/** 阶段 0.任务 1.收音 2.发数据 3.收数据 4.asr 5.text 6.skill 7.tts */
|
|
5457
5631
|
phase: number
|
|
5458
|
-
/**
|
|
5459
|
-
* 阶段状态 0. 未开启 1.进行中 2.结束 3.取消
|
|
5460
|
-
* @since AIKit 0.0.1
|
|
5461
|
-
*/
|
|
5632
|
+
/** 阶段状态 0. 未开启 1.进行中 2.结束 3.取消 */
|
|
5462
5633
|
status: number
|
|
5463
|
-
/**
|
|
5464
|
-
* 文本
|
|
5465
|
-
* @since AIKit 0.0.1
|
|
5466
|
-
*/
|
|
5634
|
+
/** 文本 */
|
|
5467
5635
|
text?: string
|
|
5468
|
-
/**
|
|
5469
|
-
* 错误码
|
|
5470
|
-
* @since AIKit 0.0.1
|
|
5471
|
-
*/
|
|
5636
|
+
/** 错误码 */
|
|
5472
5637
|
errorCode?: number
|
|
5473
|
-
/**
|
|
5474
|
-
* 错误消息
|
|
5475
|
-
* @since AIKit 0.0.1
|
|
5476
|
-
*/
|
|
5638
|
+
/** 错误消息 */
|
|
5477
5639
|
errorMessage?: string
|
|
5478
5640
|
}) => void
|
|
5479
5641
|
): void
|
|
5480
5642
|
|
|
5481
5643
|
/**
|
|
5482
|
-
* 取消监听翻译实时
|
|
5644
|
+
* 取消监听翻译实时asr状态变更事件
|
|
5483
5645
|
* @public
|
|
5484
|
-
* @since AIKit 0.0.1
|
|
5485
5646
|
* @platform iOS Android
|
|
5486
5647
|
*/
|
|
5487
5648
|
offTranslateRealTimeStatusUpdate(
|
|
5488
5649
|
listener: (params: {
|
|
5489
|
-
/**
|
|
5490
|
-
* 翻译任务id
|
|
5491
|
-
* @since AIKit 2.1.0
|
|
5492
|
-
*/
|
|
5650
|
+
/** 翻译任务id */
|
|
5493
5651
|
contextId: string
|
|
5494
|
-
/**
|
|
5495
|
-
* 实时转写记录id
|
|
5496
|
-
* @since AIKit 0.0.1
|
|
5497
|
-
*/
|
|
5652
|
+
/** 实时转写记录id */
|
|
5498
5653
|
recordId: string
|
|
5499
|
-
/**
|
|
5500
|
-
* 实时转写请求id
|
|
5501
|
-
* @since AIKit 0.0.1
|
|
5502
|
-
*/
|
|
5654
|
+
/** 实时转写请求id */
|
|
5503
5655
|
requestId: string
|
|
5504
|
-
/**
|
|
5505
|
-
* 实时转写asrId
|
|
5506
|
-
* @since AIKit 0.0.1
|
|
5507
|
-
*/
|
|
5656
|
+
/** 实时转写asrId */
|
|
5508
5657
|
asrId: number
|
|
5509
|
-
/**
|
|
5510
|
-
* 声道
|
|
5511
|
-
* @since AIKit 0.0.1
|
|
5512
|
-
*/
|
|
5658
|
+
/** 声道 */
|
|
5513
5659
|
channel: number
|
|
5514
|
-
/**
|
|
5515
|
-
* 阶段 0.任务 1.收音 2.发数据 3.收数据 4.asr 5.text 6.skill 7.tts
|
|
5516
|
-
* @since AIKit 0.0.1
|
|
5517
|
-
*/
|
|
5660
|
+
/** 阶段 0.任务 1.收音 2.发数据 3.收数据 4.asr 5.text 6.skill 7.tts */
|
|
5518
5661
|
phase: number
|
|
5519
|
-
/**
|
|
5520
|
-
* 阶段状态 0. 未开启 1.进行中 2.结束 3.取消
|
|
5521
|
-
* @since AIKit 0.0.1
|
|
5522
|
-
*/
|
|
5662
|
+
/** 阶段状态 0. 未开启 1.进行中 2.结束 3.取消 */
|
|
5523
5663
|
status: number
|
|
5524
|
-
/**
|
|
5525
|
-
* 文本
|
|
5526
|
-
* @since AIKit 0.0.1
|
|
5527
|
-
*/
|
|
5664
|
+
/** 文本 */
|
|
5528
5665
|
text?: string
|
|
5529
|
-
/**
|
|
5530
|
-
* 错误码
|
|
5531
|
-
* @since AIKit 0.0.1
|
|
5532
|
-
*/
|
|
5666
|
+
/** 错误码 */
|
|
5533
5667
|
errorCode?: number
|
|
5534
|
-
/**
|
|
5535
|
-
* 错误消息
|
|
5536
|
-
* @since AIKit 0.0.1
|
|
5537
|
-
*/
|
|
5668
|
+
/** 错误消息 */
|
|
5538
5669
|
errorMessage?: string
|
|
5539
5670
|
}) => void
|
|
5540
5671
|
): void
|
|
@@ -5571,11 +5702,11 @@ declare namespace ty.ai {
|
|
|
5571
5702
|
* @since AIKit 0.0.1
|
|
5572
5703
|
*/
|
|
5573
5704
|
agentId: string
|
|
5574
|
-
/**
|
|
5705
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
5575
5706
|
complete?: () => void
|
|
5576
|
-
/**
|
|
5707
|
+
/** success 成功回调 */
|
|
5577
5708
|
success?: (params: null) => void
|
|
5578
|
-
/**
|
|
5709
|
+
/** fail 失败回调 */
|
|
5579
5710
|
fail?: (params: {
|
|
5580
5711
|
/** 错误信息 */
|
|
5581
5712
|
errorMsg: string
|