tencentcloud-sdk-python 3.0.1255__py2.py3-none-any.whl → 3.0.1257__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.
Files changed (41) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/ccc/v20200210/models.py +12 -0
  3. tencentcloud/cdb/v20170320/models.py +12 -0
  4. tencentcloud/cdwdoris/v20211228/models.py +13 -0
  5. tencentcloud/cfw/v20190904/cfw_client.py +3 -1
  6. tencentcloud/cfw/v20190904/models.py +8 -2
  7. tencentcloud/ckafka/v20190819/models.py +1 -1
  8. tencentcloud/clb/v20180317/models.py +25 -1
  9. tencentcloud/cwp/v20180228/cwp_client.py +6 -2
  10. tencentcloud/cwp/v20180228/models.py +65 -28
  11. tencentcloud/dlc/v20210125/models.py +13 -0
  12. tencentcloud/emr/v20190103/models.py +12 -0
  13. tencentcloud/ess/v20201111/models.py +28 -3
  14. tencentcloud/essbasic/v20210526/models.py +26 -3
  15. tencentcloud/gaap/v20180529/gaap_client.py +1 -1
  16. tencentcloud/gaap/v20180529/models.py +67 -39
  17. tencentcloud/iss/v20230517/models.py +25 -0
  18. tencentcloud/mqtt/v20240516/models.py +2 -2
  19. tencentcloud/ocr/v20181119/models.py +1 -0
  20. tencentcloud/organization/v20210331/errorcodes.py +1 -1
  21. tencentcloud/partners/v20180321/models.py +71 -0
  22. tencentcloud/partners/v20180321/partners_client.py +23 -0
  23. tencentcloud/pts/v20210728/models.py +13 -0
  24. tencentcloud/redis/v20180412/models.py +3 -1
  25. tencentcloud/redis/v20180412/redis_client.py +1 -1
  26. tencentcloud/ssl/v20191205/models.py +43 -2
  27. tencentcloud/tcss/v20201101/models.py +343 -0
  28. tencentcloud/tdmq/v20200217/models.py +442 -55
  29. tencentcloud/tdmq/v20200217/tdmq_client.py +46 -0
  30. tencentcloud/teo/v20220901/errorcodes.py +24 -0
  31. tencentcloud/teo/v20220901/models.py +6 -6
  32. tencentcloud/trocket/v20230308/models.py +25 -1
  33. tencentcloud/trocket/v20230308/trocket_client.py +2 -2
  34. tencentcloud/tsi/v20210325/models.py +135 -0
  35. tencentcloud/vod/v20180717/models.py +878 -7
  36. tencentcloud/vpc/v20170312/models.py +3 -4
  37. {tencentcloud_sdk_python-3.0.1255.dist-info → tencentcloud_sdk_python-3.0.1257.dist-info}/METADATA +1 -1
  38. {tencentcloud_sdk_python-3.0.1255.dist-info → tencentcloud_sdk_python-3.0.1257.dist-info}/RECORD +41 -41
  39. {tencentcloud_sdk_python-3.0.1255.dist-info → tencentcloud_sdk_python-3.0.1257.dist-info}/LICENSE +0 -0
  40. {tencentcloud_sdk_python-3.0.1255.dist-info → tencentcloud_sdk_python-3.0.1257.dist-info}/WHEEL +0 -0
  41. {tencentcloud_sdk_python-3.0.1255.dist-info → tencentcloud_sdk_python-3.0.1257.dist-info}/top_level.txt +0 -0
@@ -186,6 +186,10 @@ class AIRecognitionTemplateItem(AbstractModel):
186
186
  :type Name: str
187
187
  :param _Comment: 视频内容识别模板描述信息。
188
188
  :type Comment: str
189
+ :param _Type: 模板类型,取值:
190
+ <li>Preset:系统预置模板;</li>
191
+ <li>Custom:用户自定义模板。</li>
192
+ :type Type: str
189
193
  :param _HeadTailConfigure: 头尾识别控制参数。
190
194
  注意:此字段可能返回 null,表示取不到有效值。
191
195
  :type HeadTailConfigure: :class:`tencentcloud.vod.v20180717.models.HeadTailConfigureInfo`
@@ -207,6 +211,9 @@ class AIRecognitionTemplateItem(AbstractModel):
207
211
  :param _AsrWordsConfigure: 语音关键词识别控制参数。
208
212
  注意:此字段可能返回 null,表示取不到有效值。
209
213
  :type AsrWordsConfigure: :class:`tencentcloud.vod.v20180717.models.AsrWordsConfigureInfo`
214
+ :param _AsrTranslateConfigure: 语音翻译控制参数。
215
+ 注意:此字段可能返回 null,表示取不到有效值。
216
+ :type AsrTranslateConfigure: :class:`tencentcloud.vod.v20180717.models.AsrTranslateConfigureInfo`
210
217
  :param _ObjectConfigure: 物体识别控制参数。
211
218
  注意:此字段可能返回 null,表示取不到有效值。
212
219
  :type ObjectConfigure: :class:`tencentcloud.vod.v20180717.models.ObjectConfigureInfo`
@@ -220,6 +227,7 @@ class AIRecognitionTemplateItem(AbstractModel):
220
227
  self._Definition = None
221
228
  self._Name = None
222
229
  self._Comment = None
230
+ self._Type = None
223
231
  self._HeadTailConfigure = None
224
232
  self._SegmentConfigure = None
225
233
  self._FaceConfigure = None
@@ -227,6 +235,7 @@ class AIRecognitionTemplateItem(AbstractModel):
227
235
  self._OcrWordsConfigure = None
228
236
  self._AsrFullTextConfigure = None
229
237
  self._AsrWordsConfigure = None
238
+ self._AsrTranslateConfigure = None
230
239
  self._ObjectConfigure = None
231
240
  self._ScreenshotInterval = None
232
241
  self._CreateTime = None
@@ -256,6 +265,14 @@ class AIRecognitionTemplateItem(AbstractModel):
256
265
  def Comment(self, Comment):
257
266
  self._Comment = Comment
258
267
 
268
+ @property
269
+ def Type(self):
270
+ return self._Type
271
+
272
+ @Type.setter
273
+ def Type(self, Type):
274
+ self._Type = Type
275
+
259
276
  @property
260
277
  def HeadTailConfigure(self):
261
278
  return self._HeadTailConfigure
@@ -312,6 +329,14 @@ class AIRecognitionTemplateItem(AbstractModel):
312
329
  def AsrWordsConfigure(self, AsrWordsConfigure):
313
330
  self._AsrWordsConfigure = AsrWordsConfigure
314
331
 
332
+ @property
333
+ def AsrTranslateConfigure(self):
334
+ return self._AsrTranslateConfigure
335
+
336
+ @AsrTranslateConfigure.setter
337
+ def AsrTranslateConfigure(self, AsrTranslateConfigure):
338
+ self._AsrTranslateConfigure = AsrTranslateConfigure
339
+
315
340
  @property
316
341
  def ObjectConfigure(self):
317
342
  return self._ObjectConfigure
@@ -349,6 +374,7 @@ class AIRecognitionTemplateItem(AbstractModel):
349
374
  self._Definition = params.get("Definition")
350
375
  self._Name = params.get("Name")
351
376
  self._Comment = params.get("Comment")
377
+ self._Type = params.get("Type")
352
378
  if params.get("HeadTailConfigure") is not None:
353
379
  self._HeadTailConfigure = HeadTailConfigureInfo()
354
380
  self._HeadTailConfigure._deserialize(params.get("HeadTailConfigure"))
@@ -370,6 +396,9 @@ class AIRecognitionTemplateItem(AbstractModel):
370
396
  if params.get("AsrWordsConfigure") is not None:
371
397
  self._AsrWordsConfigure = AsrWordsConfigureInfo()
372
398
  self._AsrWordsConfigure._deserialize(params.get("AsrWordsConfigure"))
