tencentcloud-sdk-python-trtc 3.1.204__tar.gz → 3.1.206__tar.gz

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 (17) hide show
  1. {tencentcloud_sdk_python_trtc-3.1.204 → tencentcloud_sdk_python_trtc-3.1.206}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_trtc-3.1.204 → tencentcloud_sdk_python_trtc-3.1.206}/setup.py +1 -1
  3. {tencentcloud_sdk_python_trtc-3.1.204 → tencentcloud_sdk_python_trtc-3.1.206}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_trtc-3.1.204 → tencentcloud_sdk_python_trtc-3.1.206}/tencentcloud/trtc/v20190722/models.py +224 -0
  5. {tencentcloud_sdk_python_trtc-3.1.204 → tencentcloud_sdk_python_trtc-3.1.206}/tencentcloud/trtc/v20190722/trtc_client.py +23 -0
  6. {tencentcloud_sdk_python_trtc-3.1.204 → tencentcloud_sdk_python_trtc-3.1.206}/tencentcloud/trtc/v20190722/trtc_client_async.py +18 -0
  7. {tencentcloud_sdk_python_trtc-3.1.204 → tencentcloud_sdk_python_trtc-3.1.206}/tencentcloud_sdk_python_trtc.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_trtc-3.1.206/tencentcloud_sdk_python_trtc.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_trtc-3.1.204/tencentcloud_sdk_python_trtc.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_trtc-3.1.204 → tencentcloud_sdk_python_trtc-3.1.206}/README.rst +0 -0
  11. {tencentcloud_sdk_python_trtc-3.1.204 → tencentcloud_sdk_python_trtc-3.1.206}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_trtc-3.1.204 → tencentcloud_sdk_python_trtc-3.1.206}/tencentcloud/trtc/__init__.py +0 -0
  13. {tencentcloud_sdk_python_trtc-3.1.204 → tencentcloud_sdk_python_trtc-3.1.206}/tencentcloud/trtc/v20190722/__init__.py +0 -0
  14. {tencentcloud_sdk_python_trtc-3.1.204 → tencentcloud_sdk_python_trtc-3.1.206}/tencentcloud/trtc/v20190722/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_trtc-3.1.204 → tencentcloud_sdk_python_trtc-3.1.206}/tencentcloud_sdk_python_trtc.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_trtc-3.1.204 → tencentcloud_sdk_python_trtc-3.1.206}/tencentcloud_sdk_python_trtc.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_trtc-3.1.204 → tencentcloud_sdk_python_trtc-3.1.206}/tencentcloud_sdk_python_trtc.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-trtc
3
- Version: 3.1.204
3
+ Version: 3.1.206
4
4
  Summary: Tencent Cloud Trtc 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.204
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.206
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-trtc',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.204,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.206,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Trtc SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.204'
17
+ __version__ = '3.1.206'
@@ -15075,6 +15075,169 @@ class ModifyCloudSliceTaskResponse(AbstractModel):
15075
15075
  self._RequestId = params.get("RequestId")
15076
15076
 
15077
15077
 
