tencentcloud-sdk-python 3.0.1185__py2.py3-none-any.whl → 3.0.1187__py2.py3-none-any.whl
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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/aiart/v20221229/aiart_client.py +25 -4
- tencentcloud/aiart/v20221229/models.py +138 -0
- tencentcloud/asr/v20190614/models.py +12 -12
- tencentcloud/cam/v20190116/errorcodes.py +3 -0
- tencentcloud/cdb/v20170320/models.py +2 -0
- tencentcloud/cdn/v20180606/models.py +1 -1
- tencentcloud/clb/v20180317/clb_client.py +13 -16
- tencentcloud/dnspod/v20210323/models.py +12 -0
- tencentcloud/goosefs/v20220519/models.py +113 -0
- tencentcloud/iotexplorer/v20190423/models.py +1 -13
- tencentcloud/ivld/v20210903/ivld_client.py +93 -0
- tencentcloud/ivld/v20210903/models.py +709 -0
- tencentcloud/lighthouse/v20200324/models.py +1 -1
- tencentcloud/lke/v20231130/lke_client.py +23 -0
- tencentcloud/lke/v20231130/models.py +240 -1
- tencentcloud/mna/v20210119/mna_client.py +207 -0
- tencentcloud/mna/v20210119/models.py +1184 -115
- tencentcloud/mps/v20190612/models.py +26 -0
- tencentcloud/rum/v20210622/models.py +12 -0
- tencentcloud/trtc/v20190722/models.py +494 -0
- tencentcloud/trtc/v20190722/trtc_client.py +69 -0
- tencentcloud/tse/v20201207/models.py +25 -0
- tencentcloud/tsf/v20180326/errorcodes.py +9 -0
- tencentcloud/tsf/v20180326/models.py +222 -0
- tencentcloud/tsf/v20180326/tsf_client.py +46 -0
- tencentcloud/vpc/v20170312/models.py +171 -2
- tencentcloud/vpc/v20170312/vpc_client.py +23 -0
- tencentcloud/waf/v20180125/models.py +1 -1
- {tencentcloud_sdk_python-3.0.1185.dist-info → tencentcloud_sdk_python-3.0.1187.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1185.dist-info → tencentcloud_sdk_python-3.0.1187.dist-info}/RECORD +34 -34
- {tencentcloud_sdk_python-3.0.1185.dist-info → tencentcloud_sdk_python-3.0.1187.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1185.dist-info → tencentcloud_sdk_python-3.0.1187.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1185.dist-info → tencentcloud_sdk_python-3.0.1187.dist-info}/top_level.txt +0 -0
@@ -259,6 +259,63 @@ class AppearInfo(AbstractModel):
|
|
259
259
|
|
260
260
|
|
261
261
|
|
262
|
+
class AsrResult(AbstractModel):
|
263
|
+
"""一条 asr 语音结果的结构
|
264
|
+
|
265
|
+
"""
|
266
|
+
|
267
|
+
def __init__(self):
|
268
|
+
r"""
|
269
|
+
:param _Content: ASR提取的文字信息
|
270
|
+
:type Content: str
|
271
|
+
:param _StartTimeStamp: ASR起始时间戳,从0开始
|
272
|
+
:type StartTimeStamp: float
|
273
|
+
:param _EndTimeStamp: ASR结束时间戳,从0开始
|
274
|
+
:type EndTimeStamp: float
|
275
|
+
"""
|
276
|
+
self._Content = None
|
277
|
+
self._StartTimeStamp = None
|
278
|
+
self._EndTimeStamp = None
|
279
|
+
|
280
|
+
@property
|
281
|
+
def Content(self):
|
282
|
+
return self._Content
|
283
|
+
|
284
|
+
@Content.setter
|
285
|
+
def Content(self, Content):
|
286
|
+
self._Content = Content
|
287
|
+
|
288
|
+
@property
|
289
|
+
def StartTimeStamp(self):
|
290
|
+
return self._StartTimeStamp
|
291
|
+
|
292
|
+
@StartTimeStamp.setter
|
293
|
+
def StartTimeStamp(self, StartTimeStamp):
|
294
|
+
self._StartTimeStamp = StartTimeStamp
|
295
|
+
|
296
|
+
@property
|
297
|
+
def EndTimeStamp(self):
|
298
|
+
return self._EndTimeStamp
|
299
|
+
|
300
|
+
@EndTimeStamp.setter
|
301
|
+
def EndTimeStamp(self, EndTimeStamp):
|
302
|
+
self._EndTimeStamp = EndTimeStamp
|
303
|
+
|
304
|
+
|
305
|
+
def _deserialize(self, params):
|
306
|
+
self._Content = params.get("Content")
|
307
|
+
self._StartTimeStamp = params.get("StartTimeStamp")
|
308
|
+
self._EndTimeStamp = params.get("EndTimeStamp")
|
309
|
+
memeber_set = set(params.keys())
|
310
|
+
for name, value in vars(self).items():
|
311
|
+
property_name = name[1:]
|
312
|
+
if property_name in memeber_set:
|
313
|
+
memeber_set.remove(property_name)
|
314
|
+
if len(memeber_set) > 0:
|
315
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
316
|
+
|
317
|
+
|
318
|
+
|
262
319
|
class AudioData(AbstractModel):
|
263
320
|
"""音频文件分析结果数据
|
264
321
|
|
@@ -967,6 +1024,223 @@ class CreateTaskResponse(AbstractModel):
|
|
967
1024
|
self._RequestId = params.get("RequestId")
|
968
1025
|
|
969
1026
|
|
1027
|
+
class CreateVideoSummaryTaskRequest(AbstractModel):
|
1028
|
+
"""CreateVideoSummaryTask请求参数结构体
|
1029
|
+
|
1030
|
+
"""
|
1031
|
+
|
1032
|
+
def __init__(self):
|
1033
|
+
r"""
|
1034
|
+
:param _SummaryType: 目前只支持 1,表示新闻缩编。
|
1035
|
+
:type SummaryType: int
|
1036
|
+
:param _VideoURL: 待处理的视频的URL,目前只支持*不带签名的*COS地址,长度最长1KB
|
1037
|
+
:type VideoURL: str
|
1038
|
+
:param _CallbackURL: 任务处理完成的回调地址。
|
1039
|
+
:type CallbackURL: str
|
1040
|
+
:param _WriteBackCosPath: 如果需要你输出 TTS 或者视频,该字段为转存的cos桶地址且不可为空; 示例:https://${Bucket}-${AppId}.cos.${Region}.myqcloud.com/${PathPrefix}/ (注意,cos路径需要以/分隔符结尾)。
|
1041
|
+
|
1042
|
+
:type WriteBackCosPath: str
|
1043
|
+
:param _ActiveVideoGenerate: 是否开启结果视频生成功能,如果开启,需要指定WriteBackCosPath 参数
|
1044
|
+
:type ActiveVideoGenerate: bool
|
1045
|
+
:param _VideoRotationMode: 生成结果视频的时候,控制生成的结果视频的横转竖参数。如果 ActiveVideoGenerate 为 false, 该参数无效。
|
1046
|
+
:type VideoRotationMode: :class:`tencentcloud.ivld.v20210903.models.VideoRotationMode`
|
1047
|
+
:param _TTSMode: 语音合成相关的控制参数
|
1048
|
+
:type TTSMode: :class:`tencentcloud.ivld.v20210903.models.TTSMode`
|
1049
|
+
:param _ActiveTTSOutput: 是否输出合成好的语音列表。
|
1050
|
+
:type ActiveTTSOutput: bool
|
1051
|
+
:param _ExactAsrSet: 用户指定的精确的 asr 结果列表
|
1052
|
+
:type ExactAsrSet: list of AsrResult
|
1053
|
+
:param _ExactTextSummary: 用户指定的精确的文本摘要
|
1054
|
+
:type ExactTextSummary: str
|
1055
|
+
:param _ExactTextSegSet: 用户指定的精确的文本摘要分割结果
|
1056
|
+
:type ExactTextSegSet: list of str
|
1057
|
+
:param _ExactShotSegSet: 用户指定的精确的镜头分割结果
|
1058
|
+
:type ExactShotSegSet: list of ShotInfo
|
1059
|
+
"""
|
1060
|
+
self._SummaryType = None
|
1061
|
+
self._VideoURL = None
|
1062
|
+
self._CallbackURL = None
|
1063
|
+
self._WriteBackCosPath = None
|
1064
|
+
self._ActiveVideoGenerate = None
|
1065
|
+
self._VideoRotationMode = None
|
1066
|
+
self._TTSMode = None
|
1067
|
+
self._ActiveTTSOutput = None
|
1068
|
+
self._ExactAsrSet = None
|
1069
|
+
self._ExactTextSummary = None
|
1070
|
+
self._ExactTextSegSet = None
|
1071
|
+
self._ExactShotSegSet = None
|
1072
|
+
|
1073
|
+
@property
|
1074
|
+
def SummaryType(self):
|
1075
|
+
return self._SummaryType
|
1076
|
+
|
1077
|
+
@SummaryType.setter
|
1078
|
+
def SummaryType(self, SummaryType):
|
1079
|
+
self._SummaryType = SummaryType
|
1080
|
+
|
1081
|
+
@property
|
1082
|
+
def VideoURL(self):
|
1083
|
+
return self._VideoURL
|
1084
|
+
|
1085
|
+
@VideoURL.setter
|
1086
|
+
def VideoURL(self, VideoURL):
|
1087
|
+
self._VideoURL = VideoURL
|
1088
|
+
|
1089
|
+
@property
|
1090
|
+
def CallbackURL(self):
|
1091
|
+
return self._CallbackURL
|
1092
|
+
|
1093
|
+
@CallbackURL.setter
|
1094
|
+
def CallbackURL(self, CallbackURL):
|
1095
|
+
self._CallbackURL = CallbackURL
|
1096
|
+
|
1097
|
+
@property
|
1098
|
+
def WriteBackCosPath(self):
|
1099
|
+
return self._WriteBackCosPath
|
1100
|
+
|
1101
|
+
@WriteBackCosPath.setter
|
1102
|
+
def WriteBackCosPath(self, WriteBackCosPath):
|
1103
|
+
self._WriteBackCosPath = WriteBackCosPath
|
1104
|
+
|
1105
|
+
@property
|
1106
|
+
def ActiveVideoGenerate(self):
|
1107
|
+
return self._ActiveVideoGenerate
|
1108
|
+
|
1109
|
+
@ActiveVideoGenerate.setter
|
1110
|
+
def ActiveVideoGenerate(self, ActiveVideoGenerate):
|
1111
|
+
self._ActiveVideoGenerate = ActiveVideoGenerate
|
1112
|
+
|
1113
|
+
@property
|
1114
|
+
def VideoRotationMode(self):
|
1115
|
+
return self._VideoRotationMode
|
1116
|
+
|
1117
|
+
@VideoRotationMode.setter
|
1118
|
+
def VideoRotationMode(self, VideoRotationMode):
|
1119
|
+
self._VideoRotationMode = VideoRotationMode
|
1120
|
+
|
1121
|
+
@property
|
1122
|
+
def TTSMode(self):
|
1123
|
+
return self._TTSMode
|
1124
|
+
|
1125
|
+
@TTSMode.setter
|
1126
|
+
def TTSMode(self, TTSMode):
|
1127
|
+
self._TTSMode = TTSMode
|
1128
|
+
|
1129
|
+
@property
|
1130
|
+
def ActiveTTSOutput(self):
|
1131
|
+
return self._ActiveTTSOutput
|
1132
|
+
|
1133
|
+
@ActiveTTSOutput.setter
|
1134
|
+
def ActiveTTSOutput(self, ActiveTTSOutput):
|
1135
|
+
self._ActiveTTSOutput = ActiveTTSOutput
|
1136
|
+
|
1137
|
+
@property
|
1138
|
+
def ExactAsrSet(self):
|
1139
|
+
return self._ExactAsrSet
|
1140
|
+
|
1141
|
+
@ExactAsrSet.setter
|
1142
|
+
def ExactAsrSet(self, ExactAsrSet):
|
1143
|
+
self._ExactAsrSet = ExactAsrSet
|
1144
|
+
|
1145
|
+
@property
|
1146
|
+
def ExactTextSummary(self):
|
1147
|
+
return self._ExactTextSummary
|
1148
|
+
|
1149
|
+
@ExactTextSummary.setter
|
1150
|
+
def ExactTextSummary(self, ExactTextSummary):
|
1151
|
+
self._ExactTextSummary = ExactTextSummary
|
1152
|
+
|
1153
|
+
@property
|
1154
|
+
def ExactTextSegSet(self):
|
1155
|
+
return self._ExactTextSegSet
|
1156
|
+
|
1157
|
+
@ExactTextSegSet.setter
|
1158
|
+
def ExactTextSegSet(self, ExactTextSegSet):
|
1159
|
+
self._ExactTextSegSet = ExactTextSegSet
|
1160
|
+
|
1161
|
+
@property
|
1162
|
+
def ExactShotSegSet(self):
|
1163
|
+
return self._ExactShotSegSet
|
1164
|
+
|
1165
|
+
@ExactShotSegSet.setter
|
1166
|
+
def ExactShotSegSet(self, ExactShotSegSet):
|
1167
|
+
self._ExactShotSegSet = ExactShotSegSet
|
1168
|
+
|
1169
|
+
|
1170
|
+
def _deserialize(self, params):
|
1171
|
+
self._SummaryType = params.get("SummaryType")
|
1172
|
+
self._VideoURL = params.get("VideoURL")
|
1173
|
+
self._CallbackURL = params.get("CallbackURL")
|
1174
|
+
self._WriteBackCosPath = params.get("WriteBackCosPath")
|
1175
|
+
self._ActiveVideoGenerate = params.get("ActiveVideoGenerate")
|
1176
|
+
if params.get("VideoRotationMode") is not None:
|
1177
|
+
self._VideoRotationMode = VideoRotationMode()
|
1178
|
+
self._VideoRotationMode._deserialize(params.get("VideoRotationMode"))
|
1179
|
+
if params.get("TTSMode") is not None:
|
1180
|
+
self._TTSMode = TTSMode()
|
1181
|
+
self._TTSMode._deserialize(params.get("TTSMode"))
|
1182
|
+
self._ActiveTTSOutput = params.get("ActiveTTSOutput")
|
1183
|
+
if params.get("ExactAsrSet") is not None:
|
1184
|
+
self._ExactAsrSet = []
|
1185
|
+
for item in params.get("ExactAsrSet"):
|
1186
|
+
obj = AsrResult()
|
1187
|
+
obj._deserialize(item)
|
1188
|
+
self._ExactAsrSet.append(obj)
|
1189
|
+
self._ExactTextSummary = params.get("ExactTextSummary")
|
1190
|
+
self._ExactTextSegSet = params.get("ExactTextSegSet")
|
1191
|
+
if params.get("ExactShotSegSet") is not None:
|
1192
|
+
self._ExactShotSegSet = []
|
1193
|
+
for item in params.get("ExactShotSegSet"):
|
1194
|
+
obj = ShotInfo()
|
1195
|
+
obj._deserialize(item)
|
1196
|
+
self._ExactShotSegSet.append(obj)
|
1197
|
+
memeber_set = set(params.keys())
|
1198
|
+
for name, value in vars(self).items():
|
1199
|
+
property_name = name[1:]
|
1200
|
+
if property_name in memeber_set:
|
1201
|
+
memeber_set.remove(property_name)
|
1202
|
+
if len(memeber_set) > 0:
|
1203
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1204
|
+
|
1205
|
+
|
1206
|
+
|
1207
|
+
class CreateVideoSummaryTaskResponse(AbstractModel):
|
1208
|
+
"""CreateVideoSummaryTask返回参数结构体
|
1209
|
+
|
1210
|
+
"""
|
1211
|
+
|
1212
|
+
def __init__(self):
|
1213
|
+
r"""
|
1214
|
+
:param _TaskId: 返回的任务 id
|
1215
|
+
:type TaskId: str
|
1216
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1217
|
+
:type RequestId: str
|
1218
|
+
"""
|
1219
|
+
self._TaskId = None
|
1220
|
+
self._RequestId = None
|
1221
|
+
|
1222
|
+
@property
|
1223
|
+
def TaskId(self):
|
1224
|
+
return self._TaskId
|
1225
|
+
|
1226
|
+
@TaskId.setter
|
1227
|
+
def TaskId(self, TaskId):
|
1228
|
+
self._TaskId = TaskId
|
1229
|
+
|
1230
|
+
@property
|
1231
|
+
def RequestId(self):
|
1232
|
+
return self._RequestId
|
1233
|
+
|
1234
|
+
@RequestId.setter
|
1235
|
+
def RequestId(self, RequestId):
|
1236
|
+
self._RequestId = RequestId
|
1237
|
+
|
1238
|
+
|
1239
|
+
def _deserialize(self, params):
|
1240
|
+
self._TaskId = params.get("TaskId")
|
1241
|
+
self._RequestId = params.get("RequestId")
|
1242
|
+
|
1243
|
+
|
970
1244
|
class CustomCategory(AbstractModel):
|
971
1245
|
"""自定义分类信息
|
972
1246
|
|
@@ -2439,6 +2713,258 @@ class DescribeTasksResponse(AbstractModel):
|
|
2439
2713
|
self._RequestId = params.get("RequestId")
|
2440
2714
|
|
2441
2715
|
|
2716
|
+
class DescribeUsageAmountRequest(AbstractModel):
|
2717
|
+
"""DescribeUsageAmount请求参数结构体
|
2718
|
+
|
2719
|
+
"""
|
2720
|
+
|
2721
|
+
|
2722
|
+
class DescribeUsageAmountResponse(AbstractModel):
|
2723
|
+
"""DescribeUsageAmount返回参数结构体
|
2724
|
+
|
2725
|
+
"""
|
2726
|
+
|
2727
|
+
def __init__(self):
|
2728
|
+
r"""
|
2729
|
+
:param _UsedHours: 资源使用小时数
|
2730
|
+
:type UsedHours: float
|
2731
|
+
:param _TotalHours: 资源包总量小时数
|
2732
|
+
:type TotalHours: float
|
2733
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2734
|
+
:type RequestId: str
|
2735
|
+
"""
|
2736
|
+
self._UsedHours = None
|
2737
|
+
self._TotalHours = None
|
2738
|
+
self._RequestId = None
|
2739
|
+
|
2740
|
+
@property
|
2741
|
+
def UsedHours(self):
|
2742
|
+
return self._UsedHours
|
2743
|
+
|
2744
|
+
@UsedHours.setter
|
2745
|
+
def UsedHours(self, UsedHours):
|
2746
|
+
self._UsedHours = UsedHours
|
2747
|
+
|
2748
|
+
@property
|
2749
|
+
def TotalHours(self):
|
2750
|
+
return self._TotalHours
|
2751
|
+
|
2752
|
+
@TotalHours.setter
|
2753
|
+
def TotalHours(self, TotalHours):
|
2754
|
+
self._TotalHours = TotalHours
|
2755
|
+
|
2756
|
+
@property
|
2757
|
+
def RequestId(self):
|
2758
|
+
return self._RequestId
|
2759
|
+
|
2760
|
+
@RequestId.setter
|
2761
|
+
def RequestId(self, RequestId):
|
2762
|
+
self._RequestId = RequestId
|
2763
|
+
|
2764
|
+
|
2765
|
+
def _deserialize(self, params):
|
2766
|
+
self._UsedHours = params.get("UsedHours")
|
2767
|
+
self._TotalHours = params.get("TotalHours")
|
2768
|
+
self._RequestId = params.get("RequestId")
|
2769
|
+
|
2770
|
+
|
2771
|
+
class DescribeVideoSummaryDetailRequest(AbstractModel):
|
2772
|
+
"""DescribeVideoSummaryDetail请求参数结构体
|
2773
|
+
|
2774
|
+
"""
|
2775
|
+
|
2776
|
+
def __init__(self):
|
2777
|
+
r"""
|
2778
|
+
:param _TaskId: 要查询的任务Id
|
2779
|
+
:type TaskId: str
|
2780
|
+
"""
|
2781
|
+
self._TaskId = None
|
2782
|
+
|
2783
|
+
@property
|
2784
|
+
def TaskId(self):
|
2785
|
+
return self._TaskId
|
2786
|
+
|
2787
|
+
@TaskId.setter
|
2788
|
+
def TaskId(self, TaskId):
|
2789
|
+
self._TaskId = TaskId
|
2790
|
+
|
2791
|
+
|
2792
|
+
def _deserialize(self, params):
|
2793
|
+
self._TaskId = params.get("TaskId")
|
2794
|
+
memeber_set = set(params.keys())
|
2795
|
+
for name, value in vars(self).items():
|
2796
|
+
property_name = name[1:]
|
2797
|
+
if property_name in memeber_set:
|
2798
|
+
memeber_set.remove(property_name)
|
2799
|
+
if len(memeber_set) > 0:
|
2800
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
2801
|
+
|
2802
|
+
|
2803
|
+
|
2804
|
+
class DescribeVideoSummaryDetailResponse(AbstractModel):
|
2805
|
+
"""DescribeVideoSummaryDetail返回参数结构体
|
2806
|
+
|
2807
|
+
"""
|
2808
|
+
|
2809
|
+
def __init__(self):
|
2810
|
+
r"""
|
2811
|
+
:param _Status: 任务的状态
|
2812
|
+
1: 等待处理中
|
2813
|
+
2: 处理中
|
2814
|
+
3: 处理成功
|
2815
|
+
4: 处理失败
|
2816
|
+
:type Status: int
|
2817
|
+
:param _FailedReason: 如果处理失败,返回失败的原因
|
2818
|
+
:type FailedReason: str
|
2819
|
+
:param _AsrSet: 提取出的视频的 Asr 结果
|
2820
|
+
:type AsrSet: list of AsrResult
|
2821
|
+
:param _TextSummary: 文本摘要结果
|
2822
|
+
:type TextSummary: str
|
2823
|
+
:param _TextSegSet: 文本摘要分割结果
|
2824
|
+
:type TextSegSet: list of str
|
2825
|
+
:param _ShotSegSet: 镜头分割结果
|
2826
|
+
:type ShotSegSet: list of ShotInfo
|
2827
|
+
:param _TextSegMatchShotScoreSet: 数组第 i 个结构 TextSegMatchShotConfidenceSet[i] 表示第 i 个文本摘要分割结果和所有镜头的匹配度。
|
2828
|
+
:type TextSegMatchShotScoreSet: list of TextSegMatchShotScore
|
2829
|
+
:param _TTSResultURLSet: TTS 输出音频下载地址列表
|
2830
|
+
:type TTSResultURLSet: list of str
|
2831
|
+
:param _VideoResultURL: 合成视频输出下载地址
|
2832
|
+
:type VideoResultURL: str
|
2833
|
+
:param _VideoRotateResultURL: 合成后的视频横竖屏转换后的视频下载地址
|
2834
|
+
:type VideoRotateResultURL: str
|
2835
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2836
|
+
:type RequestId: str
|
2837
|
+
"""
|
2838
|
+
self._Status = None
|
2839
|
+
self._FailedReason = None
|
2840
|
+
self._AsrSet = None
|
2841
|
+
self._TextSummary = None
|
2842
|
+
self._TextSegSet = None
|
2843
|
+
self._ShotSegSet = None
|
2844
|
+
self._TextSegMatchShotScoreSet = None
|
2845
|
+
self._TTSResultURLSet = None
|
2846
|
+
self._VideoResultURL = None
|
2847
|
+
self._VideoRotateResultURL = None
|
2848
|
+
self._RequestId = None
|
2849
|
+
|
2850
|
+
@property
|
2851
|
+
def Status(self):
|
2852
|
+
return self._Status
|
2853
|
+
|
2854
|
+
@Status.setter
|
2855
|
+
def Status(self, Status):
|
2856
|
+
self._Status = Status
|
2857
|
+
|
2858
|
+
@property
|
2859
|
+
def FailedReason(self):
|
2860
|
+
return self._FailedReason
|
2861
|
+
|
2862
|
+
@FailedReason.setter
|
2863
|
+
def FailedReason(self, FailedReason):
|
2864
|
+
self._FailedReason = FailedReason
|
2865
|
+
|
2866
|
+
@property
|
2867
|
+
def AsrSet(self):
|
2868
|
+
return self._AsrSet
|
2869
|
+
|
2870
|
+
@AsrSet.setter
|
2871
|
+
def AsrSet(self, AsrSet):
|
2872
|
+
self._AsrSet = AsrSet
|
2873
|
+
|
2874
|
+
@property
|
2875
|
+
def TextSummary(self):
|
2876
|
+
return self._TextSummary
|
2877
|
+
|
2878
|
+
@TextSummary.setter
|
2879
|
+
def TextSummary(self, TextSummary):
|
2880
|
+
self._TextSummary = TextSummary
|
2881
|
+
|
2882
|
+
@property
|
2883
|
+
def TextSegSet(self):
|
2884
|
+
return self._TextSegSet
|
2885
|
+
|
2886
|
+
@TextSegSet.setter
|
2887
|
+
def TextSegSet(self, TextSegSet):
|
2888
|
+
self._TextSegSet = TextSegSet
|
2889
|
+
|
2890
|
+
@property
|
2891
|
+
def ShotSegSet(self):
|
2892
|
+
return self._ShotSegSet
|
2893
|
+
|
2894
|
+
@ShotSegSet.setter
|
2895
|
+
def ShotSegSet(self, ShotSegSet):
|
2896
|
+
self._ShotSegSet = ShotSegSet
|
2897
|
+
|
2898
|
+
@property
|
2899
|
+
def TextSegMatchShotScoreSet(self):
|
2900
|
+
return self._TextSegMatchShotScoreSet
|
2901
|
+
|
2902
|
+
@TextSegMatchShotScoreSet.setter
|
2903
|
+
def TextSegMatchShotScoreSet(self, TextSegMatchShotScoreSet):
|
2904
|
+
self._TextSegMatchShotScoreSet = TextSegMatchShotScoreSet
|
2905
|
+
|
2906
|
+
@property
|
2907
|
+
def TTSResultURLSet(self):
|
2908
|
+
return self._TTSResultURLSet
|
2909
|
+
|
2910
|
+
@TTSResultURLSet.setter
|
2911
|
+
def TTSResultURLSet(self, TTSResultURLSet):
|
2912
|
+
self._TTSResultURLSet = TTSResultURLSet
|
2913
|
+
|
2914
|
+
@property
|
2915
|
+
def VideoResultURL(self):
|
2916
|
+
return self._VideoResultURL
|
2917
|
+
|
2918
|
+
@VideoResultURL.setter
|
2919
|
+
def VideoResultURL(self, VideoResultURL):
|
2920
|
+
self._VideoResultURL = VideoResultURL
|
2921
|
+
|
2922
|
+
@property
|
2923
|
+
def VideoRotateResultURL(self):
|
2924
|
+
return self._VideoRotateResultURL
|
2925
|
+
|
2926
|
+
@VideoRotateResultURL.setter
|
2927
|
+
def VideoRotateResultURL(self, VideoRotateResultURL):
|
2928
|
+
self._VideoRotateResultURL = VideoRotateResultURL
|
2929
|
+
|
2930
|
+
@property
|
2931
|
+
def RequestId(self):
|
2932
|
+
return self._RequestId
|
2933
|
+
|
2934
|
+
@RequestId.setter
|
2935
|
+
def RequestId(self, RequestId):
|
2936
|
+
self._RequestId = RequestId
|
2937
|
+
|
2938
|
+
|
2939
|
+
def _deserialize(self, params):
|
2940
|
+
self._Status = params.get("Status")
|
2941
|
+
self._FailedReason = params.get("FailedReason")
|
2942
|
+
if params.get("AsrSet") is not None:
|
2943
|
+
self._AsrSet = []
|
2944
|
+
for item in params.get("AsrSet"):
|
2945
|
+
obj = AsrResult()
|
2946
|
+
obj._deserialize(item)
|
2947
|
+
self._AsrSet.append(obj)
|
2948
|
+
self._TextSummary = params.get("TextSummary")
|
2949
|
+
self._TextSegSet = params.get("TextSegSet")
|
2950
|
+
if params.get("ShotSegSet") is not None:
|
2951
|
+
self._ShotSegSet = []
|
2952
|
+
for item in params.get("ShotSegSet"):
|
2953
|
+
obj = ShotInfo()
|
2954
|
+
obj._deserialize(item)
|
2955
|
+
self._ShotSegSet.append(obj)
|
2956
|
+
if params.get("TextSegMatchShotScoreSet") is not None:
|
2957
|
+
self._TextSegMatchShotScoreSet = []
|
2958
|
+
for item in params.get("TextSegMatchShotScoreSet"):
|
2959
|
+
obj = TextSegMatchShotScore()
|
2960
|
+
obj._deserialize(item)
|
2961
|
+
self._TextSegMatchShotScoreSet.append(obj)
|
2962
|
+
self._TTSResultURLSet = params.get("TTSResultURLSet")
|
2963
|
+
self._VideoResultURL = params.get("VideoResultURL")
|
2964
|
+
self._VideoRotateResultURL = params.get("VideoRotateResultURL")
|
2965
|
+
self._RequestId = params.get("RequestId")
|
2966
|
+
|
2967
|
+
|
2442
2968
|
class ImageData(AbstractModel):
|
2443
2969
|
"""图片文件标签结果
|
2444
2970
|
|
@@ -4107,6 +4633,53 @@ class Rectf(AbstractModel):
|
|
4107
4633
|
|
4108
4634
|
|
4109
4635
|
|
4636
|
+
class ShotInfo(AbstractModel):
|
4637
|
+
"""输入的镜头信息的描述
|
4638
|
+
|
4639
|
+
"""
|
4640
|
+
|
4641
|
+
def __init__(self):
|
4642
|
+
r"""
|
4643
|
+
:param _StartTimeStamp: 镜头开始时间
|
4644
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4645
|
+
:type StartTimeStamp: float
|
4646
|
+
:param _EndTimeStamp: 镜头结束时间
|
4647
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4648
|
+
:type EndTimeStamp: float
|
4649
|
+
"""
|
4650
|
+
self._StartTimeStamp = None
|
4651
|
+
self._EndTimeStamp = None
|
4652
|
+
|
4653
|
+
@property
|
4654
|
+
def StartTimeStamp(self):
|
4655
|
+
return self._StartTimeStamp
|
4656
|
+
|
4657
|
+
@StartTimeStamp.setter
|
4658
|
+
def StartTimeStamp(self, StartTimeStamp):
|
4659
|
+
self._StartTimeStamp = StartTimeStamp
|
4660
|
+
|
4661
|
+
@property
|
4662
|
+
def EndTimeStamp(self):
|
4663
|
+
return self._EndTimeStamp
|
4664
|
+
|
4665
|
+
@EndTimeStamp.setter
|
4666
|
+
def EndTimeStamp(self, EndTimeStamp):
|
4667
|
+
self._EndTimeStamp = EndTimeStamp
|
4668
|
+
|
4669
|
+
|
4670
|
+
def _deserialize(self, params):
|
4671
|
+
self._StartTimeStamp = params.get("StartTimeStamp")
|
4672
|
+
self._EndTimeStamp = params.get("EndTimeStamp")
|
4673
|
+
memeber_set = set(params.keys())
|
4674
|
+
for name, value in vars(self).items():
|
4675
|
+
property_name = name[1:]
|
4676
|
+
if property_name in memeber_set:
|
4677
|
+
memeber_set.remove(property_name)
|
4678
|
+
if len(memeber_set) > 0:
|
4679
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
4680
|
+
|
4681
|
+
|
4682
|
+
|
4110
4683
|
class ShowInfo(AbstractModel):
|
4111
4684
|
"""视频结构化结果
|
4112
4685
|
|
@@ -4423,6 +4996,75 @@ class SortBy(AbstractModel):
|
|
4423
4996
|
|
4424
4997
|
|
4425
4998
|
|
4999
|
+
class TTSMode(AbstractModel):
|
5000
|
+
"""TTS 的参数模式
|
5001
|
+
|
5002
|
+
"""
|
5003
|
+
|
5004
|
+
def __init__(self):
|
5005
|
+
r"""
|
5006
|
+
:param _Speed: 语速,范围:[-2,2],分别对应不同语速:
|
5007
|
+
-2代表0.6倍
|
5008
|
+
-1代表0.8倍
|
5009
|
+
0代表1.0倍(默认)
|
5010
|
+
1代表1.2倍
|
5011
|
+
2代表1.5倍
|
5012
|
+
如果需要更细化的语速,可以保留小数点后 2 位,例如0.5/1.25/2.81等。
|
5013
|
+
:type Speed: float
|
5014
|
+
:param _VoiceType: 音色 ID,[音色体验地址](https://cloud.tencent.com/product/tts)。
|
5015
|
+
|
5016
|
+
|
5017
|
+
|音乐ID|音色名称|推荐场景|
|
5018
|
+
|--|--|--|
|
5019
|
+
|1001|智瑜|情感女声|
|
5020
|
+
|1002|智聆|通用女声|
|
5021
|
+
|1003|智美|客服女声|
|
5022
|
+
|1004|智云|通用男声|
|
5023
|
+
|1005|智莉|通用女声|
|
5024
|
+
|1007|智娜|客服女声|
|
5025
|
+
|1008|智琪|客服女声|
|
5026
|
+
|1009|智芸|知性女声|
|
5027
|
+
|1010|智华|通用男声|
|
5028
|
+
|1017|智蓉|情感女声|
|
5029
|
+
|1018|智靖|情感男声|
|
5030
|
+
|
5031
|
+
|
5032
|
+
|
5033
|
+
:type VoiceType: int
|
5034
|
+
"""
|
5035
|
+
self._Speed = None
|
5036
|
+
self._VoiceType = None
|
5037
|
+
|
5038
|
+
@property
|
5039
|
+
def Speed(self):
|
5040
|
+
return self._Speed
|
5041
|
+
|
5042
|
+
@Speed.setter
|
5043
|
+
def Speed(self, Speed):
|
5044
|
+
self._Speed = Speed
|
5045
|
+
|
5046
|
+
@property
|
5047
|
+
def VoiceType(self):
|
5048
|
+
return self._VoiceType
|
5049
|
+
|
5050
|
+
@VoiceType.setter
|
5051
|
+
def VoiceType(self, VoiceType):
|
5052
|
+
self._VoiceType = VoiceType
|
5053
|
+
|
5054
|
+
|
5055
|
+
def _deserialize(self, params):
|
5056
|
+
self._Speed = params.get("Speed")
|
5057
|
+
self._VoiceType = params.get("VoiceType")
|
5058
|
+
memeber_set = set(params.keys())
|
5059
|
+
for name, value in vars(self).items():
|
5060
|
+
property_name = name[1:]
|
5061
|
+
if property_name in memeber_set:
|
5062
|
+
memeber_set.remove(property_name)
|
5063
|
+
if len(memeber_set) > 0:
|
5064
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
5065
|
+
|
5066
|
+
|
5067
|
+
|
4426
5068
|
class TaskFilter(AbstractModel):
|
4427
5069
|
"""任务筛选条件结构体
|
4428
5070
|
|
@@ -5065,6 +5707,40 @@ class TextMetadata(AbstractModel):
|
|
5065
5707
|
|
5066
5708
|
|
5067
5709
|
|
5710
|
+
class TextSegMatchShotScore(AbstractModel):
|
5711
|
+
"""单个文本摘要分割结果和所有镜头的匹配度信息
|
5712
|
+
|
5713
|
+
"""
|
5714
|
+
|
5715
|
+
def __init__(self):
|
5716
|
+
r"""
|
5717
|
+
:param _ScoreSet: 数组第 i 个值表示该文本摘要和第 i 个镜头的匹配度
|
5718
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
5719
|
+
:type ScoreSet: list of float
|
5720
|
+
"""
|
5721
|
+
self._ScoreSet = None
|
5722
|
+
|
5723
|
+
@property
|
5724
|
+
def ScoreSet(self):
|
5725
|
+
return self._ScoreSet
|
5726
|
+
|
5727
|
+
@ScoreSet.setter
|
5728
|
+
def ScoreSet(self, ScoreSet):
|
5729
|
+
self._ScoreSet = ScoreSet
|
5730
|
+
|
5731
|
+
|
5732
|
+
def _deserialize(self, params):
|
5733
|
+
self._ScoreSet = params.get("ScoreSet")
|
5734
|
+
memeber_set = set(params.keys())
|
5735
|
+
for name, value in vars(self).items():
|
5736
|
+
property_name = name[1:]
|
5737
|
+
if property_name in memeber_set:
|
5738
|
+
memeber_set.remove(property_name)
|
5739
|
+
if len(memeber_set) > 0:
|
5740
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
5741
|
+
|
5742
|
+
|
5743
|
+
|
5068
5744
|
class UnknownPerson(AbstractModel):
|
5069
5745
|
"""未知人物信息
|
5070
5746
|
|
@@ -5372,4 +6048,37 @@ class VideoAppearInfo(AbstractModel):
|
|
5372
6048
|
memeber_set.remove(property_name)
|
5373
6049
|
if len(memeber_set) > 0:
|
5374
6050
|
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
6051
|
+
|
6052
|
+
|
6053
|
+
|
6054
|
+
class VideoRotationMode(AbstractModel):
|
6055
|
+
"""视频横转竖的控制参数
|
6056
|
+
|
6057
|
+
"""
|
6058
|
+
|
6059
|
+
def __init__(self):
|
6060
|
+
r"""
|
6061
|
+
:param _ActiveVideoRotation: 生成的视频是否需要横屏转竖屏。
|
6062
|
+
:type ActiveVideoRotation: bool
|
6063
|
+
"""
|
6064
|
+
self._ActiveVideoRotation = None
|
6065
|
+
|
6066
|
+
@property
|
6067
|
+
def ActiveVideoRotation(self):
|
6068
|
+
return self._ActiveVideoRotation
|
6069
|
+
|
6070
|
+
@ActiveVideoRotation.setter
|
6071
|
+
def ActiveVideoRotation(self, ActiveVideoRotation):
|
6072
|
+
self._ActiveVideoRotation = ActiveVideoRotation
|
6073
|
+
|
6074
|
+
|
6075
|
+
def _deserialize(self, params):
|
6076
|
+
self._ActiveVideoRotation = params.get("ActiveVideoRotation")
|
6077
|
+
memeber_set = set(params.keys())
|
6078
|
+
for name, value in vars(self).items():
|
6079
|
+
property_name = name[1:]
|
6080
|
+
if property_name in memeber_set:
|
6081
|
+
memeber_set.remove(property_name)
|
6082
|
+
if len(memeber_set) > 0:
|
6083
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
5375
6084
|
|