tencentcloud-sdk-python-trtc 3.0.1265__tar.gz → 3.0.1275__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.

Potentially problematic release.


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

Files changed (16) hide show
  1. {tencentcloud-sdk-python-trtc-3.0.1265 → tencentcloud-sdk-python-trtc-3.0.1275}/PKG-INFO +3 -3
  2. {tencentcloud-sdk-python-trtc-3.0.1265 → tencentcloud-sdk-python-trtc-3.0.1275}/setup.cfg +0 -1
  3. {tencentcloud-sdk-python-trtc-3.0.1265 → tencentcloud-sdk-python-trtc-3.0.1275}/setup.py +1 -1
  4. {tencentcloud-sdk-python-trtc-3.0.1265 → tencentcloud-sdk-python-trtc-3.0.1275}/tencentcloud/__init__.py +1 -1
  5. {tencentcloud-sdk-python-trtc-3.0.1265 → tencentcloud-sdk-python-trtc-3.0.1275}/tencentcloud/trtc/v20190722/errorcodes.py +15 -0
  6. {tencentcloud-sdk-python-trtc-3.0.1265 → tencentcloud-sdk-python-trtc-3.0.1275}/tencentcloud/trtc/v20190722/models.py +393 -8
  7. {tencentcloud-sdk-python-trtc-3.0.1265 → tencentcloud-sdk-python-trtc-3.0.1275}/tencentcloud/trtc/v20190722/trtc_client.py +47 -0
  8. {tencentcloud-sdk-python-trtc-3.0.1265 → tencentcloud-sdk-python-trtc-3.0.1275}/tencentcloud_sdk_python_trtc.egg-info/PKG-INFO +3 -3
  9. tencentcloud-sdk-python-trtc-3.0.1275/tencentcloud_sdk_python_trtc.egg-info/requires.txt +1 -0
  10. tencentcloud-sdk-python-trtc-3.0.1265/tencentcloud_sdk_python_trtc.egg-info/requires.txt +0 -1
  11. {tencentcloud-sdk-python-trtc-3.0.1265 → tencentcloud-sdk-python-trtc-3.0.1275}/README.rst +0 -0
  12. {tencentcloud-sdk-python-trtc-3.0.1265 → tencentcloud-sdk-python-trtc-3.0.1275}/tencentcloud/trtc/__init__.py +0 -0
  13. {tencentcloud-sdk-python-trtc-3.0.1265 → tencentcloud-sdk-python-trtc-3.0.1275}/tencentcloud/trtc/v20190722/__init__.py +0 -0
  14. {tencentcloud-sdk-python-trtc-3.0.1265 → tencentcloud-sdk-python-trtc-3.0.1275}/tencentcloud_sdk_python_trtc.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-trtc-3.0.1265 → tencentcloud-sdk-python-trtc-3.0.1275}/tencentcloud_sdk_python_trtc.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-trtc-3.0.1265 → tencentcloud-sdk-python-trtc-3.0.1275}/tencentcloud_sdk_python_trtc.egg-info/top_level.txt +0 -0
@@ -1,10 +1,10 @@
1
- Metadata-Version: 1.1
1
+ Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-trtc
3
- Version: 3.0.1265
3
+ Version: 3.0.1275
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
7
- Author-email: tencentcloudapi@tencent.com
7
+ Maintainer-email: tencentcloudapi@tencent.com
8
8
  License: Apache License 2.0
9
9
  Description: ============================
10
10
  Tencent Cloud SDK for Python
@@ -4,5 +4,4 @@ universal = 1
4
4
  [egg_info]
5
5
  tag_build =
6
6
  tag_date = 0
7
- tag_svn_revision = 0
8
7
 
@@ -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.0.1265"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1275"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Trtc SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1265'
17
+ __version__ = '3.0.1275'
@@ -32,6 +32,9 @@ FAILEDOPERATION = 'FailedOperation'
32
32
  # 云端录制方法不支持。
33
33
  FAILEDOPERATION_CRUNSUPPORTMETHOD = 'FailedOperation.CRUnsupportMethod'
34
34
 
35
+ # 云端切片方法不支持。
36
+ FAILEDOPERATION_CSUNSUPPORTMETHOD = 'FailedOperation.CSUnsupportMethod'
37
+
35
38
  # 房间中没有设置混流模板。
36
39
  FAILEDOPERATION_MIXSESSIONNOTEXIST = 'FailedOperation.MixSessionNotExist'
