tencentcloud-sdk-python-mps 3.1.128__py2.py3-none-any.whl → 3.1.129__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.129'
@@ -79191,6 +79191,117 @@ class SmartSubtitleTaskFullTextResult(AbstractModel):
79191
79191
 
79192
79192
 
79193
79193
 
79194
+ class SmartSubtitleTaskFullTextSegmentItem(AbstractModel):
79195
+ r"""智能字幕识别片段。
79196
+
79197
+ """
79198
+
79199
+ def __init__(self):
79200
+ r"""
79201
+ :param _Confidence: <p>识别片段置信度。取值:0~100。</p>
79202
+ :type Confidence: float
79203
+ :param _StartTimeOffset: <p>识别片段起始的偏移时间,单位:秒。</p>
79204
+ :type StartTimeOffset: float
79205
+ :param _EndTimeOffset: <p>识别片段终止的偏移时间,单位:秒。</p>
79206
+ :type EndTimeOffset: float
79207
+ :param _Text: <p>识别文本。</p>
79208
+ :type Text: str
79209
+ :param _Trans: <p>翻译文本。</p>
79210
+ :type Trans: str
79211
+ :param _SpeakerId: <p>说话人ID</p>
79212
+ :type SpeakerId: str
79213
+ """
79214
+ self._Confidence = None
79215
+ self._StartTimeOffset = None
79216
+ self._EndTimeOffset = None
79217
+ self._Text = None
79218
+ self._Trans = None
79219
+ self._SpeakerId = None
79220
+
79221
+ @property
79222
+ def Confidence(self):
79223
+ r"""<p>识别片段置信度。取值:0~100。</p>
79224
+ :rtype: float
79225
+ """
79226
+ return self._Confidence
79227
+
79228
+ @Confidence.setter
79229
+ def Confidence(self, Confidence):
79230
+ self._Confidence = Confidence
79231
+
79232
+ @property
79233
+ def StartTimeOffset(self):
79234
+ r"""<p>识别片段起始的偏移时间,单位:秒。</p>
79235
+ :rtype: float
79236
+ """
79237
+ return self._StartTimeOffset
79238
+
79239
+ @StartTimeOffset.setter
79240
+ def StartTimeOffset(self, StartTimeOffset):
79241
+ self._StartTimeOffset = StartTimeOffset
79242
+
79243
+ @property
79244
+ def EndTimeOffset(self):
79245
+ r"""<p>识别片段终止的偏移时间,单位:秒。</p>
79246
+ :rtype: float
79247
+ """
79248
+ return self._EndTimeOffset
79249
+
79250
+ @EndTimeOffset.setter
79251
+ def EndTimeOffset(self, EndTimeOffset):
79252
+ self._EndTimeOffset = EndTimeOffset
79253
+
79254
+ @property
79255
+ def Text(self):
79256
+ r"""<p>识别文本。</p>
79257
+ :rtype: str
79258
+ """
79259
+ return self._Text
79260
+
79261
+ @Text.setter
79262
+ def Text(self, Text):
79263
+ self._Text = Text
79264
+
79265
+ @property
79266
+ def Trans(self):
79267
+ r"""<p>翻译文本。</p>
79268
+ :rtype: str
79269
+ """
79270
+ return self._Trans
79271
+
79272
+ @Trans.setter
79273
+ def Trans(self, Trans):
79274
+ self._Trans = Trans
79275
+
79276
+ @property
79277
+ def SpeakerId(self):
79278
+ r"""<p>说话人ID</p>
79279
+ :rtype: str
79280
+ """
79281
+ return self._SpeakerId
79282
+
79283
+ @SpeakerId.setter
79284
+ def SpeakerId(self, SpeakerId):
79285
+ self._SpeakerId = SpeakerId
79286
+
79287
+
79288
+ def _deserialize(self, params):
79289
+ self._Confidence = params.get("Confidence")
79290
+ self._StartTimeOffset = params.get("StartTimeOffset")
79291
+ self._EndTimeOffset = params.get("EndTimeOffset")
79292
+ self._Text = params.get("Text")
79293
+ self._Trans = params.get("Trans")
79294
+ self._SpeakerId = params.get("SpeakerId")
79295
+ memeber_set = set(params.keys())
79296
+ for name, value in vars(self).items():
79297
+ property_name = name[1:]
79298
+ if property_name in memeber_set:
79299
+ memeber_set.remove(property_name)
79300
+ if len(memeber_set) > 0:
79301
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
79302
+
79303
+
79304
+
79194
79305
  class SmartSubtitleTaskResultInput(AbstractModel):
