tencentcloud-sdk-python-intl-en 3.0.1166__py2.py3-none-any.whl → 3.0.1167__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.

Potentially problematic release.


This version of tencentcloud-sdk-python-intl-en might be problematic. Click here for more details.

@@ -118,6 +118,29 @@ class MpsClient(AbstractClient):
118
118
  raise TencentCloudSDKException(type(e).__name__, str(e))
119
119
 
120
120
 
121
+ def CreateAsrHotwords(self, request):
122
+ """This API is used to create a smart subtitle hotword lexicon.
123
+
124
+ :param request: Request instance for CreateAsrHotwords.
125
+ :type request: :class:`tencentcloud.mps.v20190612.models.CreateAsrHotwordsRequest`
126
+ :rtype: :class:`tencentcloud.mps.v20190612.models.CreateAsrHotwordsResponse`
127
+
128
+ """
129
+ try:
130
+ params = request._serialize()
131
+ headers = request.headers
132
+ body = self.call("CreateAsrHotwords", params, headers=headers)
133
+ response = json.loads(body)
134
+ model = models.CreateAsrHotwordsResponse()
135
+ model._deserialize(response["Response"])
136
+ return model
137
+ except Exception as e:
138
+ if isinstance(e, TencentCloudSDKException):
139
+ raise
140
+ else:
141
+ raise TencentCloudSDKException(type(e).__name__, str(e))
142
+
143
+
121
144
  def CreateContentReviewTemplate(self, request):
122
145
  """This API is used to create a custom content moderation template. Up to 50 templates can be created in total.
123
146
 
@@ -290,6 +313,29 @@ class MpsClient(AbstractClient):
290
313
  raise TencentCloudSDKException(type(e).__name__, str(e))
291
314
 
292
315
 
316
+ def CreateSmartSubtitleTemplate(self, request):
317
+ """This API is used to create a custom smart subtitle template.
318
+
319
+ :param request: Request instance for CreateSmartSubtitleTemplate.
320
+ :type request: :class:`tencentcloud.mps.v20190612.models.CreateSmartSubtitleTemplateRequest`
321
+ :rtype: :class:`tencentcloud.mps.v20190612.models.CreateSmartSubtitleTemplateResponse`
322
+
323
+ """
324
+ try:
325
+ params = request._serialize()
326
+ headers = request.headers
327
+ body = self.call("CreateSmartSubtitleTemplate", params, headers=headers)
328
+ response = json.loads(body)
329
+ model = models.CreateSmartSubtitleTemplateResponse()
330
+ model._deserialize(response["Response"])
331
+ return model
332
+ except Exception as e:
333
+ if isinstance(e, TencentCloudSDKException):
334
+ raise
335
+ else:
336
+ raise TencentCloudSDKException(type(e).__name__, str(e))
337
+
338
+
293
339
  def CreateSnapshotByTimeOffsetTemplate(self, request):
294
340
  """This API is used to create a custom time point screencapturing template. Up to 16 templates can be created.
295
341
 
@@ -510,6 +556,29 @@ class MpsClient(AbstractClient):
510
556
  raise TencentCloudSDKException(type(e).__name__, str(e))
511
557
 
512
558
 
559
+ def DeleteAsrHotwords(self, request):
560
+ """This API is used to delete a smart subtitle hotword lexicon.
561
+
562
+ :param request: Request instance for DeleteAsrHotwords.
563
+ :type request: :class:`tencentcloud.mps.v20190612.models.DeleteAsrHotwordsRequest`
564
+ :rtype: :class:`tencentcloud.mps.v20190612.models.DeleteAsrHotwordsResponse`
565
+
566
+ """
567
+ try:
568
+ params = request._serialize()
569
+ headers = request.headers
570
+ body = self.call("DeleteAsrHotwords", params, headers=headers)
571
+ response = json.loads(body)
572
+ model = models.DeleteAsrHotwordsResponse()
573
+ model._deserialize(response["Response"])
574
+ return model
575
+ except Exception as e:
576
+ if isinstance(e, TencentCloudSDKException):
577
+ raise
578
+ else:
579
+ raise TencentCloudSDKException(type(e).__name__, str(e))
580
+
581
+
513
582
  def DeleteContentReviewTemplate(self, request):