399
+ if params.get("AsrTranslateConfigure") is not None:
400
+ self._AsrTranslateConfigure = AsrTranslateConfigureInfo()
401
+ self._AsrTranslateConfigure._deserialize(params.get("AsrTranslateConfigure"))
373
402
  if params.get("ObjectConfigure") is not None:
374
403
  self._ObjectConfigure = ObjectConfigureInfo()
375
404
  self._ObjectConfigure._deserialize(params.get("ObjectConfigure"))
@@ -2588,6 +2617,7 @@ class AiRecognitionResult(AbstractModel):
2588
2617
  <li>AsrWordsRecognition:语音关键词识别,</li>
2589
2618
  <li>OcrWordsRecognition:文本关键词识别,</li>
2590
2619
  <li>AsrFullTextRecognition:语音全文识别,</li>
2620
+ <li>AsrTranslateRecognition:语音翻译识别,</li>
2591
2621
  <li>OcrFullTextRecognition:文本全文识别,</li>
2592
2622
  <li>HeadTailRecognition:视频片头片尾识别,</li>
2593
2623
  <li>ObjectRecognition:物体识别。</li>
@@ -2612,6 +2642,9 @@ class AiRecognitionResult(AbstractModel):
2612
2642
  AsrFullTextRecognition 时有效。
2613
2643
  注意:此字段可能返回 null,表示取不到有效值。
2614
2644
  :type AsrFullTextTask: :class:`tencentcloud.vod.v20180717.models.AiRecognitionTaskAsrFullTextResult`
2645
+ :param _AsrTranslateTask: 语音翻译结果,当 Type 为 AsrTranslateRecognition 时有效。
2646
+ 注意:此字段可能返回 null,表示取不到有效值。
2647
+ :type AsrTranslateTask: :class:`tencentcloud.vod.v20180717.models.AiRecognitionTaskAsrTranslateResult`
2615
2648
  :param _OcrWordsTask: 文本关键词识别结果,当 Type 为
2616
2649
  OcrWordsRecognition 时有效。
2617
2650
  注意:此字段可能返回 null,表示取不到有效值。
@@ -2631,6 +2664,7 @@ class AiRecognitionResult(AbstractModel):
2631
2664
  self._FaceTask = None
2632
2665
  self._AsrWordsTask = None
2633
2666
  self._AsrFullTextTask = None
2667
+ self._AsrTranslateTask = None
2634
2668
  self._OcrWordsTask = None
2635
2669
  self._OcrFullTextTask = None
2636
2670
  self._ObjectTask = None
@@ -2683,6 +2717,14 @@ class AiRecognitionResult(AbstractModel):
2683
2717
  def AsrFullTextTask(self, AsrFullTextTask):
2684
2718
  self._AsrFullTextTask = AsrFullTextTask
2685
2719
 
2720
+ @property
2721
+ def AsrTranslateTask(self):
2722
+ return self._AsrTranslateTask
2723
+
2724
+ @AsrTranslateTask.setter
2725
+ def AsrTranslateTask(self, AsrTranslateTask):
2726
+ self._AsrTranslateTask = AsrTranslateTask
2727
+
2686
2728
  @property
2687
2729
  def OcrWordsTask(self):
2688
2730
  return self._OcrWordsTask
@@ -2725,6 +2767,9 @@ class AiRecognitionResult(AbstractModel):
2725
2767
  if params.get("AsrFullTextTask") is not None:
2726
2768
  self._AsrFullTextTask = AiRecognitionTaskAsrFullTextResult()
2727
2769
  self._AsrFullTextTask._deserialize(params.get("AsrFullTextTask"))
2770
+ if params.get("AsrTranslateTask") is not None:
2771
+ self._AsrTranslateTask = AiRecognitionTaskAsrTranslateResult()
2772
+ self._AsrTranslateTask._deserialize(params.get("AsrTranslateTask"))
2728
2773
  if params.get("OcrWordsTask") is not None:
2729
2774
  self._OcrWordsTask = AiRecognitionTaskOcrWordsResult()
2730
2775
  self._OcrWordsTask._deserialize(params.get("OcrWordsTask"))
@@ -3010,6 +3055,14 @@ class AiRecognitionTaskAsrFullTextResultOutputSubtitleItem(AbstractModel):
3010
3055
 
3011
3056
  def __init__(self):
3012
3057
  r"""
3058
+ :param _Id: 媒资字幕 ID,用于媒资字幕管理,仅当 Format 为 vtt 时有效。
3059
+ <font color=red>注意:</font>2024-11-01T10:00:00Z 之前的任务返回此字段无效。
3060
+ :type Id: str
3061
+ :param _Name: 媒资字幕名字,用于播放器展示,仅当 Format 为 vtt 时有效。
3062
+ <font color=red>注意:</font>2024-11-01T10:00:00Z 之前的任务返回此字段无效。
3063
+ :type Name: str
3064
+ :param _Language: 字幕语言。
3065
+ :type Language: str
3013
3066
  :param _Format: 字幕文件格式,取值范围:
3014
3067
  <li>vtt:WebVTT 字幕文件;</li>
3015
3068
  <li>srt:SRT 字幕文件。</li>
@@ -3017,9 +3070,36 @@ class AiRecognitionTaskAsrFullTextResultOutputSubtitleItem(AbstractModel):
3017
3070
  :param _Url: 字幕文件 Url。
3018
3071
  :type Url: str
3019
3072
  """
3073
+ self._Id = None
3074
+ self._Name = None
3075
+ self._Language = None
3020
3076
  self._Format = None
3021
3077
  self._Url = None
3022
3078
 
3079
+ @property
3080
+ def Id(self):
3081
+ return self._Id
3082
+
3083
+ @Id.setter
3084
+ def Id(self, Id):
3085
+ self._Id = Id
3086
+
3087
+ @property
3088
+ def Name(self):
3089
+ return self._Name
3090
+
3091
+ @Name.setter
3092
+ def Name(self, Name):
3093
+ self._Name = Name
3094
+
3095
+ @property
3096
+ def Language(self):
3097
+ return self._Language
3098
+
3099
+ @Language.setter
3100
+ def Language(self, Language):
3101
+ self._Language = Language
3102
+
3023
3103
  @property
3024
3104
  def Format(self):
3025
3105
  return self._Format
@@ -3038,6 +3118,9 @@ class AiRecognitionTaskAsrFullTextResultOutputSubtitleItem(AbstractModel):
3038
3118
 
3039
3119
 
3040
3120
  def _deserialize(self, params):
3121
+ self._Id = params.get("Id")
3122
+ self._Name = params.get("Name")
3123
+ self._Language = params.get("Language")
3041
3124
  self._Format = params.get("Format")
3042
3125
  self._Url = params.get("Url")
3043
3126
  memeber_set = set(params.keys())
@@ -3119,6 +3202,334 @@ class AiRecognitionTaskAsrFullTextSegmentItem(AbstractModel):
3119
3202
 
3120
3203
 
3121
3204
 
