@byteplus/rtc 4.52.0 → 4.52.2
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.
|
@@ -54,6 +54,22 @@ export declare enum BackgroundAIModelType {
|
|
|
54
54
|
QUALITY = 1
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
/** {en}
|
|
58
|
+
* @brief Whether to use CPU or GPU mode. CPU mode is set by default.
|
|
59
|
+
*/
|
|
60
|
+
export declare enum BackgroundAIBackend {
|
|
61
|
+
|
|
62
|
+
/** {en}
|
|
63
|
+
* @brief CPU mode.
|
|
64
|
+
*/
|
|
65
|
+
CPU = -1,
|
|
66
|
+
|
|
67
|
+
/** {en}
|
|
68
|
+
* @brief GPU mode. The SDK will check whether the current browser supports GPU mode, and will automatically fall back to CPU mode if GPU mode is not supported.
|
|
69
|
+
*/
|
|
70
|
+
GPU = 1
|
|
71
|
+
}
|
|
72
|
+
|
|
57
73
|
/** {en}
|
|
58
74
|
* @brief Compatibility check result.
|
|
59
75
|
*/
|
|
@@ -76,6 +92,43 @@ export interface CompatibilityCheckResult {
|
|
|
76
92
|
*/
|
|
77
93
|
reasons: number[];
|
|
78
94
|
}
|
|
95
|
+
|
|
96
|
+
/** {en}
|
|
97
|
+
* @brief Beauty extension configurations.
|
|
98
|
+
*/
|
|
99
|
+
export interface IRTCBeautyExtensionConfig {
|
|
100
|
+
/**
|
|
101
|
+
* @internal
|
|
102
|
+
*/
|
|
103
|
+
sdkUrl?: string;
|
|
104
|
+
/**
|
|
105
|
+
* @internal
|
|
106
|
+
*/
|
|
107
|
+
sdkSourceUrl?: string;
|
|
108
|
+
/**
|
|
109
|
+
* @internal
|
|
110
|
+
*/
|
|
111
|
+
sdkHash?: string;
|
|
112
|
+
/**
|
|
113
|
+
* @internal
|
|
114
|
+
*/
|
|
115
|
+
sdkAuthServer?: string;
|
|
116
|
+
|
|
117
|
+
/** {en}
|
|
118
|
+
* @brief The authentication file's URL.
|
|
119
|
+
*/
|
|
120
|
+
authFileUrl?: string;
|
|
121
|
+
|
|
122
|
+
/** {en}
|
|
123
|
+
* @brief Whether to use CPU or GPU mode. CPU mode is set by default.
|
|
124
|
+
*/
|
|
125
|
+
aiBackend?: BackgroundAIBackend;
|
|
126
|
+
|
|
127
|
+
/** {en}
|
|
128
|
+
* @brief The priority of the facial recognition AI algorithm.
|
|
129
|
+
*/
|
|
130
|
+
aiModelType?: BackgroundAIModelType;
|
|
131
|
+
}
|
|
79
132
|
export declare class IRTCBeautyExtension {
|
|
80
133
|
|
|
81
134
|
/** {en}
|