514
583
  """This API is used to delete a custom content moderation template.
515
584
 
@@ -671,6 +740,29 @@ class MpsClient(AbstractClient):
671
740
  raise TencentCloudSDKException(type(e).__name__, str(e))
672
741
 
673
742
 
743
+ def DeleteSmartSubtitleTemplate(self, request):
744
+ """This API is used to delete a user-defined smart subtitle template.
745
+
746
+ :param request: Request instance for DeleteSmartSubtitleTemplate.
747
+ :type request: :class:`tencentcloud.mps.v20190612.models.DeleteSmartSubtitleTemplateRequest`
748
+ :rtype: :class:`tencentcloud.mps.v20190612.models.DeleteSmartSubtitleTemplateResponse`
749
+
750
+ """
751
+ try:
752
+ params = request._serialize()
753
+ headers = request.headers
754
+ body = self.call("DeleteSmartSubtitleTemplate", params, headers=headers)
755
+ response = json.loads(body)
756
+ model = models.DeleteSmartSubtitleTemplateResponse()
757
+ model._deserialize(response["Response"])
758
+ return model
759
+ except Exception as e:
760
+ if isinstance(e, TencentCloudSDKException):
761
+ raise
762
+ else:
763
+ raise TencentCloudSDKException(type(e).__name__, str(e))
764
+
765
+
674
766
  def DeleteSnapshotByTimeOffsetTemplate(self, request):
675
767
  """This API is used to delete a custom time point screencapturing template.
676
768
 
@@ -878,6 +970,52 @@ class MpsClient(AbstractClient):
878
970
  raise TencentCloudSDKException(type(e).__name__, str(e))
879
971
 
880
972
 
973
+ def DescribeAsrHotwords(self, request):
974
+ """This API is used to query a smart subtitle hotword lexicon.
975
+
976
+ :param request: Request instance for DescribeAsrHotwords.
977
+ :type request: :class:`tencentcloud.mps.v20190612.models.DescribeAsrHotwordsRequest`
978
+ :rtype: :class:`tencentcloud.mps.v20190612.models.DescribeAsrHotwordsResponse`
979
+
980
+ """
981
+ try:
982
+ params = request._serialize()
983
+ headers = request.headers
984
+ body = self.call("DescribeAsrHotwords", params, headers=headers)
985
+ response = json.loads(body)
986
+ model = models.DescribeAsrHotwordsResponse()
987
+ model._deserialize(response["Response"])
988
+ return model
989
+ except Exception as e:
990
+ if isinstance(e, TencentCloudSDKException):
991
+ raise
992
+ else:
993
+ raise TencentCloudSDKException(type(e).__name__, str(e))
994
+
995
+
996
+ def DescribeAsrHotwordsList(self, request):
997
+ """This API is used to obtain the hotword lexicon list.
998
+
999
+ :param request: Request instance for DescribeAsrHotwordsList.
1000
+ :type request: :class:`tencentcloud.mps.v20190612.models.DescribeAsrHotwordsListRequest`
1001
+ :rtype: :class:`tencentcloud.mps.v20190612.models.DescribeAsrHotwordsListResponse`
1002
+
1003
+ """
1004
+ try:
1005
+ params = request._serialize()
1006
+ headers = request.headers
1007
+ body = self.call("DescribeAsrHotwordsList", params, headers=headers)
1008
+ response = json.loads(body)
1009
+ model = models.DescribeAsrHotwordsListResponse()
1010
+ model._deserialize(response["Response"])
1011
+ return model
1012
+ except Exception as e:
1013
+ if isinstance(e, TencentCloudSDKException):
1014
+ raise
1015
+ else:
1016
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1017
+
1018
+
881
1019
  def DescribeContentReviewTemplates(self, request):