3205
+ class AiRecognitionTaskAsrTranslateResult(AbstractModel):
3206
+ """语音翻译结果。
3207
+
3208
+ """
3209
+
3210
+ def __init__(self):
3211
+ r"""
3212
+ :param _Status: 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
3213
+ :type Status: str
3214
+ :param _ErrCodeExt: 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](https://cloud.tencent.com/document/product/266/50368#.E8.A7.86.E9.A2.91.E5.A4.84.E7.90.86.E7.B1.BB.E9.94.99.E8.AF.AF.E7.A0.81) 列表。
3215
+ :type ErrCodeExt: str
3216
+ :param _ErrCode: 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。
3217
+ :type ErrCode: int
3218
+ :param _Message: 错误信息。
3219
+ :type Message: str
3220
+ :param _Input: 语音翻译任务输入信息。
3221
+ :type Input: :class:`tencentcloud.vod.v20180717.models.AiRecognitionTaskAsrTranslateResultInput`
3222
+ :param _Output: 语音翻译任务输出信息。
3223
+ 注意:此字段可能返回 null,表示取不到有效值。
3224
+ :type Output: :class:`tencentcloud.vod.v20180717.models.AiRecognitionTaskAsrTranslateResultOutput`
3225
+ :param _Progress: 语音翻译任务进度,取值范围 [0-100] 。
3226
+ :type Progress: int
3227
+ :param _BeginProcessTime: 语音翻译任务开始执行的时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。
3228
+ :type BeginProcessTime: str
3229
+ :param _FinishTime: 语音翻译任务执行完毕的时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。
3230
+ :type FinishTime: str
3231
+ """
3232
+ self._Status = None
3233
+ self._ErrCodeExt = None
3234
+ self._ErrCode = None
3235
+ self._Message = None
3236
+ self._Input = None
3237
+ self._Output = None
3238
+ self._Progress = None
3239
+ self._BeginProcessTime = None
3240
+ self._FinishTime = None
3241
+
3242
+ @property
3243
+ def Status(self):
3244
+ return self._Status
3245
+
3246
+ @Status.setter
3247
+ def Status(self, Status):
3248
+ self._Status = Status
3249
+
3250
+ @property
3251
+ def ErrCodeExt(self):
3252
+ return self._ErrCodeExt
3253
+
3254
+ @ErrCodeExt.setter
3255
+ def ErrCodeExt(self, ErrCodeExt):
3256
+ self._ErrCodeExt = ErrCodeExt
3257
+
3258
+ @property
3259
+ def ErrCode(self):
3260
+ return self._ErrCode
3261
+
3262
+ @ErrCode.setter
3263
+ def ErrCode(self, ErrCode):
3264
+ self._ErrCode = ErrCode
3265
+
3266
+ @property
3267
+ def Message(self):
3268
+ return self._Message
3269
+
3270
+ @Message.setter
3271
+ def Message(self, Message):
3272
+ self._Message = Message
3273
+
3274
+ @property
3275
+ def Input(self):
3276
+ return self._Input
3277
+
3278
+ @Input.setter
3279
+ def Input(self, Input):
3280
+ self._Input = Input
3281
+
3282
+ @property
3283
+ def Output(self):
3284
+ return self._Output
3285
+
3286
+ @Output.setter
3287
+ def Output(self, Output):
3288
+ self._Output = Output
3289
+
3290
+ @property
3291
+ def Progress(self):
3292
+ return self._Progress
3293
+
3294
+ @Progress.setter
3295
+ def Progress(self, Progress):
3296
+ self._Progress = Progress
3297
+
3298
+ @property
3299
+ def BeginProcessTime(self):
3300
+ return self._BeginProcessTime
3301
+
3302
+ @BeginProcessTime.setter
3303
+ def BeginProcessTime(self, BeginProcessTime):
3304
+ self._BeginProcessTime = BeginProcessTime
3305
+
3306
+ @property
3307
+ def FinishTime(self):
3308
+ return self._FinishTime
3309
+
3310
+ @FinishTime.setter
3311
+ def FinishTime(self, FinishTime):
3312
+ self._FinishTime = FinishTime
3313
+
3314
+
3315
+ def _deserialize(self, params):
3316
+ self._Status = params.get("Status")
3317
+ self._ErrCodeExt = params.get("ErrCodeExt")
3318
+ self._ErrCode = params.get("ErrCode")
3319
+ self._Message = params.get("Message")
3320
+ if params.get("Input") is not None:
3321
+ self._Input = AiRecognitionTaskAsrTranslateResultInput()
3322
+ self._Input._deserialize(params.get("Input"))
3323
+ if params.get("Output") is not None:
3324
+ self._Output = AiRecognitionTaskAsrTranslateResultOutput()
3325
+ self._Output._deserialize(params.get("Output"))
3326
+ self._Progress = params.get("Progress")
3327
+ self._BeginProcessTime = params.get("BeginProcessTime")
3328
+ self._FinishTime = params.get("FinishTime")
3329
+ memeber_set = set(params.keys())
3330
+ for name, value in vars(self).items():
3331
+ property_name = name[1:]
3332
+ if property_name in memeber_set:
3333
+ memeber_set.remove(property_name)
3334
+ if len(memeber_set) > 0:
3335
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
3336
+
3337
+
3338
+
3339
+ class AiRecognitionTaskAsrTranslateResultInput(AbstractModel):
3340
+ """语音翻译的输入。
3341
+
3342
+ """
3343
+
3344
+ def __init__(self):
3345
+ r"""
3346
+ :param _Definition: 语音翻译模板 ID。
3347
+ :type Definition: int
3348
+ """
3349
+ self._Definition = None
3350
+
3351
+ @property
3352
+ def Definition(self):
3353
+ return self._Definition
3354
+
3355
+ @Definition.setter
3356
+ def Definition(self, Definition):
3357
+ self._Definition = Definition
3358
+
3359
+
3360
+ def _deserialize(self, params):
3361
+ self._Definition = params.get("Definition")
3362
+ memeber_set = set(params.keys())
3363
+ for name, value in vars(self).items():
3364
+ property_name = name[1:]
3365
+ if property_name in memeber_set:
3366
+ memeber_set.remove(property_name)
3367
+ if len(memeber_set) > 0:
3368
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
3369
+
3370
+
3371
+
3372
+ class AiRecognitionTaskAsrTranslateResultOutput(AbstractModel):
3373
+ """语音翻译结果。
3374
+
3375
+ """
3376
+
3377
+ def __init__(self):
3378
+ r"""
3379
+ :param _SegmentSet: 语音翻译片段列表。
3380
+ <font color=red>注意</font> :该列表最多仅展示前 100 个元素。如希望获得完整结果,请从 SegmentSetFileUrl 对应的文件中获取。
3381
+ :type SegmentSet: list of AiRecognitionTaskAsrTranslateSegmentItem
3382
+ :param _SegmentSetFileUrl: 语音翻译片段列表文件 URL。文件的内容为 JSON,数据结构与 SegmentSet 字段一致。 (文件不会永久存储,到达SegmentSetFileUrlExpireTime 时间点后文件将被删除)。
3383
+ :type SegmentSetFileUrl: str
3384
+ :param _SegmentSetFileUrlExpireTime: 语音翻译片段列表文件 URL 失效时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。
3385
+ :type SegmentSetFileUrlExpireTime: str
3386
+ :param _SubtitleSet: 生成的字幕列表。
3387
+ :type SubtitleSet: list of AiRecognitionTaskAsrFullTextResultOutputSubtitleItem
3388
+ """
3389
+ self._SegmentSet = None
3390
+ self._SegmentSetFileUrl = None
3391
+ self._SegmentSetFileUrlExpireTime = None
3392
+ self._SubtitleSet = None
3393
+
3394
+ @property
3395
+ def SegmentSet(self):
3396
+ return self._SegmentSet
3397
+
3398
+ @SegmentSet.setter
3399
+ def SegmentSet(self, SegmentSet):
3400
+ self._SegmentSet = SegmentSet
3401
+
3402
+ @property
3403
+ def SegmentSetFileUrl(self):
3404
+ return self._SegmentSetFileUrl
3405
+
3406
+ @SegmentSetFileUrl.setter
3407
+ def SegmentSetFileUrl(self, SegmentSetFileUrl):
3408
+ self._SegmentSetFileUrl = SegmentSetFileUrl
3409
+
3410
+ @property
3411
+ def SegmentSetFileUrlExpireTime(self):
3412
+ return self._SegmentSetFileUrlExpireTime
3413
+
3414
+ @SegmentSetFileUrlExpireTime.setter
3415
+ def SegmentSetFileUrlExpireTime(self, SegmentSetFileUrlExpireTime):
3416
+ self._SegmentSetFileUrlExpireTime = SegmentSetFileUrlExpireTime
3417
+
3418
+ @property
3419
+ def SubtitleSet(self):
3420
+ return self._SubtitleSet
3421
+
3422
+ @SubtitleSet.setter
3423
+ def SubtitleSet(self, SubtitleSet):
3424
+ self._SubtitleSet = SubtitleSet
3425
+
3426
+
3427
+ def _deserialize(self, params):
3428
+ if params.get("SegmentSet") is not None:
3429
+ self._SegmentSet = []
3430
+ for item in params.get("SegmentSet"):
3431
+ obj = AiRecognitionTaskAsrTranslateSegmentItem()
3432
+ obj._deserialize(item)
3433
+ self._SegmentSet.append(obj)
3434
+ self._SegmentSetFileUrl = params.get("SegmentSetFileUrl")
3435
+ self._SegmentSetFileUrlExpireTime = params.get("SegmentSetFileUrlExpireTime")
3436
+ if params.get("SubtitleSet") is not None:
3437
+ self._SubtitleSet = []
3438
+ for item in params.get("SubtitleSet"):
3439
+ obj = AiRecognitionTaskAsrFullTextResultOutputSubtitleItem()
3440
+ obj._deserialize(item)
3441
+ self._SubtitleSet.append(obj)
3442
+ memeber_set = set(params.keys())
3443
+ for name, value in vars(self).items():
3444
+ property_name = name[1:]
3445
+ if property_name in memeber_set:
3446
+ memeber_set.remove(property_name)
3447
+ if len(memeber_set) > 0:
3448
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
3449
+
3450
+
3451
+
3452
+ class AiRecognitionTaskAsrTranslateSegmentItem(AbstractModel):
3453
+ """语音翻译片段。
3454
+
3455
+ """
3456
+
3457
+ def __init__(self):
3458
+ r"""
3459
+ :param _Confidence: 语音翻译片段置信度。取值:0~100。
3460
+ :type Confidence: float
3461
+ :param _StartTimeOffset: 语音翻译片段起始的偏移时间,单位:秒。
3462
+ :type StartTimeOffset: float
3463
+ :param _EndTimeOffset: 语音翻译片段终止的偏移时间,单位:秒。
3464
+ :type EndTimeOffset: float
3465
+ :param _Text: 识别文本。
3466
+ :type Text: str
3467
+ :param _Translation: 翻译文本。
3468
+ :type Translation: str
3469
+ """
3470
+ self._Confidence = None
3471
+ self._StartTimeOffset = None
3472
+ self._EndTimeOffset = None
3473
+ self._Text = None
3474
+ self._Translation = None
3475
+
3476
+ @property
3477
+ def Confidence(self):
3478
+ return self._Confidence
3479
+
3480
+ @Confidence.setter
3481
+ def Confidence(self, Confidence):
3482
+ self._Confidence = Confidence
3483
+
3484
+ @property
3485
+ def StartTimeOffset(self):
3486
+ return self._StartTimeOffset
3487
+
3488
+ @StartTimeOffset.setter
3489
+ def StartTimeOffset(self, StartTimeOffset):
3490
+ self._StartTimeOffset = StartTimeOffset
3491
+
3492
+ @property
3493
+ def EndTimeOffset(self):
3494
+ return self._EndTimeOffset
3495
+
3496
+ @EndTimeOffset.setter
3497
+ def EndTimeOffset(self, EndTimeOffset):
3498
+ self._EndTimeOffset = EndTimeOffset
3499
+
3500
+ @property
3501
+ def Text(self):
3502
+ return self._Text
3503
+
3504
+ @Text.setter
3505
+ def Text(self, Text):
3506
+ self._Text = Text
3507
+
3508
+ @property
3509
+ def Translation(self):
3510
+ return self._Translation
3511
+
3512
+ @Translation.setter
3513
+ def Translation(self, Translation):
3514
+ self._Translation = Translation
3515
+
3516
+
3517
+ def _deserialize(self, params):
3518
+ self._Confidence = params.get("Confidence")
3519
+ self._StartTimeOffset = params.get("StartTimeOffset")
3520
+ self._EndTimeOffset = params.get("EndTimeOffset")
3521
+ self._Text = params.get("Text")
3522
+ self._Translation = params.get("Translation")
3523
+ memeber_set = set(params.keys())
3524
+ for name, value in vars(self).items():
3525
+ property_name = name[1:]
3526
+ if property_name in memeber_set:
3527
+ memeber_set.remove(property_name)
3528
+ if len(memeber_set) > 0:
3529
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
3530
+
3531
+
3532
+
3122
3533
  class AiRecognitionTaskAsrWordsResult(AbstractModel):
