tencentcloud-sdk-python-mps 3.1.128__py2.py3-none-any.whl → 3.1.131__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 CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.128'
17
+ __version__ = '3.1.131'
@@ -13497,6 +13497,42 @@ class AigcVideoExtraParam(AbstractModel):
13497
13497
 
13498
13498
 
13499
13499
 
13500
+ class AigcVideoReferenceAudioInfo(AbstractModel):
13501
+ r"""参考音频信息。
13502
+
13503
+ """
13504
+
13505
+ def __init__(self):
13506
+ r"""
13507
+ :param _AudioUrl: <p>参考音频URL信息。需外网可访问。</p>
13508
+ :type AudioUrl: str
13509
+ """
13510
+ self._AudioUrl = None
13511
+
13512
+ @property
13513
+ def AudioUrl(self):
13514
+ r"""<p>参考音频URL信息。需外网可访问。</p>
13515
+ :rtype: str
13516
+ """
13517
+ return self._AudioUrl
13518
+
13519
+ @AudioUrl.setter
13520
+ def AudioUrl(self, AudioUrl):
13521
+ self._AudioUrl = AudioUrl
13522
+
13523
+
13524
+ def _deserialize(self, params):
13525
+ self._AudioUrl = params.get("AudioUrl")
13526
+ memeber_set = set(params.keys())
13527
+ for name, value in vars(self).items():
13528
+ property_name = name[1:]
13529
+ if property_name in memeber_set:
13530
+ memeber_set.remove(property_name)
13531
+ if len(memeber_set) > 0:
13532
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
13533
+
13534
+
13535
+
13500
13536
  class AigcVideoReferenceImageInfo(AbstractModel):
13501
13537
  r"""用于AIGC生视频创作的参考图片信息。
13502
13538
 
@@ -21089,6 +21125,8 @@ class CreateAigcVideoTaskRequest(AbstractModel):
21089
21125
  :type ImageInfos: list of AigcVideoReferenceImageInfo
21090
21126
  :param _VideoInfos: <p>目前仅 Kling O1、Kling 3.0-Omni、Vidu q2-pro、H2 1.0 支持参考视频信息传入。</p><ol><li>Kling O1、3.0-Omni 可作为特征参考视频,也可作为待编辑视频,默认为待编辑视频;可选择性保留视频原声。</li><li>Vidu q2-pro 支持视频参考。</li><li>H2 1.0 支持视频参考。</li></ol>
21091
21127
  :type VideoInfos: list of AigcVideoReferenceVideoInfo
21128
+ :param _AudioInfos: <p>部分模型支持参考音频传入,使用URL传入。</p>
21129
+ :type AudioInfos: list of AigcVideoReferenceAudioInfo
21092
21130
  :param _Duration: <p>生成视频的时长。<br>注意:</p><ol><li>Kling,默认:5 秒。<ul><li>O1 支持 3-10 秒。</li><li>3.0-Omni 支持 3-15 秒,当使用视频参考时只支持 3-10 秒。</li><li>3.0 支持 3-15 秒。</li><li>其他版本支持 5、10 秒。</li></ul></li><li>Hailuo 的 std 模式可支持 6、10 秒,其他仅 6 秒。默认:6 秒。</li><li>Vidu,默认:5 秒。<ul><li>q3-pro、q3-turbo、q3、q3-mix 支持 3-16 秒。</li><li>q2-pro、q2-turbo、q2 支持 1-10 秒。 </li></ul></li><li>PixVerse,默认:5 秒。<ul><li>v5.6 支持 5、8、10 秒。</li><li>v6、c1 支持 1-15 秒。</li></ul></li><li>H2,支持 3-15 秒,默认 :5 秒。</li></ol>
21093
21131
  :type Duration: int
21094
21132
  :param _ExtraParameters: <p>用于传入要求的额外参数。</p>
@@ -21110,6 +21148,7 @@ class CreateAigcVideoTaskRequest(AbstractModel):
21110
21148
  self._LastImageUrl = None
21111
21149
  self._ImageInfos = None
21112
21150
  self._VideoInfos = None
21151
+ self._AudioInfos = None
21113
21152
  self._Duration = None
21114
21153
  self._ExtraParameters = None
21115
21154
  self._StoreCosParam = None
@@ -21226,6 +21265,17 @@ class CreateAigcVideoTaskRequest(AbstractModel):
21226
21265
  def VideoInfos(self, VideoInfos):
21227
21266
  self._VideoInfos = VideoInfos
21228
21267
 
21268
+ @property
21269
+ def AudioInfos(self):
21270
+ r"""<p>部分模型支持参考音频传入,使用URL传入。</p>
21271
+ :rtype: list of AigcVideoReferenceAudioInfo
21272
+ """
21273
+ return self._AudioInfos
21274
+
21275
+ @AudioInfos.setter
21276
+ def AudioInfos(self, AudioInfos):
21277
+ self._AudioInfos = AudioInfos
21278
+
21229
21279
  @property
21230
21280
  def Duration(self):
21231
21281
  r"""<p>生成视频的时长。<br>注意:</p><ol><li>Kling,默认:5 秒。<ul><li>O1 支持 3-10 秒。</li><li>3.0-Omni 支持 3-15 秒,当使用视频参考时只支持 3-10 秒。</li><li>3.0 支持 3-15 秒。</li><li>其他版本支持 5、10 秒。</li></ul></li><li>Hailuo 的 std 模式可支持 6、10 秒,其他仅 6 秒。默认:6 秒。</li><li>Vidu,默认:5 秒。<ul><li>q3-pro、q3-turbo、q3、q3-mix 支持 3-16 秒。</li><li>q2-pro、q2-turbo、q2 支持 1-10 秒。 </li></ul></li><li>PixVerse,默认:5 秒。<ul><li>v5.6 支持 5、8、10 秒。</li><li>v6、c1 支持 1-15 秒。</li></ul></li><li>H2,支持 3-15 秒,默认 :5 秒。</li></ol>