37
40
 
@@ -77,6 +80,9 @@ INTERNALERROR = 'InternalError'
77
80
  # 云端录制内部服务错误。
78
81
  INTERNALERROR_CRINTERNALERROR = 'InternalError.CRInternalError'
79
82
 
83
+ # 云端切片内部服务错误
84
+ INTERNALERROR_CSINTERNALERROR = 'InternalError.CSInternalError'
85
+
80
86
  # 数据库查询异常。
81
87
  INTERNALERROR_DBERROR = 'InternalError.DBError'
82
88
 
@@ -302,6 +308,15 @@ MISSINGPARAMETER_SDKAPPID = 'MissingParameter.SdkAppId'
302
308
  # 缺少SecretKey参数。
303
309
  MISSINGPARAMETER_SECRETKEY = 'MissingParameter.SecretKey'
304
310
 
311
+ # 缺少SliceParams参数。
312
+ MISSINGPARAMETER_SLICEPARAMS = 'MissingParameter.SliceParams'
313
+
314
+ # 缺少SliceStorageParams参数。
315
+ MISSINGPARAMETER_SLICESTORAGEPARAMS = 'MissingParameter.SliceStorageParams'
316
+
317
+ # 缺少SliceType参数。
318
+ MISSINGPARAMETER_SLICETYPE = 'MissingParameter.SliceType'
319
+
305
320
  # 缺少startTS_s参数。
306
321
  MISSINGPARAMETER_STARTTS = 'MissingParameter.StartTs'
307
322
 
@@ -867,6 +867,130 @@ class ControlAIConversationResponse(AbstractModel):
867
867
  self._RequestId = params.get("RequestId")
868
868
 
869
869
 
870
+ class CreateBasicModerationRequest(AbstractModel):
871
+ """CreateBasicModeration请求参数结构体
872
+
873
+ """
874
+
875
+ def __init__(self):
876
+ r"""
877
+ :param _SdkAppId: TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和TRTC的房间所对应的SdkAppId相同。
878
+ :type SdkAppId: int
879
+ :param _RoomId: TRTC的[RoomId](https://cloud.tencent.com/document/product/647/46351#roomid),为TRTC房间所对应的RoomId。
880
+ :type RoomId: str
881
+ :param _UserId: 目标审核用户id
882
+ :type UserId: str
883
+ :param _RoomIdType: TRTC房间号的类型。【*注意】必须和TRTC的房间所对应的RoomId类型相同:0: 字符串类型的RoomId1: 32位整型的RoomId(默认)
884
+ :type RoomIdType: int
885
+ """
886
+ self._SdkAppId = None
887
+ self._RoomId = None
888
+ self._UserId = None
889
+ self._RoomIdType = None
890
+
891
+ @property
892
+ def SdkAppId(self):
893
+ """TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和TRTC的房间所对应的SdkAppId相同。
894
+ :rtype: int
895
+ """
896
+ return self._SdkAppId
897
+
898
+ @SdkAppId.setter
899
+ def SdkAppId(self, SdkAppId):
900
+ self._SdkAppId = SdkAppId
901
+
902
+ @property
903
+ def RoomId(self):
904
+ """TRTC的[RoomId](https://cloud.tencent.com/document/product/647/46351#roomid),为TRTC房间所对应的RoomId。
905
+ :rtype: str
906
+ """
907
+ return self._RoomId
908
+
909
+ @RoomId.setter
910
+ def RoomId(self, RoomId):
911
+ self._RoomId = RoomId
912
+
913
+ @property
914
+ def UserId(self):
915
+ """目标审核用户id
916
+ :rtype: str
917
+ """
918
+ return self._UserId
919
+
920
+ @UserId.setter
921
+ def UserId(self, UserId):
922
+ self._UserId = UserId
923
+
924
+ @property
925
+ def RoomIdType(self):
926
+ """TRTC房间号的类型。【*注意】必须和TRTC的房间所对应的RoomId类型相同:0: 字符串类型的RoomId1: 32位整型的RoomId(默认)
927
+ :rtype: int
928
+ """
929
+ return self._RoomIdType
930
+
931
+ @RoomIdType.setter
932
+ def RoomIdType(self, RoomIdType):
933
+ self._RoomIdType = RoomIdType
934
+
935
+
936
+ def _deserialize(self, params):
937
+ self._SdkAppId = params.get("SdkAppId")
938
+ self._RoomId = params.get("RoomId")
939
+ self._UserId = params.get("UserId")
940
+ self._RoomIdType = params.get("RoomIdType")
941
+ memeber_set = set(params.keys())
942
+ for name, value in vars(self).items():
943
+ property_name = name[1:]
944
+ if property_name in memeber_set:
945
+ memeber_set.remove(property_name)
946
+ if len(memeber_set) > 0:
947
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
948
+
949
+
950
+
951
+ class CreateBasicModerationResponse(AbstractModel):
952
+ """CreateBasicModeration返回参数结构体
953
+
954
+ """
955
+
956
+ def __init__(self):
957
+ r"""
958
+ :param _TaskId: 审核服务分配的任务ID。任务ID是对一次审核任务生命周期过程的唯一标识,结束任务时会失去意义。任务ID需要业务保存下来,作为下次针对这个任务操作的参数
959
+ :type TaskId: str
960
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
961
+ :type RequestId: str
962
+ """
963
+ self._TaskId = None
964
+ self._RequestId = None
965
+
966
+ @property
967
+ def TaskId(self):
968
+ """审核服务分配的任务ID。任务ID是对一次审核任务生命周期过程的唯一标识,结束任务时会失去意义。任务ID需要业务保存下来,作为下次针对这个任务操作的参数
969
+ :rtype: str
970
+ """
971
+ return self._TaskId
972
+
973
+ @TaskId.setter
974
+ def TaskId(self, TaskId):
975
+ self._TaskId = TaskId
976
+
977
+ @property
978
+ def RequestId(self):
979
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
980
+ :rtype: str
981
+ """
982
+ return self._RequestId
983
+
984
+ @RequestId.setter
985
+ def RequestId(self, RequestId):
986
+ self._RequestId = RequestId
987
+
988
+
989
+ def _deserialize(self, params):
990
+ self._TaskId = params.get("TaskId")
991
+ self._RequestId = params.get("RequestId")
992
+
993
+
870
994
  class CreateCloudRecordingRequest(AbstractModel):
871
995
  """CreateCloudRecording请求参数结构体