3123
3534
  """语音关键词识别结果。
3124
3535
 
@@ -9051,7 +9462,7 @@ class AsrFullTextConfigureInfo(AbstractModel):
9051
9462
  :type Switch: str
9052
9463
  :param _SubtitleFormats: 生成的字幕文件格式列表,不填或者填空数组表示不生成字幕文件,可选值:
9053
9464
  <li>vtt:生成 WebVTT 字幕文件;</li>
9054
- <li>srt:生成 SRT 字幕文件。</li>
9465
+ <li>srt:生成 SRT 字幕文件。</li><font color=red>注意:</font>云点播媒资信息仅支持添加 vtt 字幕,因此当且仅当 SubtitleFormats 包含 vtt 时,云点播将生成的字幕添加到媒资。
9055
9466
  :type SubtitleFormats: list of str
9056
9467
  :param _SubtitleFormat: 生成的字幕文件格式,不填或者填空字符串表示不生成字幕文件,可选值:
9057
9468
  <li>vtt:生成 WebVTT 字幕文件;</li>
@@ -9065,11 +9476,15 @@ class AsrFullTextConfigureInfo(AbstractModel):
9065
9476
  <li>zh-ca:粤语。</li>
9066
9477
  <font color=red>注意:</font> 填空字符串,或者不填该参数,则自动识别(效果较难保证,推荐填写原始媒体对应的语言,以提高识别的准确率)。
9067
9478
  :type SrcLanguage: str
9479
+ :param _SubtitleName: 指定字幕名称,长度限制:64 个字符。该值将用于播放器展示,若不填则云点播自动生成。
9480
+ <font color=red>注意:</font>仅当 SubtitleFormats 包含 vtt 时,该字段有效。
9481
+ :type SubtitleName: str
9068
9482
  """
9069
9483
  self._Switch = None
9070
9484
  self._SubtitleFormats = None
9071
9485
  self._SubtitleFormat = None
9072
9486
  self._SrcLanguage = None
9487
+ self._SubtitleName = None
9073
9488
 
9074
9489
  @property
9075
9490
  def Switch(self):
@@ -9103,12 +9518,21 @@ class AsrFullTextConfigureInfo(AbstractModel):
9103
9518
  def SrcLanguage(self, SrcLanguage):
9104
9519
  self._SrcLanguage = SrcLanguage
9105
9520
 
9521
+ @property
9522
+ def SubtitleName(self):
9523
+ return self._SubtitleName
9524
+
9525
+ @SubtitleName.setter
9526
+ def SubtitleName(self, SubtitleName):
9527
+ self._SubtitleName = SubtitleName
9528
+
9106
9529
 
9107
9530
  def _deserialize(self, params):
9108
9531
  self._Switch = params.get("Switch")
9109
9532
  self._SubtitleFormats = params.get("SubtitleFormats")
9110
9533
  self._SubtitleFormat = params.get("SubtitleFormat")
9111
9534
  self._SrcLanguage = params.get("SrcLanguage")
9535
+ self._SubtitleName = params.get("SubtitleName")
9112
9536
  memeber_set = set(params.keys())
9113
9537
  for name, value in vars(self).items():
9114
9538
  property_name = name[1:]
@@ -9143,11 +9567,14 @@ class AsrFullTextConfigureInfoForUpdate(AbstractModel):
9143
9567
  <li>ja:日语;</li>
9144
9568
  <li>zh-ca:粤语。</li>
9145
9569
  :type SrcLanguage: str