@@ -21303,6 +21353,12 @@ class CreateAigcVideoTaskRequest(AbstractModel):
21303
21353
  obj = AigcVideoReferenceVideoInfo()
21304
21354
  obj._deserialize(item)
21305
21355
  self._VideoInfos.append(obj)
21356
+ if params.get("AudioInfos") is not None:
21357
+ self._AudioInfos = []
21358
+ for item in params.get("AudioInfos"):
21359
+ obj = AigcVideoReferenceAudioInfo()
21360
+ obj._deserialize(item)
21361
+ self._AudioInfos.append(obj)
21306
21362
  self._Duration = params.get("Duration")
21307
21363
  if params.get("ExtraParameters") is not None:
21308
21364
  self._ExtraParameters = AigcVideoExtraParam()
@@ -79191,6 +79247,117 @@ class SmartSubtitleTaskFullTextResult(AbstractModel):
79191
79247
 
79192
79248
 
79193
79249
 
79250
+ class SmartSubtitleTaskFullTextSegmentItem(AbstractModel):
79251
+ r"""智能字幕识别片段。
79252
+
79253
+ """
79254
+
79255
+ def __init__(self):
79256
+ r"""
79257
+ :param _Confidence: <p>识别片段置信度。取值:0~100。</p>
79258
+ :type Confidence: float
79259
+ :param _StartTimeOffset: <p>识别片段起始的偏移时间,单位:秒。</p>
79260
+ :type StartTimeOffset: float
79261
+ :param _EndTimeOffset: <p>识别片段终止的偏移时间,单位:秒。</p>
79262
+ :type EndTimeOffset: float
79263
+ :param _Text: <p>识别文本。</p>
79264
+ :type Text: str
79265
+ :param _Trans: <p>翻译文本。</p>
79266
+ :type Trans: str
79267
+ :param _SpeakerId: <p>说话人ID</p>
79268
+ :type SpeakerId: str
79269
+ """
79270
+ self._Confidence = None
79271
+ self._StartTimeOffset = None
79272
+ self._EndTimeOffset = None
79273
+ self._Text = None
79274
+ self._Trans = None
79275
+ self._SpeakerId = None
79276
+
79277
+ @property
79278
+ def Confidence(self):
79279
+ r"""<p>识别片段置信度。取值:0~100。</p>
79280
+ :rtype: float
79281
+ """
79282
+ return self._Confidence
79283
+
79284
+ @Confidence.setter
79285
+ def Confidence(self, Confidence):
79286
+ self._Confidence = Confidence
79287
+
79288
+ @property
79289
+ def StartTimeOffset(self):
79290
+ r"""<p>识别片段起始的偏移时间,单位:秒。</p>
79291
+ :rtype: float
79292
+ """
79293
+ return self._StartTimeOffset
79294
+
79295
+ @StartTimeOffset.setter
79296
+ def StartTimeOffset(self, StartTimeOffset):
79297
+ self._StartTimeOffset = StartTimeOffset
79298
+
79299
+ @property
79300
+ def EndTimeOffset(self):
79301
+ r"""<p>识别片段终止的偏移时间,单位:秒。</p>
79302
+ :rtype: float
79303
+ """
79304
+ return self._EndTimeOffset
79305
+
79306
+ @EndTimeOffset.setter
79307
+ def EndTimeOffset(self, EndTimeOffset):
79308
+ self._EndTimeOffset = EndTimeOffset
79309
+
79310
+ @property
79311
+ def Text(self):
79312
+ r"""<p>识别文本。</p>
79313
+ :rtype: str
79314
+ """
79315
+ return self._Text
79316
+
79317
+ @Text.setter
79318
+ def Text(self, Text):
79319
+ self._Text = Text
79320
+
79321
+ @property
79322
+ def Trans(self):
79323
+ r"""<p>翻译文本。</p>
79324
+ :rtype: str
79325
+ """
79326
+ return self._Trans
79327
+
79328
+ @Trans.setter
79329
+ def Trans(self, Trans):
79330
+ self._Trans = Trans
79331
+
79332
+ @property
79333
+ def SpeakerId(self):
79334
+ r"""<p>说话人ID</p>
79335
+ :rtype: str
79336
+ """
79337
+ return self._SpeakerId
79338
+
79339
+ @SpeakerId.setter
79340
+ def SpeakerId(self, SpeakerId):
79341
+ self._SpeakerId = SpeakerId
79342
+
79343
+
79344
+ def _deserialize(self, params):
79345
+ self._Confidence = params.get("Confidence")
79346
+ self._StartTimeOffset = params.get("StartTimeOffset")
79347
+ self._EndTimeOffset = params.get("EndTimeOffset")
79348
+ self._Text = params.get("Text")
79349
+ self._Trans = params.get("Trans")
79350
+ self._SpeakerId = params.get("SpeakerId")
79351
+ memeber_set = set(params.keys())
79352
+ for name, value in vars(self).items():
79353
+ property_name = name[1:]
79354
+ if property_name in memeber_set:
79355
+ memeber_set.remove(property_name)
79356
+ if len(memeber_set) > 0:
79357
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
79358
+
79359
+
79360
+
79194
79361
  class SmartSubtitleTaskResultInput(AbstractModel):
