@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/dist/client.js
CHANGED
|
@@ -62,31 +62,78 @@ class Client extends openapi_core_1.default {
|
|
|
62
62
|
return openapi_core_2.OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* Synchronously adds content to a display knowledge base in batches.
|
|
66
|
+
*
|
|
67
|
+
* @param tmpReq - AddDisplayKnowledgeRequest
|
|
68
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
69
|
+
* @returns AddDisplayKnowledgeResponse
|
|
70
|
+
*/
|
|
71
|
+
async addDisplayKnowledgeWithOptions(tmpReq, runtime) {
|
|
72
|
+
tmpReq.validate();
|
|
73
|
+
let request = new $_model.AddDisplayKnowledgeShrinkRequest({});
|
|
74
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
75
|
+
if (!$dara.isNull(tmpReq.records)) {
|
|
76
|
+
request.recordsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.records, "Records", "json");
|
|
77
|
+
}
|
|
78
|
+
let query = {};
|
|
79
|
+
if (!$dara.isNull(request.ragId)) {
|
|
80
|
+
query["RagId"] = request.ragId;
|
|
81
|
+
}
|
|
82
|
+
if (!$dara.isNull(request.recordsShrink)) {
|
|
83
|
+
query["Records"] = request.recordsShrink;
|
|
84
|
+
}
|
|
85
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
86
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
87
|
+
});
|
|
88
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
89
|
+
action: "AddDisplayKnowledge",
|
|
90
|
+
version: "2026-04-28",
|
|
91
|
+
protocol: "HTTPS",
|
|
92
|
+
pathname: "/",
|
|
93
|
+
method: "POST",
|
|
94
|
+
authType: "AK",
|
|
95
|
+
style: "RPC",
|
|
96
|
+
reqBodyType: "formData",
|
|
97
|
+
bodyType: "json",
|
|
98
|
+
});
|
|
99
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.AddDisplayKnowledgeResponse({}));
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Synchronously adds content to a display knowledge base in batches.
|
|
103
|
+
*
|
|
104
|
+
* @param request - AddDisplayKnowledgeRequest
|
|
105
|
+
* @returns AddDisplayKnowledgeResponse
|
|
106
|
+
*/
|
|
107
|
+
async addDisplayKnowledge(request) {
|
|
108
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
109
|
+
return await this.addDisplayKnowledgeWithOptions(request, runtime);
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* 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.
|
|
66
113
|
*
|
|
67
114
|
* @remarks
|
|
68
115
|
* ## Scenarios
|
|
69
|
-
* - **Virtual try-on for clothing
|
|
70
|
-
* Supports
|
|
116
|
+
* - **Virtual try-on for clothing:**
|
|
117
|
+
* 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.
|
|
71
118
|
* - **Virtual try-on for shoes and hats:**
|
|
72
|
-
* Supports virtual try-on for shoes
|
|
119
|
+
* 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.
|
|
73
120
|
* - **E-commerce product display and marketing:**
|
|
74
|
-
* Helps merchants quickly generate model try-on images for different products
|
|
121
|
+
* 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.
|
|
75
122
|
* - **Online shopping experience optimization:**
|
|
76
|
-
*
|
|
123
|
+
* 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.
|
|
77
124
|
* ## Features
|
|
78
|
-
* - **
|
|
79
|
-
* - a. Model image: The person
|
|
80
|
-
* - b. Product image: The clothing, shoes, or hat
|
|
81
|
-
* - **
|
|
82
|
-
* - a. Specify product type:
|
|
83
|
-
* - b. Automatic type recognition: If
|
|
84
|
-
* - **
|
|
85
|
-
* - a. Preserve model details: The generation process does not alter the
|
|
86
|
-
* - b. Maintain
|
|
87
|
-
* - c. Generate try-on
|
|
88
|
-
* ##
|
|
89
|
-
* | **Type** | **Model image** | **
|
|
125
|
+
* - **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:**
|
|
126
|
+
* - a. Model image: The image of the person who will wear the garment in the virtual try-on.
|
|
127
|
+
* - b. Product image: The image of the clothing, shoes, or hat to be worn by the model.
|
|
128
|
+
* - **Select the corresponding product type based on the actual product. Supported types include tops, bottoms, jumpsuits, dresses, shoes, and hats:**
|
|
129
|
+
* - a. Specify product type: You can directly specify the type of the current product, and the system will process it accordingly.
|
|
130
|
+
* - 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.
|
|
131
|
+
* - **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:**
|
|
132
|
+
* - 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.
|
|
133
|
+
* - 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.
|
|
134
|
+
* - 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.
|
|
135
|
+
* ## Examples
|
|
136
|
+
* | **Type** | **Model image** | **Garment image** | **Try-on result** |
|
|
90
137
|
* | --- | --- | --- | --- |
|
|
91
138
|
* | Tops |  |  |  |
|
|
92
139
|
* | Bottoms |  |  |  |
|
|
@@ -131,31 +178,31 @@ class Client extends openapi_core_1.default {
|
|
|
131
178
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.AiTryOnResponse({}));
|
|
132
179
|
}
|
|
133
180
|
/**
|
|
134
|
-
*
|
|
181
|
+
* 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.
|
|
135
182
|
*
|
|
136
183
|
* @remarks
|
|
137
184
|
* ## Scenarios
|
|
138
|
-
* - **Virtual try-on for clothing
|
|
139
|
-
* Supports
|
|
185
|
+
* - **Virtual try-on for clothing:**
|
|
186
|
+
* 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.
|
|
140
187
|
* - **Virtual try-on for shoes and hats:**
|
|
141
|
-
* Supports virtual try-on for shoes
|
|
188
|
+
* 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.
|
|
142
189
|
* - **E-commerce product display and marketing:**
|
|
143
|
-
* Helps merchants quickly generate model try-on images for different products
|
|
190
|
+
* 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.
|
|
144
191
|
* - **Online shopping experience optimization:**
|
|
145
|
-
*
|
|
192
|
+
* 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.
|
|
146
193
|
* ## Features
|
|
147
|
-
* - **
|
|
148
|
-
* - a. Model image: The person
|
|
149
|
-
* - b. Product image: The clothing, shoes, or hat
|
|
150
|
-
* - **
|
|
151
|
-
* - a. Specify product type:
|
|
152
|
-
* - b. Automatic type recognition: If
|
|
153
|
-
* - **
|
|
154
|
-
* - a. Preserve model details: The generation process does not alter the
|
|
155
|
-
* - b. Maintain
|
|
156
|
-
* - c. Generate try-on
|
|
157
|
-
* ##
|
|
158
|
-
* | **Type** | **Model image** | **
|
|
194
|
+
* - **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:**
|
|
195
|
+
* - a. Model image: The image of the person who will wear the garment in the virtual try-on.
|
|
196
|
+
* - b. Product image: The image of the clothing, shoes, or hat to be worn by the model.
|
|
197
|
+
* - **Select the corresponding product type based on the actual product. Supported types include tops, bottoms, jumpsuits, dresses, shoes, and hats:**
|
|
198
|
+
* - a. Specify product type: You can directly specify the type of the current product, and the system will process it accordingly.
|
|
199
|
+
* - 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.
|
|
200
|
+
* - **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:**
|
|
201
|
+
* - 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.
|
|
202
|
+
* - 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.
|
|
203
|
+
* - 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.
|
|
204
|
+
* ## Examples
|
|
205
|
+
* | **Type** | **Model image** | **Garment image** | **Try-on result** |
|
|
159
206
|
* | --- | --- | --- | --- |
|
|
160
207
|
* | Tops |  |  |  |
|
|
161
208
|
* | Bottoms |  |  |  |
|
|
@@ -607,6 +654,53 @@ class Client extends openapi_core_1.default {
|
|
|
607
654
|
let runtime = new $dara.RuntimeOptions({});
|
|
608
655
|
return await this.categoryMatchWithOptions(request, runtime);
|
|
609
656
|
}
|
|
657
|
+
/**
|
|
658
|
+
* Deletes display knowledge base content in batches synchronously.
|
|
659
|
+
*
|
|
660
|
+
* @param tmpReq - DeleteDisplayKnowledgeRequest
|
|
661
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
662
|
+
* @returns DeleteDisplayKnowledgeResponse
|
|
663
|
+
*/
|
|
664
|
+
async deleteDisplayKnowledgeWithOptions(tmpReq, runtime) {
|
|
665
|
+
tmpReq.validate();
|
|
666
|
+
let request = new $_model.DeleteDisplayKnowledgeShrinkRequest({});
|
|
667
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
668
|
+
if (!$dara.isNull(tmpReq.recordIds)) {
|
|
669
|
+
request.recordIdsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.recordIds, "RecordIds", "json");
|
|
670
|
+
}
|
|
671
|
+
let query = {};
|
|
672
|
+
if (!$dara.isNull(request.ragId)) {
|
|
673
|
+
query["RagId"] = request.ragId;
|
|
674
|
+
}
|
|
675
|
+
if (!$dara.isNull(request.recordIdsShrink)) {
|
|
676
|
+
query["RecordIds"] = request.recordIdsShrink;
|
|
677
|
+
}
|
|
678
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
679
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
680
|
+
});
|
|
681
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
682
|
+
action: "DeleteDisplayKnowledge",
|
|
683
|
+
version: "2026-04-28",
|
|
684
|
+
protocol: "HTTPS",
|
|
685
|
+
pathname: "/",
|
|
686
|
+
method: "POST",
|
|
687
|
+
authType: "AK",
|
|
688
|
+
style: "RPC",
|
|
689
|
+
reqBodyType: "formData",
|
|
690
|
+
bodyType: "json",
|
|
691
|
+
});
|
|
692
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteDisplayKnowledgeResponse({}));
|
|
693
|
+
}
|
|
694
|
+
/**
|
|
695
|
+
* Deletes display knowledge base content in batches synchronously.
|
|
696
|
+
*
|
|
697
|
+
* @param request - DeleteDisplayKnowledgeRequest
|
|
698
|
+
* @returns DeleteDisplayKnowledgeResponse
|
|
699
|
+
*/
|
|
700
|
+
async deleteDisplayKnowledge(request) {
|
|
701
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
702
|
+
return await this.deleteDisplayKnowledgeWithOptions(request, runtime);
|
|
703
|
+
}
|
|
610
704
|
/**
|
|
611
705
|
* Calculates the edge lengths and floor area of a floor display based on the floor display image and product detection boxes.
|
|
612
706
|
*
|
|
@@ -3859,6 +3953,65 @@ class Client extends openapi_core_1.default {
|
|
|
3859
3953
|
let runtime = new $dara.RuntimeOptions({});
|
|
3860
3954
|
return await this.queryAsyncTaskResultWithOptions(request, runtime);
|
|
3861
3955
|
}
|
|
3956
|
+
/**
|
|
3957
|
+
* Performs a paged query on the content of a display knowledge base with paging (synchronization).
|
|
3958
|
+
*
|
|
3959
|
+
* @param tmpReq - QueryDisplayKnowledgeRequest
|
|
3960
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3961
|
+
* @returns QueryDisplayKnowledgeResponse
|
|
3962
|
+
*/
|
|
3963
|
+
async queryDisplayKnowledgeWithOptions(tmpReq, runtime) {
|
|
3964
|
+
tmpReq.validate();
|
|
3965
|
+
let request = new $_model.QueryDisplayKnowledgeShrinkRequest({});
|
|
3966
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
3967
|
+
if (!$dara.isNull(tmpReq.statuses)) {
|
|
3968
|
+
request.statusesShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.statuses, "Statuses", "json");
|
|
3969
|
+
}
|
|
3970
|
+
let query = {};
|
|
3971
|
+
if (!$dara.isNull(request.pageNum)) {
|
|
3972
|
+
query["PageNum"] = request.pageNum;
|
|
3973
|
+
}
|
|
3974
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
3975
|
+
query["PageSize"] = request.pageSize;
|
|
3976
|
+
}
|
|
3977
|
+
if (!$dara.isNull(request.ragId)) {
|
|
3978
|
+
query["RagId"] = request.ragId;
|
|
3979
|
+
}
|
|
3980
|
+
if (!$dara.isNull(request.skuId)) {
|
|
3981
|
+
query["SkuId"] = request.skuId;
|
|
3982
|
+
}
|
|
3983
|
+
if (!$dara.isNull(request.skuName)) {
|
|
3984
|
+
query["SkuName"] = request.skuName;
|
|
3985
|
+
}
|
|
3986
|
+
if (!$dara.isNull(request.statusesShrink)) {
|
|
3987
|
+
query["Statuses"] = request.statusesShrink;
|
|
3988
|
+
}
|
|
3989
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
3990
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
3991
|
+
});
|
|
3992
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
3993
|
+
action: "QueryDisplayKnowledge",
|
|
3994
|
+
version: "2026-04-28",
|
|
3995
|
+
protocol: "HTTPS",
|
|
3996
|
+
pathname: "/",
|
|
3997
|
+
method: "POST",
|
|
3998
|
+
authType: "AK",
|
|
3999
|
+
style: "RPC",
|
|
4000
|
+
reqBodyType: "formData",
|
|
4001
|
+
bodyType: "json",
|
|
4002
|
+
});
|
|
4003
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryDisplayKnowledgeResponse({}));
|
|
4004
|
+
}
|
|
4005
|
+
/**
|
|
4006
|
+
* Performs a paged query on the content of a display knowledge base with paging (synchronization).
|
|
4007
|
+
*
|
|
4008
|
+
* @param request - QueryDisplayKnowledgeRequest
|
|
4009
|
+
* @returns QueryDisplayKnowledgeResponse
|
|
4010
|
+
*/
|
|
4011
|
+
async queryDisplayKnowledge(request) {
|
|
4012
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
4013
|
+
return await this.queryDisplayKnowledgeWithOptions(request, runtime);
|
|
4014
|
+
}
|
|
3862
4015
|
/**
|
|
3863
4016
|
* Detects whether an image contains a size chart. (Synchronous)
|
|
3864
4017
|
*
|
|
@@ -4820,36 +4973,36 @@ class Client extends openapi_core_1.default {
|
|
|
4820
4973
|
return await this.textTranslateWithOptions(request, runtime);
|
|
4821
4974
|
}
|
|
4822
4975
|
/**
|
|
4823
|
-
*
|
|
4976
|
+
* 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.
|
|
4824
4977
|
*
|
|
4825
4978
|
* @remarks
|
|
4826
|
-
* ##
|
|
4827
|
-
* *
|
|
4979
|
+
* ## Scenarios
|
|
4980
|
+
* * 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.
|
|
4828
4981
|
*
|
|
4829
|
-
* *
|
|
4982
|
+
* * 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.
|
|
4830
4983
|
*
|
|
4831
|
-
* *
|
|
4984
|
+
* * Product attributes: Product attribute terms are short and contain e-commerce-specific words such as models and parameters.
|
|
4832
4985
|
*
|
|
4833
|
-
* *
|
|
4986
|
+
* * 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.
|
|
4834
4987
|
*
|
|
4835
|
-
*
|
|
4836
|
-
* ##
|
|
4837
|
-
* *
|
|
4988
|
+
* The Maas MT large language model can also be used for translation in general scenarios, such as office work, meetings, and daily conversations.
|
|
4989
|
+
* ## Features
|
|
4990
|
+
* * **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.
|
|
4838
4991
|
*
|
|
4839
|
-
* *
|
|
4992
|
+
* * **Supported text formats** The model supports text and HTML formats.
|
|
4840
4993
|
*
|
|
4841
|
-
* *
|
|
4994
|
+
* * **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.
|
|
4842
4995
|
*
|
|
4843
|
-
* *
|
|
4844
|
-
* |
|
|
4996
|
+
* * **Translation quality comparison**
|
|
4997
|
+
* | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantages** |
|
|
4845
4998
|
* | --- | --- | --- | --- | --- |
|
|
4846
|
-
* | 75mm
|
|
4847
|
-
* | New
|
|
4848
|
-
* | Men
|
|
4849
|
-
* ##
|
|
4850
|
-
*
|
|
4851
|
-
*
|
|
4852
|
-
*
|
|
4999
|
+
* | 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 |
|
|
5000
|
+
* | 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 |
|
|
5001
|
+
* | 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 |
|
|
5002
|
+
* ## Preparations and invocation flow
|
|
5003
|
+
* 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).
|
|
5004
|
+
* 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.
|
|
5005
|
+
* 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).
|
|
4853
5006
|
*
|
|
4854
5007
|
* @param tmpReq - TextTranslateAsyncRequest
|
|
4855
5008
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -4904,36 +5057,36 @@ class Client extends openapi_core_1.default {
|
|
|
4904
5057
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.TextTranslateAsyncResponse({}));
|
|
4905
5058
|
}
|
|
4906
5059
|
/**
|
|
4907
|
-
*
|
|
5060
|
+
* 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.
|
|
4908
5061
|
*
|
|
4909
5062
|
* @remarks
|
|
4910
|
-
* ##
|
|
4911
|
-
* *
|
|
5063
|
+
* ## Scenarios
|
|
5064
|
+
* * 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.
|
|
4912
5065
|
*
|
|
4913
|
-
* *
|
|
5066
|
+
* * 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.
|
|
4914
5067
|
*
|
|
4915
|
-
* *
|
|
5068
|
+
* * Product attributes: Product attribute terms are short and contain e-commerce-specific words such as models and parameters.
|
|
4916
5069
|
*
|
|
4917
|
-
* *
|
|
5070
|
+
* * 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.
|
|
4918
5071
|
*
|
|
4919
|
-
*
|
|
4920
|
-
* ##
|
|
4921
|
-
* *
|
|
5072
|
+
* The Maas MT large language model can also be used for translation in general scenarios, such as office work, meetings, and daily conversations.
|
|
5073
|
+
* ## Features
|
|
5074
|
+
* * **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.
|
|
4922
5075
|
*
|
|
4923
|
-
* *
|
|
5076
|
+
* * **Supported text formats** The model supports text and HTML formats.
|
|
4924
5077
|
*
|
|
4925
|
-
* *
|
|
5078
|
+
* * **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.
|
|
4926
5079
|
*
|
|
4927
|
-
* *
|
|
4928
|
-
* |
|
|
5080
|
+
* * **Translation quality comparison**
|
|
5081
|
+
* | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantages** |
|
|
4929
5082
|
* | --- | --- | --- | --- | --- |
|
|
4930
|
-
* | 75mm
|
|
4931
|
-
* | New
|
|
4932
|
-
* | Men
|
|
4933
|
-
* ##
|
|
4934
|
-
*
|
|
4935
|
-
*
|
|
4936
|
-
*
|
|
5083
|
+
* | 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 |
|
|
5084
|
+
* | 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 |
|
|
5085
|
+
* | 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 |
|
|
5086
|
+
* ## Preparations and invocation flow
|
|
5087
|
+
* 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).
|
|
5088
|
+
* 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.
|
|
5089
|
+
* 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).
|
|
4937
5090
|
*
|
|
4938
5091
|
* @param request - TextTranslateAsyncRequest
|
|
4939
5092
|
* @returns TextTranslateAsyncResponse
|
|
@@ -4942,6 +5095,53 @@ class Client extends openapi_core_1.default {
|
|
|
4942
5095
|
let runtime = new $dara.RuntimeOptions({});
|
|
4943
5096
|
return await this.textTranslateAsyncWithOptions(request, runtime);
|
|
4944
5097
|
}
|
|
5098
|
+
/**
|
|
5099
|
+
* Synchronously updates the content of a display knowledge base in batches.
|
|
5100
|
+
*
|
|
5101
|
+
* @param tmpReq - UpdateDisplayKnowledgeRequest
|
|
5102
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5103
|
+
* @returns UpdateDisplayKnowledgeResponse
|
|
5104
|
+
*/
|
|
5105
|
+
async updateDisplayKnowledgeWithOptions(tmpReq, runtime) {
|
|
5106
|
+
tmpReq.validate();
|
|
5107
|
+
let request = new $_model.UpdateDisplayKnowledgeShrinkRequest({});
|
|
5108
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
5109
|
+
if (!$dara.isNull(tmpReq.records)) {
|
|
5110
|
+
request.recordsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.records, "Records", "json");
|
|
5111
|
+
}
|
|
5112
|
+
let query = {};
|
|
5113
|
+
if (!$dara.isNull(request.ragId)) {
|
|
5114
|
+
query["RagId"] = request.ragId;
|
|
5115
|
+
}
|
|
5116
|
+
if (!$dara.isNull(request.recordsShrink)) {
|
|
5117
|
+
query["Records"] = request.recordsShrink;
|
|
5118
|
+
}
|
|
5119
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
5120
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
5121
|
+
});
|
|
5122
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
5123
|
+
action: "UpdateDisplayKnowledge",
|
|
5124
|
+
version: "2026-04-28",
|
|
5125
|
+
protocol: "HTTPS",
|
|
5126
|
+
pathname: "/",
|
|
5127
|
+
method: "POST",
|
|
5128
|
+
authType: "AK",
|
|
5129
|
+
style: "RPC",
|
|
5130
|
+
reqBodyType: "formData",
|
|
5131
|
+
bodyType: "json",
|
|
5132
|
+
});
|
|
5133
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateDisplayKnowledgeResponse({}));
|
|
5134
|
+
}
|
|
5135
|
+
/**
|
|
5136
|
+
* Synchronously updates the content of a display knowledge base in batches.
|
|
5137
|
+
*
|
|
5138
|
+
* @param request - UpdateDisplayKnowledgeRequest
|
|
5139
|
+
* @returns UpdateDisplayKnowledgeResponse
|
|
5140
|
+
*/
|
|
5141
|
+
async updateDisplayKnowledge(request) {
|
|
5142
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
5143
|
+
return await this.updateDisplayKnowledgeWithOptions(request, runtime);
|
|
5144
|
+
}
|
|
4945
5145
|
/**
|
|
4946
5146
|
* 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.
|
|
4947
5147
|
*
|
|
@@ -5035,28 +5235,28 @@ class Client extends openapi_core_1.default {
|
|
|
5035
5235
|
return await this.videoGenerationWithOptions(request, runtime);
|
|
5036
5236
|
}
|
|
5037
5237
|
/**
|
|
5038
|
-
* Translates
|
|
5238
|
+
* 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.
|
|
5039
5239
|
*
|
|
5040
5240
|
* @remarks
|
|
5041
5241
|
* ## Product introduction
|
|
5042
|
-
* The video translation API translates speech and on-screen text in
|
|
5043
|
-
*
|
|
5242
|
+
* 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.
|
|
5243
|
+
* 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.
|
|
5044
5244
|
* ## Scenarios
|
|
5045
|
-
* * **Cross-border e-commerce video localization**: Translates selling point text in product introduction videos into the language of the target market to
|
|
5245
|
+
* * **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.
|
|
5046
5246
|
*
|
|
5047
|
-
* * **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.
|
|
5247
|
+
* * **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.
|
|
5048
5248
|
*
|
|
5049
|
-
* * **Global brand advertising**: Automatically generates video versions in the languages of the
|
|
5249
|
+
* * **Global brand advertising**: Automatically generates video versions in the languages of the target regions to reduce manual production costs.
|
|
5050
5250
|
*
|
|
5051
|
-
* * **Training and product instructions**: Translates on-screen text in training courses or product demo videos into multiple languages for global teams.
|
|
5251
|
+
* * **Training and product instructions**: Translates the on-screen text in training courses or product demo videos into multiple languages for global teams.
|
|
5052
5252
|
* ## Features
|
|
5053
5253
|
* | Feature | Identifier | Description |
|
|
5054
5254
|
* | --- | --- | --- |
|
|
5055
|
-
* | Speech
|
|
5056
|
-
* | On-screen text translation | visual | Translates embedded text
|
|
5057
|
-
* Speech
|
|
5058
|
-
* On-screen text translation (visual) targets recognizable
|
|
5059
|
-
* When both speech and visual are selected, the speech
|
|
5255
|
+
* | Speech subtitle translation | `speech` | Translates the video speech into target language dubbing. Original subtitles are not removed, and no new subtitles are added. |
|
|
5256
|
+
* | 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. |
|
|
5257
|
+
* 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.
|
|
5258
|
+
* 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.
|
|
5259
|
+
* 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.
|
|
5060
5260
|
*
|
|
5061
5261
|
* @param tmpReq - VideoTranslationRequest
|
|
5062
5262
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -5113,28 +5313,28 @@ class Client extends openapi_core_1.default {
|
|
|
5113
5313
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.VideoTranslationResponse({}));
|
|
5114
5314
|
}
|
|
5115
5315
|
/**
|
|
5116
|
-
* Translates
|
|
5316
|
+
* 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.
|
|
5117
5317
|
*
|
|
5118
5318
|
* @remarks
|
|
5119
5319
|
* ## Product introduction
|
|
5120
|
-
* The video translation API translates speech and on-screen text in
|
|
5121
|
-
*
|
|
5320
|
+
* 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.
|
|
5321
|
+
* 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.
|
|
5122
5322
|
* ## Scenarios
|
|
5123
|
-
* * **Cross-border e-commerce video localization**: Translates selling point text in product introduction videos into the language of the target market to
|
|
5323
|
+
* * **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.
|
|
5124
5324
|
*
|
|
5125
|
-
* * **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.
|
|
5325
|
+
* * **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.
|
|
5126
5326
|
*
|
|
5127
|
-
* * **Global brand advertising**: Automatically generates video versions in the languages of the
|
|
5327
|
+
* * **Global brand advertising**: Automatically generates video versions in the languages of the target regions to reduce manual production costs.
|
|
5128
5328
|
*
|
|
5129
|
-
* * **Training and product instructions**: Translates on-screen text in training courses or product demo videos into multiple languages for global teams.
|
|
5329
|
+
* * **Training and product instructions**: Translates the on-screen text in training courses or product demo videos into multiple languages for global teams.
|
|
5130
5330
|
* ## Features
|
|
5131
5331
|
* | Feature | Identifier | Description |
|
|
5132
5332
|
* | --- | --- | --- |
|
|
5133
|
-
* | Speech
|
|
5134
|
-
* | On-screen text translation | visual | Translates embedded text
|
|
5135
|
-
* Speech
|
|
5136
|
-
* On-screen text translation (visual) targets recognizable
|
|
5137
|
-
* When both speech and visual are selected, the speech
|
|
5333
|
+
* | Speech subtitle translation | `speech` | Translates the video speech into target language dubbing. Original subtitles are not removed, and no new subtitles are added. |
|
|
5334
|
+
* | 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. |
|
|
5335
|
+
* 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.
|
|
5336
|
+
* 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.
|
|
5337
|
+
* 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.
|
|
5138
5338
|
*
|
|
5139
5339
|
* @param request - VideoTranslationRequest
|
|
5140
5340
|
* @returns VideoTranslationResponse
|