9570
+ :param _SubtitleName: 指定字幕名称,长度限制:64 个字符。该值将用于播放器展示。
9571
+ :type SubtitleName: str
9146
9572
  """
9147
9573
  self._Switch = None
9148
9574
  self._SubtitleFormatsOperation = None
9149
9575
  self._SubtitleFormat = None
9150
9576
  self._SrcLanguage = None
9577
+ self._SubtitleName = None
9151
9578
 
9152
9579
  @property
9153
9580
  def Switch(self):
@@ -9181,6 +9608,14 @@ class AsrFullTextConfigureInfoForUpdate(AbstractModel):
9181
9608
  def SrcLanguage(self, SrcLanguage):
9182
9609
  self._SrcLanguage = SrcLanguage
9183
9610
 
9611
+ @property
9612
+ def SubtitleName(self):
9613
+ return self._SubtitleName
9614
+
9615
+ @SubtitleName.setter
9616
+ def SubtitleName(self, SubtitleName):
9617
+ self._SubtitleName = SubtitleName
9618
+
9184
9619
 
9185
9620
  def _deserialize(self, params):
9186
9621
  self._Switch = params.get("Switch")
@@ -9189,6 +9624,368 @@ class AsrFullTextConfigureInfoForUpdate(AbstractModel):
9189
9624
  self._SubtitleFormatsOperation._deserialize(params.get("SubtitleFormatsOperation"))
9190
9625
  self._SubtitleFormat = params.get("SubtitleFormat")
9191
9626
  self._SrcLanguage = params.get("SrcLanguage")
9627
+ self._SubtitleName = params.get("SubtitleName")
9628
+ memeber_set = set(params.keys())
9629
+ for name, value in vars(self).items():
9630
+ property_name = name[1:]
9631
+ if property_name in memeber_set:
9632
+ memeber_set.remove(property_name)
9633
+ if len(memeber_set) > 0:
9634
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
9635
+
9636
+
9637
+
9638
+ class AsrTranslateConfigureInfo(AbstractModel):
9639
+ """语音翻译任务控制参数
9640
+
9641
+ """
9642
+
9643
+ def __init__(self):
9644
+ r"""
9645
+ :param _Switch: 语音翻译任务开关,可选值:
9646
+ <li>ON:开启;</li>
9647
+ <li>OFF:关闭。</li><font color=red>注意:</font>语音翻译任务本身会返回 ASR 全文识别结果,为避免重复收费,因此禁止同时开启语音翻译和 ASR 全文识别功能项。
9648
+
9649
+ :type Switch: str
9650
+ :param _SrcLanguage: 媒体源语言,当 Switch 为 ON 时,此参数必填。取值范围:
9651
+ <li>zh:中文;</li>
9652
+ <li>en:英文;</li>
9653
+ <li>ja:日文;</li>
9654
+ <li>ko:韩文;</li>
9655
+ <li>vi:越南语;</li>
9656
+ <li>ms:马来语;</li>
9657
+ <li>th:泰语;</li>
9658
+ <li>pt:葡萄牙语;</li>
9659
+ <li>tr:土耳其语;</li>
9660
+ <li>ar:阿拉伯语;</li>
9661
+ <li>es:西班牙语;</li>
9662
+ <li>hi:印地语;</li>
9663
+ <li>fr:法语。</li>
9664
+ :type SrcLanguage: str
9665
+ :param _DstLanguage: 翻译目标语言,当 Switch 为 ON 时,此参数必填。
9666
+ 当 SrcLanguage 为 zh(中文)时,取值范围:
9667
+ <li>en:英文;</li>
9668
+ <li>ja:日文;</li>
9669
+ <li>ko:韩文;</li>
9670
+ <li>fr:法语;</li>
9671
+ <li>es:西班牙语;</li>
9672
+ <li>it:意大利语;</li>
9673
+ <li>de:德语;</li>
9674
+ <li>tr:土耳其语;</li>
9675
+ <li>ru:俄语;</li>
9676
+ <li>pt:葡萄牙语;</li>
9677
+ <li>vi:越南语;</li>
9678
+ <li>id:印尼语;</li>
9679
+ <li>th:泰语;</li>
9680
+ <li>ms:马来语。</li>
9681
+ 当 SrcLanguage 为 en(英文)时,取值范围:
9682
+ <li>zh:中文;</li>
9683
+ <li>ja:日文;</li>
9684
+ <li>ko:韩文;</li>
9685
+ <li>fr:法语;</li>
9686
+ <li>es:西班牙语;</li>
9687
+ <li>it:意大利语;</li>
9688
+ <li>de:德语;</li>
9689
+ <li>tr:土耳其语;</li>
9690
+ <li>ru:俄语;</li>
9691
+ <li>pt:葡萄牙语;</li>
9692
+ <li>vi:越南语;</li>
9693
+ <li>id:印尼语;</li>
9694
+ <li>th:泰语;</li>
9695
+ <li>ms:马来语;</li>
9696
+ <li>ar:阿拉伯语;</li>
9697
+ <li>hi:印地语。</li>
9698
+ 当 SrcLanguage 为 ja(日文)时,取值范围:
9699
+ <li>zh:中文;</li>
9700
+ <li>en:英文;</li>
9701
+ <li>ko:韩文。</li>
9702
+ 当 SrcLanguage 为 ko(韩文)时,取值范围:
9703
+ <li>zh:中文;</li>
9704
+ <li>en:英文;</li>
9705
+ <li>ja:日文。</li>
9706
+ 当 SrcLanguage 为 vi(越南语)或 ms(马来语)或 th(泰语)时,取值范围:
9707
+ <li>zh:中文;</li>
9708
+ <li>en:英文。</li>
9709
+ 当 SrcLanguage 为 pt(葡萄牙语)时,取值范围:
9710
+ <li>zh:中文;</li>
9711
+ <li>en:英文;</li>
9712
+ <li>fr:法语;</li>
9713
+ <li>es:西班牙语;</li>
9714
+ <li>it:意大利语;</li>
9715
+ <li>de:德语;</li>
9716
+ <li>tr:土耳其语;</li>
9717
+ <li>ru:俄语。</li>
9718
+ 当 SrcLanguage 为 tr(土耳其语)时,取值范围:
9719
+ <li>zh:中文;</li>
9720
+ <li>en:英文;</li>
9721
+ <li>fr:法语;</li>
9722
+ <li>es:西班牙语;</li>
9723
+ <li>it:意大利语;</li>
9724
+ <li>de:德语;</li>
9725
+ <li>ru:俄语;</li>
9726
+ <li>pt:葡萄牙语。</li>
9727
+ 当 SrcLanguage 为 es(西班牙语)时,取值范围:
9728
+ <li>zh:中文;</li>
9729
+ <li>en:英文;</li>
9730
+ <li>fr:法语;</li>
9731
+ <li>it:意大利语;</li>
9732
+ <li>de:德语;</li>
9733
+ <li>tr:土耳其语;</li>
9734
+ <li>ru:俄语;</li>
9735
+ <li>pt:葡萄牙语。</li>
9736
+ 当 SrcLanguage 为 ar(阿拉伯语)或 hi(印地语)时,取值范围:
9737
+ <li>en:英文。</li>
9738
+ 当 SrcLanguage 为 fr(法语)时,取值范围:
9739
+ <li>zh:中文;</li>
9740
+ <li>en:英文;</li>
9741
+ <li>es:西班牙语;</li>
9742
+ <li>it:意大利语;</li>
9743
+ <li>de:德语;</li>
9744
+ <li>tr:土耳其语;</li>
9745
+ <li>ru:俄语;</li>
9746
+ <li>pt:葡萄牙语。</li>
9747
+ :type DstLanguage: str
9748
+ :param _SubtitleFormats: 生成的字幕文件格式列表,不填或者填空数组表示不生成字幕文件,可选值:
9749
+ <li>vtt:生成 WebVTT 字幕文件;</li>
9750
+ <li>srt:生成 SRT 字幕文件。</li><font color=red>注意:</font> 云点播媒资信息仅支持添加 vtt 字幕,因此当且仅当 SubtitleFormats 包含 vtt 时,云点播将生成的字幕添加到媒资。
9751
+ :type SubtitleFormats: list of str
9752
+ :param _SubtitleName: 指定字幕名称,长度限制:64 个字符。该值将用于播放器展示,若不填则云点播自动生成。
9753
+ <font color=red>注意:</font>仅当 SubtitleFormats 包含 vtt 时,该字段有效。
9754
+
9755
+ :type SubtitleName: str
9756
+ """
9757
+ self._Switch = None
9758
+ self._SrcLanguage = None
9759
+ self._DstLanguage = None
9760
+ self._SubtitleFormats = None
9761
+ self._SubtitleName = None
9762
+
9763
+ @property
9764
+ def Switch(self):
9765
+ return self._Switch
9766
+
9767
+ @Switch.setter
9768
+ def Switch(self, Switch):
9769
+ self._Switch = Switch
9770
+
9771
+ @property
9772
+ def SrcLanguage(self):
9773
+ return self._SrcLanguage
9774
+
9775
+ @SrcLanguage.setter
9776
+ def SrcLanguage(self, SrcLanguage):
9777
+ self._SrcLanguage = SrcLanguage
9778
+
9779
+ @property
9780
+ def DstLanguage(self):
9781
+ return self._DstLanguage
9782
+
9783
+ @DstLanguage.setter
9784
+ def DstLanguage(self, DstLanguage):
9785
+ self._DstLanguage = DstLanguage
9786
+
9787
+ @property
9788
+ def SubtitleFormats(self):
9789
+ return self._SubtitleFormats
9790
+
9791
+ @SubtitleFormats.setter
9792
+ def SubtitleFormats(self, SubtitleFormats):
9793
+ self._SubtitleFormats = SubtitleFormats
9794
+
9795
+ @property
9796
+ def SubtitleName(self):
9797
+ return self._SubtitleName
9798
+
9799
+ @SubtitleName.setter
9800
+ def SubtitleName(self, SubtitleName):
9801
+ self._SubtitleName = SubtitleName
9802
+
9803
+
9804
+ def _deserialize(self, params):
9805
+ self._Switch = params.get("Switch")
9806
+ self._SrcLanguage = params.get("SrcLanguage")
9807
+ self._DstLanguage = params.get("DstLanguage")
9808
+ self._SubtitleFormats = params.get("SubtitleFormats")
9809
+ self._SubtitleName = params.get("SubtitleName")
9810
+ memeber_set = set(params.keys())
9811
+ for name, value in vars(self).items():
9812
+ property_name = name[1:]
9813
+ if property_name in memeber_set:
9814
+ memeber_set.remove(property_name)
9815
+ if len(memeber_set) > 0:
9816
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
9817
+
9818
+
9819
+
9820
+ class AsrTranslateConfigureInfoForUpdate(AbstractModel):
9821
+ """语音翻译控制参数
9822
+
9823
+ """
9824
+
9825
+ def __init__(self):
9826
+ r"""
9827
+ :param _Switch: 语音翻译任务开关,可选值:
9828
+ <li>ON:开启;</li>
9829
+ <li>OFF:关闭。</li>
9830
+ :type Switch: str
9831
+ :param _SrcLanguage: 媒体源语言,取值范围:
9832
+ <li>zh:中文;</li>
9833
+ <li>en:英文;</li>
9834
+ <li>ja:日文;</li>
9835
+ <li>ko:韩文;</li>
9836
+ <li>vi:越南语;</li>
9837
+ <li>ms:马来语;</li>
9838
+ <li>th:泰语;</li>
9839
+ <li>pt:葡萄牙语;</li>
9840
+ <li>tr:土耳其语;</li>
9841
+ <li>ar:阿拉伯语;</li>
9842
+ <li>es:西班牙语;</li>
9843
+ <li>hi:印地语;</li>
9844
+ <li>fr:法语。</li>
9845
+ :type SrcLanguage: str
9846
+ :param _DstLanguage: 翻译目标语言。
9847
+ 当 SrcLanguage 为 zh(中文)时,取值范围:
9848
+ <li>en:英文;</li>
9849
+ <li>ja:日文;</li>
9850
+ <li>ko:韩文;</li>
9851
+ <li>fr:法语;</li>
9852
+ <li>es:西班牙语;</li>
9853
+ <li>it:意大利语;</li>
9854
+ <li>de:德语;</li>
9855
+ <li>tr:土耳其语;</li>
9856
+ <li>ru:俄语;</li>
9857
+ <li>pt:葡萄牙语;</li>
9858
+ <li>vi:越南语;</li>
9859
+ <li>id:印尼语;</li>
9860
+ <li>th:泰语;</li>
9861
+ <li>ms:马来语。</li>
9862
+ 当 SrcLanguage 为 en(英文)时,取值范围:
9863
+ <li>zh:中文;</li>
9864
+ <li>ja:日文;</li>
9865
+ <li>ko:韩文;</li>
9866
+ <li>fr:法语;</li>
9867
+ <li>es:西班牙语;</li>
9868
+ <li>it:意大利语;</li>
9869
+ <li>de:德语;</li>
9870
+ <li>tr:土耳其语;</li>
9871
+ <li>ru:俄语;</li>
9872
+ <li>pt:葡萄牙语;</li>
9873
+ <li>vi:越南语;</li>
9874
+ <li>id:印尼语;</li>
9875
+ <li>th:泰语;</li>
9876
+ <li>ms:马来语;</li>
9877
+ <li>ar:阿拉伯语;</li>
9878
+ <li>hi:印地语。</li>
9879
+ 当 SrcLanguage 为 ja(日文)时,取值范围:
9880
+ <li>zh:中文;</li>
9881
+ <li>en:英文;</li>
9882
+ <li>ko:韩文。</li>
9883
+ 当 SrcLanguage 为 ko(韩文)时,取值范围:
9884
+ <li>zh:中文;</li>
9885
+ <li>en:英文;</li>
9886
+ <li>ja:日文。</li>
9887
+ 当 SrcLanguage 为 vi(越南语)或 ms(马来语)或 th(泰语)时,取值范围:
9888
+ <li>zh:中文;</li>
9889
+ <li>en:英文。</li>
9890
+ 当 SrcLanguage 为 pt(葡萄牙语)时,取值范围:
9891
+ <li>zh:中文;</li>
9892
+ <li>en:英文;</li>
9893
+ <li>fr:法语;</li>
9894
+ <li>es:西班牙语;</li>
9895
+ <li>it:意大利语;</li>
9896
+ <li>de:德语;</li>
9897
+ <li>tr:土耳其语;</li>
9898
+ <li>ru:俄语。</li>
9899
+ 当 SrcLanguage 为 tr(土耳其语)时,取值范围:
9900
+ <li>zh:中文;</li>
9901
+ <li>en:英文;</li>
9902
+ <li>fr:法语;</li>
9903
+ <li>es:西班牙语;</li>
9904
+ <li>it:意大利语;</li>
9905
+ <li>de:德语;</li>
9906
+ <li>ru:俄语;</li>
9907
+ <li>pt:葡萄牙语。</li>
9908
+ 当 SrcLanguage 为 es(西班牙语)时,取值范围:
9909
+ <li>zh:中文;</li>
9910
+ <li>en:英文;</li>
9911
+ <li>fr:法语;</li>
9912
+ <li>it:意大利语;</li>
9913
+ <li>de:德语;</li>
9914
+ <li>tr:土耳其语;</li>
9915
+ <li>ru:俄语;</li>
9916
+ <li>pt:葡萄牙语。</li>
9917
+ 当 SrcLanguage 为 ar(阿拉伯语)或 hi(印地语)时,取值范围:
9918
+ <li>en:英文。</li>
9919
+ 当 SrcLanguage 为 fr(法语)时,取值范围:
9920
+ <li>zh:中文;</li>
9921
+ <li>en:英文;</li>
9922
+ <li>es:西班牙语;</li>
9923
+ <li>it:意大利语;</li>
9924
+ <li>de:德语;</li>
9925
+ <li>tr:土耳其语;</li>
9926
+ <li>ru:俄语;</li>
9927
+ <li>pt:葡萄牙语。</li>
9928
+ :type DstLanguage: str
9929
+ :param _SubtitleFormatsOperation: 字幕格式列表操作信息。
9930
+ :type SubtitleFormatsOperation: :class:`tencentcloud.vod.v20180717.models.SubtitleFormatsOperation`
9931
+ :param _SubtitleName: 指定字幕名称,长度限制:64 个字符。该值将用于播放器展示。
9932
+ :type SubtitleName: str
9933
+ """
9934
+ self._Switch = None
9935
+ self._SrcLanguage = None
9936
+ self._DstLanguage = None
9937
+ self._SubtitleFormatsOperation = None
9938
+ self._SubtitleName = None
9939
+
9940
+ @property
9941
+ def Switch(self):
9942
+ return self._Switch
9943
+
9944
+ @Switch.setter
9945
+ def Switch(self, Switch):
9946
+ self._Switch = Switch
9947
+
9948
+ @property
9949
+ def SrcLanguage(self):
9950
+ return self._SrcLanguage
9951
+
9952
+ @SrcLanguage.setter
9953
+ def SrcLanguage(self, SrcLanguage):
9954
+ self._SrcLanguage = SrcLanguage
9955
+
9956
+ @property
9957
+ def DstLanguage(self):
9958
+ return self._DstLanguage
9959
+
9960
+ @DstLanguage.setter
9961
+ def DstLanguage(self, DstLanguage):
9962
+ self._DstLanguage = DstLanguage
9963
+
9964
+ @property
9965
+ def SubtitleFormatsOperation(self):
9966
+ return self._SubtitleFormatsOperation
9967
+
9968
+ @SubtitleFormatsOperation.setter
9969
+ def SubtitleFormatsOperation(self, SubtitleFormatsOperation):
9970
+ self._SubtitleFormatsOperation = SubtitleFormatsOperation
9971
+
9972
+ @property
9973
+ def SubtitleName(self):
9974
+ return self._SubtitleName
9975
+
9976
+ @SubtitleName.setter
9977
+ def SubtitleName(self, SubtitleName):
9978
+ self._SubtitleName = SubtitleName
9979
+
9980
+
9981
+ def _deserialize(self, params):
9982
+ self._Switch = params.get("Switch")
9983
+ self._SrcLanguage = params.get("SrcLanguage")
9984
+ self._DstLanguage = params.get("DstLanguage")
9985
+ if params.get("SubtitleFormatsOperation") is not None:
9986
+ self._SubtitleFormatsOperation = SubtitleFormatsOperation()
9987
+ self._SubtitleFormatsOperation._deserialize(params.get("SubtitleFormatsOperation"))
9988
+ self._SubtitleName = params.get("SubtitleName")
9192
9989
  memeber_set = set(params.keys())
9193
9990
  for name, value in vars(self).items():
9194
9991
  property_name = name[1:]
@@ -12284,6 +13081,8 @@ class CreateAIRecognitionTemplateRequest(AbstractModel):
12284
13081
  :type AsrFullTextConfigure: :class:`tencentcloud.vod.v20180717.models.AsrFullTextConfigureInfo`
12285
13082
  :param _AsrWordsConfigure: 语音关键词识别控制参数。
12286
13083
  :type AsrWordsConfigure: :class:`tencentcloud.vod.v20180717.models.AsrWordsConfigureInfo`
13084
+ :param _AsrTranslateConfigure: 语音翻译控制参数。
13085
+ :type AsrTranslateConfigure: :class:`tencentcloud.vod.v20180717.models.AsrTranslateConfigureInfo`
12287
13086
  :param _ObjectConfigure: 物体识别控制参数。
12288
13087
  :type ObjectConfigure: :class:`tencentcloud.vod.v20180717.models.ObjectConfigureInfo`
12289
13088
  :param _ScreenshotInterval: 截帧间隔,单位为秒。当不填时,默认截帧间隔为 1 秒,最小值为 0.5 秒。
@@ -12299,6 +13098,7 @@ class CreateAIRecognitionTemplateRequest(AbstractModel):
12299
13098
  self._OcrWordsConfigure = None
12300
13099
  self._AsrFullTextConfigure = None
12301
13100
  self._AsrWordsConfigure = None
13101
+ self._AsrTranslateConfigure = None
12302
13102
  self._ObjectConfigure = None
12303
13103
  self._ScreenshotInterval = None
12304
13104
 
@@ -12382,6 +13182,14 @@ class CreateAIRecognitionTemplateRequest(AbstractModel):
12382
13182
  def AsrWordsConfigure(self, AsrWordsConfigure):
12383
13183
  self._AsrWordsConfigure = AsrWordsConfigure
12384
13184
 
13185
+ @property
13186
+ def AsrTranslateConfigure(self):
13187
+ return self._AsrTranslateConfigure
13188
+
13189
+ @AsrTranslateConfigure.setter
13190
+ def AsrTranslateConfigure(self, AsrTranslateConfigure):
13191
+ self._AsrTranslateConfigure = AsrTranslateConfigure
13192
+
12385
13193
  @property
12386
13194
  def ObjectConfigure(self):
12387
13195
  return self._ObjectConfigure
@@ -12424,6 +13232,9 @@ class CreateAIRecognitionTemplateRequest(AbstractModel):
12424
13232
  if params.get("AsrWordsConfigure") is not None:
12425
13233
  self._AsrWordsConfigure = AsrWordsConfigureInfo()
12426
13234
  self._AsrWordsConfigure._deserialize(params.get("AsrWordsConfigure"))
13235
+ if params.get("AsrTranslateConfigure") is not None:
13236
+ self._AsrTranslateConfigure = AsrTranslateConfigureInfo()
13237
+ self._AsrTranslateConfigure._deserialize(params.get("AsrTranslateConfigure"))
12427
13238
  if params.get("ObjectConfigure") is not None:
12428
13239
  self._ObjectConfigure = ObjectConfigureInfo()
12429
13240
  self._ObjectConfigure._deserialize(params.get("ObjectConfigure"))
@@ -18725,6 +19536,8 @@ class DescribeAIRecognitionTemplatesRequest(AbstractModel):
18725
19536
  :type SubAppId: int
18726
19537
  :param _Definitions: 音视频内容识别模板唯一标识过滤条件,数组长度限制:100。
18727
19538
  :type Definitions: list of int
19539
+ :param _Type: 模板类型过滤条件,可选值:<li>Preset:系统预置模板;</li><li>Custom:用户自定义模板。</li>不填默认为空,即不对模板类型过滤。
19540
+ :type Type: str
18728
19541
  :param _Offset: 分页偏移量,默认值:0。
18729
19542
  :type Offset: int
18730
19543
  :param _Limit: 返回记录条数,默认值:10,最大值:100。
@@ -18732,6 +19545,7 @@ class DescribeAIRecognitionTemplatesRequest(AbstractModel):
18732
19545
  """