15078
+ class ModifyCloudTranscriptionRequest(AbstractModel):
15079
+ r"""ModifyCloudTranscription请求参数结构体
15080
+
15081
+ """
15082
+
15083
+ def __init__(self):
15084
+ r"""
15085
+ :param _SdkAppId: <p>TRTC的SdkAppId,和转录的房间所对应的SdkAppId相同。</p>
15086
+ :type SdkAppId: int
15087
+ :param _TaskId: <p>转录任务的唯一Id,在启动转录成功后会返回。</p>
15088
+ :type TaskId: str
15089
+ :param _SequenceNumber: <p>客户保证同一个任务,每次更新请求中的SequenceNumber递增,防止请求乱序。</p>
15090
+ :type SequenceNumber: int
15091
+ :param _SubscribeUserInfo: <p>转录订阅用户信息,包括白名单和黑名单。</p>
15092
+ :type SubscribeUserInfo: :class:`tencentcloud.trtc.v20190722.models.TranscriptionSubscribeParam`
15093
+ :param _TranslationParam: <p>转录服务翻译使用的参数。</p>
15094
+ :type TranslationParam: :class:`tencentcloud.trtc.v20190722.models.TranslationParam`
15095
+ :param _TTSParam: <p>转录服务TTS使用的参数。</p>
15096
+ :type TTSParam: list of TTSParam
15097
+ """
15098
+ self._SdkAppId = None
15099
+ self._TaskId = None
15100
+ self._SequenceNumber = None
15101
+ self._SubscribeUserInfo = None
15102
+ self._TranslationParam = None
15103
+ self._TTSParam = None
15104
+
15105
+ @property
15106
+ def SdkAppId(self):
15107
+ r"""<p>TRTC的SdkAppId,和转录的房间所对应的SdkAppId相同。</p>
15108
+ :rtype: int
15109
+ """
15110
+ return self._SdkAppId
15111
+
15112
+ @SdkAppId.setter
15113
+ def SdkAppId(self, SdkAppId):
15114
+ self._SdkAppId = SdkAppId
15115
+
15116
+ @property
15117
+ def TaskId(self):
15118
+ r"""<p>转录任务的唯一Id,在启动转录成功后会返回。</p>
15119
+ :rtype: str
15120
+ """
15121
+ return self._TaskId
15122
+
15123
+ @TaskId.setter
15124
+ def TaskId(self, TaskId):
15125
+ self._TaskId = TaskId
15126
+
15127
+ @property
15128
+ def SequenceNumber(self):
15129
+ r"""<p>客户保证同一个任务,每次更新请求中的SequenceNumber递增,防止请求乱序。</p>
15130
+ :rtype: int
15131
+ """
15132
+ return self._SequenceNumber
15133
+
15134
+ @SequenceNumber.setter
15135
+ def SequenceNumber(self, SequenceNumber):
15136
+ self._SequenceNumber = SequenceNumber
15137
+
15138
+ @property
15139
+ def SubscribeUserInfo(self):
15140
+ r"""<p>转录订阅用户信息,包括白名单和黑名单。</p>
15141
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.TranscriptionSubscribeParam`
15142
+ """
15143
+ return self._SubscribeUserInfo
15144
+
15145
+ @SubscribeUserInfo.setter
15146
+ def SubscribeUserInfo(self, SubscribeUserInfo):
15147
+ self._SubscribeUserInfo = SubscribeUserInfo
15148
+
15149
+ @property
15150
+ def TranslationParam(self):
15151
+ r"""<p>转录服务翻译使用的参数。</p>
15152
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.TranslationParam`
15153
+ """
15154
+ return self._TranslationParam
15155
+
15156
+ @TranslationParam.setter
15157
+ def TranslationParam(self, TranslationParam):
15158
+ self._TranslationParam = TranslationParam
15159
+
15160
+ @property
15161
+ def TTSParam(self):
15162
+ r"""<p>转录服务TTS使用的参数。</p>
15163
+ :rtype: list of TTSParam
15164
+ """
15165
+ return self._TTSParam
15166
+
15167
+ @TTSParam.setter
15168
+ def TTSParam(self, TTSParam):
15169
+ self._TTSParam = TTSParam
15170
+
15171
+
15172
+ def _deserialize(self, params):
15173
+ self._SdkAppId = params.get("SdkAppId")
15174
+ self._TaskId = params.get("TaskId")
15175
+ self._SequenceNumber = params.get("SequenceNumber")
15176
+ if params.get("SubscribeUserInfo") is not None:
15177
+ self._SubscribeUserInfo = TranscriptionSubscribeParam()
15178
+ self._SubscribeUserInfo._deserialize(params.get("SubscribeUserInfo"))
15179
+ if params.get("TranslationParam") is not None:
15180
+ self._TranslationParam = TranslationParam()
15181
+ self._TranslationParam._deserialize(params.get("TranslationParam"))
15182
+ if params.get("TTSParam") is not None:
15183
+ self._TTSParam = []
15184
+ for item in params.get("TTSParam"):
15185
+ obj = TTSParam()
15186
+ obj._deserialize(item)
15187
+ self._TTSParam.append(obj)
15188
+ memeber_set = set(params.keys())
15189
+ for name, value in vars(self).items():
15190
+ property_name = name[1:]
15191
+ if property_name in memeber_set:
15192
+ memeber_set.remove(property_name)
15193
+ if len(memeber_set) > 0:
15194
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
15195
+
15196
+
15197
+
15198
+ class ModifyCloudTranscriptionResponse(AbstractModel):
15199
+ r"""ModifyCloudTranscription返回参数结构体
15200
+
15201
+ """
15202
+
15203
+ def __init__(self):
15204
+ r"""
15205
+ :param _TaskId: <p>转录服务分配的任务 ID。任务 ID 是对一次转录生命周期过程的唯一标识,结束转录时会失去意义。</p>
15206
+ :type TaskId: str
15207
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
15208
+ :type RequestId: str
15209
+ """
15210
+ self._TaskId = None
15211
+ self._RequestId = None
15212
+
15213
+ @property
15214
+ def TaskId(self):
15215
+ r"""<p>转录服务分配的任务 ID。任务 ID 是对一次转录生命周期过程的唯一标识,结束转录时会失去意义。</p>
15216
+ :rtype: str
15217
+ """
15218
+ return self._TaskId
15219
+
15220
+ @TaskId.setter
15221
+ def TaskId(self, TaskId):
15222
+ self._TaskId = TaskId
15223
+
15224
+ @property
15225
+ def RequestId(self):
15226
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
15227
+ :rtype: str
15228
+ """
15229
+ return self._RequestId
15230
+
15231
+ @RequestId.setter
15232
+ def RequestId(self, RequestId):
15233
+ self._RequestId = RequestId
15234
+
15235
+
15236
+ def _deserialize(self, params):
15237
+ self._TaskId = params.get("TaskId")
15238
+ self._RequestId = params.get("RequestId")
15239
+
15240
+
15078
15241
  class ModifyPictureRequest(AbstractModel):
15079
15242
  r"""ModifyPicture请求参数结构体