872
996
 
@@ -1285,6 +1409,100 @@ class CreatePictureResponse(AbstractModel):
1285
1409
  self._RequestId = params.get("RequestId")
1286
1410
 
1287
1411
 
1412
+ class DeleteBasicModerationRequest(AbstractModel):
1413
+ """DeleteBasicModeration请求参数结构体
1414
+
1415
+ """
1416
+
1417
+ def __init__(self):
1418
+ r"""
1419
+ :param _SdkAppId: TRTC的SDKAppId,和TRTC的房间所对应的SDKAppId相同。
1420
+ :type SdkAppId: int
1421
+ :param _TaskId: 审核任务的唯一Id,在启动审核任务成功后会返回。
1422
+ :type TaskId: str
1423
+ """
1424
+ self._SdkAppId = None
1425
+ self._TaskId = None
1426
+
1427
+ @property
1428
+ def SdkAppId(self):
1429
+ """TRTC的SDKAppId,和TRTC的房间所对应的SDKAppId相同。
1430
+ :rtype: int
1431
+ """
1432
+ return self._SdkAppId
1433
+
1434
+ @SdkAppId.setter
1435
+ def SdkAppId(self, SdkAppId):
1436
+ self._SdkAppId = SdkAppId
1437
+
1438
+ @property
1439
+ def TaskId(self):
1440
+ """审核任务的唯一Id,在启动审核任务成功后会返回。
1441
+ :rtype: str
1442
+ """
1443
+ return self._TaskId
1444
+
1445
+ @TaskId.setter
1446
+ def TaskId(self, TaskId):
1447
+ self._TaskId = TaskId
1448
+
1449
+
1450
+ def _deserialize(self, params):
1451
+ self._SdkAppId = params.get("SdkAppId")
1452
+ self._TaskId = params.get("TaskId")
1453
+ memeber_set = set(params.keys())
1454
+ for name, value in vars(self).items():
1455
+ property_name = name[1:]
1456
+ if property_name in memeber_set:
1457
+ memeber_set.remove(property_name)
1458
+ if len(memeber_set) > 0:
1459
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1460
+
1461
+
1462
+
1463
+ class DeleteBasicModerationResponse(AbstractModel):
1464
+ """DeleteBasicModeration返回参数结构体
1465
+
1466
+ """
1467
+
1468
+ def __init__(self):
1469
+ r"""
1470
+ :param _TaskId: 审核任务的唯一Id,在启动审核任务成功后会返回。
1471
+ :type TaskId: str
1472
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1473
+ :type RequestId: str
1474
+ """
1475
+ self._TaskId = None
1476
+ self._RequestId = None
1477
+
1478
+ @property
1479
+ def TaskId(self):
1480
+ """审核任务的唯一Id,在启动审核任务成功后会返回。
1481
+ :rtype: str
1482
+ """
1483
+ return self._TaskId
1484
+
1485
+ @TaskId.setter
1486
+ def TaskId(self, TaskId):
1487
+ self._TaskId = TaskId
1488
+
1489
+ @property
1490
+ def RequestId(self):
1491
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1492
+ :rtype: str
1493
+ """
1494
+ return self._RequestId
1495
+
1496
+ @RequestId.setter
1497
+ def RequestId(self, RequestId):
1498
+ self._RequestId = RequestId
1499
+
1500
+
1501
+ def _deserialize(self, params):
1502
+ self._TaskId = params.get("TaskId")
1503
+ self._RequestId = params.get("RequestId")
1504
+
1505
+
1288
1506
  class DeleteCloudRecordingRequest(AbstractModel):
1289
1507
  """DeleteCloudRecording请求参数结构体