18733
19546
  self._SubAppId = None
18734
19547
  self._Definitions = None
19548
+ self._Type = None
18735
19549
  self._Offset = None
18736
19550
  self._Limit = None
18737
19551
 
@@ -18751,6 +19565,14 @@ class DescribeAIRecognitionTemplatesRequest(AbstractModel):
18751
19565
  def Definitions(self, Definitions):
18752
19566
  self._Definitions = Definitions
18753
19567
 
19568
+ @property
19569
+ def Type(self):
19570
+ return self._Type
19571
+
19572
+ @Type.setter
19573
+ def Type(self, Type):
19574
+ self._Type = Type
19575
+
18754
19576
  @property
18755
19577
  def Offset(self):
18756
19578
  return self._Offset
@@ -18771,6 +19593,7 @@ class DescribeAIRecognitionTemplatesRequest(AbstractModel):
18771
19593
  def _deserialize(self, params):
18772
19594
  self._SubAppId = params.get("SubAppId")
18773
19595
  self._Definitions = params.get("Definitions")
19596
+ self._Type = params.get("Type")
18774
19597
  self._Offset = params.get("Offset")
18775
19598
  self._Limit = params.get("Limit")
18776
19599
  memeber_set = set(params.keys())
@@ -36649,9 +37472,19 @@ class MediaSubtitleInput(AbstractModel):
36649
37472
  :param _Name: 字幕名字,长度限制:64 个字符。