79195
79362
  r"""智能字幕翻译的输入。
79196
79363
 
@@ -79268,6 +79435,9 @@ class SmartSubtitleTaskTextResultOutput(AbstractModel):
79268
79435
 
79269
79436
  def __init__(self):
79270
79437
  r"""
79438
+ :param _SegmentSet: <p>智能字幕识别片段列表。</p>
79439
+ 注意:此字段可能返回 null,表示取不到有效值。
79440
+ :type SegmentSet: list of SmartSubtitleTaskFullTextSegmentItem
79271
79441
  :param _RecognizeSubtitleResult: <p>识别字幕结果</p>
79272
79442
  注意:此字段可能返回 null,表示取不到有效值。
79273
79443
  :type RecognizeSubtitleResult: list of SubtitleResult
@@ -79278,10 +79448,23 @@ class SmartSubtitleTaskTextResultOutput(AbstractModel):
79278
79448
  注意:此字段可能返回 null,表示取不到有效值。
79279
79449
  :type OutputStorage: :class:`tencentcloud.mps.v20190612.models.TaskOutputStorage`
79280
79450
  """
79451
+ self._SegmentSet = None
79281
79452
  self._RecognizeSubtitleResult = None
79282
79453
  self._TransSubtitleResult = None
79283
79454
  self._OutputStorage = None
79284
79455
 
79456
+ @property
79457
+ def SegmentSet(self):
79458
+ r"""<p>智能字幕识别片段列表。</p>
79459
+ 注意:此字段可能返回 null,表示取不到有效值。
79460
+ :rtype: list of SmartSubtitleTaskFullTextSegmentItem
79461
+ """
79462
+ return self._SegmentSet
79463
+
79464
+ @SegmentSet.setter
79465
+ def SegmentSet(self, SegmentSet):
79466
+ self._SegmentSet = SegmentSet
79467
+
79285
79468
  @property
79286
79469
  def RecognizeSubtitleResult(self):
79287
79470
  r"""<p>识别字幕结果</p>