1290
1508
 
@@ -2120,7 +2338,6 @@ InProgress:表示当前录制任务正在进行中。
2120
2338
  Exited:表示当前录制任务正在退出的过程中。
2121
2339
  :type Status: str
2122
2340
  :param _StorageFileList: 录制文件信息。
2123
- 注意:此字段可能返回 null,表示取不到有效值。
2124
2341
  :type StorageFileList: list of StorageFile
2125
2342
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2126
2343
  :type RequestId: str
@@ -2158,7 +2375,6 @@ Exited:表示当前录制任务正在退出的过程中。
2158
2375
  @property
2159
2376
  def StorageFileList(self):
2160
2377
  """录制文件信息。
2161
- 注意:此字段可能返回 null,表示取不到有效值。
2162
2378
  :rtype: list of StorageFile
2163
2379
  """
2164
2380
  return self._StorageFileList
@@ -5483,6 +5699,69 @@ class DismissRoomResponse(AbstractModel):
5483
5699
  self._RequestId = params.get("RequestId")
5484
5700
 
5485
5701
 
5702
+ class EmulateMobileParams(AbstractModel):
5703
+ """渲染移动模式参数,不渲染移动模式时,请勿设置此参数。
5704
+
5705
+ """
5706
+
5707
+ def __init__(self):
5708
+ r"""
5709
+ :param _MobileDeviceType: 移动设备类型,
5710
+ 0: 手机
5711
+ 1: 平板
5712
+ 注意:此字段可能返回 null,表示取不到有效值。
5713
+ :type MobileDeviceType: int
5714
+ :param _ScreenOrientation: 屏幕方向,
5715
+ 0: 竖屏,
5716
+ 1: 横屏
5717
+ 注意:此字段可能返回 null,表示取不到有效值。
5718
+ :type ScreenOrientation: int
5719
+ """
5720
+ self._MobileDeviceType = None
5721
+ self._ScreenOrientation = None
5722
+
5723
+ @property
5724
+ def MobileDeviceType(self):
5725
+ """移动设备类型,
5726
+ 0: 手机
5727
+ 1: 平板
5728
+ 注意:此字段可能返回 null,表示取不到有效值。
5729
+ :rtype: int
5730
+ """
5731
+ return self._MobileDeviceType
5732
+
5733
+ @MobileDeviceType.setter
5734
+ def MobileDeviceType(self, MobileDeviceType):
5735
+ self._MobileDeviceType = MobileDeviceType
5736
+
5737
+ @property
5738
+ def ScreenOrientation(self):
5739
+ """屏幕方向,
5740
+ 0: 竖屏,
5741
+ 1: 横屏
5742
+ 注意:此字段可能返回 null,表示取不到有效值。
5743
+ :rtype: int
5744
+ """
5745
+ return self._ScreenOrientation
5746
+
5747
+ @ScreenOrientation.setter
5748
+ def ScreenOrientation(self, ScreenOrientation):
5749
+ self._ScreenOrientation = ScreenOrientation
5750
+
5751
+
5752
+ def _deserialize(self, params):
5753
+ self._MobileDeviceType = params.get("MobileDeviceType")
5754
+ self._ScreenOrientation = params.get("ScreenOrientation")
5755
+ memeber_set = set(params.keys())
5756
+ for name, value in vars(self).items():
5757
+ property_name = name[1:]
5758
+ if property_name in memeber_set:
5759
+ memeber_set.remove(property_name)
5760
+ if len(memeber_set) > 0:
5761
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
5762
+
5763
+
5764
+
5486
5765
  class EncodeParams(AbstractModel):