882
1020
  """This API is used to query content moderation templates by template ID. Both custom and preset templates that match the template IDs passed in will be returned.
883
1021
 
@@ -1062,6 +1200,29 @@ class MpsClient(AbstractClient):
1062
1200
  raise TencentCloudSDKException(type(e).__name__, str(e))
1063
1201
 
1064
1202
 
1203
+ def DescribeSmartSubtitleTemplates(self, request):
1204
+ """This API is used to obtain the list of smart subtitle templates based on template unique identifier. The returned result includes all matching user-defined smart subtitle templates and system preset smart subtitle templates.
1205
+
1206
+ :param request: Request instance for DescribeSmartSubtitleTemplates.
1207
+ :type request: :class:`tencentcloud.mps.v20190612.models.DescribeSmartSubtitleTemplatesRequest`
1208
+ :rtype: :class:`tencentcloud.mps.v20190612.models.DescribeSmartSubtitleTemplatesResponse`
1209
+
1210
+ """
1211
+ try:
1212
+ params = request._serialize()
1213
+ headers = request.headers
1214
+ body = self.call("DescribeSmartSubtitleTemplates", params, headers=headers)
1215
+ response = json.loads(body)
1216
+ model = models.DescribeSmartSubtitleTemplatesResponse()
1217
+ model._deserialize(response["Response"])
1218
+ return model
1219
+ except Exception as e:
1220
+ if isinstance(e, TencentCloudSDKException):
1221
+ raise
1222
+ else:
1223
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1224
+
1225
+
1065
1226
  def DescribeSnapshotByTimeOffsetTemplates(self, request):
1066
1227
  """This API is used to query the list of time point screencapturing templates and supports paged queries by filters.
1067
1228
 
@@ -1515,6 +1676,29 @@ class MpsClient(AbstractClient):
1515
1676
  raise TencentCloudSDKException(type(e).__name__, str(e))
1516
1677
 
1517
1678
 
1679
+ def ModifyAsrHotwords(self, request):
1680
+ """This API is used to update a smart subtitle hotword lexicon.
1681
+
1682
+ :param request: Request instance for ModifyAsrHotwords.
1683
+ :type request: :class:`tencentcloud.mps.v20190612.models.ModifyAsrHotwordsRequest`
1684
+ :rtype: :class:`tencentcloud.mps.v20190612.models.ModifyAsrHotwordsResponse`
1685
+
1686
+ """
1687
+ try:
1688
+ params = request._serialize()
1689
+ headers = request.headers
1690
+ body = self.call("ModifyAsrHotwords", params, headers=headers)
1691
+ response = json.loads(body)
1692
+ model = models.ModifyAsrHotwordsResponse()
1693
+ model._deserialize(response["Response"])
1694
+ return model
1695
+ except Exception as e:
1696
+ if isinstance(e, TencentCloudSDKException):
1697
+ raise
1698
+ else:
1699
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1700
+
1701
+
1518
1702
  def ModifyContentReviewTemplate(self, request):
1519
1703
  """This API is used to modify a custom content moderation template.
1520
1704
 
@@ -1676,6 +1860,29 @@ class MpsClient(AbstractClient):
1676
1860
  raise TencentCloudSDKException(type(e).__name__, str(e))
1677
1861
 
1678
1862
 
1863
+ def ModifySmartSubtitleTemplate(self, request):
1864
+ """This API is used to modify a user-defined smart subtitle template.
1865
+
1866
+ :param request: Request instance for ModifySmartSubtitleTemplate.
1867
+ :type request: :class:`tencentcloud.mps.v20190612.models.ModifySmartSubtitleTemplateRequest`
1868
+ :rtype: :class:`tencentcloud.mps.v20190612.models.ModifySmartSubtitleTemplateResponse`
1869
+
1870
+ """
1871
+ try:
1872
+ params = request._serialize()
1873
+ headers = request.headers
1874
+ body = self.call("ModifySmartSubtitleTemplate", params, headers=headers)
1875
+ response = json.loads(body)
1876
+ model = models.ModifySmartSubtitleTemplateResponse()
1877
+ model._deserialize(response["Response"])
1878
+ return model
1879
+ except Exception as e:
1880
+ if isinstance(e, TencentCloudSDKException):
1881
+ raise
1882
+ else:
1883
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1884
+
1885
+
1679
1886
  def ModifySnapshotByTimeOffsetTemplate(self, request):
1680
1887
  """This API is used to modify a custom time point screencapturing template.
1681
1888
 
@@ -1873,19 +2080,20 @@ class MpsClient(AbstractClient):
1873
2080
 
1874
2081
 
