tencentcloud-sdk-python-trtc 3.0.1267__tar.gz → 3.0.1283__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.
- {tencentcloud-sdk-python-trtc-3.0.1267 → tencentcloud-sdk-python-trtc-3.0.1283}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-trtc-3.0.1267 → tencentcloud-sdk-python-trtc-3.0.1283}/setup.py +1 -1
- {tencentcloud-sdk-python-trtc-3.0.1267 → tencentcloud-sdk-python-trtc-3.0.1283}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-trtc-3.0.1267 → tencentcloud-sdk-python-trtc-3.0.1283}/tencentcloud/trtc/v20190722/errorcodes.py +15 -0
- {tencentcloud-sdk-python-trtc-3.0.1267 → tencentcloud-sdk-python-trtc-3.0.1283}/tencentcloud/trtc/v20190722/models.py +530 -8
- {tencentcloud-sdk-python-trtc-3.0.1267 → tencentcloud-sdk-python-trtc-3.0.1283}/tencentcloud/trtc/v20190722/trtc_client.py +47 -0
- {tencentcloud-sdk-python-trtc-3.0.1267 → tencentcloud-sdk-python-trtc-3.0.1283}/tencentcloud_sdk_python_trtc.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-trtc-3.0.1283/tencentcloud_sdk_python_trtc.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-trtc-3.0.1267/tencentcloud_sdk_python_trtc.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-trtc-3.0.1267 → tencentcloud-sdk-python-trtc-3.0.1283}/README.rst +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1267 → tencentcloud-sdk-python-trtc-3.0.1283}/setup.cfg +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1267 → tencentcloud-sdk-python-trtc-3.0.1283}/tencentcloud/trtc/__init__.py +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1267 → tencentcloud-sdk-python-trtc-3.0.1283}/tencentcloud/trtc/v20190722/__init__.py +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1267 → tencentcloud-sdk-python-trtc-3.0.1283}/tencentcloud_sdk_python_trtc.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1267 → tencentcloud-sdk-python-trtc-3.0.1283}/tencentcloud_sdk_python_trtc.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1267 → tencentcloud-sdk-python-trtc-3.0.1283}/tencentcloud_sdk_python_trtc.egg-info/top_level.txt +0 -0
|
@@ -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.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1283"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Trtc SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -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
|
|
|
@@ -193,6 +193,10 @@ class AgentConfig(AbstractModel):
|
|
|
193
193
|
:type InterruptMode: int
|
|
194
194
|
:param _InterruptSpeechDuration: InterruptMode为0时使用,单位为毫秒,默认为500ms。表示服务端检测到持续InterruptSpeechDuration毫秒的人声则进行打断。
|
|
195
195
|
:type InterruptSpeechDuration: int
|
|
196
|
+
:param _TurnDetectionMode: 控制新一轮对话的触发方式,默认为0。
|
|
197
|
+
- 0表示当服务端语音识别检测出的完整一句话后,自动触发一轮新的对话。
|
|
198
|
+
- 1表示客户端在收到字幕消息后,自行决定是否手动发送聊天信令触发一轮新的对话。
|
|
199
|
+
:type TurnDetectionMode: int
|
|
196
200
|
"""
|
|
197
201
|
self._UserId = None
|
|
198
202
|
self._UserSig = None
|
|
@@ -201,6 +205,7 @@ class AgentConfig(AbstractModel):
|
|
|
201
205
|
self._WelcomeMessage = None
|
|
202
206
|
self._InterruptMode = None
|
|
203
207
|
self._InterruptSpeechDuration = None
|
|
208
|
+
self._TurnDetectionMode = None
|
|
204
209
|
|
|
205
210
|
@property
|
|
206
211
|
def UserId(self):
|
|
@@ -279,6 +284,19 @@ class AgentConfig(AbstractModel):
|
|
|
279
284
|
def InterruptSpeechDuration(self, InterruptSpeechDuration):
|
|
280
285
|
self._InterruptSpeechDuration = InterruptSpeechDuration
|
|
281
286
|
|
|
287
|
+
@property
|
|
288
|
+
def TurnDetectionMode(self):
|
|
289
|
+
"""控制新一轮对话的触发方式,默认为0。
|
|
290
|
+
- 0表示当服务端语音识别检测出的完整一句话后,自动触发一轮新的对话。
|
|
291
|
+
- 1表示客户端在收到字幕消息后,自行决定是否手动发送聊天信令触发一轮新的对话。
|
|
292
|
+
:rtype: int
|
|
293
|
+
"""
|
|
294
|
+
return self._TurnDetectionMode
|
|
295
|
+
|
|
296
|
+
@TurnDetectionMode.setter
|
|
297
|
+
def TurnDetectionMode(self, TurnDetectionMode):
|
|
298
|
+
self._TurnDetectionMode = TurnDetectionMode
|
|
299
|
+
|
|
282
300
|
|
|
283
301
|
def _deserialize(self, params):
|
|
284
302
|
self._UserId = params.get("UserId")
|
|
@@ -288,6 +306,7 @@ class AgentConfig(AbstractModel):
|
|
|
288
306
|
self._WelcomeMessage = params.get("WelcomeMessage")
|
|
289
307
|
self._InterruptMode = params.get("InterruptMode")
|
|
290
308
|
self._InterruptSpeechDuration = params.get("InterruptSpeechDuration")
|
|
309
|
+
self._TurnDetectionMode = params.get("TurnDetectionMode")
|
|
291
310
|
memeber_set = set(params.keys())
|
|
292
311
|
for name, value in vars(self).items():
|
|
293
312
|
property_name = name[1:]
|
|
@@ -602,6 +621,181 @@ class AudioParams(AbstractModel):
|
|
|
602
621
|
|
|
603
622
|
|
|
604
623
|
|
|
624
|
+
class AuditStorageParams(AbstractModel):
|
|
625
|
+
"""审核存储参数
|
|
626
|
+
|
|
627
|
+
"""
|
|
628
|
+
|
|
629
|
+
def __init__(self):
|
|
630
|
+
r"""
|
|
631
|
+
:param _CloudAuditStorage: 腾讯云对象存储COS以及第三方云存储的账号信息
|
|
632
|
+
:type CloudAuditStorage: :class:`tencentcloud.trtc.v20190722.models.CloudAuditStorage`
|
|
633
|
+
"""
|
|
634
|
+
self._CloudAuditStorage = None
|
|
635
|
+
|
|
636
|
+
@property
|
|
637
|
+
def CloudAuditStorage(self):
|
|
638
|
+
"""腾讯云对象存储COS以及第三方云存储的账号信息
|
|
639
|
+
:rtype: :class:`tencentcloud.trtc.v20190722.models.CloudAuditStorage`
|
|
640
|
+
"""
|
|
641
|
+
return self._CloudAuditStorage
|
|
642
|
+
|
|
643
|
+
@CloudAuditStorage.setter
|
|
644
|
+
def CloudAuditStorage(self, CloudAuditStorage):
|
|
645
|
+
self._CloudAuditStorage = CloudAuditStorage
|
|
646
|
+
|
|
647
|
+
|
|
648
|
+
def _deserialize(self, params):
|
|
649
|
+
if params.get("CloudAuditStorage") is not None:
|
|
650
|
+
self._CloudAuditStorage = CloudAuditStorage()
|
|
651
|
+
self._CloudAuditStorage._deserialize(params.get("CloudAuditStorage"))
|
|
652
|
+
memeber_set = set(params.keys())
|
|
653
|
+
for name, value in vars(self).items():
|
|
654
|
+
property_name = name[1:]
|
|
655
|
+
if property_name in memeber_set:
|
|
656
|
+
memeber_set.remove(property_name)
|
|
657
|
+
if len(memeber_set) > 0:
|
|
658
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
class CloudAuditStorage(AbstractModel):
|
|
663
|
+
"""腾讯云对象存储COS以及第三方云存储的账号信息
|
|
664
|
+
|
|
665
|
+
"""
|
|
666
|
+
|
|
667
|
+
def __init__(self):
|
|
668
|
+
r"""
|
|
669
|
+
:param _Vendor: 腾讯云对象存储COS以及第三方云存储账号信息
|
|
670
|
+
0:腾讯云对象存储 COS
|
|
671
|
+
1:AWS
|
|
672
|
+
【注意】目前第三方云存储仅支持AWS,更多第三方云存储陆续支持中
|
|
673
|
+
示例值:0
|
|
674
|
+
:type Vendor: int
|
|
675
|
+
:param _Region: 腾讯云对象存储的[地域信息](https://cloud.tencent.com/document/product/436/6224#.E5.9C.B0.E5.9F.9F)。
|
|
676
|
+
示例值:cn-shanghai-1
|
|
677
|
+
|
|
678
|
+
AWS S3[地域信息](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-regions)
|
|
679
|
+
示例值:ap-southeast-3
|
|
680
|
+
:type Region: str
|
|
681
|
+
:param _Bucket: 云存储桶名称。
|
|
682
|
+
:type Bucket: str
|
|
683
|
+
:param _AccessKey: 云存储的access_key账号信息。
|
|
684
|
+
若存储至腾讯云对象存储COS,请前往https://console.cloud.tencent.com/cam/capi 查看或创建,对应链接中密钥字段的SecretId值。
|
|
685
|
+
示例值:test-accesskey
|
|
686
|
+
:type AccessKey: str
|
|
687
|
+
:param _SecretKey: 云存储的secret_key账号信息。
|
|
688
|
+
若存储至腾讯云对象存储COS,请前往https://console.cloud.tencent.com/cam/capi 查看或创建,对应链接中密钥字段的SecretKey值。
|
|
689
|
+
示例值:test-secretkey
|
|
690
|
+
:type SecretKey: str
|
|
691
|
+
:param _FileNamePrefix: 云存储bucket 的指定位置,由字符串数组组成。合法的字符串范围az,AZ,0~9,'_'和'-',举个例子,录制文件xxx.m3u8在 ["prefix1", "prefix2"]作用下,会变成prefix1/prefix2/TaskId/xxx.m3u8。
|
|
692
|
+
示例值:["prefix1", "prefix2"]
|
|
693
|
+
:type FileNamePrefix: list of str
|
|
694
|
+
"""
|
|
695
|
+
self._Vendor = None
|
|
696
|
+
self._Region = None
|
|
697
|
+
self._Bucket = None
|
|
698
|
+
self._AccessKey = None
|
|
699
|
+
self._SecretKey = None
|
|
700
|
+
self._FileNamePrefix = None
|
|
701
|
+
|
|
702
|
+
@property
|
|
703
|
+
def Vendor(self):
|
|
704
|
+
"""腾讯云对象存储COS以及第三方云存储账号信息
|
|
705
|
+
0:腾讯云对象存储 COS
|
|
706
|
+
1:AWS
|
|
707
|
+
【注意】目前第三方云存储仅支持AWS,更多第三方云存储陆续支持中
|
|
708
|
+
示例值:0
|
|
709
|
+
:rtype: int
|
|
710
|
+
"""
|
|
711
|
+
return self._Vendor
|
|
712
|
+
|
|
713
|
+
@Vendor.setter
|
|
714
|
+
def Vendor(self, Vendor):
|
|
715
|
+
self._Vendor = Vendor
|
|
716
|
+
|
|
717
|
+
@property
|
|
718
|
+
def Region(self):
|
|
719
|
+
"""腾讯云对象存储的[地域信息](https://cloud.tencent.com/document/product/436/6224#.E5.9C.B0.E5.9F.9F)。
|
|
720
|
+
示例值:cn-shanghai-1
|
|
721
|
+
|
|
722
|
+
AWS S3[地域信息](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-regions)
|
|
723
|
+
示例值:ap-southeast-3
|
|
724
|
+
:rtype: str
|
|
725
|
+
"""
|
|
726
|
+
return self._Region
|
|
727
|
+
|
|
728
|
+
@Region.setter
|
|
729
|
+
def Region(self, Region):
|
|
730
|
+
self._Region = Region
|
|
731
|
+
|
|
732
|
+
@property
|
|
733
|
+
def Bucket(self):
|
|
734
|
+
"""云存储桶名称。
|
|
735
|
+
:rtype: str
|
|
736
|
+
"""
|
|
737
|
+
return self._Bucket
|
|
738
|
+
|
|
739
|
+
@Bucket.setter
|
|
740
|
+
def Bucket(self, Bucket):
|
|
741
|
+
self._Bucket = Bucket
|
|
742
|
+
|
|
743
|
+
@property
|
|
744
|
+
def AccessKey(self):
|
|
745
|
+
"""云存储的access_key账号信息。
|
|
746
|
+
若存储至腾讯云对象存储COS,请前往https://console.cloud.tencent.com/cam/capi 查看或创建,对应链接中密钥字段的SecretId值。
|
|
747
|
+
示例值:test-accesskey
|
|
748
|
+
:rtype: str
|
|
749
|
+
"""
|
|
750
|
+
return self._AccessKey
|
|
751
|
+
|
|
752
|
+
@AccessKey.setter
|
|
753
|
+
def AccessKey(self, AccessKey):
|
|
754
|
+
self._AccessKey = AccessKey
|
|
755
|
+
|
|
756
|
+
@property
|
|
757
|
+
def SecretKey(self):
|
|
758
|
+
"""云存储的secret_key账号信息。
|
|
759
|
+
若存储至腾讯云对象存储COS,请前往https://console.cloud.tencent.com/cam/capi 查看或创建,对应链接中密钥字段的SecretKey值。
|
|
760
|
+
示例值:test-secretkey
|
|
761
|
+
:rtype: str
|
|
762
|
+
"""
|
|
763
|
+
return self._SecretKey
|
|
764
|
+
|
|
765
|
+
@SecretKey.setter
|
|
766
|
+
def SecretKey(self, SecretKey):
|
|
767
|
+
self._SecretKey = SecretKey
|
|
768
|
+
|
|
769
|
+
@property
|
|
770
|
+
def FileNamePrefix(self):
|
|
771
|
+
"""云存储bucket 的指定位置,由字符串数组组成。合法的字符串范围az,AZ,0~9,'_'和'-',举个例子,录制文件xxx.m3u8在 ["prefix1", "prefix2"]作用下,会变成prefix1/prefix2/TaskId/xxx.m3u8。
|
|
772
|
+
示例值:["prefix1", "prefix2"]
|
|
773
|
+
:rtype: list of str
|
|
774
|
+
"""
|
|
775
|
+
return self._FileNamePrefix
|
|
776
|
+
|
|
777
|
+
@FileNamePrefix.setter
|
|
778
|
+
def FileNamePrefix(self, FileNamePrefix):
|
|
779
|
+
self._FileNamePrefix = FileNamePrefix
|
|
780
|
+
|
|
781
|
+
|
|
782
|
+
def _deserialize(self, params):
|
|
783
|
+
self._Vendor = params.get("Vendor")
|
|
784
|
+
self._Region = params.get("Region")
|
|
785
|
+
self._Bucket = params.get("Bucket")
|
|
786
|
+
self._AccessKey = params.get("AccessKey")
|
|
787
|
+
self._SecretKey = params.get("SecretKey")
|
|
788
|
+
self._FileNamePrefix = params.get("FileNamePrefix")
|
|
789
|
+
memeber_set = set(params.keys())
|
|
790
|
+
for name, value in vars(self).items():
|
|
791
|
+
property_name = name[1:]
|
|
792
|
+
if property_name in memeber_set:
|
|
793
|
+
memeber_set.remove(property_name)
|
|
794
|
+
if len(memeber_set) > 0:
|
|
795
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
796
|
+
|
|
797
|
+
|
|
798
|
+
|
|
605
799
|
class CloudStorage(AbstractModel):
|
|
606
800
|
"""腾讯云对象存储COS以及第三方云存储的账号信息
|
|
607
801
|
|
|
@@ -867,6 +1061,147 @@ class ControlAIConversationResponse(AbstractModel):
|
|
|
867
1061
|
self._RequestId = params.get("RequestId")
|
|
868
1062
|
|
|
869
1063
|
|
|
1064
|
+
class CreateBasicModerationRequest(AbstractModel):
|
|
1065
|
+
"""CreateBasicModeration请求参数结构体
|
|
1066
|
+
|
|
1067
|
+
"""
|
|
1068
|
+
|
|
1069
|
+
def __init__(self):
|
|
1070
|
+
r"""
|
|
1071
|
+
:param _SdkAppId: TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和TRTC的房间所对应的SdkAppId相同。
|
|
1072
|
+
:type SdkAppId: int
|
|
1073
|
+
:param _RoomId: TRTC的[RoomId](https://cloud.tencent.com/document/product/647/46351#roomid),为TRTC房间所对应的RoomId。
|
|
1074
|
+
:type RoomId: str
|
|
1075
|
+
:param _UserId: 目标审核用户id
|
|
1076
|
+
:type UserId: str
|
|
1077
|
+
:param _RoomIdType: TRTC房间号的类型。【*注意】必须和TRTC的房间所对应的RoomId类型相同:0: 字符串类型的RoomId1: 32位整型的RoomId(默认)
|
|
1078
|
+
:type RoomIdType: int
|
|
1079
|
+
:param _AuditStorageParams: 音频文件上传到云存储的参数
|
|
1080
|
+
:type AuditStorageParams: :class:`tencentcloud.trtc.v20190722.models.AuditStorageParams`
|
|
1081
|
+
"""
|
|
1082
|
+
self._SdkAppId = None
|
|
1083
|
+
self._RoomId = None
|
|
1084
|
+
self._UserId = None
|
|
1085
|
+
self._RoomIdType = None
|
|
1086
|
+
self._AuditStorageParams = None
|
|
1087
|
+
|
|
1088
|
+
@property
|
|
1089
|
+
def SdkAppId(self):
|
|
1090
|
+
"""TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和TRTC的房间所对应的SdkAppId相同。
|
|
1091
|
+
:rtype: int
|
|
1092
|
+
"""
|
|
1093
|
+
return self._SdkAppId
|
|
1094
|
+
|
|
1095
|
+
@SdkAppId.setter
|
|
1096
|
+
def SdkAppId(self, SdkAppId):
|
|
1097
|
+
self._SdkAppId = SdkAppId
|
|
1098
|
+
|
|
1099
|
+
@property
|
|
1100
|
+
def RoomId(self):
|
|
1101
|
+
"""TRTC的[RoomId](https://cloud.tencent.com/document/product/647/46351#roomid),为TRTC房间所对应的RoomId。
|
|
1102
|
+
:rtype: str
|
|
1103
|
+
"""
|
|
1104
|
+
return self._RoomId
|
|
1105
|
+
|
|
1106
|
+
@RoomId.setter
|
|
1107
|
+
def RoomId(self, RoomId):
|
|
1108
|
+
self._RoomId = RoomId
|
|
1109
|
+
|
|
1110
|
+
@property
|
|
1111
|
+
def UserId(self):
|
|
1112
|
+
"""目标审核用户id
|
|
1113
|
+
:rtype: str
|
|
1114
|
+
"""
|
|
1115
|
+
return self._UserId
|
|
1116
|
+
|
|
1117
|
+
@UserId.setter
|
|
1118
|
+
def UserId(self, UserId):
|
|
1119
|
+
self._UserId = UserId
|
|
1120
|
+
|
|
1121
|
+
@property
|
|
1122
|
+
def RoomIdType(self):
|
|
1123
|
+
"""TRTC房间号的类型。【*注意】必须和TRTC的房间所对应的RoomId类型相同:0: 字符串类型的RoomId1: 32位整型的RoomId(默认)
|
|
1124
|
+
:rtype: int
|
|
1125
|
+
"""
|
|
1126
|
+
return self._RoomIdType
|
|
1127
|
+
|
|
1128
|
+
@RoomIdType.setter
|
|
1129
|
+
def RoomIdType(self, RoomIdType):
|
|
1130
|
+
self._RoomIdType = RoomIdType
|
|
1131
|
+
|
|
1132
|
+
@property
|
|
1133
|
+
def AuditStorageParams(self):
|
|
1134
|
+
"""音频文件上传到云存储的参数
|
|
1135
|
+
:rtype: :class:`tencentcloud.trtc.v20190722.models.AuditStorageParams`
|
|
1136
|
+
"""
|
|
1137
|
+
return self._AuditStorageParams
|
|
1138
|
+
|
|
1139
|
+
@AuditStorageParams.setter
|
|
1140
|
+
def AuditStorageParams(self, AuditStorageParams):
|
|
1141
|
+
self._AuditStorageParams = AuditStorageParams
|
|
1142
|
+
|
|
1143
|
+
|
|
1144
|
+
def _deserialize(self, params):
|
|
1145
|
+
self._SdkAppId = params.get("SdkAppId")
|
|
1146
|
+
self._RoomId = params.get("RoomId")
|
|
1147
|
+
self._UserId = params.get("UserId")
|
|
1148
|
+
self._RoomIdType = params.get("RoomIdType")
|
|
1149
|
+
if params.get("AuditStorageParams") is not None:
|
|
1150
|
+
self._AuditStorageParams = AuditStorageParams()
|
|
1151
|
+
self._AuditStorageParams._deserialize(params.get("AuditStorageParams"))
|
|
1152
|
+
memeber_set = set(params.keys())
|
|
1153
|
+
for name, value in vars(self).items():
|
|
1154
|
+
property_name = name[1:]
|
|
1155
|
+
if property_name in memeber_set:
|
|
1156
|
+
memeber_set.remove(property_name)
|
|
1157
|
+
if len(memeber_set) > 0:
|
|
1158
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1159
|
+
|
|
1160
|
+
|
|
1161
|
+
|
|
1162
|
+
class CreateBasicModerationResponse(AbstractModel):
|
|
1163
|
+
"""CreateBasicModeration返回参数结构体
|
|
1164
|
+
|
|
1165
|
+
"""
|
|
1166
|
+
|
|
1167
|
+
def __init__(self):
|
|
1168
|
+
r"""
|
|
1169
|
+
:param _TaskId: 审核服务分配的任务ID。任务ID是对一次审核任务生命周期过程的唯一标识,结束任务时会失去意义。任务ID需要业务保存下来,作为下次针对这个任务操作的参数
|
|
1170
|
+
:type TaskId: str
|
|
1171
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1172
|
+
:type RequestId: str
|
|
1173
|
+
"""
|
|
1174
|
+
self._TaskId = None
|
|
1175
|
+
self._RequestId = None
|
|
1176
|
+
|
|
1177
|
+
@property
|
|
1178
|
+
def TaskId(self):
|
|
1179
|
+
"""审核服务分配的任务ID。任务ID是对一次审核任务生命周期过程的唯一标识,结束任务时会失去意义。任务ID需要业务保存下来,作为下次针对这个任务操作的参数
|
|
1180
|
+
:rtype: str
|
|
1181
|
+
"""
|
|
1182
|
+
return self._TaskId
|
|
1183
|
+
|
|
1184
|
+
@TaskId.setter
|
|
1185
|
+
def TaskId(self, TaskId):
|
|
1186
|
+
self._TaskId = TaskId
|
|
1187
|
+
|
|
1188
|
+
@property
|
|
1189
|
+
def RequestId(self):
|
|
1190
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1191
|
+
:rtype: str
|
|
1192
|
+
"""
|
|
1193
|
+
return self._RequestId
|
|
1194
|
+
|
|
1195
|
+
@RequestId.setter
|
|
1196
|
+
def RequestId(self, RequestId):
|
|
1197
|
+
self._RequestId = RequestId
|
|
1198
|
+
|
|
1199
|
+
|
|
1200
|
+
def _deserialize(self, params):
|
|
1201
|
+
self._TaskId = params.get("TaskId")
|
|
1202
|
+
self._RequestId = params.get("RequestId")
|
|
1203
|
+
|
|
1204
|
+
|
|
870
1205
|
class CreateCloudRecordingRequest(AbstractModel):
|
|
871
1206
|
"""CreateCloudRecording请求参数结构体
|
|
872
1207
|
|
|
@@ -1285,6 +1620,100 @@ class CreatePictureResponse(AbstractModel):
|
|
|
1285
1620
|
self._RequestId = params.get("RequestId")
|
|
1286
1621
|
|
|
1287
1622
|
|
|
1623
|
+
class DeleteBasicModerationRequest(AbstractModel):
|
|
1624
|
+
"""DeleteBasicModeration请求参数结构体
|
|
1625
|
+
|
|
1626
|
+
"""
|
|
1627
|
+
|
|
1628
|
+
def __init__(self):
|
|
1629
|
+
r"""
|
|
1630
|
+
:param _SdkAppId: TRTC的SDKAppId,和TRTC的房间所对应的SDKAppId相同。
|
|
1631
|
+
:type SdkAppId: int
|
|
1632
|
+
:param _TaskId: 审核任务的唯一Id,在启动审核任务成功后会返回。
|
|
1633
|
+
:type TaskId: str
|
|
1634
|
+
"""
|
|
1635
|
+
self._SdkAppId = None
|
|
1636
|
+
self._TaskId = None
|
|
1637
|
+
|
|
1638
|
+
@property
|
|
1639
|
+
def SdkAppId(self):
|
|
1640
|
+
"""TRTC的SDKAppId,和TRTC的房间所对应的SDKAppId相同。
|
|
1641
|
+
:rtype: int
|
|
1642
|
+
"""
|
|
1643
|
+
return self._SdkAppId
|
|
1644
|
+
|
|
1645
|
+
@SdkAppId.setter
|
|
1646
|
+
def SdkAppId(self, SdkAppId):
|
|
1647
|
+
self._SdkAppId = SdkAppId
|
|
1648
|
+
|
|
1649
|
+
@property
|
|
1650
|
+
def TaskId(self):
|
|
1651
|
+
"""审核任务的唯一Id,在启动审核任务成功后会返回。
|
|
1652
|
+
:rtype: str
|
|
1653
|
+
"""
|
|
1654
|
+
return self._TaskId
|
|
1655
|
+
|
|
1656
|
+
@TaskId.setter
|
|
1657
|
+
def TaskId(self, TaskId):
|
|
1658
|
+
self._TaskId = TaskId
|
|
1659
|
+
|
|
1660
|
+
|
|
1661
|
+
def _deserialize(self, params):
|
|
1662
|
+
self._SdkAppId = params.get("SdkAppId")
|
|
1663
|
+
self._TaskId = params.get("TaskId")
|
|
1664
|
+
memeber_set = set(params.keys())
|
|
1665
|
+
for name, value in vars(self).items():
|
|
1666
|
+
property_name = name[1:]
|
|
1667
|
+
if property_name in memeber_set:
|
|
1668
|
+
memeber_set.remove(property_name)
|
|
1669
|
+
if len(memeber_set) > 0:
|
|
1670
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1671
|
+
|
|
1672
|
+
|
|
1673
|
+
|
|
1674
|
+
class DeleteBasicModerationResponse(AbstractModel):
|
|
1675
|
+
"""DeleteBasicModeration返回参数结构体
|
|
1676
|
+
|
|
1677
|
+
"""
|
|
1678
|
+
|
|
1679
|
+
def __init__(self):
|
|
1680
|
+
r"""
|
|
1681
|
+
:param _TaskId: 审核任务的唯一Id,在启动审核任务成功后会返回。
|
|
1682
|
+
:type TaskId: str
|
|
1683
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1684
|
+
:type RequestId: str
|
|
1685
|
+
"""
|
|
1686
|
+
self._TaskId = None
|
|
1687
|
+
self._RequestId = None
|
|
1688
|
+
|
|
1689
|
+
@property
|
|
1690
|
+
def TaskId(self):
|
|
1691
|
+
"""审核任务的唯一Id,在启动审核任务成功后会返回。
|
|
1692
|
+
:rtype: str
|
|
1693
|
+
"""
|
|
1694
|
+
return self._TaskId
|
|
1695
|
+
|
|
1696
|
+
@TaskId.setter
|
|
1697
|
+
def TaskId(self, TaskId):
|
|
1698
|
+
self._TaskId = TaskId
|
|
1699
|
+
|
|
1700
|
+
@property
|
|
1701
|
+
def RequestId(self):
|
|
1702
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1703
|
+
:rtype: str
|
|
1704
|
+
"""
|
|
1705
|
+
return self._RequestId
|
|
1706
|
+
|
|
1707
|
+
@RequestId.setter
|
|
1708
|
+
def RequestId(self, RequestId):
|
|
1709
|
+
self._RequestId = RequestId
|
|
1710
|
+
|
|
1711
|
+
|
|
1712
|
+
def _deserialize(self, params):
|
|
1713
|
+
self._TaskId = params.get("TaskId")
|
|
1714
|
+
self._RequestId = params.get("RequestId")
|
|
1715
|
+
|
|
1716
|
+
|
|
1288
1717
|
class DeleteCloudRecordingRequest(AbstractModel):
|
|
1289
1718
|
"""DeleteCloudRecording请求参数结构体
|
|
1290
1719
|
|
|
@@ -6965,7 +7394,8 @@ class McuPassThrough(AbstractModel):
|
|
|
6965
7394
|
r"""
|
|
6966
7395
|
:param _PayloadContent: 透传SEI的payload内容。
|
|
6967
7396
|
:type PayloadContent: str
|
|
6968
|
-
:param _PayloadType: SEI消息的
|
|
7397
|
+
:param _PayloadType: SEI消息的PayloadType,取值范围5、100-254(244除外,244为我们内部自定义的时间戳SEI)。
|
|
7398
|
+
注:部分播放器可能不支持PayloadType为5带PayloadUuid的标准类型,建议优先使用其他PayloadType。
|
|
6969
7399
|
:type PayloadType: int
|
|
6970
7400
|
:param _PayloadUuid: PayloadType为5,PayloadUuid必须填写。PayloadType不是5时,不需要填写,填写会被后台忽略。该值必须是32长度的十六进制。
|
|
6971
7401
|
:type PayloadUuid: str
|
|
@@ -6993,7 +7423,8 @@ class McuPassThrough(AbstractModel):
|
|
|
6993
7423
|
|
|
6994
7424
|
@property
|
|
6995
7425
|
def PayloadType(self):
|
|
6996
|
-
"""SEI消息的
|
|
7426
|
+
"""SEI消息的PayloadType,取值范围5、100-254(244除外,244为我们内部自定义的时间戳SEI)。
|
|
7427
|
+
注:部分播放器可能不支持PayloadType为5带PayloadUuid的标准类型,建议优先使用其他PayloadType。
|
|
6997
7428
|
:rtype: int
|
|
6998
7429
|
"""
|
|
6999
7430
|
return self._PayloadType
|
|
@@ -9519,7 +9950,28 @@ class RecognizeConfig(AbstractModel):
|
|
|
9519
9950
|
:type AlternativeLanguage: list of str
|
|
9520
9951
|
:param _Model: 目前已不支持
|
|
9521
9952
|
:type Model: str
|
|
9522
|
-
:param _TranslationLanguage:
|
|
9953
|
+
:param _TranslationLanguage: 填写则翻译,目前支持的语言:
|
|
9954
|
+
中文: zh
|
|
9955
|
+
英语: en
|
|
9956
|
+
越南语: vi
|
|
9957
|
+
日语: ja
|
|
9958
|
+
韩语: ko
|
|
9959
|
+
印度尼西亚语: id
|
|
9960
|
+
泰语: th
|
|
9961
|
+
葡萄牙语: pt
|
|
9962
|
+
土耳其语: tr
|
|
9963
|
+
阿拉伯语: ar
|
|
9964
|
+
西班牙语: es
|
|
9965
|
+
印地语: hi
|
|
9966
|
+
法语: fr
|
|
9967
|
+
马来语: ms
|
|
9968
|
+
菲律宾语: fil
|
|
9969
|
+
德语: de
|
|
9970
|
+
意大利语: it
|
|
9971
|
+
俄语: ru
|
|
9972
|
+
瑞典语: sv
|
|
9973
|
+
挪威语: no
|
|
9974
|
+
丹麦语: da
|
|
9523
9975
|
:type TranslationLanguage: str
|
|
9524
9976
|
"""
|
|
9525
9977
|
self._Language = None
|
|
@@ -9598,7 +10050,28 @@ class RecognizeConfig(AbstractModel):
|
|
|
9598
10050
|
def TranslationLanguage(self):
|
|
9599
10051
|
warnings.warn("parameter `TranslationLanguage` is deprecated", DeprecationWarning)
|
|
9600
10052
|
|
|
9601
|
-
"""
|
|
10053
|
+
"""填写则翻译,目前支持的语言:
|
|
10054
|
+
中文: zh
|
|
10055
|
+
英语: en
|
|
10056
|
+
越南语: vi
|
|
10057
|
+
日语: ja
|
|
10058
|
+
韩语: ko
|
|
10059
|
+
印度尼西亚语: id
|
|
10060
|
+
泰语: th
|
|
10061
|
+
葡萄牙语: pt
|
|
10062
|
+
土耳其语: tr
|
|
10063
|
+
阿拉伯语: ar
|
|
10064
|
+
西班牙语: es
|
|
10065
|
+
印地语: hi
|
|
10066
|
+
法语: fr
|
|
10067
|
+
马来语: ms
|
|
10068
|
+
菲律宾语: fil
|
|
10069
|
+
德语: de
|
|
10070
|
+
意大利语: it
|
|
10071
|
+
俄语: ru
|
|
10072
|
+
瑞典语: sv
|
|
10073
|
+
挪威语: no
|
|
10074
|
+
丹麦语: da
|
|
9602
10075
|
:rtype: str
|
|
9603
10076
|
"""
|
|
9604
10077
|
return self._TranslationLanguage
|
|
@@ -9636,7 +10109,7 @@ class RecordParams(AbstractModel):
|
|
|
9636
10109
|
1:单流录制,分别录制房间的订阅UserId的音频和视频,将录制文件上传至云存储;
|
|
9637
10110
|
2:合流录制,将房间内订阅UserId的音视频混录成一个音视频文件,将录制文件上传至云存储;
|
|
9638
10111
|
:type RecordMode: int
|
|
9639
|
-
:param _MaxIdleTime:
|
|
10112
|
+
:param _MaxIdleTime: 房间内持续没有主播的状态超过MaxIdleTime的时长,自动停止录制,单位:秒。默认值为 30 秒,该值需大于等于 5秒,且小于等于 86400秒(24小时)。
|
|
9640
10113
|
:type MaxIdleTime: int
|
|
9641
10114
|
:param _StreamType: 录制的媒体流类型:
|
|
9642
10115
|
0:录制音频+视频流(默认);
|
|
@@ -9684,7 +10157,7 @@ Hls 格式录制此参数不生效。
|
|
|
9684
10157
|
|
|
9685
10158
|
@property
|
|
9686
10159
|
def MaxIdleTime(self):
|
|
9687
|
-
"""
|
|
10160
|
+
"""房间内持续没有主播的状态超过MaxIdleTime的时长,自动停止录制,单位:秒。默认值为 30 秒,该值需大于等于 5秒,且小于等于 86400秒(24小时)。
|
|
9688
10161
|
:rtype: int
|
|
9689
10162
|
"""
|
|
9690
10163
|
return self._MaxIdleTime
|
|
@@ -10756,10 +11229,15 @@ class ServerPushText(AbstractModel):
|
|
|
10756
11229
|
:type Interrupt: bool
|
|
10757
11230
|
:param _StopAfterPlay: 播报完文本后,是否自动关闭对话任务
|
|
10758
11231
|
:type StopAfterPlay: bool
|
|
11232
|
+
:param _Audio: 服务端推送播报音频
|
|
11233
|
+
格式说明:音频以16KHz采样率的单声道格式提供,编码为Base64字符串。
|
|
11234
|
+
输入规则:当提供Audio字段时,将不接受Text字段的输入。系统将直接播放Audio字段中的音频内容。
|
|
11235
|
+
:type Audio: str
|
|
10759
11236
|
"""
|
|
10760
11237
|
self._Text = None
|
|
10761
11238
|
self._Interrupt = None
|
|
10762
11239
|
self._StopAfterPlay = None
|
|
11240
|
+
self._Audio = None
|
|
10763
11241
|
|
|
10764
11242
|
@property
|
|
10765
11243
|
def Text(self):
|
|
@@ -10794,11 +11272,25 @@ class ServerPushText(AbstractModel):
|
|
|
10794
11272
|
def StopAfterPlay(self, StopAfterPlay):
|
|
10795
11273
|
self._StopAfterPlay = StopAfterPlay
|
|
10796
11274
|
|
|
11275
|
+
@property
|
|
11276
|
+
def Audio(self):
|
|
11277
|
+
"""服务端推送播报音频
|
|
11278
|
+
格式说明:音频以16KHz采样率的单声道格式提供,编码为Base64字符串。
|
|
11279
|
+
输入规则:当提供Audio字段时,将不接受Text字段的输入。系统将直接播放Audio字段中的音频内容。
|
|
11280
|
+
:rtype: str
|
|
11281
|
+
"""
|
|
11282
|
+
return self._Audio
|
|
11283
|
+
|
|
11284
|
+
@Audio.setter
|
|
11285
|
+
def Audio(self, Audio):
|
|
11286
|
+
self._Audio = Audio
|
|
11287
|
+
|
|
10797
11288
|
|
|
10798
11289
|
def _deserialize(self, params):
|
|
10799
11290
|
self._Text = params.get("Text")
|
|
10800
11291
|
self._Interrupt = params.get("Interrupt")
|
|
10801
11292
|
self._StopAfterPlay = params.get("StopAfterPlay")
|
|
11293
|
+
self._Audio = params.get("Audio")
|
|
10802
11294
|
memeber_set = set(params.keys())
|
|
10803
11295
|
for name, value in vars(self).items():
|
|
10804
11296
|
property_name = name[1:]
|
|
@@ -11921,6 +12413,8 @@ class StartStreamIngestRequest(AbstractModel):
|
|
|
11921
12413
|
:type RepeatNum: int
|
|
11922
12414
|
:param _MaxDuration: 循环播放最大时长,仅支持RepeatNum设置-1时生效,取值范围[1, 10080],单位分钟。
|
|
11923
12415
|
:type MaxDuration: int
|
|
12416
|
+
:param _Volume: 音量,取值范围[0, 100],默认100,表示原音量。
|
|
12417
|
+
:type Volume: int
|
|
11924
12418
|
"""
|
|
11925
12419
|
self._SdkAppId = None
|
|
11926
12420
|
self._RoomId = None
|
|
@@ -11936,6 +12430,7 @@ class StartStreamIngestRequest(AbstractModel):
|
|
|
11936
12430
|
self._AutoPush = None
|
|
11937
12431
|
self._RepeatNum = None
|
|
11938
12432
|
self._MaxDuration = None
|
|
12433
|
+
self._Volume = None
|
|
11939
12434
|
|
|
11940
12435
|
@property
|
|
11941
12436
|
def SdkAppId(self):
|
|
@@ -12109,6 +12604,17 @@ class StartStreamIngestRequest(AbstractModel):
|
|
|
12109
12604
|
def MaxDuration(self, MaxDuration):
|
|
12110
12605
|
self._MaxDuration = MaxDuration
|
|
12111
12606
|
|
|
12607
|
+
@property
|
|
12608
|
+
def Volume(self):
|
|
12609
|
+
"""音量,取值范围[0, 100],默认100,表示原音量。
|
|
12610
|
+
:rtype: int
|
|
12611
|
+
"""
|
|
12612
|
+
return self._Volume
|
|
12613
|
+
|
|
12614
|
+
@Volume.setter
|
|
12615
|
+
def Volume(self, Volume):
|
|
12616
|
+
self._Volume = Volume
|
|
12617
|
+
|
|
12112
12618
|
|
|
12113
12619
|
def _deserialize(self, params):
|
|
12114
12620
|
self._SdkAppId = params.get("SdkAppId")
|
|
@@ -12129,6 +12635,7 @@ class StartStreamIngestRequest(AbstractModel):
|
|
|
12129
12635
|
self._AutoPush = params.get("AutoPush")
|
|
12130
12636
|
self._RepeatNum = params.get("RepeatNum")
|
|
12131
12637
|
self._MaxDuration = params.get("MaxDuration")
|
|
12638
|
+
self._Volume = params.get("Volume")
|
|
12132
12639
|
memeber_set = set(params.keys())
|
|
12133
12640
|
for name, value in vars(self).items():
|
|
12134
12641
|
property_name = name[1:]
|
|
@@ -14131,12 +14638,15 @@ class UpdateStreamIngestRequest(AbstractModel):
|
|
|
14131
14638
|
:type SdkAppId: int
|
|
14132
14639
|
:param _TaskId: 任务的唯一Id,在启动任务成功后会返回。
|
|
14133
14640
|
:type TaskId: str
|
|
14134
|
-
:param _StreamUrl: 源流URL
|
|
14641
|
+
:param _StreamUrl: 源流URL。
|
|
14135
14642
|
:type StreamUrl: str
|
|
14643
|
+
:param _Volume: 音量,取值范围[0, 100],默认100,表示原音量。
|
|
14644
|
+
:type Volume: int
|
|
14136
14645
|
"""
|
|
14137
14646
|
self._SdkAppId = None
|
|
14138
14647
|
self._TaskId = None
|
|
14139
14648
|
self._StreamUrl = None
|
|
14649
|
+
self._Volume = None
|
|
14140
14650
|
|
|
14141
14651
|
@property
|
|
14142
14652
|
def SdkAppId(self):
|
|
@@ -14162,7 +14672,7 @@ class UpdateStreamIngestRequest(AbstractModel):
|
|
|
14162
14672
|
|
|
14163
14673
|
@property
|
|
14164
14674
|
def StreamUrl(self):
|
|
14165
|
-
"""源流URL
|
|
14675
|
+
"""源流URL。
|
|
14166
14676
|
:rtype: str
|
|
14167
14677
|
"""
|
|
14168
14678
|
return self._StreamUrl
|
|
@@ -14171,11 +14681,23 @@ class UpdateStreamIngestRequest(AbstractModel):
|
|
|
14171
14681
|
def StreamUrl(self, StreamUrl):
|
|
14172
14682
|
self._StreamUrl = StreamUrl
|
|
14173
14683
|
|
|
14684
|
+
@property
|
|
14685
|
+
def Volume(self):
|
|
14686
|
+
"""音量,取值范围[0, 100],默认100,表示原音量。
|
|
14687
|
+
:rtype: int
|
|
14688
|
+
"""
|
|
14689
|
+
return self._Volume
|
|
14690
|
+
|
|
14691
|
+
@Volume.setter
|
|
14692
|
+
def Volume(self, Volume):
|
|
14693
|
+
self._Volume = Volume
|
|
14694
|
+
|
|
14174
14695
|
|
|
14175
14696
|
def _deserialize(self, params):
|
|
14176
14697
|
self._SdkAppId = params.get("SdkAppId")
|
|
14177
14698
|
self._TaskId = params.get("TaskId")
|
|
14178
14699
|
self._StreamUrl = params.get("StreamUrl")
|
|
14700
|
+
self._Volume = params.get("Volume")
|
|
14179
14701
|
memeber_set = set(params.keys())
|
|
14180
14702
|
for name, value in vars(self).items():
|
|
14181
14703
|
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
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1283
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1267
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|