5487
5766
  """MCU混流输出流编码参数
5488
5767
 
@@ -9458,7 +9737,28 @@ class RecognizeConfig(AbstractModel):
9458
9737
  :type AlternativeLanguage: list of str
9459
9738
  :param _Model: 目前已不支持
9460
9739
  :type Model: str
9461
- :param _TranslationLanguage: 目前已不支持
9740
+ :param _TranslationLanguage: 填写则翻译,目前支持的语言:
9741
+ 中文: zh
9742
+ 英语: en
9743
+ 越南语: vi
9744
+ 日语: ja
9745
+ 韩语: ko
9746
+ 印度尼西亚语: id
9747
+ 泰语: th
9748
+ 葡萄牙语: pt
9749
+ 土耳其语: tr
9750
+ 阿拉伯语: ar
9751
+ 西班牙语: es
9752
+ 印地语: hi
9753
+ 法语: fr
9754
+ 马来语: ms
9755
+ 菲律宾语: fil
9756
+ 德语: de
9757
+ 意大利语: it
9758
+ 俄语: ru
9759
+ 瑞典语: sv
9760
+ 挪威语: no
9761
+ 丹麦语: da
9462
9762
  :type TranslationLanguage: str
9463
9763
  """
9464
9764
  self._Language = None
@@ -9537,7 +9837,28 @@ class RecognizeConfig(AbstractModel):
9537
9837
  def TranslationLanguage(self):
9538
9838
  warnings.warn("parameter `TranslationLanguage` is deprecated", DeprecationWarning)
9539
9839
 
9540
- """目前已不支持
9840
+ """填写则翻译,目前支持的语言:
9841
+ 中文: zh
9842
+ 英语: en
9843
+ 越南语: vi
9844
+ 日语: ja
9845
+ 韩语: ko
9846
+ 印度尼西亚语: id
9847
+ 泰语: th
9848
+ 葡萄牙语: pt
9849
+ 土耳其语: tr
9850
+ 阿拉伯语: ar
9851
+ 西班牙语: es
9852
+ 印地语: hi
9853
+ 法语: fr
9854
+ 马来语: ms
9855
+ 菲律宾语: fil
9856
+ 德语: de
9857
+ 意大利语: it
9858
+ 俄语: ru
9859
+ 瑞典语: sv
9860
+ 挪威语: no
9861
+ 丹麦语: da
9541
9862
  :rtype: str
9542
9863
  """
9543
9864
  return self._TranslationLanguage
@@ -9575,7 +9896,7 @@ class RecordParams(AbstractModel):
9575
9896
  1:单流录制,分别录制房间的订阅UserId的音频和视频,将录制文件上传至云存储;
9576
9897
  2:合流录制,将房间内订阅UserId的音视频混录成一个音视频文件,将录制文件上传至云存储;
9577
9898
  :type RecordMode: int
9578
- :param _MaxIdleTime: 房间内持续没有用户(主播)上行推流的状态超过MaxIdleTime的时长,自动停止录制,单位:秒。默认值为 30 秒,该值需大于等于 5秒,且小于等于 86400秒(24小时)。
9899
+ :param _MaxIdleTime: 房间内持续没有主播的状态超过MaxIdleTime的时长,自动停止录制,单位:秒。默认值为 30 秒,该值需大于等于 5秒,且小于等于 86400秒(24小时)。
9579
9900
  :type MaxIdleTime: int
9580
9901
  :param _StreamType: 录制的媒体流类型:
9581
9902
  0:录制音频+视频流(默认);
@@ -9623,7 +9944,7 @@ Hls 格式录制此参数不生效。
9623
9944
 
9624
9945
  @property
9625
9946
  def MaxIdleTime(self):
9626
- """房间内持续没有用户(主播)上行推流的状态超过MaxIdleTime的时长,自动停止录制,单位:秒。默认值为 30 秒,该值需大于等于 5秒,且小于等于 86400秒(24小时)。
9947
+ """房间内持续没有主播的状态超过MaxIdleTime的时长,自动停止录制,单位:秒。默认值为 30 秒,该值需大于等于 5秒,且小于等于 86400秒(24小时)。
9627
9948
  :rtype: int
9628
9949
  """