79195
79306
  r"""智能字幕翻译的输入。
79196
79307
 
@@ -79268,6 +79379,9 @@ class SmartSubtitleTaskTextResultOutput(AbstractModel):
79268
79379
 
79269
79380
  def __init__(self):
79270
79381
  r"""
79382
+ :param _SegmentSet: <p>智能字幕识别片段列表。</p>
79383
+ 注意:此字段可能返回 null,表示取不到有效值。
79384
+ :type SegmentSet: list of SmartSubtitleTaskFullTextSegmentItem
79271
79385
  :param _RecognizeSubtitleResult: <p>识别字幕结果</p>
79272
79386
  注意:此字段可能返回 null,表示取不到有效值。
79273
79387
  :type RecognizeSubtitleResult: list of SubtitleResult
@@ -79278,10 +79392,23 @@ class SmartSubtitleTaskTextResultOutput(AbstractModel):
79278
79392
  注意:此字段可能返回 null,表示取不到有效值。
79279
79393
  :type OutputStorage: :class:`tencentcloud.mps.v20190612.models.TaskOutputStorage`
79280
79394
  """
79395
+ self._SegmentSet = None
79281
79396
  self._RecognizeSubtitleResult = None
79282
79397
  self._TransSubtitleResult = None
79283
79398
  self._OutputStorage = None
79284
79399
 
79400
+ @property
79401
+ def SegmentSet(self):
79402
+ r"""<p>智能字幕识别片段列表。</p>
79403
+ 注意:此字段可能返回 null,表示取不到有效值。
79404
+ :rtype: list of SmartSubtitleTaskFullTextSegmentItem
79405
+ """
79406
+ return self._SegmentSet
79407
+
79408
+ @SegmentSet.setter
79409
+ def SegmentSet(self, SegmentSet):
79410
+ self._SegmentSet = SegmentSet
79411
+
79285
79412
  @property
79286
79413
  def RecognizeSubtitleResult(self):
79287
79414
  r"""<p>识别字幕结果</p>
@@ -79320,6 +79447,12 @@ class SmartSubtitleTaskTextResultOutput(AbstractModel):
79320
79447
 
79321
79448
 
79322
79449
  def _deserialize(self, params):
79450
+ if params.get("SegmentSet") is not None:
79451
+ self._SegmentSet = []
79452
+ for item in params.get("SegmentSet"):
79453
+ obj = SmartSubtitleTaskFullTextSegmentItem()
79454
+ obj._deserialize(item)
79455
+ self._SegmentSet.append(obj)
79323
79456
  if params.get("RecognizeSubtitleResult") is not None:
79324
79457
  self._RecognizeSubtitleResult = []
79325
79458
  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.129
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.129
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=f4JqVjj_StMd-z3jpkGB7D8oK_h7HJatqSqmqPRSOjc,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=A7V7sobNox6e-jfZU9BWBQipVhFMgYJ4Movd6wOLwLg,3339507
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.129.dist-info/METADATA,sha256=VvbskdMghl9lNsVUqAg8-77f8szT_CargESpbxkKG04,1497
9
+ tencentcloud_sdk_python_mps-3.1.129.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
10
+ tencentcloud_sdk_python_mps-3.1.129.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
11
+ tencentcloud_sdk_python_mps-3.1.129.dist-info/RECORD,,