1875
2082
  def ProcessMedia(self, request):
1876
- """This API is used to initiate a processing task for video URLs or media files in Cloud Object Storage (COS). Features include:
1877
- 1. Video transcoding (standard transcoding, TSC transcoding, and audio/video enhancement);
1878
- 2. Animated image generating;
1879
- 3. Screenshot taking at specified time points;
1880
- 4. Sampled screenshot taking;
1881
- 5. Sprite screenshot taking;
1882
- 6. Transcoding to adaptive bitrate streaming;
1883
- 7. Intelligent auditing (porn detection and sensitive information detection);
1884
- 8. Intelligent analysis (tagging, classification, thumbnail generating, frame-by-frame tagging, video splitting, highlights generating, opening and closing segments recognition, and game timestamping);
1885
- 9. Intelligent identification (face, full text, text keyword, full speech, speech keyword, speech translation, and object recognition);
1886
-
2083
+ """This API is used to initiate a processing task for video URLs or media files in COS. Features include:
2084
+ 1. Video transcoding (standard transcoding, TSC transcoding, and audio/video enhancement).
2085
+ 2. Video-to-GIF conversion.
2086
+ 3. Time point screenshot of videos.
2087
+ 4. Sampled screenshot of videos.
2088
+ 5. Image sprite of videos.
2089
+ 6. Adaptive bitrate stream conversion for videos.
2090
+ 7. Intelligent content moderation (pornography detection and sensitive information detection).
2091
+ 8. Intelligent content analysis (tag, category, cover, frame tag, video splitting, highlight, opening and ending clips, and game tracking).
2092
+ 9. Intelligent content recognition (human face, full text, text keyword, full speech, speech keyword, speech translation, and object).
1887
2093
  10. Media quality inspection (live stream format diagnosis, audio and video content detection (jitter, blur, low light, overexposure, black and white edges, black and white screens, screen glitch, noise, mosaic, QR code, and more), and no-reference scoring).
1888
2094
 
2095
+ 11. Smart subtitle (full speech, speech hotword, and speech translation).
2096
+
1889
2097
  :param request: Request instance for ProcessMedia.
1890
2098
  :type request: :class:`tencentcloud.mps.v20190612.models.ProcessMediaRequest`
1891
2099
  :rtype: :class:`tencentcloud.mps.v20190612.models.ProcessMediaResponse`
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-intl-en
3
- Version: 3.0.1166
3
+ Version: 3.0.1167
4
4
  Summary: Tencent Cloud SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python-intl-en
6
6
  Author: Tencent Cloud
@@ -1,4 +1,4 @@
1
- tencentcloud/__init__.py,sha256=vYbuwJHgf4Eax02PqmBZo8jjJND67tTJkSzwRSfc79M,630
1
+ tencentcloud/__init__.py,sha256=GFN-wkhsP7CtJHYi_TlXNTRh7IugfgkGzwjqhL6YnpQ,630
2
2
  tencentcloud/advisor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  tencentcloud/advisor/v20200721/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  tencentcloud/advisor/v20200721/advisor_client.py,sha256=FuBG5ZJpmnVpDyVC84G_cjEWSa-mm6oyBvOIDe5SP-g,2924
@@ -333,8 +333,8 @@ tencentcloud/ims/v20201229/models.py,sha256=Sfna_x1BytKq04dX2wwI9wbXDh9N4JPyS6WD
333
333
  tencentcloud/intlpartnersmgt/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
334
334
  tencentcloud/intlpartnersmgt/v20220928/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
335
335
  tencentcloud/intlpartnersmgt/v20220928/errorcodes.py,sha256=0IpVk8leCqNIkaXxdAO2bVkUA7eAdhy8Rl5l1g65CEA,7464
336
- tencentcloud/intlpartnersmgt/v20220928/intlpartnersmgt_client.py,sha256=t4AKLe9Mcgn2_CBglgQZxB2LJsxv9bOxQ4BDf6fMUbY,37719
337
- tencentcloud/intlpartnersmgt/v20220928/models.py,sha256=r5Snd4h18sHi5Wf6LIhcy_lgTfVl_3wn_56og-H2o5I,210722
336
+ tencentcloud/intlpartnersmgt/v20220928/intlpartnersmgt_client.py,sha256=twikt5ZTi4ZxIxanplRQvhpZH0GeBkAXvuc6UsYqJ1A,38859
337
+ tencentcloud/intlpartnersmgt/v20220928/models.py,sha256=AIpV1LIt0JdUlyHHjD73_NaTtoz74bJq50dLEjGwY7U,217412
338
338
  tencentcloud/iotcloud/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