15080
15243
 
@@ -22293,6 +22456,67 @@ https://cloud.tencent.com/document/product/269/31999#app-.E7.AE.A1.E7.90.86.E5.9
22293
22456
 
22294
22457
 
22295
22458
 
22459
+ class TranscriptionSubscribeParam(AbstractModel):
22460
+ r"""转录服务订阅用户参数
22461
+
22462
+ """
22463
+
22464
+ def __init__(self):
22465
+ r"""
22466
+ :param _SubscribeList: <p>转录用户白名单,为空或不填表示转录所有主播音频,填具体值表示转录指定主播音频。 使用黑白名单时,同一个用户同时在黑白名单时,以黑名单为主。</p>
22467
+ :type SubscribeList: list of TranscriptionUserInfoParams
22468
+ :param _UnSubscribeList: <p>转录用户黑名单,为空或不填表示无黑名单,填具体值表示不转录指定主播音频。 同一个用户同时在黑白名单时,以黑名单为主。</p>
22469
+ :type UnSubscribeList: list of TranscriptionUserInfoParams
22470
+ """
22471
+ self._SubscribeList = None
22472
+ self._UnSubscribeList = None
22473
+
22474
+ @property
22475
+ def SubscribeList(self):
22476
+ r"""<p>转录用户白名单,为空或不填表示转录所有主播音频,填具体值表示转录指定主播音频。 使用黑白名单时,同一个用户同时在黑白名单时,以黑名单为主。</p>
22477
+ :rtype: list of TranscriptionUserInfoParams
22478
+ """
22479
+ return self._SubscribeList
22480
+
22481
+ @SubscribeList.setter
22482
+ def SubscribeList(self, SubscribeList):
22483
+ self._SubscribeList = SubscribeList
22484
+
22485
+ @property
22486
+ def UnSubscribeList(self):
22487
+ r"""<p>转录用户黑名单,为空或不填表示无黑名单,填具体值表示不转录指定主播音频。 同一个用户同时在黑白名单时,以黑名单为主。</p>
22488
+ :rtype: list of TranscriptionUserInfoParams
22489
+ """
22490
+ return self._UnSubscribeList
22491
+
22492
+ @UnSubscribeList.setter
22493
+ def UnSubscribeList(self, UnSubscribeList):
22494
+ self._UnSubscribeList = UnSubscribeList
22495
+
22496
+
22497
+ def _deserialize(self, params):
22498
+ if params.get("SubscribeList") is not None:
22499
+ self._SubscribeList = []
22500
+ for item in params.get("SubscribeList"):
22501
+ obj = TranscriptionUserInfoParams()
22502
+ obj._deserialize(item)
22503
+ self._SubscribeList.append(obj)
22504
+ if params.get("UnSubscribeList") is not None:
22505
+ self._UnSubscribeList = []
22506
+ for item in params.get("UnSubscribeList"):
22507
+ obj = TranscriptionUserInfoParams()
22508
+ obj._deserialize(item)
22509
+ self._UnSubscribeList.append(obj)
22510
+ memeber_set = set(params.keys())
22511
+ for name, value in vars(self).items():
22512
+ property_name = name[1:]
22513
+ if property_name in memeber_set:
22514
+ memeber_set.remove(property_name)
22515
+ if len(memeber_set) > 0:
22516
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
22517
+
22518
+
22519
+
22296
22520
  class TranscriptionUserInfoParams(AbstractModel):