9629
9950
  return self._MaxIdleTime
@@ -10211,11 +10532,15 @@ class STTConfig(AbstractModel):
10211
10532
  注:Language指定为"zh-dialect" # 中国方言 时,不支持模糊识别,该字段无效
10212
10533
 
10213
10534
  :type AlternativeLanguage: list of str
10535
+ :param _CustomParam: 自定义参数,联系后台使用
10536
+
10537
+ :type CustomParam: str
10214
10538
  :param _VadSilenceTime: 语音识别vad的时间,范围为240-2000,默认为1000,单位为ms。更小的值会让语音识别分句更快。
10215
10539
  :type VadSilenceTime: int
10216
10540
  """
10217
10541
  self._Language = None
10218
10542
  self._AlternativeLanguage = None
10543
+ self._CustomParam = None
10219
10544
  self._VadSilenceTime = None
10220
10545
 
10221
10546
  @property
@@ -10269,6 +10594,18 @@ class STTConfig(AbstractModel):
10269
10594
  def AlternativeLanguage(self, AlternativeLanguage):
10270
10595
  self._AlternativeLanguage = AlternativeLanguage
10271
10596
 
10597
+ @property
10598
+ def CustomParam(self):
10599
+ """自定义参数,联系后台使用
10600
+
10601
+ :rtype: str
10602
+ """
10603
+ return self._CustomParam
10604
+
10605
+ @CustomParam.setter
10606
+ def CustomParam(self, CustomParam):
10607
+ self._CustomParam = CustomParam
10608
+
10272
10609
  @property
10273
10610
  def VadSilenceTime(self):
10274
10611
  """语音识别vad的时间,范围为240-2000,默认为1000,单位为ms。更小的值会让语音识别分句更快。
@@ -10284,6 +10621,7 @@ class STTConfig(AbstractModel):
10284
10621
  def _deserialize(self, params):
10285
10622
  self._Language = params.get("Language")
10286
10623
  self._AlternativeLanguage = params.get("AlternativeLanguage")
10624
+ self._CustomParam = params.get("CustomParam")
10287
10625
  self._VadSilenceTime = params.get("VadSilenceTime")
10288
10626
  memeber_set = set(params.keys())
10289
10627
  for name, value in vars(self).items():
@@ -11843,6 +12181,8 @@ class StartStreamIngestRequest(AbstractModel):
11843
12181
  :type RepeatNum: int
11844
12182
  :param _MaxDuration: 循环播放最大时长,仅支持RepeatNum设置-1时生效,取值范围[1, 10080],单位分钟。
11845
12183
  :type MaxDuration: int
12184
+ :param _Volume: 音量,取值范围[0, 100],默认100,表示原音量。
12185
+ :type Volume: int
11846
12186
  """
11847
12187
  self._SdkAppId = None
11848
12188
  self._RoomId = None
@@ -11858,6 +12198,7 @@ class StartStreamIngestRequest(AbstractModel):
11858
12198
  self._AutoPush = None
11859
12199
  self._RepeatNum = None
11860
12200
  self._MaxDuration = None
12201
+ self._Volume = None
11861
12202
 
11862
12203
  @property
11863
12204
  def SdkAppId(self):
@@ -12031,6 +12372,17 @@ class StartStreamIngestRequest(AbstractModel):
12031
12372
  def MaxDuration(self, MaxDuration):
12032
12373
  self._MaxDuration = MaxDuration
12033
12374
 
12375
+ @property
12376
+ def Volume(self):
12377
+ """音量,取值范围[0, 100],默认100,表示原音量。
12378
+ :rtype: int
12379
+ """
12380
+ return self._Volume
12381
+
12382
+ @Volume.setter
12383
+ def Volume(self, Volume):
12384
+ self._Volume = Volume
12385
+
12034
12386
 
12035
12387
  def _deserialize(self, params):
12036
12388
  self._SdkAppId = params.get("SdkAppId")
@@ -12051,6 +12403,7 @@ class StartStreamIngestRequest(AbstractModel):
12051
12403
  self._AutoPush = params.get("AutoPush")
12052
12404
  self._RepeatNum = params.get("RepeatNum")
12053
12405
  self._MaxDuration = params.get("MaxDuration")
12406
+ self._Volume = params.get("Volume")
12054
12407
  memeber_set = set(params.keys())
12055
12408
  for name, value in vars(self).items():
12056
12409
  property_name = name[1:]
@@ -12130,6 +12483,8 @@ class StartWebRecordRequest(AbstractModel):
12130
12483
  :type PublishCdnParams: list of McuPublishCdnParam
12131
12484
  :param _ReadyTimeout: 录制页面资源加载的超时时间,单位:秒。默认值为 0 秒,该值需大于等于 0秒,且小于等于 60秒。录制页面未启用页面加载超时检测时,请勿设置此参数。
12132
12485
  :type ReadyTimeout: int
12486
+ :param _EmulateMobileParams: 渲染移动模式参数;不准备渲染移动模式页面时,请勿设置此参数。
12487
+ :type EmulateMobileParams: :class:`tencentcloud.trtc.v20190722.models.EmulateMobileParams`
12133
12488
  """