@@ -79320,6 +79503,12 @@ class SmartSubtitleTaskTextResultOutput(AbstractModel):
79320
79503
 
79321
79504
 
79322
79505
  def _deserialize(self, params):
79506
+ if params.get("SegmentSet") is not None:
79507
+ self._SegmentSet = []
79508
+ for item in params.get("SegmentSet"):
79509
+ obj = SmartSubtitleTaskFullTextSegmentItem()
79510
+ obj._deserialize(item)
79511
+ self._SegmentSet.append(obj)
79323
79512
  if params.get("RecognizeSubtitleResult") is not None:
79324
79513
  self._RecognizeSubtitleResult = []
79325
79514
  for item in params.get("RecognizeSubtitleResult"):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-mps
3
- Version: 3.1.128
3
+ Version: 3.1.131
4
4
  Summary: Tencent Cloud Mps SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common <4.0.0,>=3.1.128
18
+ Requires-Dist: tencentcloud-sdk-python-common <4.0.0,>=3.1.131
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -1,11 +1,11 @@
1
- tencentcloud/__init__.py,sha256=qXRDeaBvb6BNSJHPy7MTDMdrCfF2E2d4UQgfQgDUPtI,630
1
+ tencentcloud/__init__.py,sha256=iPUcKGFMg5GkAgZid5JUePDxvlaJUP1qFKrO_ekYmg0,630
2
2
  tencentcloud/mps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  tencentcloud/mps/v20190612/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  tencentcloud/mps/v20190612/errorcodes.py,sha256=5etDi2ekQP5GQTA7Gq-XSMObBXDtIo6cdEn-ERhosaU,20892
5
- tencentcloud/mps/v20190612/models.py,sha256=n7vp1BL4egF3MV3ZygHCramizxeqlIOp__dymh8yLrM,3335512
5
+ tencentcloud/mps/v20190612/models.py,sha256=5L2euCMobNwT-m6afCXdvOZFfQajnwoO4E3pinHPaeI,3341235
6
6
  tencentcloud/mps/v20190612/mps_client.py,sha256=KG8PKFx_mbVHfIp6OMf-QrRaUW0zZec6cuc3ROJgf4U,208949
7
7
  tencentcloud/mps/v20190612/mps_client_async.py,sha256=EcOP-YTzjvLMiNo-eOma6AD6eG7n6vICuF7gYQ9WA68,143681
8
- tencentcloud_sdk_python_mps-3.1.128.dist-info/METADATA,sha256=LzpbyE_8o8mxnzoh6Wn41xpXPcR6wZiwqkePO8LbTgc,1497
9
- tencentcloud_sdk_python_mps-3.1.128.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
10
- tencentcloud_sdk_python_mps-3.1.128.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
11
- tencentcloud_sdk_python_mps-3.1.128.dist-info/RECORD,,
8
+ tencentcloud_sdk_python_mps-3.1.131.dist-info/METADATA,sha256=GWfDRLbmm3NaI5vwnHmRugTn3DLhLLclAFlvNB37Mgs,1497
9
+ tencentcloud_sdk_python_mps-3.1.131.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
10
+ tencentcloud_sdk_python_mps-3.1.131.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
11
+ tencentcloud_sdk_python_mps-3.1.131.dist-info/RECORD,,