22297
22521
  r"""转录用户信息
22298
22522
 
@@ -1654,6 +1654,29 @@ class TrtcClient(AbstractClient):
1654
1654
  raise TencentCloudSDKException(type(e).__name__, str(e))
1655
1655
 
1656
1656
 
1657
+ def ModifyCloudTranscription(self, request):
1658
+ r"""成功开启转录后,可以使用此接口来更新转录任务。仅在转录任务进行时有效,转录退出后更新将会返回错误。
1659
+
1660
+ :param request: Request instance for ModifyCloudTranscription.
1661
+ :type request: :class:`tencentcloud.trtc.v20190722.models.ModifyCloudTranscriptionRequest`
1662
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.ModifyCloudTranscriptionResponse`
1663
+
1664
+ """
1665
+ try:
1666
+ params = request._serialize()
1667
+ headers = request.headers
1668
+ body = self.call("ModifyCloudTranscription", params, headers=headers)
1669
+ response = json.loads(body)
1670
+ model = models.ModifyCloudTranscriptionResponse()
1671
+ model._deserialize(response["Response"])
1672
+ return model
1673
+ except Exception as e:
1674
+ if isinstance(e, TencentCloudSDKException):
1675
+ raise
1676
+ else:
1677
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1678
+
1679
+
1657
1680
  def ModifyPicture(self, request):
1658
1681
  r"""如果您需要在 [云端混流转码](https://cloud.tencent.com/document/product/647/16827) 时频繁修改自定义背景图或水印素材,可通过此接口修改已上传的图片。无需频繁修改图片素材的场景,建议直接在 [控制台 > 应用管理 > 素材管理](https://cloud.tencent.com/document/product/647/50769) 中操作。
1659
1682
 
@@ -1328,6 +1328,24 @@ class TrtcClient(AbstractClient):
1328
1328
 
1329
1329
  return await self.call_and_deserialize(**kwargs)
1330
1330
 
1331
+ async def ModifyCloudTranscription(
1332
+ self,
1333
+ request: models.ModifyCloudTranscriptionRequest,
1334
+ opts: Dict = None,
1335
+ ) -> models.ModifyCloudTranscriptionResponse:
1336
+ """
1337
+ 成功开启转录后,可以使用此接口来更新转录任务。仅在转录任务进行时有效,转录退出后更新将会返回错误。
1338
+ """
1339
+
1340
+ kwargs = {}
1341
+ kwargs["action"] = "ModifyCloudTranscription"
1342
+ kwargs["params"] = request._serialize()
1343
+ kwargs["resp_cls"] = models.ModifyCloudTranscriptionResponse
1344
+ kwargs["headers"] = request.headers
1345
+ kwargs["opts"] = opts or {}
1346
+
1347
+ return await self.call_and_deserialize(**kwargs)
1348
+
1331
1349
  async def ModifyPicture(
1332
1350
  self,
1333
1351
  request: models.ModifyPictureRequest,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-trtc
3
- Version: 3.1.204
3
+ Version: 3.1.206
4
4
  Summary: Tencent Cloud Trtc 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.204
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.206
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.206
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.204