@huaweicloud/huaweicloud-sdk-metastudio 3.1.159 → 3.1.161
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 +167 -3
- package/v1/MetaStudioClient.d.ts.map +1 -1
- package/v1/MetaStudioClient.js +475 -9
- package/v1/MetaStudioClient.js.map +1 -1
- package/v1/model/AssessProperty.d.ts +16 -0
- package/v1/model/AssessProperty.d.ts.map +1 -0
- package/v1/model/AssessProperty.js +35 -0
- package/v1/model/AssessProperty.js.map +1 -0
- package/v1/model/AssessResult.d.ts +23 -0
- package/v1/model/AssessResult.d.ts.map +1 -0
- package/v1/model/AssessResult.js +49 -0
- package/v1/model/AssessResult.js.map +1 -0
- package/v1/model/AssetFileInfo.d.ts +4 -0
- package/v1/model/AssetFileInfo.d.ts.map +1 -1
- package/v1/model/AssetFileInfo.js +10 -0
- package/v1/model/AssetFileInfo.js.map +1 -1
- package/v1/model/AutoOperationConfig.d.ts +18 -0
- package/v1/model/AutoOperationConfig.d.ts.map +1 -0
- package/v1/model/AutoOperationConfig.js +32 -0
- package/v1/model/AutoOperationConfig.js.map +1 -0
- package/v1/model/CreateDigitalAssetRequestBody.d.ts +5 -0
- package/v1/model/CreateDigitalAssetRequestBody.d.ts.map +1 -1
- package/v1/model/CreateDigitalAssetRequestBody.js +10 -0
- package/v1/model/CreateDigitalAssetRequestBody.js.map +1 -1
- package/v1/model/CreateTrainingJobReq.d.ts +9 -0
- package/v1/model/CreateTrainingJobReq.d.ts.map +1 -1
- package/v1/model/CreateTrainingJobReq.js +20 -0
- package/v1/model/CreateTrainingJobReq.js.map +1 -1
- package/v1/model/CreateTtscVocabularyGroupsRequest.d.ts +27 -0
- package/v1/model/CreateTtscVocabularyGroupsRequest.d.ts.map +1 -0
- package/v1/model/CreateTtscVocabularyGroupsRequest.js +63 -0
- package/v1/model/CreateTtscVocabularyGroupsRequest.js.map +1 -0
- package/v1/model/CreateTtscVocabularyGroupsResponse.d.ts +7 -0
- package/v1/model/CreateTtscVocabularyGroupsResponse.d.ts.map +1 -0
- package/v1/model/CreateTtscVocabularyGroupsResponse.js +15 -0
- package/v1/model/CreateTtscVocabularyGroupsResponse.js.map +1 -0
- package/v1/model/DeleteTtscVocabularyGroupsRequest.d.ts +32 -0
- package/v1/model/DeleteTtscVocabularyGroupsRequest.d.ts.map +1 -0
- package/v1/model/DeleteTtscVocabularyGroupsRequest.js +78 -0
- package/v1/model/DeleteTtscVocabularyGroupsRequest.js.map +1 -0
- package/v1/model/DeleteTtscVocabularyGroupsResponse.d.ts +5 -0
- package/v1/model/DeleteTtscVocabularyGroupsResponse.d.ts.map +1 -0
- package/v1/model/DeleteTtscVocabularyGroupsResponse.js +11 -0
- package/v1/model/DeleteTtscVocabularyGroupsResponse.js.map +1 -0
- package/v1/model/DigitalAssetInfo.d.ts +9 -0
- package/v1/model/DigitalAssetInfo.d.ts.map +1 -1
- package/v1/model/DigitalAssetInfo.js +20 -0
- package/v1/model/DigitalAssetInfo.js.map +1 -1
- package/v1/model/ListAssetsRequest.d.ts +0 -5
- package/v1/model/ListAssetsRequest.d.ts.map +1 -1
- package/v1/model/ListAssetsRequest.js +0 -11
- package/v1/model/ListAssetsRequest.js.map +1 -1
- package/v1/model/ListTtscVocabularyConfigsRequest.d.ts +8 -0
- package/v1/model/ListTtscVocabularyConfigsRequest.d.ts.map +1 -1
- package/v1/model/ListTtscVocabularyConfigsRequest.js +20 -0
- package/v1/model/ListTtscVocabularyConfigsRequest.js.map +1 -1
- package/v1/model/ListTtscVocabularyGroupsRequest.d.ts +24 -0
- package/v1/model/ListTtscVocabularyGroupsRequest.d.ts.map +1 -0
- package/v1/model/ListTtscVocabularyGroupsRequest.js +59 -0
- package/v1/model/ListTtscVocabularyGroupsRequest.js.map +1 -0
- package/v1/model/ListTtscVocabularyGroupsResponse.d.ts +10 -0
- package/v1/model/ListTtscVocabularyGroupsResponse.d.ts.map +1 -0
- package/v1/model/ListTtscVocabularyGroupsResponse.js +19 -0
- package/v1/model/ListTtscVocabularyGroupsResponse.js.map +1 -0
- package/v1/model/ListVoiceTrainingJobRequest.d.ts +4 -0
- package/v1/model/ListVoiceTrainingJobRequest.d.ts.map +1 -1
- package/v1/model/ListVoiceTrainingJobRequest.js +10 -0
- package/v1/model/ListVoiceTrainingJobRequest.js.map +1 -1
- package/v1/model/OpExternalInfo.d.ts +4 -0
- package/v1/model/OpExternalInfo.d.ts.map +1 -1
- package/v1/model/OpExternalInfo.js +10 -0
- package/v1/model/OpExternalInfo.js.map +1 -1
- package/v1/model/SaveTtscVocabularyConfigsRequestBody.d.ts +4 -0
- package/v1/model/SaveTtscVocabularyConfigsRequestBody.d.ts.map +1 -1
- package/v1/model/SaveTtscVocabularyConfigsRequestBody.js +10 -0
- package/v1/model/SaveTtscVocabularyConfigsRequestBody.js.map +1 -1
- package/v1/model/SaveTtscVocabularyGroupsRequestBody.d.ts +8 -0
- package/v1/model/SaveTtscVocabularyGroupsRequestBody.d.ts.map +1 -0
- package/v1/model/SaveTtscVocabularyGroupsRequestBody.js +19 -0
- package/v1/model/SaveTtscVocabularyGroupsRequestBody.js.map +1 -0
- package/v1/model/SetJobBatchNameRequest.d.ts +4 -0
- package/v1/model/SetJobBatchNameRequest.d.ts.map +1 -1
- package/v1/model/SetJobBatchNameRequest.js +10 -0
- package/v1/model/SetJobBatchNameRequest.js.map +1 -1
- package/v1/model/SetTtscGroupAssetsRequest.d.ts +31 -0
- package/v1/model/SetTtscGroupAssetsRequest.d.ts.map +1 -0
- package/v1/model/SetTtscGroupAssetsRequest.js +74 -0
- package/v1/model/SetTtscGroupAssetsRequest.js.map +1 -0
- package/v1/model/SetTtscGroupAssetsRequestBody.d.ts +8 -0
- package/v1/model/SetTtscGroupAssetsRequestBody.d.ts.map +1 -0
- package/v1/model/SetTtscGroupAssetsRequestBody.js +19 -0
- package/v1/model/SetTtscGroupAssetsRequestBody.js.map +1 -0
- package/v1/model/SetTtscGroupAssetsResponse.d.ts +7 -0
- package/v1/model/SetTtscGroupAssetsResponse.d.ts.map +1 -0
- package/v1/model/SetTtscGroupAssetsResponse.js +15 -0
- package/v1/model/SetTtscGroupAssetsResponse.js.map +1 -0
- package/v1/model/ShowAssetResponse.d.ts +9 -0
- package/v1/model/ShowAssetResponse.d.ts.map +1 -1
- package/v1/model/ShowAssetResponse.js +20 -0
- package/v1/model/ShowAssetResponse.js.map +1 -1
- package/v1/model/ShowTenantDurationCfgResponse.d.ts +8 -0
- package/v1/model/ShowTenantDurationCfgResponse.d.ts.map +1 -1
- package/v1/model/ShowTenantDurationCfgResponse.js +20 -0
- package/v1/model/ShowTenantDurationCfgResponse.js.map +1 -1
- package/v1/model/ShowVoiceTrainingJobResponse.d.ts +9 -0
- package/v1/model/ShowVoiceTrainingJobResponse.d.ts.map +1 -1
- package/v1/model/ShowVoiceTrainingJobResponse.js +20 -0
- package/v1/model/ShowVoiceTrainingJobResponse.js.map +1 -1
- package/v1/model/SystemProperty.d.ts +5 -1
- package/v1/model/SystemProperty.d.ts.map +1 -1
- package/v1/model/SystemProperty.js +4 -0
- package/v1/model/SystemProperty.js.map +1 -1
- package/v1/model/TrainingJobInfo.d.ts +9 -0
- package/v1/model/TrainingJobInfo.d.ts.map +1 -1
- package/v1/model/TrainingJobInfo.js +20 -0
- package/v1/model/TrainingJobInfo.js.map +1 -1
- package/v1/model/TtscGroupAssetsConfig.d.ts +16 -0
- package/v1/model/TtscGroupAssetsConfig.d.ts.map +1 -0
- package/v1/model/TtscGroupAssetsConfig.js +39 -0
- package/v1/model/TtscGroupAssetsConfig.js.map +1 -0
- package/v1/model/UpdateDigitalAssetRequestBody.d.ts +5 -0
- package/v1/model/UpdateDigitalAssetRequestBody.d.ts.map +1 -1
- package/v1/model/UpdateDigitalAssetRequestBody.js +10 -0
- package/v1/model/UpdateDigitalAssetRequestBody.js.map +1 -1
- package/v1/model/UpdateDigitalAssetResponse.d.ts +9 -0
- package/v1/model/UpdateDigitalAssetResponse.d.ts.map +1 -1
- package/v1/model/UpdateDigitalAssetResponse.js +20 -0
- package/v1/model/UpdateDigitalAssetResponse.js.map +1 -1
- package/v1/model/UpdateTtscVocabularyGroupsRequest.d.ts +31 -0
- package/v1/model/UpdateTtscVocabularyGroupsRequest.d.ts.map +1 -0
- package/v1/model/UpdateTtscVocabularyGroupsRequest.js +74 -0
- package/v1/model/UpdateTtscVocabularyGroupsRequest.js.map +1 -0
- package/v1/model/UpdateTtscVocabularyGroupsResponse.d.ts +7 -0
- package/v1/model/UpdateTtscVocabularyGroupsResponse.d.ts.map +1 -0
- package/v1/model/UpdateTtscVocabularyGroupsResponse.js +15 -0
- package/v1/model/UpdateTtscVocabularyGroupsResponse.js.map +1 -0
- package/v1/model/VocabularyConfig.d.ts +4 -0
- package/v1/model/VocabularyConfig.d.ts.map +1 -1
- package/v1/model/VocabularyConfig.js +10 -0
- package/v1/model/VocabularyConfig.js.map +1 -1
- package/v1/public-api.d.ts +16 -0
- package/v1/public-api.d.ts.map +1 -1
- package/v1/public-api.js +16 -0
- package/v1/public-api.js.map +1 -1
package/v1/MetaStudioClient.js
CHANGED
|
@@ -58,6 +58,7 @@ const CreateTrainingMiddleJobRequest_1 = require("./model/CreateTrainingMiddleJo
|
|
|
58
58
|
const CreateTtsAuditionRequest_1 = require("./model/CreateTtsAuditionRequest");
|
|
59
59
|
const CreateTtsaRequest_1 = require("./model/CreateTtsaRequest");
|
|
60
60
|
const CreateTtscVocabularyConfigsRequest_1 = require("./model/CreateTtscVocabularyConfigsRequest");
|
|
61
|
+
const CreateTtscVocabularyGroupsRequest_1 = require("./model/CreateTtscVocabularyGroupsRequest");
|
|
61
62
|
const CreateVideoMotionCaptureJobRequest_1 = require("./model/CreateVideoMotionCaptureJobRequest");
|
|
62
63
|
const CreateVideoScriptsRequest_1 = require("./model/CreateVideoScriptsRequest");
|
|
63
64
|
const CreateWelcomeSpeechRequest_1 = require("./model/CreateWelcomeSpeechRequest");
|
|
@@ -82,6 +83,7 @@ const DeleteRobotRequest_1 = require("./model/DeleteRobotRequest");
|
|
|
82
83
|
const DeleteSmartChatRoomRequest_1 = require("./model/DeleteSmartChatRoomRequest");
|
|
83
84
|
const DeleteSmartLiveRoomRequest_1 = require("./model/DeleteSmartLiveRoomRequest");
|
|
84
85
|
const DeleteTtscVocabularyConfigsRequest_1 = require("./model/DeleteTtscVocabularyConfigsRequest");
|
|
86
|
+
const DeleteTtscVocabularyGroupsRequest_1 = require("./model/DeleteTtscVocabularyGroupsRequest");
|
|
85
87
|
const DeleteVideoScriptRequest_1 = require("./model/DeleteVideoScriptRequest");
|
|
86
88
|
const DeleteVoiceTrainingJobRequest_1 = require("./model/DeleteVoiceTrainingJobRequest");
|
|
87
89
|
const DeleteWelcomeSpeechRequest_1 = require("./model/DeleteWelcomeSpeechRequest");
|
|
@@ -122,6 +124,7 @@ const ListTenantResourcesRequest_1 = require("./model/ListTenantResourcesRequest
|
|
|
122
124
|
const ListTtsaDataRequest_1 = require("./model/ListTtsaDataRequest");
|
|
123
125
|
const ListTtsaJobsRequest_1 = require("./model/ListTtsaJobsRequest");
|
|
124
126
|
const ListTtscVocabularyConfigsRequest_1 = require("./model/ListTtscVocabularyConfigsRequest");
|
|
127
|
+
const ListTtscVocabularyGroupsRequest_1 = require("./model/ListTtscVocabularyGroupsRequest");
|
|
125
128
|
const ListVideoMotionCaptureJobsRequest_1 = require("./model/ListVideoMotionCaptureJobsRequest");
|
|
126
129
|
const ListVideoScriptsRequest_1 = require("./model/ListVideoScriptsRequest");
|
|
127
130
|
const ListVoiceTrainingJobRequest_1 = require("./model/ListVoiceTrainingJobRequest");
|
|
@@ -132,6 +135,7 @@ const RestoreAssetRequest_1 = require("./model/RestoreAssetRequest");
|
|
|
132
135
|
const SaveTtscVocabularyConfigsRequest_1 = require("./model/SaveTtscVocabularyConfigsRequest");
|
|
133
136
|
const SetJobBatchNameRequest_1 = require("./model/SetJobBatchNameRequest");
|
|
134
137
|
const SetProductAssetRequest_1 = require("./model/SetProductAssetRequest");
|
|
138
|
+
const SetTtscGroupAssetsRequest_1 = require("./model/SetTtscGroupAssetsRequest");
|
|
135
139
|
const Show2DDigitalHumanVideoRequest_1 = require("./model/Show2DDigitalHumanVideoRequest");
|
|
136
140
|
const Show2dModelTrainingJobRequest_1 = require("./model/Show2dModelTrainingJobRequest");
|
|
137
141
|
const ShowActiveCodeRequest_1 = require("./model/ShowActiveCodeRequest");
|
|
@@ -202,6 +206,7 @@ const UpdateProductRequest_1 = require("./model/UpdateProductRequest");
|
|
|
202
206
|
const UpdateRobotRequest_1 = require("./model/UpdateRobotRequest");
|
|
203
207
|
const UpdateSmartChatRoomRequest_1 = require("./model/UpdateSmartChatRoomRequest");
|
|
204
208
|
const UpdateSmartLiveRoomRequest_1 = require("./model/UpdateSmartLiveRoomRequest");
|
|
209
|
+
const UpdateTtscVocabularyGroupsRequest_1 = require("./model/UpdateTtscVocabularyGroupsRequest");
|
|
205
210
|
const UpdateVideoScriptRequest_1 = require("./model/UpdateVideoScriptRequest");
|
|
206
211
|
const UpdateWelcomeSpeechRequest_1 = require("./model/UpdateWelcomeSpeechRequest");
|
|
207
212
|
const UpdateWelcomeSpeechSwitchRequest_1 = require("./model/UpdateWelcomeSpeechSwitchRequest");
|
|
@@ -820,14 +825,14 @@ class MetaStudioClient {
|
|
|
820
825
|
* @param {string} [assetType] 资产类型。多个类型使用英文逗号分隔。 * VOICE_MODEL:音色模型(仅系统管理员可上传) * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MATERIAL:风格化素材 * HUMAN_MODEL_2D: 2D数字人网络模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 * MUSIC: 音乐 * AUDIO: 音频
|
|
821
826
|
* @param {string} [sortKey] 排序字段,支持的排序方式有: - 按创建时间排序:create_time - 按更新时间排序:update_time - 按资产排序:asset_order
|
|
822
827
|
* @param {string} [sortDir] 排序方式。 * asc:升序 * desc:降序 默认asc升序。
|
|
823
|
-
* @param {'SYSTEM' | 'CUSTOMIZATION' | '
|
|
828
|
+
* @param {'SYSTEM' | 'CUSTOMIZATION' | 'ALL'} [assetSource] 资产来源。 * SYSTEM:系统资产 * CUSTOMIZATION:租户资产 * ALL:所有资产 默认查询租户资产。
|
|
824
829
|
* @param {string} [assetState] 资产状态。多个资产状态使用英文逗号分隔。 * CREATING:资产创建中,主文件尚未上传 * FAILED:主文件上传失败 * UNACTIVED:主文件上传成功,资产未激活,资产不可用于其他业务(用户可更新状态) * ACTIVED:主文件上传成功,资产激活,资产可用于其他业务(用户可更新状态) * DELETING:资产删除中,资产不可用,资产可恢复 * DELETED:资产文件已删除,资产不可用,资产不可恢复 * BLOCK:资产被冻结,资产不可用,不可查看文件。 * WAITING_DELETE:资产将被下线 默认查询所有状态的资产。
|
|
825
830
|
* @param {string} [styleId] 基于风格化ID查询关联资产。 * system_male_001:男性风格01 * system_female_001:女性风格01 * system_male_002:男性风格02 * system_female_002:女性风格02
|
|
826
831
|
* @param {Array<string>} [accurateQueryField] 使用精确查询的字段
|
|
827
832
|
* @param {Array<string>} [assetId] 资产id
|
|
828
833
|
* @param {string} [sex] 性别。多选使用英文逗号分隔。
|
|
829
834
|
* @param {string} [language] 语言。多选使用英文逗号分隔。
|
|
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(竖屏)
|
|
835
|
+
* @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(竖屏)
|
|
831
836
|
* @param {boolean} [actionEditable] 动作是否可编辑。仅在分身数字人模型查询时有效。
|
|
832
837
|
* @param {boolean} [isWithActionLibrary] 分身数字人是否带原子动作库。 > * 带原子动作库的分身数字人可做动作编排。
|
|
833
838
|
* @param {boolean} [isMovable] 分身数字人是否支持走动。仅在分身数字人模型查询时有效。
|
|
@@ -839,7 +844,6 @@ class MetaStudioClient {
|
|
|
839
844
|
* @param {string} [excludeDeviceName] 资产已执行的任务名称
|
|
840
845
|
* @param {'VIDEO_2D' | 'LIVE_2D' | 'CHAT_2D'} [supportedService] 资产支持的业务类型。默认查询所有资产。 * VIDEO_2D:分身数字人视频制作 * LIVE_2D:分身数字人直播 * CHAT_2D:分身数字人智能交互
|
|
841
846
|
* @param {string} [appUserId] 第三方用户ID。不允许输入中文。
|
|
842
|
-
* @param {string} [projectGroupId] 租户组id。只支持asset_souce是ALL 或者GROUP_CUSTOMIZATION 来源。
|
|
843
847
|
* @param {*} [options] Override http request option.
|
|
844
848
|
* @throws {RequiredError}
|
|
845
849
|
*/
|
|
@@ -3545,6 +3549,7 @@ class MetaStudioClient {
|
|
|
3545
3549
|
* @param {string} [batchName] 批次名称。
|
|
3546
3550
|
* @param {string} [sortKey] 排序字段,当前支持:ceate_time/update_time
|
|
3547
3551
|
* @param {string} [sortDir] 排序规则:desc(降序)/asc(升序)
|
|
3552
|
+
* @param {boolean} [isOndemandResource] 是否是按需任务
|
|
3548
3553
|
* @param {*} [options] Override http request option.
|
|
3549
3554
|
* @throws {RequiredError}
|
|
3550
3555
|
*/
|
|
@@ -3562,6 +3567,7 @@ class MetaStudioClient {
|
|
|
3562
3567
|
*
|
|
3563
3568
|
* @summary 设置任务批次
|
|
3564
3569
|
* @param {SetJobBatchNameReq} setJobBatchNameRequestBody 设置任务批次请求
|
|
3570
|
+
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
3565
3571
|
* @param {*} [options] Override http request option.
|
|
3566
3572
|
* @throws {RequiredError}
|
|
3567
3573
|
*/
|
|
@@ -3954,6 +3960,27 @@ class MetaStudioClient {
|
|
|
3954
3960
|
options['responseHeaders'] = [''];
|
|
3955
3961
|
return this.hcClient.sendRequest(options);
|
|
3956
3962
|
}
|
|
3963
|
+
/**
|
|
3964
|
+
* 该接口用于设置TTS租户级词表分组配置。
|
|
3965
|
+
*
|
|
3966
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3967
|
+
*
|
|
3968
|
+
* @summary 设置TTS租户级词表分组配置
|
|
3969
|
+
* @param {SaveTtscVocabularyGroupsRequestBody} createTtscVocabularyGroupsRequestBody 设置TTS租户级词表扩展配置。
|
|
3970
|
+
* @param {string} [xRequestId] 请求requestId,用来标识一路请求,用于问题跟踪定位,建议使用uuId,若不携带,则后台自动生成
|
|
3971
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
3972
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
|
|
3973
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
3974
|
+
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
3975
|
+
* @param {*} [options] Override http request option.
|
|
3976
|
+
* @throws {RequiredError}
|
|
3977
|
+
*/
|
|
3978
|
+
createTtscVocabularyGroups(createTtscVocabularyGroupsRequest) {
|
|
3979
|
+
const options = (0, exports.ParamCreater)().createTtscVocabularyGroups(createTtscVocabularyGroupsRequest);
|
|
3980
|
+
// @ts-ignore
|
|
3981
|
+
options['responseHeaders'] = [''];
|
|
3982
|
+
return this.hcClient.sendRequest(options);
|
|
3983
|
+
}
|
|
3957
3984
|
/**
|
|
3958
3985
|
* 该接口用于删除TTS租户级自定义读法配置。
|
|
3959
3986
|
*
|
|
@@ -3977,6 +4004,29 @@ class MetaStudioClient {
|
|
|
3977
4004
|
options['responseHeaders'] = [''];
|
|
3978
4005
|
return this.hcClient.sendRequest(options);
|
|
3979
4006
|
}
|
|
4007
|
+
/**
|
|
4008
|
+
* 该接口用于删除TTS租户级词表分组配置。
|
|
4009
|
+
*
|
|
4010
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4011
|
+
*
|
|
4012
|
+
* @summary 删除TTS租户级词表分组
|
|
4013
|
+
* @param {string} groupId 分组id
|
|
4014
|
+
* @param {string} [xRequestId] 请求requestId,用来标识一路请求,用于问题跟踪定位,建议使用uuId,若不携带,则后台自动生成
|
|
4015
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
4016
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
|
|
4017
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
4018
|
+
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
4019
|
+
* @param {number} [offset] 查询偏移量,若超过最大数量,则返回最后一页
|
|
4020
|
+
* @param {number} [limit] 查询数量
|
|
4021
|
+
* @param {*} [options] Override http request option.
|
|
4022
|
+
* @throws {RequiredError}
|
|
4023
|
+
*/
|
|
4024
|
+
deleteTtscVocabularyGroups(deleteTtscVocabularyGroupsRequest) {
|
|
4025
|
+
const options = (0, exports.ParamCreater)().deleteTtscVocabularyGroups(deleteTtscVocabularyGroupsRequest);
|
|
4026
|
+
// @ts-ignore
|
|
4027
|
+
options['responseHeaders'] = [''];
|
|
4028
|
+
return this.hcClient.sendRequest(options);
|
|
4029
|
+
}
|
|
3980
4030
|
/**
|
|
3981
4031
|
* 该接口用于获取TTS租户级自定义读法配置。
|
|
3982
4032
|
*
|
|
@@ -3991,6 +4041,8 @@ class MetaStudioClient {
|
|
|
3991
4041
|
* @param {string} [type] 自定义读法类型 CHINESE_G2P:拼音
|
|
3992
4042
|
* @param {string} [ttsServiceName] 声音模型名称
|
|
3993
4043
|
* @param {string} [isVocabularyConfigEnable] 是否应用词表配置,从周边服务传递
|
|
4044
|
+
* @param {string} [groupId] 分组id
|
|
4045
|
+
* @param {string} [assetId] 资产id
|
|
3994
4046
|
* @param {number} [limit] 每页显示的条目数量。
|
|
3995
4047
|
* @param {number} [offset] 偏移量,表示从此偏移量开始查询。
|
|
3996
4048
|
* @param {string} [startTime] 起始时间。格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。
|
|
@@ -4005,6 +4057,26 @@ class MetaStudioClient {
|
|
|
4005
4057
|
options['responseHeaders'] = [''];
|
|
4006
4058
|
return this.hcClient.sendRequest(options);
|
|
4007
4059
|
}
|
|
4060
|
+
/**
|
|
4061
|
+
* 该接口用于获取TTS租户级词表分组列表。
|
|
4062
|
+
*
|
|
4063
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4064
|
+
*
|
|
4065
|
+
* @summary 获取TTS租户级词表分组列表
|
|
4066
|
+
* @param {string} [xRequestId] 请求requestId,用来标识一路请求,用于问题跟踪定位,建议使用uuId,若不携带,则后台自动生成
|
|
4067
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
4068
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
|
|
4069
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
4070
|
+
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
4071
|
+
* @param {*} [options] Override http request option.
|
|
4072
|
+
* @throws {RequiredError}
|
|
4073
|
+
*/
|
|
4074
|
+
listTtscVocabularyGroups(listTtscVocabularyGroupsRequest) {
|
|
4075
|
+
const options = (0, exports.ParamCreater)().listTtscVocabularyGroups(listTtscVocabularyGroupsRequest);
|
|
4076
|
+
// @ts-ignore
|
|
4077
|
+
options['responseHeaders'] = [''];
|
|
4078
|
+
return this.hcClient.sendRequest(options);
|
|
4079
|
+
}
|
|
4008
4080
|
/**
|
|
4009
4081
|
* 该接口用于修改TTS租户级自定义读法配置。
|
|
4010
4082
|
*
|
|
@@ -4027,6 +4099,28 @@ class MetaStudioClient {
|
|
|
4027
4099
|
options['responseHeaders'] = [''];
|
|
4028
4100
|
return this.hcClient.sendRequest(options);
|
|
4029
4101
|
}
|
|
4102
|
+
/**
|
|
4103
|
+
* 该接口用于设置TTS租户级词表分组的资产列表。
|
|
4104
|
+
*
|
|
4105
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4106
|
+
*
|
|
4107
|
+
* @summary 设置TTS租户级词表分组的资产列表
|
|
4108
|
+
* @param {string} groupId 分组id
|
|
4109
|
+
* @param {SetTtscGroupAssetsRequestBody} setTtscGroupAssetsRequestBody 设置TTS租户级词表分组资产列表配置。
|
|
4110
|
+
* @param {string} [xRequestId] 请求requestId,用来标识一路请求,用于问题跟踪定位,建议使用uuId,若不携带,则后台自动生成
|
|
4111
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
4112
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
|
|
4113
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
4114
|
+
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
4115
|
+
* @param {*} [options] Override http request option.
|
|
4116
|
+
* @throws {RequiredError}
|
|
4117
|
+
*/
|
|
4118
|
+
setTtscGroupAssets(setTtscGroupAssetsRequest) {
|
|
4119
|
+
const options = (0, exports.ParamCreater)().setTtscGroupAssets(setTtscGroupAssetsRequest);
|
|
4120
|
+
// @ts-ignore
|
|
4121
|
+
options['responseHeaders'] = [''];
|
|
4122
|
+
return this.hcClient.sendRequest(options);
|
|
4123
|
+
}
|
|
4030
4124
|
/**
|
|
4031
4125
|
* 该接口用于获取TTS音频文件下载链接。
|
|
4032
4126
|
*
|
|
@@ -4091,6 +4185,28 @@ class MetaStudioClient {
|
|
|
4091
4185
|
options['responseHeaders'] = [''];
|
|
4092
4186
|
return this.hcClient.sendRequest(options);
|
|
4093
4187
|
}
|
|
4188
|
+
/**
|
|
4189
|
+
* 该接口用于对TTS租户级词表分组重命名。
|
|
4190
|
+
*
|
|
4191
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4192
|
+
*
|
|
4193
|
+
* @summary TTS租户级词表分组重命名
|
|
4194
|
+
* @param {string} groupId 分组id
|
|
4195
|
+
* @param {SaveTtscVocabularyGroupsRequestBody} updateTtscVocabularyGroupsRequestBody 修改TTS租户级词表分组配置。
|
|
4196
|
+
* @param {string} [xRequestId] 请求requestId,用来标识一路请求,用于问题跟踪定位,建议使用uuId,若不携带,则后台自动生成
|
|
4197
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
4198
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
|
|
4199
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
4200
|
+
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
4201
|
+
* @param {*} [options] Override http request option.
|
|
4202
|
+
* @throws {RequiredError}
|
|
4203
|
+
*/
|
|
4204
|
+
updateTtscVocabularyGroups(updateTtscVocabularyGroupsRequest) {
|
|
4205
|
+
const options = (0, exports.ParamCreater)().updateTtscVocabularyGroups(updateTtscVocabularyGroupsRequest);
|
|
4206
|
+
// @ts-ignore
|
|
4207
|
+
options['responseHeaders'] = [''];
|
|
4208
|
+
return this.hcClient.sendRequest(options);
|
|
4209
|
+
}
|
|
4094
4210
|
/**
|
|
4095
4211
|
* 该接口用于创建视频驱动任务。
|
|
4096
4212
|
*
|
|
@@ -6153,7 +6269,6 @@ const ParamCreater = function () {
|
|
|
6153
6269
|
let excludeDeviceName;
|
|
6154
6270
|
let supportedService;
|
|
6155
6271
|
let appUserId;
|
|
6156
|
-
let projectGroupId;
|
|
6157
6272
|
if (listAssetsRequest !== null && listAssetsRequest !== undefined) {
|
|
6158
6273
|
if (listAssetsRequest instanceof ListAssetsRequest_1.ListAssetsRequest) {
|
|
6159
6274
|
authorization = listAssetsRequest.authorization;
|
|
@@ -6188,7 +6303,6 @@ const ParamCreater = function () {
|
|
|
6188
6303
|
excludeDeviceName = listAssetsRequest.excludeDeviceName;
|
|
6189
6304
|
supportedService = listAssetsRequest.supportedService;
|
|
6190
6305
|
appUserId = listAssetsRequest.appUserId;
|
|
6191
|
-
projectGroupId = listAssetsRequest.projectGroupId;
|
|
6192
6306
|
}
|
|
6193
6307
|
else {
|
|
6194
6308
|
authorization = listAssetsRequest['Authorization'];
|
|
@@ -6223,7 +6337,6 @@ const ParamCreater = function () {
|
|
|
6223
6337
|
excludeDeviceName = listAssetsRequest['exclude_device_name'];
|
|
6224
6338
|
supportedService = listAssetsRequest['supported_service'];
|
|
6225
6339
|
appUserId = listAssetsRequest['app_user_id'];
|
|
6226
|
-
projectGroupId = listAssetsRequest['project_group_id'];
|
|
6227
6340
|
}
|
|
6228
6341
|
}
|
|
6229
6342
|
if (limit !== null && limit !== undefined) {
|
|
@@ -6313,9 +6426,6 @@ const ParamCreater = function () {
|
|
|
6313
6426
|
if (appUserId !== null && appUserId !== undefined) {
|
|
6314
6427
|
localVarQueryParameter['app_user_id'] = appUserId;
|
|
6315
6428
|
}
|
|
6316
|
-
if (projectGroupId !== null && projectGroupId !== undefined) {
|
|
6317
|
-
localVarQueryParameter['project_group_id'] = projectGroupId;
|
|
6318
|
-
}
|
|
6319
6429
|
if (authorization !== undefined && authorization !== null) {
|
|
6320
6430
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
6321
6431
|
}
|
|
@@ -14345,6 +14455,7 @@ const ParamCreater = function () {
|
|
|
14345
14455
|
let batchName;
|
|
14346
14456
|
let sortKey;
|
|
14347
14457
|
let sortDir;
|
|
14458
|
+
let isOndemandResource;
|
|
14348
14459
|
if (listVoiceTrainingJobRequest !== null && listVoiceTrainingJobRequest !== undefined) {
|
|
14349
14460
|
if (listVoiceTrainingJobRequest instanceof ListVoiceTrainingJobRequest_1.ListVoiceTrainingJobRequest) {
|
|
14350
14461
|
offset = listVoiceTrainingJobRequest.offset;
|
|
@@ -14362,6 +14473,7 @@ const ParamCreater = function () {
|
|
|
14362
14473
|
batchName = listVoiceTrainingJobRequest.batchName;
|
|
14363
14474
|
sortKey = listVoiceTrainingJobRequest.sortKey;
|
|
14364
14475
|
sortDir = listVoiceTrainingJobRequest.sortDir;
|
|
14476
|
+
isOndemandResource = listVoiceTrainingJobRequest.isOndemandResource;
|
|
14365
14477
|
}
|
|
14366
14478
|
else {
|
|
14367
14479
|
offset = listVoiceTrainingJobRequest['offset'];
|
|
@@ -14379,6 +14491,7 @@ const ParamCreater = function () {
|
|
|
14379
14491
|
batchName = listVoiceTrainingJobRequest['batch_name'];
|
|
14380
14492
|
sortKey = listVoiceTrainingJobRequest['sort_key'];
|
|
14381
14493
|
sortDir = listVoiceTrainingJobRequest['sort_dir'];
|
|
14494
|
+
isOndemandResource = listVoiceTrainingJobRequest['is_ondemand_resource'];
|
|
14382
14495
|
}
|
|
14383
14496
|
}
|
|
14384
14497
|
if (offset !== null && offset !== undefined) {
|
|
@@ -14423,6 +14536,9 @@ const ParamCreater = function () {
|
|
|
14423
14536
|
if (sortDir !== null && sortDir !== undefined) {
|
|
14424
14537
|
localVarQueryParameter['sort_dir'] = sortDir;
|
|
14425
14538
|
}
|
|
14539
|
+
if (isOndemandResource !== null && isOndemandResource !== undefined) {
|
|
14540
|
+
localVarQueryParameter['is_ondemand_resource'] = isOndemandResource;
|
|
14541
|
+
}
|
|
14426
14542
|
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
14427
14543
|
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
14428
14544
|
}
|
|
@@ -14448,17 +14564,23 @@ const ParamCreater = function () {
|
|
|
14448
14564
|
};
|
|
14449
14565
|
const localVarHeaderParameter = {};
|
|
14450
14566
|
let body;
|
|
14567
|
+
let xAppUserId;
|
|
14451
14568
|
if (setJobBatchNameRequest !== null && setJobBatchNameRequest !== undefined) {
|
|
14452
14569
|
if (setJobBatchNameRequest instanceof SetJobBatchNameRequest_1.SetJobBatchNameRequest) {
|
|
14453
14570
|
body = setJobBatchNameRequest.body;
|
|
14571
|
+
xAppUserId = setJobBatchNameRequest.xAppUserId;
|
|
14454
14572
|
}
|
|
14455
14573
|
else {
|
|
14456
14574
|
body = setJobBatchNameRequest['body'];
|
|
14575
|
+
xAppUserId = setJobBatchNameRequest['X-App-UserId'];
|
|
14457
14576
|
}
|
|
14458
14577
|
}
|
|
14459
14578
|
if (body === null || body === undefined) {
|
|
14460
14579
|
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
14461
14580
|
}
|
|
14581
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
14582
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
14583
|
+
}
|
|
14462
14584
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14463
14585
|
options.data = body !== undefined ? body : {};
|
|
14464
14586
|
options.headers = localVarHeaderParameter;
|
|
@@ -15493,6 +15615,69 @@ const ParamCreater = function () {
|
|
|
15493
15615
|
options.headers = localVarHeaderParameter;
|
|
15494
15616
|
return options;
|
|
15495
15617
|
},
|
|
15618
|
+
/**
|
|
15619
|
+
* 该接口用于设置TTS租户级词表分组配置。
|
|
15620
|
+
*
|
|
15621
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
15622
|
+
*/
|
|
15623
|
+
createTtscVocabularyGroups(createTtscVocabularyGroupsRequest) {
|
|
15624
|
+
const options = {
|
|
15625
|
+
method: "POST",
|
|
15626
|
+
url: "/v1/{project_id}/ttsc/vocabulary-groups",
|
|
15627
|
+
contentType: "application/json",
|
|
15628
|
+
queryParams: {},
|
|
15629
|
+
pathParams: {},
|
|
15630
|
+
headers: {},
|
|
15631
|
+
data: {}
|
|
15632
|
+
};
|
|
15633
|
+
const localVarHeaderParameter = {};
|
|
15634
|
+
let body;
|
|
15635
|
+
let xRequestId;
|
|
15636
|
+
let authorization;
|
|
15637
|
+
let xSdkDate;
|
|
15638
|
+
let xProjectId;
|
|
15639
|
+
let xAppUserId;
|
|
15640
|
+
if (createTtscVocabularyGroupsRequest !== null && createTtscVocabularyGroupsRequest !== undefined) {
|
|
15641
|
+
if (createTtscVocabularyGroupsRequest instanceof CreateTtscVocabularyGroupsRequest_1.CreateTtscVocabularyGroupsRequest) {
|
|
15642
|
+
body = createTtscVocabularyGroupsRequest.body;
|
|
15643
|
+
xRequestId = createTtscVocabularyGroupsRequest.xRequestId;
|
|
15644
|
+
authorization = createTtscVocabularyGroupsRequest.authorization;
|
|
15645
|
+
xSdkDate = createTtscVocabularyGroupsRequest.xSdkDate;
|
|
15646
|
+
xProjectId = createTtscVocabularyGroupsRequest.xProjectId;
|
|
15647
|
+
xAppUserId = createTtscVocabularyGroupsRequest.xAppUserId;
|
|
15648
|
+
}
|
|
15649
|
+
else {
|
|
15650
|
+
body = createTtscVocabularyGroupsRequest['body'];
|
|
15651
|
+
xRequestId = createTtscVocabularyGroupsRequest['X-Request-Id'];
|
|
15652
|
+
authorization = createTtscVocabularyGroupsRequest['Authorization'];
|
|
15653
|
+
xSdkDate = createTtscVocabularyGroupsRequest['X-Sdk-Date'];
|
|
15654
|
+
xProjectId = createTtscVocabularyGroupsRequest['X-Project-Id'];
|
|
15655
|
+
xAppUserId = createTtscVocabularyGroupsRequest['X-App-UserId'];
|
|
15656
|
+
}
|
|
15657
|
+
}
|
|
15658
|
+
if (body === null || body === undefined) {
|
|
15659
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
15660
|
+
}
|
|
15661
|
+
if (xRequestId !== undefined && xRequestId !== null) {
|
|
15662
|
+
localVarHeaderParameter['X-Request-Id'] = String(xRequestId);
|
|
15663
|
+
}
|
|
15664
|
+
if (authorization !== undefined && authorization !== null) {
|
|
15665
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
15666
|
+
}
|
|
15667
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
15668
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
15669
|
+
}
|
|
15670
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
15671
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
15672
|
+
}
|
|
15673
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
15674
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
15675
|
+
}
|
|
15676
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15677
|
+
options.data = body !== undefined ? body : {};
|
|
15678
|
+
options.headers = localVarHeaderParameter;
|
|
15679
|
+
return options;
|
|
15680
|
+
},
|
|
15496
15681
|
/**
|
|
15497
15682
|
* 该接口用于删除TTS租户级自定义读法配置。
|
|
15498
15683
|
*
|
|
@@ -15570,6 +15755,81 @@ const ParamCreater = function () {
|
|
|
15570
15755
|
options.headers = localVarHeaderParameter;
|
|
15571
15756
|
return options;
|
|
15572
15757
|
},
|
|
15758
|
+
/**
|
|
15759
|
+
* 该接口用于删除TTS租户级词表分组配置。
|
|
15760
|
+
*
|
|
15761
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
15762
|
+
*/
|
|
15763
|
+
deleteTtscVocabularyGroups(deleteTtscVocabularyGroupsRequest) {
|
|
15764
|
+
const options = {
|
|
15765
|
+
method: "DELETE",
|
|
15766
|
+
url: "/v1/{project_id}/ttsc/vocabulary-groups/{group_id}",
|
|
15767
|
+
contentType: "application/json",
|
|
15768
|
+
queryParams: {},
|
|
15769
|
+
pathParams: {},
|
|
15770
|
+
headers: {}
|
|
15771
|
+
};
|
|
15772
|
+
const localVarHeaderParameter = {};
|
|
15773
|
+
const localVarQueryParameter = {};
|
|
15774
|
+
let groupId;
|
|
15775
|
+
let xRequestId;
|
|
15776
|
+
let authorization;
|
|
15777
|
+
let xSdkDate;
|
|
15778
|
+
let xProjectId;
|
|
15779
|
+
let xAppUserId;
|
|
15780
|
+
let offset;
|
|
15781
|
+
let limit;
|
|
15782
|
+
if (deleteTtscVocabularyGroupsRequest !== null && deleteTtscVocabularyGroupsRequest !== undefined) {
|
|
15783
|
+
if (deleteTtscVocabularyGroupsRequest instanceof DeleteTtscVocabularyGroupsRequest_1.DeleteTtscVocabularyGroupsRequest) {
|
|
15784
|
+
groupId = deleteTtscVocabularyGroupsRequest.groupId;
|
|
15785
|
+
xRequestId = deleteTtscVocabularyGroupsRequest.xRequestId;
|
|
15786
|
+
authorization = deleteTtscVocabularyGroupsRequest.authorization;
|
|
15787
|
+
xSdkDate = deleteTtscVocabularyGroupsRequest.xSdkDate;
|
|
15788
|
+
xProjectId = deleteTtscVocabularyGroupsRequest.xProjectId;
|
|
15789
|
+
xAppUserId = deleteTtscVocabularyGroupsRequest.xAppUserId;
|
|
15790
|
+
offset = deleteTtscVocabularyGroupsRequest.offset;
|
|
15791
|
+
limit = deleteTtscVocabularyGroupsRequest.limit;
|
|
15792
|
+
}
|
|
15793
|
+
else {
|
|
15794
|
+
groupId = deleteTtscVocabularyGroupsRequest['group_id'];
|
|
15795
|
+
xRequestId = deleteTtscVocabularyGroupsRequest['X-Request-Id'];
|
|
15796
|
+
authorization = deleteTtscVocabularyGroupsRequest['Authorization'];
|
|
15797
|
+
xSdkDate = deleteTtscVocabularyGroupsRequest['X-Sdk-Date'];
|
|
15798
|
+
xProjectId = deleteTtscVocabularyGroupsRequest['X-Project-Id'];
|
|
15799
|
+
xAppUserId = deleteTtscVocabularyGroupsRequest['X-App-UserId'];
|
|
15800
|
+
offset = deleteTtscVocabularyGroupsRequest['offset'];
|
|
15801
|
+
limit = deleteTtscVocabularyGroupsRequest['limit'];
|
|
15802
|
+
}
|
|
15803
|
+
}
|
|
15804
|
+
if (groupId === null || groupId === undefined) {
|
|
15805
|
+
throw new RequiredError('groupId', 'Required parameter groupId was null or undefined when calling deleteTtscVocabularyGroups.');
|
|
15806
|
+
}
|
|
15807
|
+
if (offset !== null && offset !== undefined) {
|
|
15808
|
+
localVarQueryParameter['offset'] = offset;
|
|
15809
|
+
}
|
|
15810
|
+
if (limit !== null && limit !== undefined) {
|
|
15811
|
+
localVarQueryParameter['limit'] = limit;
|
|
15812
|
+
}
|
|
15813
|
+
if (xRequestId !== undefined && xRequestId !== null) {
|
|
15814
|
+
localVarHeaderParameter['X-Request-Id'] = String(xRequestId);
|
|
15815
|
+
}
|
|
15816
|
+
if (authorization !== undefined && authorization !== null) {
|
|
15817
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
15818
|
+
}
|
|
15819
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
15820
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
15821
|
+
}
|
|
15822
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
15823
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
15824
|
+
}
|
|
15825
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
15826
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
15827
|
+
}
|
|
15828
|
+
options.queryParams = localVarQueryParameter;
|
|
15829
|
+
options.pathParams = { 'group_id': groupId, };
|
|
15830
|
+
options.headers = localVarHeaderParameter;
|
|
15831
|
+
return options;
|
|
15832
|
+
},
|
|
15573
15833
|
/**
|
|
15574
15834
|
* 该接口用于获取TTS租户级自定义读法配置。
|
|
15575
15835
|
*
|
|
@@ -15594,6 +15854,8 @@ const ParamCreater = function () {
|
|
|
15594
15854
|
let type;
|
|
15595
15855
|
let ttsServiceName;
|
|
15596
15856
|
let isVocabularyConfigEnable;
|
|
15857
|
+
let groupId;
|
|
15858
|
+
let assetId;
|
|
15597
15859
|
let limit;
|
|
15598
15860
|
let offset;
|
|
15599
15861
|
let startTime;
|
|
@@ -15609,6 +15871,8 @@ const ParamCreater = function () {
|
|
|
15609
15871
|
type = listTtscVocabularyConfigsRequest.type;
|
|
15610
15872
|
ttsServiceName = listTtscVocabularyConfigsRequest.ttsServiceName;
|
|
15611
15873
|
isVocabularyConfigEnable = listTtscVocabularyConfigsRequest.isVocabularyConfigEnable;
|
|
15874
|
+
groupId = listTtscVocabularyConfigsRequest.groupId;
|
|
15875
|
+
assetId = listTtscVocabularyConfigsRequest.assetId;
|
|
15612
15876
|
limit = listTtscVocabularyConfigsRequest.limit;
|
|
15613
15877
|
offset = listTtscVocabularyConfigsRequest.offset;
|
|
15614
15878
|
startTime = listTtscVocabularyConfigsRequest.startTime;
|
|
@@ -15624,6 +15888,8 @@ const ParamCreater = function () {
|
|
|
15624
15888
|
type = listTtscVocabularyConfigsRequest['type'];
|
|
15625
15889
|
ttsServiceName = listTtscVocabularyConfigsRequest['tts_service_name'];
|
|
15626
15890
|
isVocabularyConfigEnable = listTtscVocabularyConfigsRequest['is_vocabulary_config_enable'];
|
|
15891
|
+
groupId = listTtscVocabularyConfigsRequest['group_id'];
|
|
15892
|
+
assetId = listTtscVocabularyConfigsRequest['asset_id'];
|
|
15627
15893
|
limit = listTtscVocabularyConfigsRequest['limit'];
|
|
15628
15894
|
offset = listTtscVocabularyConfigsRequest['offset'];
|
|
15629
15895
|
startTime = listTtscVocabularyConfigsRequest['start_time'];
|
|
@@ -15640,6 +15906,12 @@ const ParamCreater = function () {
|
|
|
15640
15906
|
if (isVocabularyConfigEnable !== null && isVocabularyConfigEnable !== undefined) {
|
|
15641
15907
|
localVarQueryParameter['is_vocabulary_config_enable'] = isVocabularyConfigEnable;
|
|
15642
15908
|
}
|
|
15909
|
+
if (groupId !== null && groupId !== undefined) {
|
|
15910
|
+
localVarQueryParameter['group_id'] = groupId;
|
|
15911
|
+
}
|
|
15912
|
+
if (assetId !== null && assetId !== undefined) {
|
|
15913
|
+
localVarQueryParameter['asset_id'] = assetId;
|
|
15914
|
+
}
|
|
15643
15915
|
if (limit !== null && limit !== undefined) {
|
|
15644
15916
|
localVarQueryParameter['limit'] = limit;
|
|
15645
15917
|
}
|
|
@@ -15674,6 +15946,60 @@ const ParamCreater = function () {
|
|
|
15674
15946
|
options.headers = localVarHeaderParameter;
|
|
15675
15947
|
return options;
|
|
15676
15948
|
},
|
|
15949
|
+
/**
|
|
15950
|
+
* 该接口用于获取TTS租户级词表分组列表。
|
|
15951
|
+
*
|
|
15952
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
15953
|
+
*/
|
|
15954
|
+
listTtscVocabularyGroups(listTtscVocabularyGroupsRequest) {
|
|
15955
|
+
const options = {
|
|
15956
|
+
method: "GET",
|
|
15957
|
+
url: "/v1/{project_id}/ttsc/vocabulary-groups",
|
|
15958
|
+
contentType: "application/json",
|
|
15959
|
+
queryParams: {},
|
|
15960
|
+
pathParams: {},
|
|
15961
|
+
headers: {}
|
|
15962
|
+
};
|
|
15963
|
+
const localVarHeaderParameter = {};
|
|
15964
|
+
let xRequestId;
|
|
15965
|
+
let authorization;
|
|
15966
|
+
let xSdkDate;
|
|
15967
|
+
let xProjectId;
|
|
15968
|
+
let xAppUserId;
|
|
15969
|
+
if (listTtscVocabularyGroupsRequest !== null && listTtscVocabularyGroupsRequest !== undefined) {
|
|
15970
|
+
if (listTtscVocabularyGroupsRequest instanceof ListTtscVocabularyGroupsRequest_1.ListTtscVocabularyGroupsRequest) {
|
|
15971
|
+
xRequestId = listTtscVocabularyGroupsRequest.xRequestId;
|
|
15972
|
+
authorization = listTtscVocabularyGroupsRequest.authorization;
|
|
15973
|
+
xSdkDate = listTtscVocabularyGroupsRequest.xSdkDate;
|
|
15974
|
+
xProjectId = listTtscVocabularyGroupsRequest.xProjectId;
|
|
15975
|
+
xAppUserId = listTtscVocabularyGroupsRequest.xAppUserId;
|
|
15976
|
+
}
|
|
15977
|
+
else {
|
|
15978
|
+
xRequestId = listTtscVocabularyGroupsRequest['X-Request-Id'];
|
|
15979
|
+
authorization = listTtscVocabularyGroupsRequest['Authorization'];
|
|
15980
|
+
xSdkDate = listTtscVocabularyGroupsRequest['X-Sdk-Date'];
|
|
15981
|
+
xProjectId = listTtscVocabularyGroupsRequest['X-Project-Id'];
|
|
15982
|
+
xAppUserId = listTtscVocabularyGroupsRequest['X-App-UserId'];
|
|
15983
|
+
}
|
|
15984
|
+
}
|
|
15985
|
+
if (xRequestId !== undefined && xRequestId !== null) {
|
|
15986
|
+
localVarHeaderParameter['X-Request-Id'] = String(xRequestId);
|
|
15987
|
+
}
|
|
15988
|
+
if (authorization !== undefined && authorization !== null) {
|
|
15989
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
15990
|
+
}
|
|
15991
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
15992
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
15993
|
+
}
|
|
15994
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
15995
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
15996
|
+
}
|
|
15997
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
15998
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
15999
|
+
}
|
|
16000
|
+
options.headers = localVarHeaderParameter;
|
|
16001
|
+
return options;
|
|
16002
|
+
},
|
|
15677
16003
|
/**
|
|
15678
16004
|
* 该接口用于修改TTS租户级自定义读法配置。
|
|
15679
16005
|
*
|
|
@@ -15744,6 +16070,76 @@ const ParamCreater = function () {
|
|
|
15744
16070
|
options.headers = localVarHeaderParameter;
|
|
15745
16071
|
return options;
|
|
15746
16072
|
},
|
|
16073
|
+
/**
|
|
16074
|
+
* 该接口用于设置TTS租户级词表分组的资产列表。
|
|
16075
|
+
*
|
|
16076
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
16077
|
+
*/
|
|
16078
|
+
setTtscGroupAssets(setTtscGroupAssetsRequest) {
|
|
16079
|
+
const options = {
|
|
16080
|
+
method: "PUT",
|
|
16081
|
+
url: "/v1/{project_id}/ttsc/group-assets/{group_id}",
|
|
16082
|
+
contentType: "application/json",
|
|
16083
|
+
queryParams: {},
|
|
16084
|
+
pathParams: {},
|
|
16085
|
+
headers: {},
|
|
16086
|
+
data: {}
|
|
16087
|
+
};
|
|
16088
|
+
const localVarHeaderParameter = {};
|
|
16089
|
+
let body;
|
|
16090
|
+
let groupId;
|
|
16091
|
+
let xRequestId;
|
|
16092
|
+
let authorization;
|
|
16093
|
+
let xSdkDate;
|
|
16094
|
+
let xProjectId;
|
|
16095
|
+
let xAppUserId;
|
|
16096
|
+
if (setTtscGroupAssetsRequest !== null && setTtscGroupAssetsRequest !== undefined) {
|
|
16097
|
+
if (setTtscGroupAssetsRequest instanceof SetTtscGroupAssetsRequest_1.SetTtscGroupAssetsRequest) {
|
|
16098
|
+
groupId = setTtscGroupAssetsRequest.groupId;
|
|
16099
|
+
body = setTtscGroupAssetsRequest.body;
|
|
16100
|
+
xRequestId = setTtscGroupAssetsRequest.xRequestId;
|
|
16101
|
+
authorization = setTtscGroupAssetsRequest.authorization;
|
|
16102
|
+
xSdkDate = setTtscGroupAssetsRequest.xSdkDate;
|
|
16103
|
+
xProjectId = setTtscGroupAssetsRequest.xProjectId;
|
|
16104
|
+
xAppUserId = setTtscGroupAssetsRequest.xAppUserId;
|
|
16105
|
+
}
|
|
16106
|
+
else {
|
|
16107
|
+
groupId = setTtscGroupAssetsRequest['group_id'];
|
|
16108
|
+
body = setTtscGroupAssetsRequest['body'];
|
|
16109
|
+
xRequestId = setTtscGroupAssetsRequest['X-Request-Id'];
|
|
16110
|
+
authorization = setTtscGroupAssetsRequest['Authorization'];
|
|
16111
|
+
xSdkDate = setTtscGroupAssetsRequest['X-Sdk-Date'];
|
|
16112
|
+
xProjectId = setTtscGroupAssetsRequest['X-Project-Id'];
|
|
16113
|
+
xAppUserId = setTtscGroupAssetsRequest['X-App-UserId'];
|
|
16114
|
+
}
|
|
16115
|
+
}
|
|
16116
|
+
if (groupId === null || groupId === undefined) {
|
|
16117
|
+
throw new RequiredError('groupId', 'Required parameter groupId was null or undefined when calling setTtscGroupAssets.');
|
|
16118
|
+
}
|
|
16119
|
+
if (body === null || body === undefined) {
|
|
16120
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
16121
|
+
}
|
|
16122
|
+
if (xRequestId !== undefined && xRequestId !== null) {
|
|
16123
|
+
localVarHeaderParameter['X-Request-Id'] = String(xRequestId);
|
|
16124
|
+
}
|
|
16125
|
+
if (authorization !== undefined && authorization !== null) {
|
|
16126
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
16127
|
+
}
|
|
16128
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
16129
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
16130
|
+
}
|
|
16131
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
16132
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
16133
|
+
}
|
|
16134
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
16135
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
16136
|
+
}
|
|
16137
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16138
|
+
options.data = body !== undefined ? body : {};
|
|
16139
|
+
options.pathParams = { 'group_id': groupId, };
|
|
16140
|
+
options.headers = localVarHeaderParameter;
|
|
16141
|
+
return options;
|
|
16142
|
+
},
|
|
15747
16143
|
/**
|
|
15748
16144
|
* 该接口用于获取TTS音频文件下载链接。
|
|
15749
16145
|
*
|
|
@@ -15937,6 +16333,76 @@ const ParamCreater = function () {
|
|
|
15937
16333
|
options.headers = localVarHeaderParameter;
|
|
15938
16334
|
return options;
|
|
15939
16335
|
},
|
|
16336
|
+
/**
|
|
16337
|
+
* 该接口用于对TTS租户级词表分组重命名。
|
|
16338
|
+
*
|
|
16339
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
16340
|
+
*/
|
|
16341
|
+
updateTtscVocabularyGroups(updateTtscVocabularyGroupsRequest) {
|
|
16342
|
+
const options = {
|
|
16343
|
+
method: "PUT",
|
|
16344
|
+
url: "/v1/{project_id}/ttsc/vocabulary-groups/{group_id}",
|
|
16345
|
+
contentType: "application/json",
|
|
16346
|
+
queryParams: {},
|
|
16347
|
+
pathParams: {},
|
|
16348
|
+
headers: {},
|
|
16349
|
+
data: {}
|
|
16350
|
+
};
|
|
16351
|
+
const localVarHeaderParameter = {};
|
|
16352
|
+
let body;
|
|
16353
|
+
let groupId;
|
|
16354
|
+
let xRequestId;
|
|
16355
|
+
let authorization;
|
|
16356
|
+
let xSdkDate;
|
|
16357
|
+
let xProjectId;
|
|
16358
|
+
let xAppUserId;
|
|
16359
|
+
if (updateTtscVocabularyGroupsRequest !== null && updateTtscVocabularyGroupsRequest !== undefined) {
|
|
16360
|
+
if (updateTtscVocabularyGroupsRequest instanceof UpdateTtscVocabularyGroupsRequest_1.UpdateTtscVocabularyGroupsRequest) {
|
|
16361
|
+
groupId = updateTtscVocabularyGroupsRequest.groupId;
|
|
16362
|
+
body = updateTtscVocabularyGroupsRequest.body;
|
|
16363
|
+
xRequestId = updateTtscVocabularyGroupsRequest.xRequestId;
|
|
16364
|
+
authorization = updateTtscVocabularyGroupsRequest.authorization;
|
|
16365
|
+
xSdkDate = updateTtscVocabularyGroupsRequest.xSdkDate;
|
|
16366
|
+
xProjectId = updateTtscVocabularyGroupsRequest.xProjectId;
|
|
16367
|
+
xAppUserId = updateTtscVocabularyGroupsRequest.xAppUserId;
|
|
16368
|
+
}
|
|
16369
|
+
else {
|
|
16370
|
+
groupId = updateTtscVocabularyGroupsRequest['group_id'];
|
|
16371
|
+
body = updateTtscVocabularyGroupsRequest['body'];
|
|
16372
|
+
xRequestId = updateTtscVocabularyGroupsRequest['X-Request-Id'];
|
|
16373
|
+
authorization = updateTtscVocabularyGroupsRequest['Authorization'];
|
|
16374
|
+
xSdkDate = updateTtscVocabularyGroupsRequest['X-Sdk-Date'];
|
|
16375
|
+
xProjectId = updateTtscVocabularyGroupsRequest['X-Project-Id'];
|
|
16376
|
+
xAppUserId = updateTtscVocabularyGroupsRequest['X-App-UserId'];
|
|
16377
|
+
}
|
|
16378
|
+
}
|
|
16379
|
+
if (groupId === null || groupId === undefined) {
|
|
16380
|
+
throw new RequiredError('groupId', 'Required parameter groupId was null or undefined when calling updateTtscVocabularyGroups.');
|
|
16381
|
+
}
|
|
16382
|
+
if (body === null || body === undefined) {
|
|
16383
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
16384
|
+
}
|
|
16385
|
+
if (xRequestId !== undefined && xRequestId !== null) {
|
|
16386
|
+
localVarHeaderParameter['X-Request-Id'] = String(xRequestId);
|
|
16387
|
+
}
|
|
16388
|
+
if (authorization !== undefined && authorization !== null) {
|
|
16389
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
16390
|
+
}
|
|
16391
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
16392
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
16393
|
+
}
|
|
16394
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
16395
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
16396
|
+
}
|
|
16397
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
16398
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
16399
|
+
}
|
|
16400
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16401
|
+
options.data = body !== undefined ? body : {};
|
|
16402
|
+
options.pathParams = { 'group_id': groupId, };
|
|
16403
|
+
options.headers = localVarHeaderParameter;
|
|
16404
|
+
return options;
|
|
16405
|
+
},
|
|
15940
16406
|
/**
|
|
15941
16407
|
* 该接口用于创建视频驱动任务。
|
|
15942
16408
|
*
|