339
339
  tencentcloud/iotcloud/v20210408/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
340
340
  tencentcloud/iotcloud/v20210408/errorcodes.py,sha256=ot2acVUWnZ1XbJLkM4K-jT_Gw5TQD53TtZwnfFzJJ9Y,5887
@@ -397,9 +397,9 @@ tencentcloud/monitor/v20180724/models.py,sha256=LVV3fg3xcoZdc-U7mPZQbBs_4h_wwlNh
397
397
  tencentcloud/monitor/v20180724/monitor_client.py,sha256=trcnM-vkXAG1BuLAcjoqaAox35coKdJaHW3BzC6DW14,142926
398
398
  tencentcloud/mps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
399
399
  tencentcloud/mps/v20190612/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
400
- tencentcloud/mps/v20190612/errorcodes.py,sha256=kKjLv4IwopD1t0xpQG1vz0XLafjQYO53GYZ0iHVYFro,13387
401
- tencentcloud/mps/v20190612/models.py,sha256=bzoN6wBARWiy19UpWyERtmvJbc7bJQX_R6Dv7IbnQjQ,1751233
402
- tencentcloud/mps/v20190612/mps_client.py,sha256=TsjZULLExEqMNbmzIXE2tRtQKTRF4dDM1OefBojR-qE,84565
400
+ tencentcloud/mps/v20190612/errorcodes.py,sha256=0WGDmaaECcbep9x_pR7sjx0Qasdop6W4CSNp7CBVw9Q,14959
401
+ tencentcloud/mps/v20190612/models.py,sha256=hJN0Jv9fpzrVFWNIHNLGmJ9Yf_A0o0d97s7pwaBNBIc,1890497
402
+ tencentcloud/mps/v20190612/mps_client.py,sha256=mg_9_Qt-Ys4SBVEdkyzt0xVH-rvfLEJNSTROvVWRQO0,93242
403
403
  tencentcloud/msp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
404
404
  tencentcloud/msp/v20180319/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
405
405
  tencentcloud/msp/v20180319/errorcodes.py,sha256=m7TqnT1KqSLNt0trBqZV5xL7aJtce_53v7OwSaOoOQI,806
@@ -639,7 +639,7 @@ tencentcloud/yunjing/v20180228/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
639
639
  tencentcloud/yunjing/v20180228/errorcodes.py,sha256=VEqwMbMBe7F2oAW6ZDu3vAivBr60lbo7FWduFqRTEVg,3195
640
640
  tencentcloud/yunjing/v20180228/models.py,sha256=0rnsJ4JkA5aCTV1cVwCuKnzooe6IhQ0NS3ij6tJ22uw,330670
641
641
  tencentcloud/yunjing/v20180228/yunjing_client.py,sha256=LY01pPiy1k_AXnHgG0FonGekRSFMY3t9pcYH8aE27oQ,67389
642
- tencentcloud_sdk_python_intl_en-3.0.1166.dist-info/METADATA,sha256=c8IVWMT5ONB64IQet-oWHAAephrn0fmP17fmvWIy48U,1628
643
- tencentcloud_sdk_python_intl_en-3.0.1166.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
644
- tencentcloud_sdk_python_intl_en-3.0.1166.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
645
- tencentcloud_sdk_python_intl_en-3.0.1166.dist-info/RECORD,,
642
+ tencentcloud_sdk_python_intl_en-3.0.1167.dist-info/METADATA,sha256=mZv4rgFJt6FWSr-RytTxolhNNq3Z1gIsoGU8mQTiLRs,1628
643
+ tencentcloud_sdk_python_intl_en-3.0.1167.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
644
+ tencentcloud_sdk_python_intl_en-3.0.1167.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
645
+ tencentcloud_sdk_python_intl_en-3.0.1167.dist-info/RECORD,,