@huaweicloud/huaweicloud-sdk-metastudio 3.1.156 → 3.1.158
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/package.json +2 -2
- package/v1/MetaStudioClient.d.ts +227 -6
- package/v1/MetaStudioClient.d.ts.map +1 -1
- package/v1/MetaStudioClient.js +617 -12
- package/v1/MetaStudioClient.js.map +1 -1
- package/v1/model/AsrVocabularyAssociation.d.ts +19 -0
- package/v1/model/AsrVocabularyAssociation.d.ts.map +1 -0
- package/v1/model/AsrVocabularyAssociation.js +43 -0
- package/v1/model/AsrVocabularyAssociation.js.map +1 -0
- package/v1/model/AsrVocabularyInfo.d.ts +28 -0
- package/v1/model/AsrVocabularyInfo.d.ts.map +1 -0
- package/v1/model/AsrVocabularyInfo.js +61 -0
- package/v1/model/AsrVocabularyInfo.js.map +1 -0
- package/v1/model/AsrVocabularyTypeEnum.d.ts +4 -0
- package/v1/model/AsrVocabularyTypeEnum.d.ts.map +1 -0
- package/v1/model/AsrVocabularyTypeEnum.js +9 -0
- package/v1/model/AsrVocabularyTypeEnum.js.map +1 -0
- package/v1/model/AssetExtraMeta.d.ts +0 -15
- package/v1/model/AssetExtraMeta.d.ts.map +1 -1
- package/v1/model/AssetExtraMeta.js +0 -30
- package/v1/model/AssetExtraMeta.js.map +1 -1
- package/v1/model/CreateAsrVocabularyReq.d.ts +19 -0
- package/v1/model/CreateAsrVocabularyReq.d.ts.map +1 -0
- package/v1/model/CreateAsrVocabularyReq.js +40 -0
- package/v1/model/CreateAsrVocabularyReq.js.map +1 -0
- package/v1/model/CreateAsrVocabularyRequest.d.ts +23 -0
- package/v1/model/CreateAsrVocabularyRequest.d.ts.map +1 -0
- package/v1/model/CreateAsrVocabularyRequest.js +53 -0
- package/v1/model/CreateAsrVocabularyRequest.js.map +1 -0
- package/v1/model/CreateAsrVocabularyResponse.d.ts +33 -0
- package/v1/model/CreateAsrVocabularyResponse.d.ts.map +1 -0
- package/v1/model/CreateAsrVocabularyResponse.js +73 -0
- package/v1/model/CreateAsrVocabularyResponse.js.map +1 -0
- package/v1/model/CreateAsyncTtsJobRequestBody.d.ts +2 -0
- package/v1/model/CreateAsyncTtsJobRequestBody.d.ts.map +1 -1
- package/v1/model/CreateAsyncTtsJobRequestBody.js +4 -0
- package/v1/model/CreateAsyncTtsJobRequestBody.js.map +1 -1
- package/v1/model/CreateHotWordsReq.d.ts +6 -1
- package/v1/model/CreateHotWordsReq.d.ts.map +1 -1
- package/v1/model/CreateHotWordsReq.js +11 -2
- package/v1/model/CreateHotWordsReq.js.map +1 -1
- package/v1/model/CreateMobvoiHotWords.d.ts +11 -0
- package/v1/model/CreateMobvoiHotWords.d.ts.map +1 -0
- package/v1/model/CreateMobvoiHotWords.js +25 -0
- package/v1/model/CreateMobvoiHotWords.js.map +1 -0
- package/v1/model/DeleteAsrVocabularyRequest.d.ts +24 -0
- package/v1/model/DeleteAsrVocabularyRequest.d.ts.map +1 -0
- package/v1/model/DeleteAsrVocabularyRequest.js +60 -0
- package/v1/model/DeleteAsrVocabularyRequest.js.map +1 -0
- package/v1/model/DeleteAsrVocabularyResponse.d.ts +9 -0
- package/v1/model/DeleteAsrVocabularyResponse.d.ts.map +1 -0
- package/v1/model/DeleteAsrVocabularyResponse.js +21 -0
- package/v1/model/DeleteAsrVocabularyResponse.js.map +1 -0
- package/v1/model/HumanModel2DAssetMeta.d.ts +4 -0
- package/v1/model/HumanModel2DAssetMeta.d.ts.map +1 -1
- package/v1/model/HumanModel2DAssetMeta.js +10 -0
- package/v1/model/HumanModel2DAssetMeta.js.map +1 -1
- package/v1/model/ListAsrVocabularyRequest.d.ts +49 -0
- package/v1/model/ListAsrVocabularyRequest.d.ts.map +1 -0
- package/v1/model/ListAsrVocabularyRequest.js +92 -0
- package/v1/model/ListAsrVocabularyRequest.js.map +1 -0
- package/v1/model/ListAsrVocabularyResponse.d.ts +18 -0
- package/v1/model/ListAsrVocabularyResponse.d.ts.map +1 -0
- package/v1/model/ListAsrVocabularyResponse.js +37 -0
- package/v1/model/ListAsrVocabularyResponse.js.map +1 -0
- package/v1/model/ListAssetsRequest.d.ts +0 -4
- package/v1/model/ListAssetsRequest.d.ts.map +1 -1
- package/v1/model/ListAssetsRequest.js +0 -10
- package/v1/model/ListAssetsRequest.js.map +1 -1
- package/v1/model/ListHotWordsRequest.d.ts +17 -1
- package/v1/model/ListHotWordsRequest.d.ts.map +1 -1
- package/v1/model/ListHotWordsRequest.js +24 -1
- package/v1/model/ListHotWordsRequest.js.map +1 -1
- package/v1/model/ListSmartChatJobRequest.d.ts +30 -0
- package/v1/model/ListSmartChatJobRequest.d.ts.map +1 -0
- package/v1/model/ListSmartChatJobRequest.js +72 -0
- package/v1/model/ListSmartChatJobRequest.js.map +1 -0
- package/v1/model/ListSmartChatJobResponse.d.ts +16 -0
- package/v1/model/ListSmartChatJobResponse.d.ts.map +1 -0
- package/v1/model/ListSmartChatJobResponse.js +35 -0
- package/v1/model/ListSmartChatJobResponse.js.map +1 -0
- package/v1/model/MobvoiVocabulary.d.ts +6 -0
- package/v1/model/MobvoiVocabulary.d.ts.map +1 -0
- package/v1/model/MobvoiVocabulary.js +14 -0
- package/v1/model/MobvoiVocabulary.js.map +1 -0
- package/v1/model/ShowAsrVocabularyAssociationRequest.d.ts +28 -0
- package/v1/model/ShowAsrVocabularyAssociationRequest.d.ts.map +1 -0
- package/v1/model/ShowAsrVocabularyAssociationRequest.js +68 -0
- package/v1/model/ShowAsrVocabularyAssociationRequest.js.map +1 -0
- package/v1/model/ShowAsrVocabularyAssociationResponse.d.ts +18 -0
- package/v1/model/ShowAsrVocabularyAssociationResponse.d.ts.map +1 -0
- package/v1/model/ShowAsrVocabularyAssociationResponse.js +37 -0
- package/v1/model/ShowAsrVocabularyAssociationResponse.js.map +1 -0
- package/v1/model/ShowAsrVocabularyRequest.d.ts +24 -0
- package/v1/model/ShowAsrVocabularyRequest.d.ts.map +1 -0
- package/v1/model/ShowAsrVocabularyRequest.js +60 -0
- package/v1/model/ShowAsrVocabularyRequest.js.map +1 -0
- package/v1/model/ShowAsrVocabularyResponse.d.ts +33 -0
- package/v1/model/ShowAsrVocabularyResponse.d.ts.map +1 -0
- package/v1/model/ShowAsrVocabularyResponse.js +73 -0
- package/v1/model/ShowAsrVocabularyResponse.js.map +1 -0
- package/v1/model/ShowAsyncTtsJobResponse.d.ts +8 -0
- package/v1/model/ShowAsyncTtsJobResponse.d.ts.map +1 -1
- package/v1/model/ShowAsyncTtsJobResponse.js +20 -0
- package/v1/model/ShowAsyncTtsJobResponse.js.map +1 -1
- package/v1/model/ShowSmartChatJobResponse.d.ts +34 -18
- package/v1/model/ShowSmartChatJobResponse.d.ts.map +1 -1
- package/v1/model/ShowSmartChatJobResponse.js +74 -45
- package/v1/model/ShowSmartChatJobResponse.js.map +1 -1
- package/v1/model/SmartChatJobBaseInfo.d.ts +115 -0
- package/v1/model/SmartChatJobBaseInfo.d.ts.map +1 -0
- package/v1/model/SmartChatJobBaseInfo.js +214 -0
- package/v1/model/SmartChatJobBaseInfo.js.map +1 -0
- package/v1/model/UpdateAsrVocabularyReq.d.ts +19 -0
- package/v1/model/UpdateAsrVocabularyReq.d.ts.map +1 -0
- package/v1/model/UpdateAsrVocabularyReq.js +38 -0
- package/v1/model/UpdateAsrVocabularyReq.js.map +1 -0
- package/v1/model/UpdateAsrVocabularyRequest.d.ts +27 -0
- package/v1/model/UpdateAsrVocabularyRequest.d.ts.map +1 -0
- package/v1/model/UpdateAsrVocabularyRequest.js +64 -0
- package/v1/model/UpdateAsrVocabularyRequest.js.map +1 -0
- package/v1/model/UpdateAsrVocabularyResponse.d.ts +33 -0
- package/v1/model/UpdateAsrVocabularyResponse.d.ts.map +1 -0
- package/v1/model/UpdateAsrVocabularyResponse.js +73 -0
- package/v1/model/UpdateAsrVocabularyResponse.js.map +1 -0
- package/v1/model/UpdateHotWordsReq.d.ts +6 -1
- package/v1/model/UpdateHotWordsReq.d.ts.map +1 -1
- package/v1/model/UpdateHotWordsReq.js +11 -2
- package/v1/model/UpdateHotWordsReq.js.map +1 -1
- package/v1/model/UpdateMobvoiHotWords.d.ts +11 -0
- package/v1/model/UpdateMobvoiHotWords.d.ts.map +1 -0
- package/v1/model/UpdateMobvoiHotWords.js +23 -0
- package/v1/model/UpdateMobvoiHotWords.js.map +1 -0
- package/v1/public-api.d.ts +23 -6
- package/v1/public-api.d.ts.map +1 -1
- package/v1/public-api.js +23 -6
- package/v1/public-api.js.map +1 -1
- package/v1/model/AnimationAssetMeta.d.ts +0 -30
- package/v1/model/AnimationAssetMeta.d.ts.map +0 -1
- package/v1/model/AnimationAssetMeta.js +0 -62
- package/v1/model/AnimationAssetMeta.js.map +0 -1
- package/v1/model/ComponentInfo.d.ts +0 -16
- package/v1/model/ComponentInfo.d.ts.map +0 -1
- package/v1/model/ComponentInfo.js +0 -41
- package/v1/model/ComponentInfo.js.map +0 -1
- package/v1/model/HumanModelAssetMeta.d.ts +0 -33
- package/v1/model/HumanModelAssetMeta.d.ts.map +0 -1
- package/v1/model/HumanModelAssetMeta.js +0 -63
- package/v1/model/HumanModelAssetMeta.js.map +0 -1
- package/v1/model/HumanModelMetaProperties.d.ts +0 -12
- package/v1/model/HumanModelMetaProperties.d.ts.map +0 -1
- package/v1/model/HumanModelMetaProperties.js +0 -29
- package/v1/model/HumanModelMetaProperties.js.map +0 -1
- package/v1/model/SceneAssetMeta.d.ts +0 -17
- package/v1/model/SceneAssetMeta.d.ts.map +0 -1
- package/v1/model/SceneAssetMeta.js +0 -23
- package/v1/model/SceneAssetMeta.js.map +0 -1
- package/v1/model/SceneComponentInfo.d.ts +0 -27
- package/v1/model/SceneComponentInfo.d.ts.map +0 -1
- package/v1/model/SceneComponentInfo.js +0 -55
- package/v1/model/SceneComponentInfo.js.map +0 -1
package/v1/MetaStudioClient.js
CHANGED
|
@@ -21,6 +21,7 @@ const Create2DDigitalHumanVideoRequest_1 = require("./model/Create2DDigitalHuman
|
|
|
21
21
|
const Create2dModelTrainingJobRequest_1 = require("./model/Create2dModelTrainingJobRequest");
|
|
22
22
|
const CreateActiveCodeRequest_1 = require("./model/CreateActiveCodeRequest");
|
|
23
23
|
const CreateAgencyWithRoleTypeRequest_1 = require("./model/CreateAgencyWithRoleTypeRequest");
|
|
24
|
+
const CreateAsrVocabularyRequest_1 = require("./model/CreateAsrVocabularyRequest");
|
|
24
25
|
const CreateAssetByReplicationInfoRequest_1 = require("./model/CreateAssetByReplicationInfoRequest");
|
|
25
26
|
const CreateAsyncTtsJobRequest_1 = require("./model/CreateAsyncTtsJobRequest");
|
|
26
27
|
const CreateBatchKnowledgeQuestionRequest_1 = require("./model/CreateBatchKnowledgeQuestionRequest");
|
|
@@ -63,6 +64,7 @@ const CreateWelcomeSpeechRequest_1 = require("./model/CreateWelcomeSpeechRequest
|
|
|
63
64
|
const Delete2dModelTrainingJobRequest_1 = require("./model/Delete2dModelTrainingJobRequest");
|
|
64
65
|
const DeleteActiveCodeRequest_1 = require("./model/DeleteActiveCodeRequest");
|
|
65
66
|
const DeleteAgencyWithRoleTypeRequest_1 = require("./model/DeleteAgencyWithRoleTypeRequest");
|
|
67
|
+
const DeleteAsrVocabularyRequest_1 = require("./model/DeleteAsrVocabularyRequest");
|
|
66
68
|
const DeleteAssetRequest_1 = require("./model/DeleteAssetRequest");
|
|
67
69
|
const DeleteDialogReportConfigRequest_1 = require("./model/DeleteDialogReportConfigRequest");
|
|
68
70
|
const DeleteDigitalHumanBusinessCardRequest_1 = require("./model/DeleteDigitalHumanBusinessCardRequest");
|
|
@@ -89,6 +91,7 @@ const ExecuteVideoMotionCaptureCommandRequest_1 = require("./model/ExecuteVideoM
|
|
|
89
91
|
const ExportKnowledgeSkillRequest_1 = require("./model/ExportKnowledgeSkillRequest");
|
|
90
92
|
const List2dModelTrainingJobRequest_1 = require("./model/List2dModelTrainingJobRequest");
|
|
91
93
|
const ListActiveCodeRequest_1 = require("./model/ListActiveCodeRequest");
|
|
94
|
+
const ListAsrVocabularyRequest_1 = require("./model/ListAsrVocabularyRequest");
|
|
92
95
|
const ListAssetSummaryRequest_1 = require("./model/ListAssetSummaryRequest");
|
|
93
96
|
const ListAssetsRequest_1 = require("./model/ListAssetsRequest");
|
|
94
97
|
const ListDigitalHumanBusinessCardRequest_1 = require("./model/ListDigitalHumanBusinessCardRequest");
|
|
@@ -107,6 +110,7 @@ const ListPacifyWordsRequest_1 = require("./model/ListPacifyWordsRequest");
|
|
|
107
110
|
const ListPictureModelingJobsRequest_1 = require("./model/ListPictureModelingJobsRequest");
|
|
108
111
|
const ListProductsRequest_1 = require("./model/ListProductsRequest");
|
|
109
112
|
const ListRobotRequest_1 = require("./model/ListRobotRequest");
|
|
113
|
+
const ListSmartChatJobRequest_1 = require("./model/ListSmartChatJobRequest");
|
|
110
114
|
const ListSmartChatRoomsRequest_1 = require("./model/ListSmartChatRoomsRequest");
|
|
111
115
|
const ListSmartLiveJobsRequest_1 = require("./model/ListSmartLiveJobsRequest");
|
|
112
116
|
const ListSmartLiveRequest_1 = require("./model/ListSmartLiveRequest");
|
|
@@ -132,6 +136,8 @@ const Show2DDigitalHumanVideoRequest_1 = require("./model/Show2DDigitalHumanVide
|
|
|
132
136
|
const Show2dModelTrainingJobRequest_1 = require("./model/Show2dModelTrainingJobRequest");
|
|
133
137
|
const ShowActiveCodeRequest_1 = require("./model/ShowActiveCodeRequest");
|
|
134
138
|
const ShowAgencyRequest_1 = require("./model/ShowAgencyRequest");
|
|
139
|
+
const ShowAsrVocabularyAssociationRequest_1 = require("./model/ShowAsrVocabularyAssociationRequest");
|
|
140
|
+
const ShowAsrVocabularyRequest_1 = require("./model/ShowAsrVocabularyRequest");
|
|
135
141
|
const ShowAssetReplicationInfoRequest_1 = require("./model/ShowAssetReplicationInfoRequest");
|
|
136
142
|
const ShowAssetRequest_1 = require("./model/ShowAssetRequest");
|
|
137
143
|
const ShowAsyncTtsJobRequest_1 = require("./model/ShowAsyncTtsJobRequest");
|
|
@@ -176,6 +182,7 @@ const StopSmartLiveRequest_1 = require("./model/StopSmartLiveRequest");
|
|
|
176
182
|
const StopVideoMotionCaptureJobRequest_1 = require("./model/StopVideoMotionCaptureJobRequest");
|
|
177
183
|
const Update2dModelTrainingJobRequest_1 = require("./model/Update2dModelTrainingJobRequest");
|
|
178
184
|
const UpdateActiveCodeRequest_1 = require("./model/UpdateActiveCodeRequest");
|
|
185
|
+
const UpdateAsrVocabularyRequest_1 = require("./model/UpdateAsrVocabularyRequest");
|
|
179
186
|
const UpdateBatchKnowledgeQuestionRequest_1 = require("./model/UpdateBatchKnowledgeQuestionRequest");
|
|
180
187
|
const UpdateDialogReportConfigRequest_1 = require("./model/UpdateDialogReportConfigRequest");
|
|
181
188
|
const UpdateDigitalAssetRequest_1 = require("./model/UpdateDigitalAssetRequest");
|
|
@@ -382,6 +389,132 @@ class MetaStudioClient {
|
|
|
382
389
|
options['responseHeaders'] = ['X-Request-Id'];
|
|
383
390
|
return this.hcClient.sendRequest(options);
|
|
384
391
|
}
|
|
392
|
+
/**
|
|
393
|
+
* 该接口用于创建热词表。
|
|
394
|
+
*
|
|
395
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
396
|
+
*
|
|
397
|
+
* @summary 创建热词表
|
|
398
|
+
* @param {CreateAsrVocabularyReq} createAsrVocabularyRequestBody 创建热词表请求。
|
|
399
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
400
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
|
|
401
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
402
|
+
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
403
|
+
* @param {*} [options] Override http request option.
|
|
404
|
+
* @throws {RequiredError}
|
|
405
|
+
*/
|
|
406
|
+
createAsrVocabulary(createAsrVocabularyRequest) {
|
|
407
|
+
const options = (0, exports.ParamCreater)().createAsrVocabulary(createAsrVocabularyRequest);
|
|
408
|
+
// @ts-ignore
|
|
409
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
410
|
+
return this.hcClient.sendRequest(options);
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* 该接口用于删除热词表。
|
|
414
|
+
*
|
|
415
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
416
|
+
*
|
|
417
|
+
* @summary 删除热词表
|
|
418
|
+
* @param {string} asrVocabularyId 热词表ID。
|
|
419
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
420
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
|
|
421
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
422
|
+
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
423
|
+
* @param {*} [options] Override http request option.
|
|
424
|
+
* @throws {RequiredError}
|
|
425
|
+
*/
|
|
426
|
+
deleteAsrVocabulary(deleteAsrVocabularyRequest) {
|
|
427
|
+
const options = (0, exports.ParamCreater)().deleteAsrVocabulary(deleteAsrVocabularyRequest);
|
|
428
|
+
// @ts-ignore
|
|
429
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
430
|
+
return this.hcClient.sendRequest(options);
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* 该接口用于查询热词表列表。
|
|
434
|
+
*
|
|
435
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
436
|
+
*
|
|
437
|
+
* @summary 查询热词表列表
|
|
438
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
439
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
|
|
440
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
441
|
+
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
442
|
+
* @param {number} [offset] 偏移量,表示从此偏移量开始查询。
|
|
443
|
+
* @param {number} [limit] 每页显示的条目数量。
|
|
444
|
+
* @param {'MOBVOI'} [vocabularyType] 词表类型。 > MOBVOI:使用的语音识别服务为MOBVOI时选择此类型
|
|
445
|
+
* @param {'CN' | 'EN' | 'ESP' | 'por' | 'Arabic' | 'Thai'} [language] 智能交互语言 * CN:中文。 * EN:英文。 * ESP:西班牙语(仅海外站点支持) * por:葡萄牙语(仅海外站点支持) * Arabic:阿拉伯语(仅海外站点支持) * Thai:泰语(仅海外站点支持)
|
|
446
|
+
* @param {*} [options] Override http request option.
|
|
447
|
+
* @throws {RequiredError}
|
|
448
|
+
*/
|
|
449
|
+
listAsrVocabulary(listAsrVocabularyRequest) {
|
|
450
|
+
const options = (0, exports.ParamCreater)().listAsrVocabulary(listAsrVocabularyRequest);
|
|
451
|
+
// @ts-ignore
|
|
452
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
453
|
+
return this.hcClient.sendRequest(options);
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* 该接口用于查询热词表详情。
|
|
457
|
+
*
|
|
458
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
459
|
+
*
|
|
460
|
+
* @summary 查询热词表详情
|
|
461
|
+
* @param {string} asrVocabularyId 热词表ID。
|
|
462
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
463
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
|
|
464
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
465
|
+
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
466
|
+
* @param {*} [options] Override http request option.
|
|
467
|
+
* @throws {RequiredError}
|
|
468
|
+
*/
|
|
469
|
+
showAsrVocabulary(showAsrVocabularyRequest) {
|
|
470
|
+
const options = (0, exports.ParamCreater)().showAsrVocabulary(showAsrVocabularyRequest);
|
|
471
|
+
// @ts-ignore
|
|
472
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
473
|
+
return this.hcClient.sendRequest(options);
|
|
474
|
+
}
|
|
475
|
+
/**
|
|
476
|
+
* 该接口用于查询热词表关联详情。
|
|
477
|
+
*
|
|
478
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
479
|
+
*
|
|
480
|
+
* @summary 查询热词表关联详情
|
|
481
|
+
* @param {string} asrVocabularyId 热词表ID。
|
|
482
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
483
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
|
|
484
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
485
|
+
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
486
|
+
* @param {number} [offset] 偏移量,表示从此偏移量开始查询。
|
|
487
|
+
* @param {number} [limit] 每页显示的条目数量。
|
|
488
|
+
* @param {*} [options] Override http request option.
|
|
489
|
+
* @throws {RequiredError}
|
|
490
|
+
*/
|
|
491
|
+
showAsrVocabularyAssociation(showAsrVocabularyAssociationRequest) {
|
|
492
|
+
const options = (0, exports.ParamCreater)().showAsrVocabularyAssociation(showAsrVocabularyAssociationRequest);
|
|
493
|
+
// @ts-ignore
|
|
494
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
495
|
+
return this.hcClient.sendRequest(options);
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* 该接口用于修改热词表。
|
|
499
|
+
*
|
|
500
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
501
|
+
*
|
|
502
|
+
* @summary 修改热词表
|
|
503
|
+
* @param {string} asrVocabularyId 热词表ID。
|
|
504
|
+
* @param {UpdateAsrVocabularyReq} updateAsrVocabularyRequestBody 修改热词表请求。
|
|
505
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
506
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
|
|
507
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
508
|
+
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
509
|
+
* @param {*} [options] Override http request option.
|
|
510
|
+
* @throws {RequiredError}
|
|
511
|
+
*/
|
|
512
|
+
updateAsrVocabulary(updateAsrVocabularyRequest) {
|
|
513
|
+
const options = (0, exports.ParamCreater)().updateAsrVocabulary(updateAsrVocabularyRequest);
|
|
514
|
+
// @ts-ignore
|
|
515
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
516
|
+
return this.hcClient.sendRequest(options);
|
|
517
|
+
}
|
|
385
518
|
/**
|
|
386
519
|
* 该接口用于创建对话链接。
|
|
387
520
|
*
|
|
@@ -402,6 +535,29 @@ class MetaStudioClient {
|
|
|
402
535
|
options['responseHeaders'] = ['X-Request-Id'];
|
|
403
536
|
return this.hcClient.sendRequest(options);
|
|
404
537
|
}
|
|
538
|
+
/**
|
|
539
|
+
* 该接口用于查询数字人智能交互任务列表。
|
|
540
|
+
*
|
|
541
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
542
|
+
*
|
|
543
|
+
* @summary 查询数字人智能交互任务列表
|
|
544
|
+
* @param {string} roomId 智能交互对话ID,获取方法请参考[创建智能交互对话直播间](CreateSmartChatRoom.xml)。
|
|
545
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
546
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
|
|
547
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
548
|
+
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
549
|
+
* @param {string} [state] 任务状态,默认所有状态。 可多个状态查询,使用英文逗号分隔。 如state=CREATING,PUBLISHED
|
|
550
|
+
* @param {number} [offset] 偏移量,表示从此偏移量开始查询。
|
|
551
|
+
* @param {number} [limit] 每页显示的条目数量。
|
|
552
|
+
* @param {*} [options] Override http request option.
|
|
553
|
+
* @throws {RequiredError}
|
|
554
|
+
*/
|
|
555
|
+
listSmartChatJob(listSmartChatJobRequest) {
|
|
556
|
+
const options = (0, exports.ParamCreater)().listSmartChatJob(listSmartChatJobRequest);
|
|
557
|
+
// @ts-ignore
|
|
558
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
559
|
+
return this.hcClient.sendRequest(options);
|
|
560
|
+
}
|
|
405
561
|
/**
|
|
406
562
|
* 该接口用于查询数字人智能交互任务。
|
|
407
563
|
*
|
|
@@ -661,18 +817,17 @@ class MetaStudioClient {
|
|
|
661
817
|
* @param {'INTERSECTION' | 'UNION_SET'} [tagCombinationType] 标签查询组合方式 INTERSECTION:交集 UNION_SET:并集
|
|
662
818
|
* @param {string} [startTime] 起始时间。格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。
|
|
663
819
|
* @param {string} [endTime] 结束时间。格式遵循:RFC 3339 如\"2021-01-10T10:43:17Z\"。
|
|
664
|
-
* @param {string} [assetType] 资产类型。多个类型使用英文逗号分隔。 *
|
|
820
|
+
* @param {string} [assetType] 资产类型。多个类型使用英文逗号分隔。 * VOICE_MODEL:音色模型(仅系统管理员可上传) * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MATERIAL:风格化素材 * HUMAN_MODEL_2D: 2D数字人网络模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 * MUSIC: 音乐 * AUDIO: 音频
|
|
665
821
|
* @param {string} [sortKey] 排序字段,支持的排序方式有: - 按创建时间排序:create_time - 按更新时间排序:update_time - 按资产排序:asset_order
|
|
666
822
|
* @param {string} [sortDir] 排序方式。 * asc:升序 * desc:降序 默认asc升序。
|
|
667
823
|
* @param {'SYSTEM' | 'CUSTOMIZATION' | 'GROUP_CUSTOMIZATION' | 'ALL'} [assetSource] 资产来源。 * SYSTEM:系统资产 * CUSTOMIZATION:租户资产 * GROUP_CUSTOMIZATION:租户组资产 * ALL:所有资产 默认查询租户资产。
|
|
668
824
|
* @param {string} [assetState] 资产状态。多个资产状态使用英文逗号分隔。 * CREATING:资产创建中,主文件尚未上传 * FAILED:主文件上传失败 * UNACTIVED:主文件上传成功,资产未激活,资产不可用于其他业务(用户可更新状态) * ACTIVED:主文件上传成功,资产激活,资产可用于其他业务(用户可更新状态) * DELETING:资产删除中,资产不可用,资产可恢复 * DELETED:资产文件已删除,资产不可用,资产不可恢复 * BLOCK:资产被冻结,资产不可用,不可查看文件。 * WAITING_DELETE:资产将被下线 默认查询所有状态的资产。
|
|
669
825
|
* @param {string} [styleId] 基于风格化ID查询关联资产。 * system_male_001:男性风格01 * system_female_001:女性风格01 * system_male_002:男性风格02 * system_female_002:女性风格02
|
|
670
826
|
* @param {Array<string>} [accurateQueryField] 使用精确查询的字段
|
|
671
|
-
* @param {string} [renderEngine] 可用引擎。 * UE:UE引擎 * MetaEngine:MetaEngine引擎 > 该字段当前只对MetaEngine白名单用户生效
|
|
672
827
|
* @param {Array<string>} [assetId] 资产id
|
|
673
828
|
* @param {string} [sex] 性别。多选使用英文逗号分隔。
|
|
674
829
|
* @param {string} [language] 语言。多选使用英文逗号分隔。
|
|
675
|
-
* @param {string} [systemProperty] 系统属性。 key和value间用\":\"分隔,多个key之间用\",\"分隔。 如system_property=BACKGROUND_IMG:Yes,RENDER_ENGINE:MetaEngine。 不同Key对应Value取值如下: 公共资产属性: * BACKGROUND_IMG:视频制作的2D背景图片,可取值Yes * CREATED_BY_PLATFORM:是否平台生成,可取值Yes 分身数字人资产属性: * MATERIAL_IMG:素材图片,用作前景。可取值Yes * MATERIAL_VIDEO:素材视频,用作前景。可取值Yes
|
|
830
|
+
* @param {string} [systemProperty] 系统属性。 key和value间用\":\"分隔,多个key之间用\",\"分隔。 如system_property=BACKGROUND_IMG:Yes,RENDER_ENGINE:MetaEngine。 不同Key对应Value取值如下: 公共资产属性: * BACKGROUND_IMG:视频制作的2D背景图片,可取值Yes * CREATED_BY_PLATFORM:是否平台生成,可取值Yes 分身数字人资产属性: * MATERIAL_IMG:素材图片,用作前景。可取值Yes * MATERIAL_VIDEO:素材视频,用作前景。可取值Yes 数字人资产属性: * BACKGROUND_SCENE:视频制作的2D背景场景,可取值Horizontal(横屏)或者Vertical(竖屏) 租户组资产验签属性: * SIG:加签秘钥。取值方式SIG=HexEncode(HMAC-SHA256(group_id:EXP_TIME:NONCE,key)) * EXP_TIME:过期时间,当前时间增加增加10分钟。取值示例1627768613 * NONCE:随机字符串。取值示例:EycLQsHwxhzK9OW8UEKWNfH2I3CGR2nINuU1EBpv162d42d92s
|
|
676
831
|
* @param {boolean} [actionEditable] 动作是否可编辑。仅在分身数字人模型查询时有效。
|
|
677
832
|
* @param {boolean} [isWithActionLibrary] 分身数字人是否带原子动作库。 > * 带原子动作库的分身数字人可做动作编排。
|
|
678
833
|
* @param {boolean} [isMovable] 分身数字人是否支持走动。仅在分身数字人模型查询时有效。
|
|
@@ -1309,7 +1464,8 @@ class MetaStudioClient {
|
|
|
1309
1464
|
* @param {number} [offset] 偏移量,表示从此偏移量开始查询。
|
|
1310
1465
|
* @param {number} [limit] 每页显示的条目数量。
|
|
1311
1466
|
* @param {number} [region] sis服务所在区域
|
|
1312
|
-
* @param {'zh_CN' | 'en_US' | 'CN' | 'EN'} [language] 智能交互语言
|
|
1467
|
+
* @param {'zh_CN' | 'en_US' | 'CN' | 'EN' | 'ESP' | 'por' | 'Arabic' | 'Thai'} [language] 智能交互语言 * zh_CN:简体中文(已下线,请使用CN) * en_US:英语(已下线,请使用EN) * CN:中文。 * EN:英文。 * ESP:西班牙语(仅海外站点支持) * por:葡萄牙语(仅海外站点支持) * Arabic:阿拉伯语(仅海外站点支持) * Thai:泰语(仅海外站点支持)
|
|
1468
|
+
* @param {'SIS' | 'MOBVOI'} [hotWordsType] * SIS:SIS热词 * MOBVOI:奇妙问ASR热词
|
|
1313
1469
|
* @param {*} [options] Override http request option.
|
|
1314
1470
|
* @throws {RequiredError}
|
|
1315
1471
|
*/
|
|
@@ -3729,7 +3885,7 @@ class MetaStudioClient {
|
|
|
3729
3885
|
return this.hcClient.sendRequest(options);
|
|
3730
3886
|
}
|
|
3731
3887
|
/**
|
|
3732
|
-
*
|
|
3888
|
+
* 该接口用于对外生成音频文件。每个预置音色的计费标准详见[预置音色计费标准](metastudio_02_0060.xml)。
|
|
3733
3889
|
*
|
|
3734
3890
|
* > 使用本接口前,需要在MetaStudio控制台服务概览页面,开通“声音合成”的按需计费。
|
|
3735
3891
|
* > 详细操作为:单击“声音合成”卡片中的“去开通”,在弹出的“开通按需计费服务提示”对话框中,勾选同意协议。单击“确定”,开通按需计费。
|
|
@@ -4771,6 +4927,380 @@ const ParamCreater = function () {
|
|
|
4771
4927
|
options.headers = localVarHeaderParameter;
|
|
4772
4928
|
return options;
|
|
4773
4929
|
},
|
|
4930
|
+
/**
|
|
4931
|
+
* 该接口用于创建热词表。
|
|
4932
|
+
*
|
|
4933
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4934
|
+
*/
|
|
4935
|
+
createAsrVocabulary(createAsrVocabularyRequest) {
|
|
4936
|
+
const options = {
|
|
4937
|
+
method: "POST",
|
|
4938
|
+
url: "/v1/{project_id}/digital-human-chat/asr-vocabulary",
|
|
4939
|
+
contentType: "application/json",
|
|
4940
|
+
queryParams: {},
|
|
4941
|
+
pathParams: {},
|
|
4942
|
+
headers: {},
|
|
4943
|
+
data: {}
|
|
4944
|
+
};
|
|
4945
|
+
const localVarHeaderParameter = {};
|
|
4946
|
+
let body;
|
|
4947
|
+
let authorization;
|
|
4948
|
+
let xSdkDate;
|
|
4949
|
+
let xProjectId;
|
|
4950
|
+
let xAppUserId;
|
|
4951
|
+
if (createAsrVocabularyRequest !== null && createAsrVocabularyRequest !== undefined) {
|
|
4952
|
+
if (createAsrVocabularyRequest instanceof CreateAsrVocabularyRequest_1.CreateAsrVocabularyRequest) {
|
|
4953
|
+
body = createAsrVocabularyRequest.body;
|
|
4954
|
+
authorization = createAsrVocabularyRequest.authorization;
|
|
4955
|
+
xSdkDate = createAsrVocabularyRequest.xSdkDate;
|
|
4956
|
+
xProjectId = createAsrVocabularyRequest.xProjectId;
|
|
4957
|
+
xAppUserId = createAsrVocabularyRequest.xAppUserId;
|
|
4958
|
+
}
|
|
4959
|
+
else {
|
|
4960
|
+
body = createAsrVocabularyRequest['body'];
|
|
4961
|
+
authorization = createAsrVocabularyRequest['Authorization'];
|
|
4962
|
+
xSdkDate = createAsrVocabularyRequest['X-Sdk-Date'];
|
|
4963
|
+
xProjectId = createAsrVocabularyRequest['X-Project-Id'];
|
|
4964
|
+
xAppUserId = createAsrVocabularyRequest['X-App-UserId'];
|
|
4965
|
+
}
|
|
4966
|
+
}
|
|
4967
|
+
if (body === null || body === undefined) {
|
|
4968
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
4969
|
+
}
|
|
4970
|
+
if (authorization !== undefined && authorization !== null) {
|
|
4971
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
4972
|
+
}
|
|
4973
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
4974
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
4975
|
+
}
|
|
4976
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
4977
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
4978
|
+
}
|
|
4979
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
4980
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
4981
|
+
}
|
|
4982
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4983
|
+
options.data = body !== undefined ? body : {};
|
|
4984
|
+
options.headers = localVarHeaderParameter;
|
|
4985
|
+
return options;
|
|
4986
|
+
},
|
|
4987
|
+
/**
|
|
4988
|
+
* 该接口用于删除热词表。
|
|
4989
|
+
*
|
|
4990
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4991
|
+
*/
|
|
4992
|
+
deleteAsrVocabulary(deleteAsrVocabularyRequest) {
|
|
4993
|
+
const options = {
|
|
4994
|
+
method: "DELETE",
|
|
4995
|
+
url: "/v1/{project_id}/digital-human-chat/asr-vocabulary/{asr_vocabulary_id}",
|
|
4996
|
+
contentType: "application/json",
|
|
4997
|
+
queryParams: {},
|
|
4998
|
+
pathParams: {},
|
|
4999
|
+
headers: {}
|
|
5000
|
+
};
|
|
5001
|
+
const localVarHeaderParameter = {};
|
|
5002
|
+
let asrVocabularyId;
|
|
5003
|
+
let authorization;
|
|
5004
|
+
let xSdkDate;
|
|
5005
|
+
let xProjectId;
|
|
5006
|
+
let xAppUserId;
|
|
5007
|
+
if (deleteAsrVocabularyRequest !== null && deleteAsrVocabularyRequest !== undefined) {
|
|
5008
|
+
if (deleteAsrVocabularyRequest instanceof DeleteAsrVocabularyRequest_1.DeleteAsrVocabularyRequest) {
|
|
5009
|
+
asrVocabularyId = deleteAsrVocabularyRequest.asrVocabularyId;
|
|
5010
|
+
authorization = deleteAsrVocabularyRequest.authorization;
|
|
5011
|
+
xSdkDate = deleteAsrVocabularyRequest.xSdkDate;
|
|
5012
|
+
xProjectId = deleteAsrVocabularyRequest.xProjectId;
|
|
5013
|
+
xAppUserId = deleteAsrVocabularyRequest.xAppUserId;
|
|
5014
|
+
}
|
|
5015
|
+
else {
|
|
5016
|
+
asrVocabularyId = deleteAsrVocabularyRequest['asr_vocabulary_id'];
|
|
5017
|
+
authorization = deleteAsrVocabularyRequest['Authorization'];
|
|
5018
|
+
xSdkDate = deleteAsrVocabularyRequest['X-Sdk-Date'];
|
|
5019
|
+
xProjectId = deleteAsrVocabularyRequest['X-Project-Id'];
|
|
5020
|
+
xAppUserId = deleteAsrVocabularyRequest['X-App-UserId'];
|
|
5021
|
+
}
|
|
5022
|
+
}
|
|
5023
|
+
if (asrVocabularyId === null || asrVocabularyId === undefined) {
|
|
5024
|
+
throw new RequiredError('asrVocabularyId', 'Required parameter asrVocabularyId was null or undefined when calling deleteAsrVocabulary.');
|
|
5025
|
+
}
|
|
5026
|
+
if (authorization !== undefined && authorization !== null) {
|
|
5027
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
5028
|
+
}
|
|
5029
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
5030
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
5031
|
+
}
|
|
5032
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
5033
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
5034
|
+
}
|
|
5035
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
5036
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
5037
|
+
}
|
|
5038
|
+
options.pathParams = { 'asr_vocabulary_id': asrVocabularyId, };
|
|
5039
|
+
options.headers = localVarHeaderParameter;
|
|
5040
|
+
return options;
|
|
5041
|
+
},
|
|
5042
|
+
/**
|
|
5043
|
+
* 该接口用于查询热词表列表。
|
|
5044
|
+
*
|
|
5045
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
5046
|
+
*/
|
|
5047
|
+
listAsrVocabulary(listAsrVocabularyRequest) {
|
|
5048
|
+
const options = {
|
|
5049
|
+
method: "GET",
|
|
5050
|
+
url: "/v1/{project_id}/digital-human-chat/asr-vocabulary",
|
|
5051
|
+
contentType: "application/json",
|
|
5052
|
+
queryParams: {},
|
|
5053
|
+
pathParams: {},
|
|
5054
|
+
headers: {}
|
|
5055
|
+
};
|
|
5056
|
+
const localVarHeaderParameter = {};
|
|
5057
|
+
const localVarQueryParameter = {};
|
|
5058
|
+
let authorization;
|
|
5059
|
+
let xSdkDate;
|
|
5060
|
+
let xProjectId;
|
|
5061
|
+
let xAppUserId;
|
|
5062
|
+
let offset;
|
|
5063
|
+
let limit;
|
|
5064
|
+
let vocabularyType;
|
|
5065
|
+
let language;
|
|
5066
|
+
if (listAsrVocabularyRequest !== null && listAsrVocabularyRequest !== undefined) {
|
|
5067
|
+
if (listAsrVocabularyRequest instanceof ListAsrVocabularyRequest_1.ListAsrVocabularyRequest) {
|
|
5068
|
+
authorization = listAsrVocabularyRequest.authorization;
|
|
5069
|
+
xSdkDate = listAsrVocabularyRequest.xSdkDate;
|
|
5070
|
+
xProjectId = listAsrVocabularyRequest.xProjectId;
|
|
5071
|
+
xAppUserId = listAsrVocabularyRequest.xAppUserId;
|
|
5072
|
+
offset = listAsrVocabularyRequest.offset;
|
|
5073
|
+
limit = listAsrVocabularyRequest.limit;
|
|
5074
|
+
vocabularyType = listAsrVocabularyRequest.vocabularyType;
|
|
5075
|
+
language = listAsrVocabularyRequest.language;
|
|
5076
|
+
}
|
|
5077
|
+
else {
|
|
5078
|
+
authorization = listAsrVocabularyRequest['Authorization'];
|
|
5079
|
+
xSdkDate = listAsrVocabularyRequest['X-Sdk-Date'];
|
|
5080
|
+
xProjectId = listAsrVocabularyRequest['X-Project-Id'];
|
|
5081
|
+
xAppUserId = listAsrVocabularyRequest['X-App-UserId'];
|
|
5082
|
+
offset = listAsrVocabularyRequest['offset'];
|
|
5083
|
+
limit = listAsrVocabularyRequest['limit'];
|
|
5084
|
+
vocabularyType = listAsrVocabularyRequest['vocabulary_type'];
|
|
5085
|
+
language = listAsrVocabularyRequest['language'];
|
|
5086
|
+
}
|
|
5087
|
+
}
|
|
5088
|
+
if (offset !== null && offset !== undefined) {
|
|
5089
|
+
localVarQueryParameter['offset'] = offset;
|
|
5090
|
+
}
|
|
5091
|
+
if (limit !== null && limit !== undefined) {
|
|
5092
|
+
localVarQueryParameter['limit'] = limit;
|
|
5093
|
+
}
|
|
5094
|
+
if (vocabularyType !== null && vocabularyType !== undefined) {
|
|
5095
|
+
localVarQueryParameter['vocabulary_type'] = vocabularyType;
|
|
5096
|
+
}
|
|
5097
|
+
if (language !== null && language !== undefined) {
|
|
5098
|
+
localVarQueryParameter['language'] = language;
|
|
5099
|
+
}
|
|
5100
|
+
if (authorization !== undefined && authorization !== null) {
|
|
5101
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
5102
|
+
}
|
|
5103
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
5104
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
5105
|
+
}
|
|
5106
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
5107
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
5108
|
+
}
|
|
5109
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
5110
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
5111
|
+
}
|
|
5112
|
+
options.queryParams = localVarQueryParameter;
|
|
5113
|
+
options.headers = localVarHeaderParameter;
|
|
5114
|
+
return options;
|
|
5115
|
+
},
|
|
5116
|
+
/**
|
|
5117
|
+
* 该接口用于查询热词表详情。
|
|
5118
|
+
*
|
|
5119
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
5120
|
+
*/
|
|
5121
|
+
showAsrVocabulary(showAsrVocabularyRequest) {
|
|
5122
|
+
const options = {
|
|
5123
|
+
method: "GET",
|
|
5124
|
+
url: "/v1/{project_id}/digital-human-chat/asr-vocabulary/{asr_vocabulary_id}",
|
|
5125
|
+
contentType: "application/json",
|
|
5126
|
+
queryParams: {},
|
|
5127
|
+
pathParams: {},
|
|
5128
|
+
headers: {}
|
|
5129
|
+
};
|
|
5130
|
+
const localVarHeaderParameter = {};
|
|
5131
|
+
let asrVocabularyId;
|
|
5132
|
+
let authorization;
|
|
5133
|
+
let xSdkDate;
|
|
5134
|
+
let xProjectId;
|
|
5135
|
+
let xAppUserId;
|
|
5136
|
+
if (showAsrVocabularyRequest !== null && showAsrVocabularyRequest !== undefined) {
|
|
5137
|
+
if (showAsrVocabularyRequest instanceof ShowAsrVocabularyRequest_1.ShowAsrVocabularyRequest) {
|
|
5138
|
+
asrVocabularyId = showAsrVocabularyRequest.asrVocabularyId;
|
|
5139
|
+
authorization = showAsrVocabularyRequest.authorization;
|
|
5140
|
+
xSdkDate = showAsrVocabularyRequest.xSdkDate;
|
|
5141
|
+
xProjectId = showAsrVocabularyRequest.xProjectId;
|
|
5142
|
+
xAppUserId = showAsrVocabularyRequest.xAppUserId;
|
|
5143
|
+
}
|
|
5144
|
+
else {
|
|
5145
|
+
asrVocabularyId = showAsrVocabularyRequest['asr_vocabulary_id'];
|
|
5146
|
+
authorization = showAsrVocabularyRequest['Authorization'];
|
|
5147
|
+
xSdkDate = showAsrVocabularyRequest['X-Sdk-Date'];
|
|
5148
|
+
xProjectId = showAsrVocabularyRequest['X-Project-Id'];
|
|
5149
|
+
xAppUserId = showAsrVocabularyRequest['X-App-UserId'];
|
|
5150
|
+
}
|
|
5151
|
+
}
|
|
5152
|
+
if (asrVocabularyId === null || asrVocabularyId === undefined) {
|
|
5153
|
+
throw new RequiredError('asrVocabularyId', 'Required parameter asrVocabularyId was null or undefined when calling showAsrVocabulary.');
|
|
5154
|
+
}
|
|
5155
|
+
if (authorization !== undefined && authorization !== null) {
|
|
5156
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
5157
|
+
}
|
|
5158
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
5159
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
5160
|
+
}
|
|
5161
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
5162
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
5163
|
+
}
|
|
5164
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
5165
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
5166
|
+
}
|
|
5167
|
+
options.pathParams = { 'asr_vocabulary_id': asrVocabularyId, };
|
|
5168
|
+
options.headers = localVarHeaderParameter;
|
|
5169
|
+
return options;
|
|
5170
|
+
},
|
|
5171
|
+
/**
|
|
5172
|
+
* 该接口用于查询热词表关联详情。
|
|
5173
|
+
*
|
|
5174
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
5175
|
+
*/
|
|
5176
|
+
showAsrVocabularyAssociation(showAsrVocabularyAssociationRequest) {
|
|
5177
|
+
const options = {
|
|
5178
|
+
method: "GET",
|
|
5179
|
+
url: "/v1/{project_id}/digital-human-chat/asr-vocabulary/association/{asr_vocabulary_id}",
|
|
5180
|
+
contentType: "application/json",
|
|
5181
|
+
queryParams: {},
|
|
5182
|
+
pathParams: {},
|
|
5183
|
+
headers: {}
|
|
5184
|
+
};
|
|
5185
|
+
const localVarHeaderParameter = {};
|
|
5186
|
+
const localVarQueryParameter = {};
|
|
5187
|
+
let asrVocabularyId;
|
|
5188
|
+
let authorization;
|
|
5189
|
+
let xSdkDate;
|
|
5190
|
+
let xProjectId;
|
|
5191
|
+
let xAppUserId;
|
|
5192
|
+
let offset;
|
|
5193
|
+
let limit;
|
|
5194
|
+
if (showAsrVocabularyAssociationRequest !== null && showAsrVocabularyAssociationRequest !== undefined) {
|
|
5195
|
+
if (showAsrVocabularyAssociationRequest instanceof ShowAsrVocabularyAssociationRequest_1.ShowAsrVocabularyAssociationRequest) {
|
|
5196
|
+
asrVocabularyId = showAsrVocabularyAssociationRequest.asrVocabularyId;
|
|
5197
|
+
authorization = showAsrVocabularyAssociationRequest.authorization;
|
|
5198
|
+
xSdkDate = showAsrVocabularyAssociationRequest.xSdkDate;
|
|
5199
|
+
xProjectId = showAsrVocabularyAssociationRequest.xProjectId;
|
|
5200
|
+
xAppUserId = showAsrVocabularyAssociationRequest.xAppUserId;
|
|
5201
|
+
offset = showAsrVocabularyAssociationRequest.offset;
|
|
5202
|
+
limit = showAsrVocabularyAssociationRequest.limit;
|
|
5203
|
+
}
|
|
5204
|
+
else {
|
|
5205
|
+
asrVocabularyId = showAsrVocabularyAssociationRequest['asr_vocabulary_id'];
|
|
5206
|
+
authorization = showAsrVocabularyAssociationRequest['Authorization'];
|
|
5207
|
+
xSdkDate = showAsrVocabularyAssociationRequest['X-Sdk-Date'];
|
|
5208
|
+
xProjectId = showAsrVocabularyAssociationRequest['X-Project-Id'];
|
|
5209
|
+
xAppUserId = showAsrVocabularyAssociationRequest['X-App-UserId'];
|
|
5210
|
+
offset = showAsrVocabularyAssociationRequest['offset'];
|
|
5211
|
+
limit = showAsrVocabularyAssociationRequest['limit'];
|
|
5212
|
+
}
|
|
5213
|
+
}
|
|
5214
|
+
if (asrVocabularyId === null || asrVocabularyId === undefined) {
|
|
5215
|
+
throw new RequiredError('asrVocabularyId', 'Required parameter asrVocabularyId was null or undefined when calling showAsrVocabularyAssociation.');
|
|
5216
|
+
}
|
|
5217
|
+
if (offset !== null && offset !== undefined) {
|
|
5218
|
+
localVarQueryParameter['offset'] = offset;
|
|
5219
|
+
}
|
|
5220
|
+
if (limit !== null && limit !== undefined) {
|
|
5221
|
+
localVarQueryParameter['limit'] = limit;
|
|
5222
|
+
}
|
|
5223
|
+
if (authorization !== undefined && authorization !== null) {
|
|
5224
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
5225
|
+
}
|
|
5226
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
5227
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
5228
|
+
}
|
|
5229
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
5230
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
5231
|
+
}
|
|
5232
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
5233
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
5234
|
+
}
|
|
5235
|
+
options.queryParams = localVarQueryParameter;
|
|
5236
|
+
options.pathParams = { 'asr_vocabulary_id': asrVocabularyId, };
|
|
5237
|
+
options.headers = localVarHeaderParameter;
|
|
5238
|
+
return options;
|
|
5239
|
+
},
|
|
5240
|
+
/**
|
|
5241
|
+
* 该接口用于修改热词表。
|
|
5242
|
+
*
|
|
5243
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
5244
|
+
*/
|
|
5245
|
+
updateAsrVocabulary(updateAsrVocabularyRequest) {
|
|
5246
|
+
const options = {
|
|
5247
|
+
method: "PUT",
|
|
5248
|
+
url: "/v1/{project_id}/digital-human-chat/asr-vocabulary/{asr_vocabulary_id}",
|
|
5249
|
+
contentType: "application/json",
|
|
5250
|
+
queryParams: {},
|
|
5251
|
+
pathParams: {},
|
|
5252
|
+
headers: {},
|
|
5253
|
+
data: {}
|
|
5254
|
+
};
|
|
5255
|
+
const localVarHeaderParameter = {};
|
|
5256
|
+
let body;
|
|
5257
|
+
let asrVocabularyId;
|
|
5258
|
+
let authorization;
|
|
5259
|
+
let xSdkDate;
|
|
5260
|
+
let xProjectId;
|
|
5261
|
+
let xAppUserId;
|
|
5262
|
+
if (updateAsrVocabularyRequest !== null && updateAsrVocabularyRequest !== undefined) {
|
|
5263
|
+
if (updateAsrVocabularyRequest instanceof UpdateAsrVocabularyRequest_1.UpdateAsrVocabularyRequest) {
|
|
5264
|
+
asrVocabularyId = updateAsrVocabularyRequest.asrVocabularyId;
|
|
5265
|
+
body = updateAsrVocabularyRequest.body;
|
|
5266
|
+
authorization = updateAsrVocabularyRequest.authorization;
|
|
5267
|
+
xSdkDate = updateAsrVocabularyRequest.xSdkDate;
|
|
5268
|
+
xProjectId = updateAsrVocabularyRequest.xProjectId;
|
|
5269
|
+
xAppUserId = updateAsrVocabularyRequest.xAppUserId;
|
|
5270
|
+
}
|
|
5271
|
+
else {
|
|
5272
|
+
asrVocabularyId = updateAsrVocabularyRequest['asr_vocabulary_id'];
|
|
5273
|
+
body = updateAsrVocabularyRequest['body'];
|
|
5274
|
+
authorization = updateAsrVocabularyRequest['Authorization'];
|
|
5275
|
+
xSdkDate = updateAsrVocabularyRequest['X-Sdk-Date'];
|
|
5276
|
+
xProjectId = updateAsrVocabularyRequest['X-Project-Id'];
|
|
5277
|
+
xAppUserId = updateAsrVocabularyRequest['X-App-UserId'];
|
|
5278
|
+
}
|
|
5279
|
+
}
|
|
5280
|
+
if (asrVocabularyId === null || asrVocabularyId === undefined) {
|
|
5281
|
+
throw new RequiredError('asrVocabularyId', 'Required parameter asrVocabularyId was null or undefined when calling updateAsrVocabulary.');
|
|
5282
|
+
}
|
|
5283
|
+
if (body === null || body === undefined) {
|
|
5284
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
5285
|
+
}
|
|
5286
|
+
if (authorization !== undefined && authorization !== null) {
|
|
5287
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
5288
|
+
}
|
|
5289
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
5290
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
5291
|
+
}
|
|
5292
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
5293
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
5294
|
+
}
|
|
5295
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
5296
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
5297
|
+
}
|
|
5298
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5299
|
+
options.data = body !== undefined ? body : {};
|
|
5300
|
+
options.pathParams = { 'asr_vocabulary_id': asrVocabularyId, };
|
|
5301
|
+
options.headers = localVarHeaderParameter;
|
|
5302
|
+
return options;
|
|
5303
|
+
},
|
|
4774
5304
|
/**
|
|
4775
5305
|
* 该接口用于创建对话链接。
|
|
4776
5306
|
*
|
|
@@ -4828,6 +5358,81 @@ const ParamCreater = function () {
|
|
|
4828
5358
|
options.headers = localVarHeaderParameter;
|
|
4829
5359
|
return options;
|
|
4830
5360
|
},
|
|
5361
|
+
/**
|
|
5362
|
+
* 该接口用于查询数字人智能交互任务列表。
|
|
5363
|
+
*
|
|
5364
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
5365
|
+
*/
|
|
5366
|
+
listSmartChatJob(listSmartChatJobRequest) {
|
|
5367
|
+
const options = {
|
|
5368
|
+
method: "GET",
|
|
5369
|
+
url: "/v1/{project_id}/digital-human-chat/smart-chat-rooms/{room_id}/smart-chat-jobs",
|
|
5370
|
+
contentType: "application/json",
|
|
5371
|
+
queryParams: {},
|
|
5372
|
+
pathParams: {},
|
|
5373
|
+
headers: {}
|
|
5374
|
+
};
|
|
5375
|
+
const localVarHeaderParameter = {};
|
|
5376
|
+
const localVarQueryParameter = {};
|
|
5377
|
+
let roomId;
|
|
5378
|
+
let authorization;
|
|
5379
|
+
let xSdkDate;
|
|
5380
|
+
let xProjectId;
|
|
5381
|
+
let xAppUserId;
|
|
5382
|
+
let state;
|
|
5383
|
+
let offset;
|
|
5384
|
+
let limit;
|
|
5385
|
+
if (listSmartChatJobRequest !== null && listSmartChatJobRequest !== undefined) {
|
|
5386
|
+
if (listSmartChatJobRequest instanceof ListSmartChatJobRequest_1.ListSmartChatJobRequest) {
|
|
5387
|
+
roomId = listSmartChatJobRequest.roomId;
|
|
5388
|
+
authorization = listSmartChatJobRequest.authorization;
|
|
5389
|
+
xSdkDate = listSmartChatJobRequest.xSdkDate;
|
|
5390
|
+
xProjectId = listSmartChatJobRequest.xProjectId;
|
|
5391
|
+
xAppUserId = listSmartChatJobRequest.xAppUserId;
|
|
5392
|
+
state = listSmartChatJobRequest.state;
|
|
5393
|
+
offset = listSmartChatJobRequest.offset;
|
|
5394
|
+
limit = listSmartChatJobRequest.limit;
|
|
5395
|
+
}
|
|
5396
|
+
else {
|
|
5397
|
+
roomId = listSmartChatJobRequest['room_id'];
|
|
5398
|
+
authorization = listSmartChatJobRequest['Authorization'];
|
|
5399
|
+
xSdkDate = listSmartChatJobRequest['X-Sdk-Date'];
|
|
5400
|
+
xProjectId = listSmartChatJobRequest['X-Project-Id'];
|
|
5401
|
+
xAppUserId = listSmartChatJobRequest['X-App-UserId'];
|
|
5402
|
+
state = listSmartChatJobRequest['state'];
|
|
5403
|
+
offset = listSmartChatJobRequest['offset'];
|
|
5404
|
+
limit = listSmartChatJobRequest['limit'];
|
|
5405
|
+
}
|
|
5406
|
+
}
|
|
5407
|
+
if (roomId === null || roomId === undefined) {
|
|
5408
|
+
throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling listSmartChatJob.');
|
|
5409
|
+
}
|
|
5410
|
+
if (state !== null && state !== undefined) {
|
|
5411
|
+
localVarQueryParameter['state'] = state;
|
|
5412
|
+
}
|
|
5413
|
+
if (offset !== null && offset !== undefined) {
|
|
5414
|
+
localVarQueryParameter['offset'] = offset;
|
|
5415
|
+
}
|
|
5416
|
+
if (limit !== null && limit !== undefined) {
|
|
5417
|
+
localVarQueryParameter['limit'] = limit;
|
|
5418
|
+
}
|
|
5419
|
+
if (authorization !== undefined && authorization !== null) {
|
|
5420
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
5421
|
+
}
|
|
5422
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
5423
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
5424
|
+
}
|
|
5425
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
5426
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
5427
|
+
}
|
|
5428
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
5429
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
5430
|
+
}
|
|
5431
|
+
options.queryParams = localVarQueryParameter;
|
|
5432
|
+
options.pathParams = { 'room_id': roomId, };
|
|
5433
|
+
options.headers = localVarHeaderParameter;
|
|
5434
|
+
return options;
|
|
5435
|
+
},
|
|
4831
5436
|
/**
|
|
4832
5437
|
* 该接口用于查询数字人智能交互任务。
|
|
4833
5438
|
*
|
|
@@ -5533,7 +6138,6 @@ const ParamCreater = function () {
|
|
|
5533
6138
|
let assetState;
|
|
5534
6139
|
let styleId;
|
|
5535
6140
|
let accurateQueryField;
|
|
5536
|
-
let renderEngine;
|
|
5537
6141
|
let assetId;
|
|
5538
6142
|
let sex;
|
|
5539
6143
|
let language;
|
|
@@ -5569,7 +6173,6 @@ const ParamCreater = function () {
|
|
|
5569
6173
|
assetState = listAssetsRequest.assetState;
|
|
5570
6174
|
styleId = listAssetsRequest.styleId;
|
|
5571
6175
|
accurateQueryField = listAssetsRequest.accurateQueryField;
|
|
5572
|
-
renderEngine = listAssetsRequest.renderEngine;
|
|
5573
6176
|
assetId = listAssetsRequest.assetId;
|
|
5574
6177
|
sex = listAssetsRequest.sex;
|
|
5575
6178
|
language = listAssetsRequest.language;
|
|
@@ -5605,7 +6208,6 @@ const ParamCreater = function () {
|
|
|
5605
6208
|
assetState = listAssetsRequest['asset_state'];
|
|
5606
6209
|
styleId = listAssetsRequest['style_id'];
|
|
5607
6210
|
accurateQueryField = listAssetsRequest['accurate_query_field'];
|
|
5608
|
-
renderEngine = listAssetsRequest['render_engine'];
|
|
5609
6211
|
assetId = listAssetsRequest['asset_id'];
|
|
5610
6212
|
sex = listAssetsRequest['sex'];
|
|
5611
6213
|
language = listAssetsRequest['language'];
|
|
@@ -5666,9 +6268,6 @@ const ParamCreater = function () {
|
|
|
5666
6268
|
if (accurateQueryField !== null && accurateQueryField !== undefined) {
|
|
5667
6269
|
localVarQueryParameter['accurate_query_field'] = accurateQueryField;
|
|
5668
6270
|
}
|
|
5669
|
-
if (renderEngine !== null && renderEngine !== undefined) {
|
|
5670
|
-
localVarQueryParameter['render_engine'] = renderEngine;
|
|
5671
|
-
}
|
|
5672
6271
|
if (assetId !== null && assetId !== undefined) {
|
|
5673
6272
|
localVarQueryParameter['asset_id'] = assetId;
|
|
5674
6273
|
}
|
|
@@ -7511,6 +8110,7 @@ const ParamCreater = function () {
|
|
|
7511
8110
|
let limit;
|
|
7512
8111
|
let region;
|
|
7513
8112
|
let language;
|
|
8113
|
+
let hotWordsType;
|
|
7514
8114
|
if (listHotWordsRequest !== null && listHotWordsRequest !== undefined) {
|
|
7515
8115
|
if (listHotWordsRequest instanceof ListHotWordsRequest_1.ListHotWordsRequest) {
|
|
7516
8116
|
robotId = listHotWordsRequest.robotId;
|
|
@@ -7522,6 +8122,7 @@ const ParamCreater = function () {
|
|
|
7522
8122
|
limit = listHotWordsRequest.limit;
|
|
7523
8123
|
region = listHotWordsRequest.region;
|
|
7524
8124
|
language = listHotWordsRequest.language;
|
|
8125
|
+
hotWordsType = listHotWordsRequest.hotWordsType;
|
|
7525
8126
|
}
|
|
7526
8127
|
else {
|
|
7527
8128
|
robotId = listHotWordsRequest['robot_id'];
|
|
@@ -7533,6 +8134,7 @@ const ParamCreater = function () {
|
|
|
7533
8134
|
limit = listHotWordsRequest['limit'];
|
|
7534
8135
|
region = listHotWordsRequest['region'];
|
|
7535
8136
|
language = listHotWordsRequest['language'];
|
|
8137
|
+
hotWordsType = listHotWordsRequest['hot_words_type'];
|
|
7536
8138
|
}
|
|
7537
8139
|
}
|
|
7538
8140
|
if (robotId === null || robotId === undefined) {
|
|
@@ -7553,6 +8155,9 @@ const ParamCreater = function () {
|
|
|
7553
8155
|
if (language !== null && language !== undefined) {
|
|
7554
8156
|
localVarQueryParameter['language'] = language;
|
|
7555
8157
|
}
|
|
8158
|
+
if (hotWordsType !== null && hotWordsType !== undefined) {
|
|
8159
|
+
localVarQueryParameter['hot_words_type'] = hotWordsType;
|
|
8160
|
+
}
|
|
7556
8161
|
if (authorization !== undefined && authorization !== null) {
|
|
7557
8162
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
7558
8163
|
}
|
|
@@ -14698,7 +15303,7 @@ const ParamCreater = function () {
|
|
|
14698
15303
|
return options;
|
|
14699
15304
|
},
|
|
14700
15305
|
/**
|
|
14701
|
-
*
|
|
15306
|
+
* 该接口用于对外生成音频文件。每个预置音色的计费标准详见[预置音色计费标准](metastudio_02_0060.xml)。
|
|
14702
15307
|
*
|
|
14703
15308
|
* > 使用本接口前,需要在MetaStudio控制台服务概览页面,开通“声音合成”的按需计费。
|
|
14704
15309
|
* > 详细操作为:单击“声音合成”卡片中的“去开通”,在弹出的“开通按需计费服务提示”对话框中,勾选同意协议。单击“确定”,开通按需计费。
|