36650
37473
  :type Name: str
36651
37474
  :param _Language: 字幕语言。常见的取值如下:
36652
- <li>cn:中文</li>
36653
- <li>ja:日文</li>
36654
- <li>en-US:英文</li>
37475
+ <li>zh:中文;</li>
37476
+ <li>en:英文;</li>
37477
+ <li>ja:日文;</li>
37478
+ <li>ko:韩文;</li>
37479
+ <li>vi:越南语;</li>
37480
+ <li>ms:马来语;</li>
37481
+ <li>th:泰语;</li>
37482
+ <li>pt:葡萄牙语;</li>
37483
+ <li>tr:土耳其语;</li>
37484
+ <li>ar:阿拉伯语;</li>
37485
+ <li>es:西班牙语;</li>
37486
+ <li>hi:印地语;</li>
37487
+ <li>fr:法语。</li>
36655
37488
  其他取值参考 [RFC5646](https://tools.ietf.org/html/rfc5646)
36656
37489
  :type Language: str
36657
37490
  :param _Format: 字幕格式。取值范围如下:
@@ -36737,9 +37570,19 @@ class MediaSubtitleItem(AbstractModel):
36737
37570
  :param _Name: 字幕名字。
36738
37571
  :type Name: str
36739
37572
  :param _Language: 字幕语言。常见的取值如下:
36740
- <li>cn:中文</li>
36741
- <li>ja:日文</li>
36742
- <li>en-US:英文</li>
37573
+ <li>zh:中文;</li>
37574
+ <li>en:英文;</li>
37575
+ <li>ja:日文;</li>
37576
+ <li>ko:韩文;</li>
37577
+ <li>vi:越南语;</li>
37578
+ <li>ms:马来语;</li>
37579
+ <li>th:泰语;</li>
37580
+ <li>pt:葡萄牙语;</li>
37581
+ <li>tr:土耳其语;</li>
37582
+ <li>ar:阿拉伯语;</li>
37583
+ <li>es:西班牙语;</li>
37584
+ <li>hi:印地语;</li>
37585
+ <li>fr:法语。</li>
36743
37586
  其他取值参考 [RFC5646](https://tools.ietf.org/html/rfc5646)
36744
37587
  :type Language: str
36745
37588
  :param _Format: 字幕格式。取值范围如下:
@@ -36747,12 +37590,17 @@ class MediaSubtitleItem(AbstractModel):
36747
37590
  :type Format: str
36748
37591
  :param _Url: 字幕 URL。
36749
37592
  :type Url: str
37593
+ :param _Source: 字幕来源,取值范围:
37594
+ <li>UserUploaded:用户上传;</li>
37595
+ <li>AIRecognition:AI 识别,通过语音识别或语音翻译生成。</li>
37596
+ :type Source: str
36750
37597
  """
36751
37598
  self._Id = None
36752
37599
  self._Name = None
36753
37600
  self._Language = None
36754
37601
  self._Format = None
36755
37602
  self._Url = None
37603
+ self._Source = None
36756
37604
 
36757
37605
  @property
36758
37606
  def Id(self):
@@ -36794,6 +37642,14 @@ class MediaSubtitleItem(AbstractModel):
36794
37642
  def Url(self, Url):
36795
37643
  self._Url = Url
36796
37644
 
37645
+ @property
37646
+ def Source(self):
37647
+ return self._Source
37648
+
37649
+ @Source.setter
37650
+ def Source(self, Source):
37651
+ self._Source = Source
37652
+
36797
37653
 
36798
37654
  def _deserialize(self, params):
36799
37655
  self._Id = params.get("Id")
@@ -36801,6 +37657,7 @@ class MediaSubtitleItem(AbstractModel):
36801
37657
  self._Language = params.get("Language")
36802
37658
  self._Format = params.get("Format")
36803
37659
  self._Url = params.get("Url")
37660
+ self._Source = params.get("Source")
36804
37661
  memeber_set = set(params.keys())
36805
37662
  for name, value in vars(self).items():
36806
37663
  property_name = name[1:]
@@ -37582,6 +38439,8 @@ class ModifyAIRecognitionTemplateRequest(AbstractModel):
37582
38439
  :type AsrFullTextConfigure: :class:`tencentcloud.vod.v20180717.models.AsrFullTextConfigureInfoForUpdate`
37583
38440
  :param _AsrWordsConfigure: 语音关键词识别控制参数。
37584
38441
  :type AsrWordsConfigure: :class:`tencentcloud.vod.v20180717.models.AsrWordsConfigureInfoForUpdate`
38442
+ :param _AsrTranslateConfigure: 语音翻译控制参数。
38443
+ :type AsrTranslateConfigure: :class:`tencentcloud.vod.v20180717.models.AsrTranslateConfigureInfoForUpdate`
37585
38444
  :param _ObjectConfigure: 物体识别控制参数。
37586
38445
  :type ObjectConfigure: :class:`tencentcloud.vod.v20180717.models.ObjectConfigureInfoForUpdate`
37587
38446
  :param _ScreenshotInterval: 截帧间隔,单位为秒,最小值为 0.5 秒。
@@ -37598,6 +38457,7 @@ class ModifyAIRecognitionTemplateRequest(AbstractModel):
37598
38457
  self._OcrWordsConfigure = None
37599
38458
  self._AsrFullTextConfigure = None
37600
38459
  self._AsrWordsConfigure = None
38460
+ self._AsrTranslateConfigure = None
37601
38461
  self._ObjectConfigure = None
37602
38462
  self._ScreenshotInterval = None
37603
38463
 
@@ -37689,6 +38549,14 @@ class ModifyAIRecognitionTemplateRequest(AbstractModel):
37689
38549
  def AsrWordsConfigure(self, AsrWordsConfigure):
37690
38550
  self._AsrWordsConfigure = AsrWordsConfigure
37691
38551
 
38552
+ @property
38553
+ def AsrTranslateConfigure(self):
38554
+ return self._AsrTranslateConfigure
38555
+
38556
+ @AsrTranslateConfigure.setter
38557
+ def AsrTranslateConfigure(self, AsrTranslateConfigure):
38558
+ self._AsrTranslateConfigure = AsrTranslateConfigure
38559
+
37692
38560
  @property
37693
38561
  def ObjectConfigure(self):
37694
38562
  return self._ObjectConfigure
@@ -37732,6 +38600,9 @@ class ModifyAIRecognitionTemplateRequest(AbstractModel):
37732
38600
  if params.get("AsrWordsConfigure") is not None:
37733
38601
  self._AsrWordsConfigure = AsrWordsConfigureInfoForUpdate()
37734
38602
  self._AsrWordsConfigure._deserialize(params.get("AsrWordsConfigure"))
38603
+ if params.get("AsrTranslateConfigure") is not None:
38604
+ self._AsrTranslateConfigure = AsrTranslateConfigureInfoForUpdate()
38605
+ self._AsrTranslateConfigure._deserialize(params.get("AsrTranslateConfigure"))
37735
38606
  if params.get("ObjectConfigure") is not None:
37736
38607
  self._ObjectConfigure = ObjectConfigureInfoForUpdate()
37737
38608
  self._ObjectConfigure._deserialize(params.get("ObjectConfigure"))