12134
12489
  self._RecordUrl = None
12135
12490
  self._MaxDurationLimit = None
@@ -12139,6 +12494,7 @@ class StartWebRecordRequest(AbstractModel):
12139
12494
  self._RecordId = None
12140
12495
  self._PublishCdnParams = None
12141
12496
  self._ReadyTimeout = None
12497
+ self._EmulateMobileParams = None
12142
12498
 
12143
12499
  @property
12144
12500
  def RecordUrl(self):
@@ -12231,6 +12587,17 @@ class StartWebRecordRequest(AbstractModel):
12231
12587
  def ReadyTimeout(self, ReadyTimeout):
12232
12588
  self._ReadyTimeout = ReadyTimeout
12233
12589
 
12590
+ @property
12591
+ def EmulateMobileParams(self):
12592
+ """渲染移动模式参数;不准备渲染移动模式页面时,请勿设置此参数。
12593
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.EmulateMobileParams`
12594
+ """
12595
+ return self._EmulateMobileParams
12596
+
12597
+ @EmulateMobileParams.setter
12598
+ def EmulateMobileParams(self, EmulateMobileParams):
12599
+ self._EmulateMobileParams = EmulateMobileParams
12600
+
12234
12601
 
12235
12602
  def _deserialize(self, params):
12236
12603
  self._RecordUrl = params.get("RecordUrl")
@@ -12250,6 +12617,9 @@ class StartWebRecordRequest(AbstractModel):
12250
12617
  obj._deserialize(item)
12251
12618
  self._PublishCdnParams.append(obj)
12252
12619
  self._ReadyTimeout = params.get("ReadyTimeout")
12620
+ if params.get("EmulateMobileParams") is not None:
12621
+ self._EmulateMobileParams = EmulateMobileParams()
12622
+ self._EmulateMobileParams._deserialize(params.get("EmulateMobileParams"))
12253
12623
  memeber_set = set(params.keys())
12254
12624
  for name, value in vars(self).items():
12255
12625
  property_name = name[1:]
@@ -14036,12 +14406,15 @@ class UpdateStreamIngestRequest(AbstractModel):
14036
14406
  :type SdkAppId: int
14037
14407
  :param _TaskId: 任务的唯一Id,在启动任务成功后会返回。
14038
14408
  :type TaskId: str
14039
- :param _StreamUrl: 源流URL【必填】。
14409
+ :param _StreamUrl: 源流URL
14040
14410
  :type StreamUrl: str
14411
+ :param _Volume: 音量,取值范围[0, 100],默认100,表示原音量。
14412
+ :type Volume: int
14041
14413
  """
14042
14414
  self._SdkAppId = None
14043
14415
  self._TaskId = None
14044
14416
  self._StreamUrl = None
14417
+ self._Volume = None
14045
14418
 
14046
14419
  @property
14047
14420
  def SdkAppId(self):
@@ -14067,7 +14440,7 @@ class UpdateStreamIngestRequest(AbstractModel):
14067
14440
 
14068
14441
  @property
14069
14442
  def StreamUrl(self):
14070
- """源流URL【必填】。
14443
+ """源流URL
14071
14444
  :rtype: str
14072
14445
  """
