@alicloud/aidge20260428 5.9.0 → 5.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +160 -100
- package/dist/client.js +300 -100
- package/dist/client.js.map +1 -1
- package/dist/models/AddDisplayKnowledgeRequest.d.ts +68 -0
- package/dist/models/AddDisplayKnowledgeRequest.js +88 -0
- package/dist/models/AddDisplayKnowledgeRequest.js.map +1 -0
- package/dist/models/AddDisplayKnowledgeResponse.d.ts +19 -0
- package/dist/models/AddDisplayKnowledgeResponse.js +69 -0
- package/dist/models/AddDisplayKnowledgeResponse.js.map +1 -0
- package/dist/models/AddDisplayKnowledgeResponseBody.d.ts +210 -0
- package/dist/models/AddDisplayKnowledgeResponseBody.js +143 -0
- package/dist/models/AddDisplayKnowledgeResponseBody.js.map +1 -0
- package/dist/models/AddDisplayKnowledgeShrinkRequest.d.ts +30 -0
- package/dist/models/AddDisplayKnowledgeShrinkRequest.js +60 -0
- package/dist/models/AddDisplayKnowledgeShrinkRequest.js.map +1 -0
- package/dist/models/AiTryOnRequest.d.ts +4 -4
- package/dist/models/AiTryOnResponseBody.d.ts +10 -10
- package/dist/models/AiTryOnResponseBody.js +0 -2
- package/dist/models/AiTryOnResponseBody.js.map +1 -1
- package/dist/models/DeleteDisplayKnowledgeRequest.d.ts +30 -0
- package/dist/models/DeleteDisplayKnowledgeRequest.js +63 -0
- package/dist/models/DeleteDisplayKnowledgeRequest.js.map +1 -0
- package/dist/models/DeleteDisplayKnowledgeResponse.d.ts +19 -0
- package/dist/models/DeleteDisplayKnowledgeResponse.js +69 -0
- package/dist/models/DeleteDisplayKnowledgeResponse.js.map +1 -0
- package/dist/models/DeleteDisplayKnowledgeResponseBody.d.ts +214 -0
- package/dist/models/DeleteDisplayKnowledgeResponseBody.js +145 -0
- package/dist/models/DeleteDisplayKnowledgeResponseBody.js.map +1 -0
- package/dist/models/DeleteDisplayKnowledgeShrinkRequest.d.ts +30 -0
- package/dist/models/DeleteDisplayKnowledgeShrinkRequest.js +60 -0
- package/dist/models/DeleteDisplayKnowledgeShrinkRequest.js.map +1 -0
- package/dist/models/QueryDisplayKnowledgeRequest.d.ts +60 -0
- package/dist/models/QueryDisplayKnowledgeRequest.js +71 -0
- package/dist/models/QueryDisplayKnowledgeRequest.js.map +1 -0
- package/dist/models/QueryDisplayKnowledgeResponse.d.ts +19 -0
- package/dist/models/QueryDisplayKnowledgeResponse.js +69 -0
- package/dist/models/QueryDisplayKnowledgeResponse.js.map +1 -0
- package/dist/models/QueryDisplayKnowledgeResponseBody.d.ts +240 -0
- package/dist/models/QueryDisplayKnowledgeResponseBody.js +151 -0
- package/dist/models/QueryDisplayKnowledgeResponseBody.js.map +1 -0
- package/dist/models/QueryDisplayKnowledgeShrinkRequest.d.ts +60 -0
- package/dist/models/QueryDisplayKnowledgeShrinkRequest.js +68 -0
- package/dist/models/QueryDisplayKnowledgeShrinkRequest.js.map +1 -0
- package/dist/models/TextTranslateAsyncRequest.d.ts +28 -0
- package/dist/models/TextTranslateAsyncRequest.js.map +1 -1
- package/dist/models/TextTranslateAsyncResponseBody.d.ts +19 -0
- package/dist/models/TextTranslateAsyncResponseBody.js.map +1 -1
- package/dist/models/TextTranslateAsyncShrinkRequest.d.ts +28 -0
- package/dist/models/TextTranslateAsyncShrinkRequest.js.map +1 -1
- package/dist/models/UpdateDisplayKnowledgeRequest.d.ts +74 -0
- package/dist/models/UpdateDisplayKnowledgeRequest.js +88 -0
- package/dist/models/UpdateDisplayKnowledgeRequest.js.map +1 -0
- package/dist/models/UpdateDisplayKnowledgeResponse.d.ts +19 -0
- package/dist/models/UpdateDisplayKnowledgeResponse.js +69 -0
- package/dist/models/UpdateDisplayKnowledgeResponse.js.map +1 -0
- package/dist/models/UpdateDisplayKnowledgeResponseBody.d.ts +206 -0
- package/dist/models/UpdateDisplayKnowledgeResponseBody.js +143 -0
- package/dist/models/UpdateDisplayKnowledgeResponseBody.js.map +1 -0
- package/dist/models/UpdateDisplayKnowledgeShrinkRequest.d.ts +30 -0
- package/dist/models/UpdateDisplayKnowledgeShrinkRequest.js +60 -0
- package/dist/models/UpdateDisplayKnowledgeShrinkRequest.js.map +1 -0
- package/dist/models/VideoTranslationRequest.d.ts +6 -6
- package/dist/models/VideoTranslationResponseBody.d.ts +4 -4
- package/dist/models/VideoTranslationShrinkRequest.d.ts +6 -6
- package/dist/models/model.d.ts +26 -0
- package/dist/models/model.js +59 -6
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +324 -100
- package/src/models/AddDisplayKnowledgeRequest.ts +100 -0
- package/src/models/AddDisplayKnowledgeResponse.ts +40 -0
- package/src/models/AddDisplayKnowledgeResponseBody.ts +288 -0
- package/src/models/AddDisplayKnowledgeShrinkRequest.ts +45 -0
- package/src/models/AiTryOnRequest.ts +4 -4
- package/src/models/AiTryOnResponseBody.ts +10 -10
- package/src/models/DeleteDisplayKnowledgeRequest.ts +48 -0
- package/src/models/DeleteDisplayKnowledgeResponse.ts +40 -0
- package/src/models/DeleteDisplayKnowledgeResponseBody.ts +294 -0
- package/src/models/DeleteDisplayKnowledgeShrinkRequest.ts +45 -0
- package/src/models/QueryDisplayKnowledgeRequest.ts +86 -0
- package/src/models/QueryDisplayKnowledgeResponse.ts +40 -0
- package/src/models/QueryDisplayKnowledgeResponseBody.ts +326 -0
- package/src/models/QueryDisplayKnowledgeShrinkRequest.ts +83 -0
- package/src/models/TextTranslateAsyncRequest.ts +28 -0
- package/src/models/TextTranslateAsyncResponseBody.ts +19 -0
- package/src/models/TextTranslateAsyncShrinkRequest.ts +28 -0
- package/src/models/UpdateDisplayKnowledgeRequest.ts +108 -0
- package/src/models/UpdateDisplayKnowledgeResponse.ts +40 -0
- package/src/models/UpdateDisplayKnowledgeResponseBody.ts +284 -0
- package/src/models/UpdateDisplayKnowledgeShrinkRequest.ts +45 -0
- package/src/models/VideoTranslationRequest.ts +6 -6
- package/src/models/VideoTranslationResponseBody.ts +4 -4
- package/src/models/VideoTranslationShrinkRequest.ts +6 -6
- package/src/models/model.ts +26 -0
package/src/client.ts
CHANGED
|
@@ -30,31 +30,83 @@ export default class Client extends OpenApi {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Synchronously adds content to a display knowledge base in batches.
|
|
34
|
+
*
|
|
35
|
+
* @param tmpReq - AddDisplayKnowledgeRequest
|
|
36
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
37
|
+
* @returns AddDisplayKnowledgeResponse
|
|
38
|
+
*/
|
|
39
|
+
async addDisplayKnowledgeWithOptions(tmpReq: $_model.AddDisplayKnowledgeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.AddDisplayKnowledgeResponse> {
|
|
40
|
+
tmpReq.validate();
|
|
41
|
+
let request = new $_model.AddDisplayKnowledgeShrinkRequest({ });
|
|
42
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
43
|
+
if (!$dara.isNull(tmpReq.records)) {
|
|
44
|
+
request.recordsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.records, "Records", "json");
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
let query = { };
|
|
48
|
+
if (!$dara.isNull(request.ragId)) {
|
|
49
|
+
query["RagId"] = request.ragId;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
if (!$dara.isNull(request.recordsShrink)) {
|
|
53
|
+
query["Records"] = request.recordsShrink;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
57
|
+
query: OpenApiUtil.query(query),
|
|
58
|
+
});
|
|
59
|
+
let params = new $OpenApiUtil.Params({
|
|
60
|
+
action: "AddDisplayKnowledge",
|
|
61
|
+
version: "2026-04-28",
|
|
62
|
+
protocol: "HTTPS",
|
|
63
|
+
pathname: "/",
|
|
64
|
+
method: "POST",
|
|
65
|
+
authType: "AK",
|
|
66
|
+
style: "RPC",
|
|
67
|
+
reqBodyType: "formData",
|
|
68
|
+
bodyType: "json",
|
|
69
|
+
});
|
|
70
|
+
return $dara.cast<$_model.AddDisplayKnowledgeResponse>(await this.callApi(params, req, runtime), new $_model.AddDisplayKnowledgeResponse({}));
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Synchronously adds content to a display knowledge base in batches.
|
|
75
|
+
*
|
|
76
|
+
* @param request - AddDisplayKnowledgeRequest
|
|
77
|
+
* @returns AddDisplayKnowledgeResponse
|
|
78
|
+
*/
|
|
79
|
+
async addDisplayKnowledge(request: $_model.AddDisplayKnowledgeRequest): Promise<$_model.AddDisplayKnowledgeResponse> {
|
|
80
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
81
|
+
return await this.addDisplayKnowledgeWithOptions(request, runtime);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Generates virtual try-on images by applying a specified garment to a model image based on AI algorithms. The service preserves the model\\"s pose, facial features, and background details while ensuring a realistic and well-fitted appearance. You only need to provide the URLs of the original model and garment images to obtain the processed image.
|
|
34
86
|
*
|
|
35
87
|
* @remarks
|
|
36
88
|
* ## Scenarios
|
|
37
|
-
* - **Virtual try-on for clothing
|
|
38
|
-
* Supports
|
|
89
|
+
* - **Virtual try-on for clothing:**
|
|
90
|
+
* Supports various clothing categories such as tops, bottoms, jumpsuits, and dresses. After you upload a model image and a garment image, the service generates natural and realistic try-on effects to visually demonstrate how the garment looks on the model.
|
|
39
91
|
* - **Virtual try-on for shoes and hats:**
|
|
40
|
-
* Supports virtual try-on for shoes
|
|
92
|
+
* Supports virtual try-on for accessories such as shoes and hats. The service intelligently matches the position and proportion of the product based on the model\\"s pose and body parts to present a coordinated and realistic wearing effect.
|
|
41
93
|
* - **E-commerce product display and marketing:**
|
|
42
|
-
* Helps merchants quickly generate model try-on images for different products
|
|
94
|
+
* Helps merchants quickly generate model try-on images for different products. This reduces the costs of traditional photography, outfit changes, and post-production, and improves the production efficiency of product images.
|
|
43
95
|
* - **Online shopping experience optimization:**
|
|
44
|
-
*
|
|
96
|
+
* Allows consumers to preview the wearing effect of products through virtual try-on. This provides a more intuitive understanding of the style, matching, and overall effect of the product, which assists in purchase decisions and enhances the shopping experience.
|
|
45
97
|
* ## Features
|
|
46
|
-
* - **
|
|
47
|
-
* - a. Model image: The person
|
|
48
|
-
* - b. Product image: The clothing, shoes, or hat
|
|
49
|
-
* - **
|
|
50
|
-
* - a. Specify product type:
|
|
51
|
-
* - b. Automatic type recognition: If
|
|
52
|
-
* - **
|
|
53
|
-
* - a. Preserve model details: The generation process does not alter the
|
|
54
|
-
* - b. Maintain
|
|
55
|
-
* - c. Generate try-on
|
|
56
|
-
* ##
|
|
57
|
-
* | **Type** | **Model image** | **
|
|
98
|
+
* - **Provide a model image and a product image. The system uses the model image as the try-on subject and applies the garment from the product image to the model:**
|
|
99
|
+
* - a. Model image: The image of the person who will wear the garment in the virtual try-on.
|
|
100
|
+
* - b. Product image: The image of the clothing, shoes, or hat to be worn by the model.
|
|
101
|
+
* - **Select the corresponding product type based on the actual product. Supported types include tops, bottoms, jumpsuits, dresses, shoes, and hats:**
|
|
102
|
+
* - a. Specify product type: You can directly specify the type of the current product, and the system will process it accordingly.
|
|
103
|
+
* - b. Automatic type recognition: If you do not specify the product type, the system automatically recognizes the product category in the product image and performs the virtual try-on based on the recognition result.
|
|
104
|
+
* - **The system generates a virtual try-on image by combining the model image, product image, and product type to show the wearing effect of the product on the model:**
|
|
105
|
+
* - a. Preserve model details: The generation process does not alter the appearance, hairstyle, pose, body shape, or other details of the person in the original model image.
|
|
106
|
+
* - b. Maintain image consistency: The background, composition, lighting, and overall visual effect of the original model image remain unchanged. Only the wearing area corresponding to the product is processed.
|
|
107
|
+
* - c. Generate try-on effect: The product is naturally applied to the model, fitting the person\\"s pose and body structure to generate a coordinated and realistic virtual try-on image.
|
|
108
|
+
* ## Examples
|
|
109
|
+
* | **Type** | **Model image** | **Garment image** | **Try-on result** |
|
|
58
110
|
* | --- | --- | --- | --- |
|
|
59
111
|
* | Tops |  |  |  |
|
|
60
112
|
* | Bottoms |  |  |  |
|
|
@@ -104,31 +156,31 @@ export default class Client extends OpenApi {
|
|
|
104
156
|
}
|
|
105
157
|
|
|
106
158
|
/**
|
|
107
|
-
*
|
|
159
|
+
* Generates virtual try-on images by applying a specified garment to a model image based on AI algorithms. The service preserves the model\\"s pose, facial features, and background details while ensuring a realistic and well-fitted appearance. You only need to provide the URLs of the original model and garment images to obtain the processed image.
|
|
108
160
|
*
|
|
109
161
|
* @remarks
|
|
110
162
|
* ## Scenarios
|
|
111
|
-
* - **Virtual try-on for clothing
|
|
112
|
-
* Supports
|
|
163
|
+
* - **Virtual try-on for clothing:**
|
|
164
|
+
* Supports various clothing categories such as tops, bottoms, jumpsuits, and dresses. After you upload a model image and a garment image, the service generates natural and realistic try-on effects to visually demonstrate how the garment looks on the model.
|
|
113
165
|
* - **Virtual try-on for shoes and hats:**
|
|
114
|
-
* Supports virtual try-on for shoes
|
|
166
|
+
* Supports virtual try-on for accessories such as shoes and hats. The service intelligently matches the position and proportion of the product based on the model\\"s pose and body parts to present a coordinated and realistic wearing effect.
|
|
115
167
|
* - **E-commerce product display and marketing:**
|
|
116
|
-
* Helps merchants quickly generate model try-on images for different products
|
|
168
|
+
* Helps merchants quickly generate model try-on images for different products. This reduces the costs of traditional photography, outfit changes, and post-production, and improves the production efficiency of product images.
|
|
117
169
|
* - **Online shopping experience optimization:**
|
|
118
|
-
*
|
|
170
|
+
* Allows consumers to preview the wearing effect of products through virtual try-on. This provides a more intuitive understanding of the style, matching, and overall effect of the product, which assists in purchase decisions and enhances the shopping experience.
|
|
119
171
|
* ## Features
|
|
120
|
-
* - **
|
|
121
|
-
* - a. Model image: The person
|
|
122
|
-
* - b. Product image: The clothing, shoes, or hat
|
|
123
|
-
* - **
|
|
124
|
-
* - a. Specify product type:
|
|
125
|
-
* - b. Automatic type recognition: If
|
|
126
|
-
* - **
|
|
127
|
-
* - a. Preserve model details: The generation process does not alter the
|
|
128
|
-
* - b. Maintain
|
|
129
|
-
* - c. Generate try-on
|
|
130
|
-
* ##
|
|
131
|
-
* | **Type** | **Model image** | **
|
|
172
|
+
* - **Provide a model image and a product image. The system uses the model image as the try-on subject and applies the garment from the product image to the model:**
|
|
173
|
+
* - a. Model image: The image of the person who will wear the garment in the virtual try-on.
|
|
174
|
+
* - b. Product image: The image of the clothing, shoes, or hat to be worn by the model.
|
|
175
|
+
* - **Select the corresponding product type based on the actual product. Supported types include tops, bottoms, jumpsuits, dresses, shoes, and hats:**
|
|
176
|
+
* - a. Specify product type: You can directly specify the type of the current product, and the system will process it accordingly.
|
|
177
|
+
* - b. Automatic type recognition: If you do not specify the product type, the system automatically recognizes the product category in the product image and performs the virtual try-on based on the recognition result.
|
|
178
|
+
* - **The system generates a virtual try-on image by combining the model image, product image, and product type to show the wearing effect of the product on the model:**
|
|
179
|
+
* - a. Preserve model details: The generation process does not alter the appearance, hairstyle, pose, body shape, or other details of the person in the original model image.
|
|
180
|
+
* - b. Maintain image consistency: The background, composition, lighting, and overall visual effect of the original model image remain unchanged. Only the wearing area corresponding to the product is processed.
|
|
181
|
+
* - c. Generate try-on effect: The product is naturally applied to the model, fitting the person\\"s pose and body structure to generate a coordinated and realistic virtual try-on image.
|
|
182
|
+
* ## Examples
|
|
183
|
+
* | **Type** | **Model image** | **Garment image** | **Try-on result** |
|
|
132
184
|
* | --- | --- | --- | --- |
|
|
133
185
|
* | Tops |  |  |  |
|
|
134
186
|
* | Bottoms |  |  |  |
|
|
@@ -627,6 +679,58 @@ export default class Client extends OpenApi {
|
|
|
627
679
|
return await this.categoryMatchWithOptions(request, runtime);
|
|
628
680
|
}
|
|
629
681
|
|
|
682
|
+
/**
|
|
683
|
+
* Deletes display knowledge base content in batches synchronously.
|
|
684
|
+
*
|
|
685
|
+
* @param tmpReq - DeleteDisplayKnowledgeRequest
|
|
686
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
687
|
+
* @returns DeleteDisplayKnowledgeResponse
|
|
688
|
+
*/
|
|
689
|
+
async deleteDisplayKnowledgeWithOptions(tmpReq: $_model.DeleteDisplayKnowledgeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteDisplayKnowledgeResponse> {
|
|
690
|
+
tmpReq.validate();
|
|
691
|
+
let request = new $_model.DeleteDisplayKnowledgeShrinkRequest({ });
|
|
692
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
693
|
+
if (!$dara.isNull(tmpReq.recordIds)) {
|
|
694
|
+
request.recordIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.recordIds, "RecordIds", "json");
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
let query = { };
|
|
698
|
+
if (!$dara.isNull(request.ragId)) {
|
|
699
|
+
query["RagId"] = request.ragId;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
if (!$dara.isNull(request.recordIdsShrink)) {
|
|
703
|
+
query["RecordIds"] = request.recordIdsShrink;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
707
|
+
query: OpenApiUtil.query(query),
|
|
708
|
+
});
|
|
709
|
+
let params = new $OpenApiUtil.Params({
|
|
710
|
+
action: "DeleteDisplayKnowledge",
|
|
711
|
+
version: "2026-04-28",
|
|
712
|
+
protocol: "HTTPS",
|
|
713
|
+
pathname: "/",
|
|
714
|
+
method: "POST",
|
|
715
|
+
authType: "AK",
|
|
716
|
+
style: "RPC",
|
|
717
|
+
reqBodyType: "formData",
|
|
718
|
+
bodyType: "json",
|
|
719
|
+
});
|
|
720
|
+
return $dara.cast<$_model.DeleteDisplayKnowledgeResponse>(await this.callApi(params, req, runtime), new $_model.DeleteDisplayKnowledgeResponse({}));
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
/**
|
|
724
|
+
* Deletes display knowledge base content in batches synchronously.
|
|
725
|
+
*
|
|
726
|
+
* @param request - DeleteDisplayKnowledgeRequest
|
|
727
|
+
* @returns DeleteDisplayKnowledgeResponse
|
|
728
|
+
*/
|
|
729
|
+
async deleteDisplayKnowledge(request: $_model.DeleteDisplayKnowledgeRequest): Promise<$_model.DeleteDisplayKnowledgeResponse> {
|
|
730
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
731
|
+
return await this.deleteDisplayKnowledgeWithOptions(request, runtime);
|
|
732
|
+
}
|
|
733
|
+
|
|
630
734
|
/**
|
|
631
735
|
* Calculates the edge lengths and floor area of a floor display based on the floor display image and product detection boxes.
|
|
632
736
|
*
|
|
@@ -4103,6 +4207,74 @@ export default class Client extends OpenApi {
|
|
|
4103
4207
|
return await this.queryAsyncTaskResultWithOptions(request, runtime);
|
|
4104
4208
|
}
|
|
4105
4209
|
|
|
4210
|
+
/**
|
|
4211
|
+
* Performs a paged query on the content of a display knowledge base with paging (synchronization).
|
|
4212
|
+
*
|
|
4213
|
+
* @param tmpReq - QueryDisplayKnowledgeRequest
|
|
4214
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4215
|
+
* @returns QueryDisplayKnowledgeResponse
|
|
4216
|
+
*/
|
|
4217
|
+
async queryDisplayKnowledgeWithOptions(tmpReq: $_model.QueryDisplayKnowledgeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.QueryDisplayKnowledgeResponse> {
|
|
4218
|
+
tmpReq.validate();
|
|
4219
|
+
let request = new $_model.QueryDisplayKnowledgeShrinkRequest({ });
|
|
4220
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
4221
|
+
if (!$dara.isNull(tmpReq.statuses)) {
|
|
4222
|
+
request.statusesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.statuses, "Statuses", "json");
|
|
4223
|
+
}
|
|
4224
|
+
|
|
4225
|
+
let query = { };
|
|
4226
|
+
if (!$dara.isNull(request.pageNum)) {
|
|
4227
|
+
query["PageNum"] = request.pageNum;
|
|
4228
|
+
}
|
|
4229
|
+
|
|
4230
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
4231
|
+
query["PageSize"] = request.pageSize;
|
|
4232
|
+
}
|
|
4233
|
+
|
|
4234
|
+
if (!$dara.isNull(request.ragId)) {
|
|
4235
|
+
query["RagId"] = request.ragId;
|
|
4236
|
+
}
|
|
4237
|
+
|
|
4238
|
+
if (!$dara.isNull(request.skuId)) {
|
|
4239
|
+
query["SkuId"] = request.skuId;
|
|
4240
|
+
}
|
|
4241
|
+
|
|
4242
|
+
if (!$dara.isNull(request.skuName)) {
|
|
4243
|
+
query["SkuName"] = request.skuName;
|
|
4244
|
+
}
|
|
4245
|
+
|
|
4246
|
+
if (!$dara.isNull(request.statusesShrink)) {
|
|
4247
|
+
query["Statuses"] = request.statusesShrink;
|
|
4248
|
+
}
|
|
4249
|
+
|
|
4250
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
4251
|
+
query: OpenApiUtil.query(query),
|
|
4252
|
+
});
|
|
4253
|
+
let params = new $OpenApiUtil.Params({
|
|
4254
|
+
action: "QueryDisplayKnowledge",
|
|
4255
|
+
version: "2026-04-28",
|
|
4256
|
+
protocol: "HTTPS",
|
|
4257
|
+
pathname: "/",
|
|
4258
|
+
method: "POST",
|
|
4259
|
+
authType: "AK",
|
|
4260
|
+
style: "RPC",
|
|
4261
|
+
reqBodyType: "formData",
|
|
4262
|
+
bodyType: "json",
|
|
4263
|
+
});
|
|
4264
|
+
return $dara.cast<$_model.QueryDisplayKnowledgeResponse>(await this.callApi(params, req, runtime), new $_model.QueryDisplayKnowledgeResponse({}));
|
|
4265
|
+
}
|
|
4266
|
+
|
|
4267
|
+
/**
|
|
4268
|
+
* Performs a paged query on the content of a display knowledge base with paging (synchronization).
|
|
4269
|
+
*
|
|
4270
|
+
* @param request - QueryDisplayKnowledgeRequest
|
|
4271
|
+
* @returns QueryDisplayKnowledgeResponse
|
|
4272
|
+
*/
|
|
4273
|
+
async queryDisplayKnowledge(request: $_model.QueryDisplayKnowledgeRequest): Promise<$_model.QueryDisplayKnowledgeResponse> {
|
|
4274
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
4275
|
+
return await this.queryDisplayKnowledgeWithOptions(request, runtime);
|
|
4276
|
+
}
|
|
4277
|
+
|
|
4106
4278
|
/**
|
|
4107
4279
|
* Detects whether an image contains a size chart. (Synchronous)
|
|
4108
4280
|
*
|
|
@@ -5106,36 +5278,36 @@ export default class Client extends OpenApi {
|
|
|
5106
5278
|
}
|
|
5107
5279
|
|
|
5108
5280
|
/**
|
|
5109
|
-
*
|
|
5281
|
+
* Translates text by using the Maas MT model, an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs and optimized for e-commerce terms such as brands, models, materials, and attributes. It supports 156 languages, more than 400 language pairs, and automatic language detection for source texts.
|
|
5110
5282
|
*
|
|
5111
5283
|
* @remarks
|
|
5112
|
-
* ##
|
|
5113
|
-
* *
|
|
5284
|
+
* ## Scenarios
|
|
5285
|
+
* * Product titles: The Maas MT large language model accurately translates phrases, keywords, and trending words in product titles into the target language to increase product exposure on e-commerce platforms.
|
|
5114
5286
|
*
|
|
5115
|
-
* *
|
|
5287
|
+
* * Product descriptions: Product descriptions are typically long and have diverse and complex formats. The Maas large language model supports long-text translation and HTML formatting, delivering excellent translation quality and format restoration.
|
|
5116
5288
|
*
|
|
5117
|
-
* *
|
|
5289
|
+
* * Product attributes: Product attribute terms are short and contain e-commerce-specific words such as models and parameters.
|
|
5118
5290
|
*
|
|
5119
|
-
* *
|
|
5291
|
+
* * Customer service conversations: In customer service scenarios, the model optimizes issues such as missing context and typos, and supports polite expressions in specific language pairs.
|
|
5120
5292
|
*
|
|
5121
|
-
*
|
|
5122
|
-
* ##
|
|
5123
|
-
* *
|
|
5293
|
+
* The Maas MT large language model can also be used for translation in general scenarios, such as office work, meetings, and daily conversations.
|
|
5294
|
+
* ## Features
|
|
5295
|
+
* * **Ultra-low hallucination rate and high-speed inference** The Maas MT large language model is aligned with preferences for translation scenarios. Compared with general-purpose large language models, it provides faster translation inference and an extremely low hallucination rate, making it especially suitable for large-scale invocation scenarios.
|
|
5124
5296
|
*
|
|
5125
|
-
* *
|
|
5297
|
+
* * **Supported text formats** The model supports text and HTML formats.
|
|
5126
5298
|
*
|
|
5127
|
-
* *
|
|
5299
|
+
* * **Translation intervention** You can customize translation results, including keeping terms untranslated (ABC-ABC), specifying translations (ABC-DEF), and omitting translations (ABC-null value). This feature is commonly used for brand word protection. You only need to pass the corresponding intervention glossary ID when calling the API. This meets your translation needs in different scenarios. Generally, you can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
|
|
5128
5300
|
*
|
|
5129
|
-
* *
|
|
5130
|
-
* |
|
|
5301
|
+
* * **Translation quality comparison**
|
|
5302
|
+
* | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantages** |
|
|
5131
5303
|
* | --- | --- | --- | --- | --- |
|
|
5132
|
-
* | 75mm
|
|
5133
|
-
* | New
|
|
5134
|
-
* | Men
|
|
5135
|
-
* ##
|
|
5136
|
-
*
|
|
5137
|
-
*
|
|
5138
|
-
*
|
|
5304
|
+
* | 75mm 4Pin 0.38A GA81S2U 12V GTX 960 Cooling Fan for Zotac GTX960 Graphics Card Cooling Fan | 75mm 4Pin 0.38A GA81S2U 12V GTX 960, ventilador de enfriamiento para tarjeta gráfica Zotac GTX960. | Ventilador de refrigeración de 75mm 4Pin 0.38A GA81S2U 12V para la tarjeta gráfica Zotac GTX960 Ventilador de enfriamiento GTX 960. | Ventilador de refrigeración para tarjeta gráfica Zotac GTX960, 75mm, 4 pines, 0,38A, GA81S2U, 12V, GTX 960 | Clearer product subject |
|
|
5305
|
+
* | New Arrival Classic Style Luxury Brand 6 Hands Swiss Automatic Mechanical Men\\"s Business Steel Watch | Nueva llegada, reloj mecánico automático de lujo con 6 manecillas, estilo clásico, de acero para hombres de negocios | Nueva Llegada Reloj De Acero de Negocios para Hombre con Mecanismo Automático Suizo y 6 Agujas de Estilo Clásico de Marca de Lujo. | Reloj de acero de negocios para hombre, mecánico automático suizo, marca de lujo, estilo clásico, 6 manos, nueva llegada | More complete sentence structure, clearer expression, and more reasonable punctuation |
|
|
5306
|
+
* | Men Key Bag Genuine Cow Leather Buckets Key Cases Pouch Zipper Keychain Auto Car Key Case Women Home Key Holder Wallet | Sac à clés pour hommes en cuir de vache véritable, étuis à clés, pochette à fermeture éclair, porte-clés, étui à clé de voiture, porte-clés pour femmes, organisateur de portefeuille | Porte-clés sac en cuir de vache véritable, étuis à clés en forme de seau, pochette à fermeture éclair, porte-clés auto pour voiture, étui à clés pour femmes, organisateur de clés de maison, portefeuille. | Hommes porte-clés en cuir de vache véritable sac/pochette fermeture éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | Clearer and more explicit product subject expression, identifying it as a "key bag" rather than a "keychain", avoiding ambiguity in other translations |
|
|
5307
|
+
* ## Preparations and invocation flow
|
|
5308
|
+
* Text translation supports both synchronous and asynchronous invocation methods. This topic describes the asynchronous invocation API. To use synchronous calls, see [Text Translation - Synchronous API](https://api.aliyun.com/document/Aidge/2026-04-28/TextTranslate).
|
|
5309
|
+
* The asynchronous APIs for text translation and other features share the same result retrieval flow, RocketMQ subscribe rules, message encryption protocols, dependency configurations, and Java consumption and decryption code.
|
|
5310
|
+
* For the asynchronous invocation onboarding flow, subscribe rules, message formats and encryption protocols, and detailed integration solutions, see [Asynchronous API invocation instructions](https://www.alibabacloud.com/help/en/aidge/asynchronous-interface-call-instructions).
|
|
5139
5311
|
*
|
|
5140
5312
|
* @param tmpReq - TextTranslateAsyncRequest
|
|
5141
5313
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -5200,36 +5372,36 @@ export default class Client extends OpenApi {
|
|
|
5200
5372
|
}
|
|
5201
5373
|
|
|
5202
5374
|
/**
|
|
5203
|
-
*
|
|
5375
|
+
* Translates text by using the Maas MT model, an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs and optimized for e-commerce terms such as brands, models, materials, and attributes. It supports 156 languages, more than 400 language pairs, and automatic language detection for source texts.
|
|
5204
5376
|
*
|
|
5205
5377
|
* @remarks
|
|
5206
|
-
* ##
|
|
5207
|
-
* *
|
|
5378
|
+
* ## Scenarios
|
|
5379
|
+
* * Product titles: The Maas MT large language model accurately translates phrases, keywords, and trending words in product titles into the target language to increase product exposure on e-commerce platforms.
|
|
5208
5380
|
*
|
|
5209
|
-
* *
|
|
5381
|
+
* * Product descriptions: Product descriptions are typically long and have diverse and complex formats. The Maas large language model supports long-text translation and HTML formatting, delivering excellent translation quality and format restoration.
|
|
5210
5382
|
*
|
|
5211
|
-
* *
|
|
5383
|
+
* * Product attributes: Product attribute terms are short and contain e-commerce-specific words such as models and parameters.
|
|
5212
5384
|
*
|
|
5213
|
-
* *
|
|
5385
|
+
* * Customer service conversations: In customer service scenarios, the model optimizes issues such as missing context and typos, and supports polite expressions in specific language pairs.
|
|
5214
5386
|
*
|
|
5215
|
-
*
|
|
5216
|
-
* ##
|
|
5217
|
-
* *
|
|
5387
|
+
* The Maas MT large language model can also be used for translation in general scenarios, such as office work, meetings, and daily conversations.
|
|
5388
|
+
* ## Features
|
|
5389
|
+
* * **Ultra-low hallucination rate and high-speed inference** The Maas MT large language model is aligned with preferences for translation scenarios. Compared with general-purpose large language models, it provides faster translation inference and an extremely low hallucination rate, making it especially suitable for large-scale invocation scenarios.
|
|
5218
5390
|
*
|
|
5219
|
-
* *
|
|
5391
|
+
* * **Supported text formats** The model supports text and HTML formats.
|
|
5220
5392
|
*
|
|
5221
|
-
* *
|
|
5393
|
+
* * **Translation intervention** You can customize translation results, including keeping terms untranslated (ABC-ABC), specifying translations (ABC-DEF), and omitting translations (ABC-null value). This feature is commonly used for brand word protection. You only need to pass the corresponding intervention glossary ID when calling the API. This meets your translation needs in different scenarios. Generally, you can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
|
|
5222
5394
|
*
|
|
5223
|
-
* *
|
|
5224
|
-
* |
|
|
5395
|
+
* * **Translation quality comparison**
|
|
5396
|
+
* | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantages** |
|
|
5225
5397
|
* | --- | --- | --- | --- | --- |
|
|
5226
|
-
* | 75mm
|
|
5227
|
-
* | New
|
|
5228
|
-
* | Men
|
|
5229
|
-
* ##
|
|
5230
|
-
*
|
|
5231
|
-
*
|
|
5232
|
-
*
|
|
5398
|
+
* | 75mm 4Pin 0.38A GA81S2U 12V GTX 960 Cooling Fan for Zotac GTX960 Graphics Card Cooling Fan | 75mm 4Pin 0.38A GA81S2U 12V GTX 960, ventilador de enfriamiento para tarjeta gráfica Zotac GTX960. | Ventilador de refrigeración de 75mm 4Pin 0.38A GA81S2U 12V para la tarjeta gráfica Zotac GTX960 Ventilador de enfriamiento GTX 960. | Ventilador de refrigeración para tarjeta gráfica Zotac GTX960, 75mm, 4 pines, 0,38A, GA81S2U, 12V, GTX 960 | Clearer product subject |
|
|
5399
|
+
* | New Arrival Classic Style Luxury Brand 6 Hands Swiss Automatic Mechanical Men\\"s Business Steel Watch | Nueva llegada, reloj mecánico automático de lujo con 6 manecillas, estilo clásico, de acero para hombres de negocios | Nueva Llegada Reloj De Acero de Negocios para Hombre con Mecanismo Automático Suizo y 6 Agujas de Estilo Clásico de Marca de Lujo. | Reloj de acero de negocios para hombre, mecánico automático suizo, marca de lujo, estilo clásico, 6 manos, nueva llegada | More complete sentence structure, clearer expression, and more reasonable punctuation |
|
|
5400
|
+
* | Men Key Bag Genuine Cow Leather Buckets Key Cases Pouch Zipper Keychain Auto Car Key Case Women Home Key Holder Wallet | Sac à clés pour hommes en cuir de vache véritable, étuis à clés, pochette à fermeture éclair, porte-clés, étui à clé de voiture, porte-clés pour femmes, organisateur de portefeuille | Porte-clés sac en cuir de vache véritable, étuis à clés en forme de seau, pochette à fermeture éclair, porte-clés auto pour voiture, étui à clés pour femmes, organisateur de clés de maison, portefeuille. | Hommes porte-clés en cuir de vache véritable sac/pochette fermeture éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | Clearer and more explicit product subject expression, identifying it as a "key bag" rather than a "keychain", avoiding ambiguity in other translations |
|
|
5401
|
+
* ## Preparations and invocation flow
|
|
5402
|
+
* Text translation supports both synchronous and asynchronous invocation methods. This topic describes the asynchronous invocation API. To use synchronous calls, see [Text Translation - Synchronous API](https://api.aliyun.com/document/Aidge/2026-04-28/TextTranslate).
|
|
5403
|
+
* The asynchronous APIs for text translation and other features share the same result retrieval flow, RocketMQ subscribe rules, message encryption protocols, dependency configurations, and Java consumption and decryption code.
|
|
5404
|
+
* For the asynchronous invocation onboarding flow, subscribe rules, message formats and encryption protocols, and detailed integration solutions, see [Asynchronous API invocation instructions](https://www.alibabacloud.com/help/en/aidge/asynchronous-interface-call-instructions).
|
|
5233
5405
|
*
|
|
5234
5406
|
* @param request - TextTranslateAsyncRequest
|
|
5235
5407
|
* @returns TextTranslateAsyncResponse
|
|
@@ -5239,6 +5411,58 @@ export default class Client extends OpenApi {
|
|
|
5239
5411
|
return await this.textTranslateAsyncWithOptions(request, runtime);
|
|
5240
5412
|
}
|
|
5241
5413
|
|
|
5414
|
+
/**
|
|
5415
|
+
* Synchronously updates the content of a display knowledge base in batches.
|
|
5416
|
+
*
|
|
5417
|
+
* @param tmpReq - UpdateDisplayKnowledgeRequest
|
|
5418
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5419
|
+
* @returns UpdateDisplayKnowledgeResponse
|
|
5420
|
+
*/
|
|
5421
|
+
async updateDisplayKnowledgeWithOptions(tmpReq: $_model.UpdateDisplayKnowledgeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateDisplayKnowledgeResponse> {
|
|
5422
|
+
tmpReq.validate();
|
|
5423
|
+
let request = new $_model.UpdateDisplayKnowledgeShrinkRequest({ });
|
|
5424
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
5425
|
+
if (!$dara.isNull(tmpReq.records)) {
|
|
5426
|
+
request.recordsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.records, "Records", "json");
|
|
5427
|
+
}
|
|
5428
|
+
|
|
5429
|
+
let query = { };
|
|
5430
|
+
if (!$dara.isNull(request.ragId)) {
|
|
5431
|
+
query["RagId"] = request.ragId;
|
|
5432
|
+
}
|
|
5433
|
+
|
|
5434
|
+
if (!$dara.isNull(request.recordsShrink)) {
|
|
5435
|
+
query["Records"] = request.recordsShrink;
|
|
5436
|
+
}
|
|
5437
|
+
|
|
5438
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
5439
|
+
query: OpenApiUtil.query(query),
|
|
5440
|
+
});
|
|
5441
|
+
let params = new $OpenApiUtil.Params({
|
|
5442
|
+
action: "UpdateDisplayKnowledge",
|
|
5443
|
+
version: "2026-04-28",
|
|
5444
|
+
protocol: "HTTPS",
|
|
5445
|
+
pathname: "/",
|
|
5446
|
+
method: "POST",
|
|
5447
|
+
authType: "AK",
|
|
5448
|
+
style: "RPC",
|
|
5449
|
+
reqBodyType: "formData",
|
|
5450
|
+
bodyType: "json",
|
|
5451
|
+
});
|
|
5452
|
+
return $dara.cast<$_model.UpdateDisplayKnowledgeResponse>(await this.callApi(params, req, runtime), new $_model.UpdateDisplayKnowledgeResponse({}));
|
|
5453
|
+
}
|
|
5454
|
+
|
|
5455
|
+
/**
|
|
5456
|
+
* Synchronously updates the content of a display knowledge base in batches.
|
|
5457
|
+
*
|
|
5458
|
+
* @param request - UpdateDisplayKnowledgeRequest
|
|
5459
|
+
* @returns UpdateDisplayKnowledgeResponse
|
|
5460
|
+
*/
|
|
5461
|
+
async updateDisplayKnowledge(request: $_model.UpdateDisplayKnowledgeRequest): Promise<$_model.UpdateDisplayKnowledgeResponse> {
|
|
5462
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
5463
|
+
return await this.updateDisplayKnowledgeWithOptions(request, runtime);
|
|
5464
|
+
}
|
|
5465
|
+
|
|
5242
5466
|
/**
|
|
5243
5467
|
* The e-commerce AI video generation agent is designed for e-commerce merchants and platforms. Based on product main images, titles, and selling points, it automatically generates 5- to 30-second product showcase short videos to help customers efficiently produce and distribute e-commerce content. The product supports multiple resolution outputs such as 720P and 1080P. You can invoke single products quickly and generate multiple products in batches, meeting the needs of daily operations and large-scale product content production. It currently overwrites all clothing categories (tops, pants, skirts, suits, underwear, swimwear, etc.) and is gradually expanding to core e-commerce categories such as skincare, cosmetics, food and beverages, and home appliances.
|
|
5244
5468
|
*
|
|
@@ -5340,28 +5564,28 @@ export default class Client extends OpenApi {
|
|
|
5340
5564
|
}
|
|
5341
5565
|
|
|
5342
5566
|
/**
|
|
5343
|
-
* Translates
|
|
5567
|
+
* Translates the speech and on-screen text in a video into a target language. You can select speech subtitle translation, on-screen text translation, or both. This API applies to scenarios such as multilingual distribution of e-commerce videos, international social media marketing, and global brand advertising. The API uses an asynchronous invocation mode. After you submit a translation task, you can obtain the task ID and poll the task status by calling the query API until the task is completed and the result is returned.
|
|
5344
5568
|
*
|
|
5345
5569
|
* @remarks
|
|
5346
5570
|
* ## Product introduction
|
|
5347
|
-
* The video translation API translates speech and on-screen text in
|
|
5348
|
-
*
|
|
5571
|
+
* The video translation API translates the speech and on-screen text in a video into a target language. You can select speech subtitle translation, on-screen text translation, or both. This API applies to scenarios such as multilingual distribution of e-commerce videos, international social media marketing, and global brand advertising.
|
|
5572
|
+
* The API uses an asynchronous invocation mode. After you submit a translation task, you can obtain the `TaskId` and poll the task status by calling the query API until the task is completed and the result is returned.
|
|
5349
5573
|
* ## Scenarios
|
|
5350
|
-
* * **Cross-border e-commerce video localization**: Translates selling point text in product introduction videos into the language of the target market to
|
|
5574
|
+
* * **Cross-border e-commerce video localization**: Translates the selling point text in product introduction videos into the language of the target market to facilitate promotion on overseas platforms.
|
|
5351
5575
|
*
|
|
5352
|
-
* * **International social media marketing**: Localizes on-screen text in videos for platforms such as TikTok, Instagram, and YouTube with one click to improve comprehension and conversion rates among overseas users.
|
|
5576
|
+
* * **International social media marketing**: Localizes the on-screen text in videos for platforms such as TikTok, Instagram, and YouTube with one click to improve comprehension and conversion rates among overseas users.
|
|
5353
5577
|
*
|
|
5354
|
-
* * **Global brand advertising**: Automatically generates video versions in the languages of the
|
|
5578
|
+
* * **Global brand advertising**: Automatically generates video versions in the languages of the target regions to reduce manual production costs.
|
|
5355
5579
|
*
|
|
5356
|
-
* * **Training and product instructions**: Translates on-screen text in training courses or product demo videos into multiple languages for global teams.
|
|
5580
|
+
* * **Training and product instructions**: Translates the on-screen text in training courses or product demo videos into multiple languages for global teams.
|
|
5357
5581
|
* ## Features
|
|
5358
5582
|
* | Feature | Identifier | Description |
|
|
5359
5583
|
* | --- | --- | --- |
|
|
5360
|
-
* | Speech
|
|
5361
|
-
* | On-screen text translation | visual | Translates embedded text
|
|
5362
|
-
* Speech
|
|
5363
|
-
* On-screen text translation (visual) targets recognizable
|
|
5364
|
-
* When both speech and visual are selected, the speech
|
|
5584
|
+
* | Speech subtitle translation | `speech` | Translates the video speech into target language dubbing. Original subtitles are not removed, and no new subtitles are added. |
|
|
5585
|
+
* | On-screen text translation | `visual` | Translates the embedded text (subtitles, selling point text, etc.) in the video frames and erases the original text. You can enable quality check for on-screen text processing by using the API. |
|
|
5586
|
+
* Speech subtitle translation (`speech`) generates target language dubbing based on the spoken content in the video and synthesizes it into the video. It does not remove original subtitles or add new subtitles. Original subtitles refer to the existing subtitles in the video frames that correspond to the spoken content.
|
|
5587
|
+
* On-screen text translation (`visual`) targets the recognizable original language text in the video frames, such as titles, product selling points, and descriptive text. It can be used independently without selecting speech subtitle translation first, and the text does not need to appear in the speech. Original subtitles within the processing scope may also be processed.
|
|
5588
|
+
* When both `speech` and `visual` are selected, the speech subtitle translation is completed and the video is synthesized first. Then, on-screen text processing is performed on this video, retaining the translated dubbing and outputting a final video. The order of features in the array does not affect the execution order. Therefore, not processing original subtitles only means that no subtitles are removed or added during the speech subtitle phase. Subsequent on-screen text processing may still alter the original subtitles.
|
|
5365
5589
|
*
|
|
5366
5590
|
* @param tmpReq - VideoTranslationRequest
|
|
5367
5591
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -5428,28 +5652,28 @@ export default class Client extends OpenApi {
|
|
|
5428
5652
|
}
|
|
5429
5653
|
|
|
5430
5654
|
/**
|
|
5431
|
-
* Translates
|
|
5655
|
+
* Translates the speech and on-screen text in a video into a target language. You can select speech subtitle translation, on-screen text translation, or both. This API applies to scenarios such as multilingual distribution of e-commerce videos, international social media marketing, and global brand advertising. The API uses an asynchronous invocation mode. After you submit a translation task, you can obtain the task ID and poll the task status by calling the query API until the task is completed and the result is returned.
|
|
5432
5656
|
*
|
|
5433
5657
|
* @remarks
|
|
5434
5658
|
* ## Product introduction
|
|
5435
|
-
* The video translation API translates speech and on-screen text in
|
|
5436
|
-
*
|
|
5659
|
+
* The video translation API translates the speech and on-screen text in a video into a target language. You can select speech subtitle translation, on-screen text translation, or both. This API applies to scenarios such as multilingual distribution of e-commerce videos, international social media marketing, and global brand advertising.
|
|
5660
|
+
* The API uses an asynchronous invocation mode. After you submit a translation task, you can obtain the `TaskId` and poll the task status by calling the query API until the task is completed and the result is returned.
|
|
5437
5661
|
* ## Scenarios
|
|
5438
|
-
* * **Cross-border e-commerce video localization**: Translates selling point text in product introduction videos into the language of the target market to
|
|
5662
|
+
* * **Cross-border e-commerce video localization**: Translates the selling point text in product introduction videos into the language of the target market to facilitate promotion on overseas platforms.
|
|
5439
5663
|
*
|
|
5440
|
-
* * **International social media marketing**: Localizes on-screen text in videos for platforms such as TikTok, Instagram, and YouTube with one click to improve comprehension and conversion rates among overseas users.
|
|
5664
|
+
* * **International social media marketing**: Localizes the on-screen text in videos for platforms such as TikTok, Instagram, and YouTube with one click to improve comprehension and conversion rates among overseas users.
|
|
5441
5665
|
*
|
|
5442
|
-
* * **Global brand advertising**: Automatically generates video versions in the languages of the
|
|
5666
|
+
* * **Global brand advertising**: Automatically generates video versions in the languages of the target regions to reduce manual production costs.
|
|
5443
5667
|
*
|
|
5444
|
-
* * **Training and product instructions**: Translates on-screen text in training courses or product demo videos into multiple languages for global teams.
|
|
5668
|
+
* * **Training and product instructions**: Translates the on-screen text in training courses or product demo videos into multiple languages for global teams.
|
|
5445
5669
|
* ## Features
|
|
5446
5670
|
* | Feature | Identifier | Description |
|
|
5447
5671
|
* | --- | --- | --- |
|
|
5448
|
-
* | Speech
|
|
5449
|
-
* | On-screen text translation | visual | Translates embedded text
|
|
5450
|
-
* Speech
|
|
5451
|
-
* On-screen text translation (visual) targets recognizable
|
|
5452
|
-
* When both speech and visual are selected, the speech
|
|
5672
|
+
* | Speech subtitle translation | `speech` | Translates the video speech into target language dubbing. Original subtitles are not removed, and no new subtitles are added. |
|
|
5673
|
+
* | On-screen text translation | `visual` | Translates the embedded text (subtitles, selling point text, etc.) in the video frames and erases the original text. You can enable quality check for on-screen text processing by using the API. |
|
|
5674
|
+
* Speech subtitle translation (`speech`) generates target language dubbing based on the spoken content in the video and synthesizes it into the video. It does not remove original subtitles or add new subtitles. Original subtitles refer to the existing subtitles in the video frames that correspond to the spoken content.
|
|
5675
|
+
* On-screen text translation (`visual`) targets the recognizable original language text in the video frames, such as titles, product selling points, and descriptive text. It can be used independently without selecting speech subtitle translation first, and the text does not need to appear in the speech. Original subtitles within the processing scope may also be processed.
|
|
5676
|
+
* When both `speech` and `visual` are selected, the speech subtitle translation is completed and the video is synthesized first. Then, on-screen text processing is performed on this video, retaining the translated dubbing and outputting a final video. The order of features in the array does not affect the execution order. Therefore, not processing original subtitles only means that no subtitles are removed or added during the speech subtitle phase. Subsequent on-screen text processing may still alter the original subtitles.
|
|
5453
5677
|
*
|
|
5454
5678
|
* @param request - VideoTranslationRequest
|
|
5455
5679
|
* @returns VideoTranslationResponse
|