14073
14446
  return self._StreamUrl
@@ -14076,11 +14449,23 @@ class UpdateStreamIngestRequest(AbstractModel):
14076
14449
  def StreamUrl(self, StreamUrl):
14077
14450
  self._StreamUrl = StreamUrl
14078
14451
 
14452
+ @property
14453
+ def Volume(self):
14454
+ """音量,取值范围[0, 100],默认100,表示原音量。
14455
+ :rtype: int
14456
+ """
14457
+ return self._Volume
14458
+
14459
+ @Volume.setter
14460
+ def Volume(self, Volume):
14461
+ self._Volume = Volume
14462
+
14079
14463
 
14080
14464
  def _deserialize(self, params):
14081
14465
  self._SdkAppId = params.get("SdkAppId")
14082
14466
  self._TaskId = params.get("TaskId")
14083
14467
  self._StreamUrl = params.get("StreamUrl")
14468
+ self._Volume = params.get("Volume")
14084
14469
  memeber_set = set(params.keys())
14085
14470
  for name, value in vars(self).items():
14086
14471
  property_name = name[1:]
@@ -49,6 +49,30 @@ class TrtcClient(AbstractClient):
49
49
  raise TencentCloudSDKException(type(e).__name__, str(e))
50
50
 
51
51
 
52
+ def CreateBasicModeration(self, request):
53
+ """接口说明:
54
+ 启动终端审核功能,完成房间内的音频审核。
55
+
56
+ :param request: Request instance for CreateBasicModeration.
57
+ :type request: :class:`tencentcloud.trtc.v20190722.models.CreateBasicModerationRequest`
58
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.CreateBasicModerationResponse`
59
+
60
+ """
61
+ try:
62
+ params = request._serialize()
63
+ headers = request.headers
64
+ body = self.call("CreateBasicModeration", params, headers=headers)
65
+ response = json.loads(body)
66
+ model = models.CreateBasicModerationResponse()
67
+ model._deserialize(response["Response"])
68
+ return model
69
+ except Exception as e:
70
+ if isinstance(e, TencentCloudSDKException):
71
+ raise
72
+ else:
73
+ raise TencentCloudSDKException(type(e).__name__, str(e))
74
+
75
+
52
76
  def CreateCloudRecording(self, request):
53
77
  """接口说明:
54
78
  启动云端录制功能,完成房间内的音视频录制,并上传到指定的云存储。您可以通过此 API 接口把TRTC 房间中的每一路音视频流做单独的录制又或者多路视频画面合流混成一路。
@@ -106,6 +130,29 @@ class TrtcClient(AbstractClient):
106
130
  raise TencentCloudSDKException(type(e).__name__, str(e))
107
131
 
108
132
 
133
+ def DeleteBasicModeration(self, request):
134
+ """成功开启审核任务后,可以使用此接口来停止任务。
135
+
136
+ :param request: Request instance for DeleteBasicModeration.
137
+ :type request: :class:`tencentcloud.trtc.v20190722.models.DeleteBasicModerationRequest`
138
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.DeleteBasicModerationResponse`
139
+
140
+ """
141
+ try:
142
+ params = request._serialize()
143
+ headers = request.headers
144
+ body = self.call("DeleteBasicModeration", params, headers=headers)
145
+ response = json.loads(body)
146
+ model = models.DeleteBasicModerationResponse()
147
+ model._deserialize(response["Response"])
148
+ return model
149
+ except Exception as e:
150
+ if isinstance(e, TencentCloudSDKException):
151
+ raise
152
+ else:
153
+ raise TencentCloudSDKException(type(e).__name__, str(e))
154
+
155
+
109
156
  def DeleteCloudRecording(self, request):
110
157
  """成功开启录制后,可以使用此接口来停止录制任务。停止录制成功后不代表文件全部传输完成,如果未完成后台将会继续上传文件,成功后通过事件回调通知客户文件全部传输完成状态。
111
158
 
@@ -1,10 +1,10 @@
1
- Metadata-Version: 1.1
1
+ Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-trtc
3
- Version: 3.0.1265
3
+ Version: 3.0.1275
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
7
- Author-email: tencentcloudapi@tencent.com
7
+ Maintainer-email: tencentcloudapi@tencent.com
8
8
  License: Apache License 2.0
9
9
  Description: ============================
10
10
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common==3.0.1275
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1265