tencentcloud-sdk-python-trtc 3.0.1273__tar.gz → 3.0.1296__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 (16) hide show
  1. {tencentcloud-sdk-python-trtc-3.0.1273 → tencentcloud-sdk-python-trtc-3.0.1296}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-trtc-3.0.1273 → tencentcloud-sdk-python-trtc-3.0.1296}/setup.py +1 -1
  3. {tencentcloud-sdk-python-trtc-3.0.1273 → tencentcloud-sdk-python-trtc-3.0.1296}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-trtc-3.0.1273 → tencentcloud-sdk-python-trtc-3.0.1296}/tencentcloud/trtc/v20190722/errorcodes.py +18 -0
  5. {tencentcloud-sdk-python-trtc-3.0.1273 → tencentcloud-sdk-python-trtc-3.0.1296}/tencentcloud/trtc/v20190722/models.py +469 -2
  6. {tencentcloud-sdk-python-trtc-3.0.1273 → tencentcloud-sdk-python-trtc-3.0.1296}/tencentcloud/trtc/v20190722/trtc_client.py +47 -0
  7. {tencentcloud-sdk-python-trtc-3.0.1273 → tencentcloud-sdk-python-trtc-3.0.1296}/tencentcloud_sdk_python_trtc.egg-info/PKG-INFO +1 -1
  8. tencentcloud-sdk-python-trtc-3.0.1296/tencentcloud_sdk_python_trtc.egg-info/requires.txt +1 -0
  9. tencentcloud-sdk-python-trtc-3.0.1273/tencentcloud_sdk_python_trtc.egg-info/requires.txt +0 -1
  10. {tencentcloud-sdk-python-trtc-3.0.1273 → tencentcloud-sdk-python-trtc-3.0.1296}/README.rst +0 -0
  11. {tencentcloud-sdk-python-trtc-3.0.1273 → tencentcloud-sdk-python-trtc-3.0.1296}/setup.cfg +0 -0
  12. {tencentcloud-sdk-python-trtc-3.0.1273 → tencentcloud-sdk-python-trtc-3.0.1296}/tencentcloud/trtc/__init__.py +0 -0
  13. {tencentcloud-sdk-python-trtc-3.0.1273 → tencentcloud-sdk-python-trtc-3.0.1296}/tencentcloud/trtc/v20190722/__init__.py +0 -0
  14. {tencentcloud-sdk-python-trtc-3.0.1273 → tencentcloud-sdk-python-trtc-3.0.1296}/tencentcloud_sdk_python_trtc.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-trtc-3.0.1273 → tencentcloud-sdk-python-trtc-3.0.1296}/tencentcloud_sdk_python_trtc.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-trtc-3.0.1273 → tencentcloud-sdk-python-trtc-3.0.1296}/tencentcloud_sdk_python_trtc.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-trtc
3
- Version: 3.0.1273
3
+ Version: 3.0.1296
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
@@ -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.1273"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1296"],
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.1273'
17
+ __version__ = '3.0.1296'
@@ -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
 
@@ -332,6 +347,9 @@ MISSINGPARAMETER_VENDOR = 'MissingParameter.Vendor'
332
347
  # EncodeParams中缺少视频输出参数。
333
348
  MISSINGPARAMETER_VIDEOENCODEPARAMS = 'MissingParameter.VideoEncodeParams'
334
349
 
350
+ # 请求频率超限,请稍后再试
351
+ OPERATIONDENIED_FREQOVERLIMIT = 'OperationDenied.FreqOverLimit'
352
+
335
353
  # 资源不足。
336
354
  RESOURCEINSUFFICIENT_REQUESTREJECTION = 'ResourceInsufficient.RequestRejection'
337
355
 
@@ -193,6 +193,12 @@ 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
200
+ :param _FilterOneWord: 是否过滤掉用户只说了一个字的句子,true表示过滤,false表示不过滤,默认值为true
201
+ :type FilterOneWord: bool
196
202
  """
197
203
  self._UserId = None
198
204
  self._UserSig = None
@@ -201,6 +207,8 @@ class AgentConfig(AbstractModel):
201
207
  self._WelcomeMessage = None
202
208
  self._InterruptMode = None
203
209
  self._InterruptSpeechDuration = None
210
+ self._TurnDetectionMode = None
211
+ self._FilterOneWord = None
204
212
 
205
213
  @property
206
214
  def UserId(self):
@@ -279,6 +287,30 @@ class AgentConfig(AbstractModel):
279
287
  def InterruptSpeechDuration(self, InterruptSpeechDuration):
280
288
  self._InterruptSpeechDuration = InterruptSpeechDuration
281
289
 
290
+ @property
291
+ def TurnDetectionMode(self):
292
+ """控制新一轮对话的触发方式,默认为0。
293
+ - 0表示当服务端语音识别检测出的完整一句话后,自动触发一轮新的对话。
294
+ - 1表示客户端在收到字幕消息后,自行决定是否手动发送聊天信令触发一轮新的对话。
295
+ :rtype: int
296
+ """
297
+ return self._TurnDetectionMode
298
+
299
+ @TurnDetectionMode.setter
300
+ def TurnDetectionMode(self, TurnDetectionMode):
301
+ self._TurnDetectionMode = TurnDetectionMode
302
+
303
+ @property
304
+ def FilterOneWord(self):
305
+ """是否过滤掉用户只说了一个字的句子,true表示过滤,false表示不过滤,默认值为true
306
+ :rtype: bool
307
+ """
308
+ return self._FilterOneWord
309
+
310
+ @FilterOneWord.setter
311
+ def FilterOneWord(self, FilterOneWord):
312
+ self._FilterOneWord = FilterOneWord
313
+
282
314
 
283
315
  def _deserialize(self, params):
284
316
  self._UserId = params.get("UserId")
@@ -288,6 +320,8 @@ class AgentConfig(AbstractModel):
288
320
  self._WelcomeMessage = params.get("WelcomeMessage")
289
321
  self._InterruptMode = params.get("InterruptMode")
290
322
  self._InterruptSpeechDuration = params.get("InterruptSpeechDuration")
323
+ self._TurnDetectionMode = params.get("TurnDetectionMode")
324
+ self._FilterOneWord = params.get("FilterOneWord")
291
325
  memeber_set = set(params.keys())
292
326
  for name, value in vars(self).items():
293
327
  property_name = name[1:]
@@ -602,6 +636,181 @@ class AudioParams(AbstractModel):
602
636
 
603
637
 
604
638
 
639
+ class AuditStorageParams(AbstractModel):
640
+ """审核存储参数
641
+
642
+ """
643
+
644
+ def __init__(self):
645
+ r"""
646
+ :param _CloudAuditStorage: 腾讯云对象存储COS以及第三方云存储的账号信息
647
+ :type CloudAuditStorage: :class:`tencentcloud.trtc.v20190722.models.CloudAuditStorage`
648
+ """
649
+ self._CloudAuditStorage = None
650
+
651
+ @property
652
+ def CloudAuditStorage(self):
653
+ """腾讯云对象存储COS以及第三方云存储的账号信息
654
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.CloudAuditStorage`
655
+ """
656
+ return self._CloudAuditStorage
657
+
658
+ @CloudAuditStorage.setter
659
+ def CloudAuditStorage(self, CloudAuditStorage):
660
+ self._CloudAuditStorage = CloudAuditStorage
661
+
662
+
663
+ def _deserialize(self, params):
664
+ if params.get("CloudAuditStorage") is not None:
665
+ self._CloudAuditStorage = CloudAuditStorage()
666
+ self._CloudAuditStorage._deserialize(params.get("CloudAuditStorage"))
667
+ memeber_set = set(params.keys())
668
+ for name, value in vars(self).items():
669
+ property_name = name[1:]
670
+ if property_name in memeber_set:
671
+ memeber_set.remove(property_name)
672
+ if len(memeber_set) > 0:
673
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
674
+
675
+
676
+
677
+ class CloudAuditStorage(AbstractModel):
678
+ """腾讯云对象存储COS以及第三方云存储的账号信息
679
+
680
+ """
681
+
682
+ def __init__(self):
683
+ r"""
684
+ :param _Vendor: 腾讯云对象存储COS以及第三方云存储账号信息
685
+ 0:腾讯云对象存储 COS
686
+ 1:AWS
687
+ 【注意】目前第三方云存储仅支持AWS,更多第三方云存储陆续支持中
688
+ 示例值:0
689
+ :type Vendor: int
690
+ :param _Region: 腾讯云对象存储的[地域信息](https://cloud.tencent.com/document/product/436/6224#.E5.9C.B0.E5.9F.9F)。
691
+ 示例值:cn-shanghai-1
692
+
693
+ AWS S3[地域信息](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-regions)
694
+ 示例值:ap-southeast-3
695
+ :type Region: str
696
+ :param _Bucket: 云存储桶名称。
697
+ :type Bucket: str
698
+ :param _AccessKey: 云存储的access_key账号信息。
699
+ 若存储至腾讯云对象存储COS,请前往https://console.cloud.tencent.com/cam/capi 查看或创建,对应链接中密钥字段的SecretId值。
700
+ 示例值:test-accesskey
701
+ :type AccessKey: str
702
+ :param _SecretKey: 云存储的secret_key账号信息。
703
+ 若存储至腾讯云对象存储COS,请前往https://console.cloud.tencent.com/cam/capi 查看或创建,对应链接中密钥字段的SecretKey值。
704
+ 示例值:test-secretkey
705
+ :type SecretKey: str
706
+ :param _FileNamePrefix: 云存储bucket 的指定位置,由字符串数组组成。合法的字符串范围az,AZ,0~9,'_'和'-',举个例子,录制文件xxx.m3u8在 ["prefix1", "prefix2"]作用下,会变成prefix1/prefix2/TaskId/xxx.m3u8。
707
+ 示例值:["prefix1", "prefix2"]
708
+ :type FileNamePrefix: list of str
709
+ """
710
+ self._Vendor = None
711
+ self._Region = None
712
+ self._Bucket = None
713
+ self._AccessKey = None
714
+ self._SecretKey = None
715
+ self._FileNamePrefix = None
716
+
717
+ @property
718
+ def Vendor(self):
719
+ """腾讯云对象存储COS以及第三方云存储账号信息
720
+ 0:腾讯云对象存储 COS
721
+ 1:AWS
722
+ 【注意】目前第三方云存储仅支持AWS,更多第三方云存储陆续支持中
723
+ 示例值:0
724
+ :rtype: int
725
+ """
726
+ return self._Vendor
727
+
728
+ @Vendor.setter
729
+ def Vendor(self, Vendor):
730
+ self._Vendor = Vendor
731
+
732
+ @property
733
+ def Region(self):
734
+ """腾讯云对象存储的[地域信息](https://cloud.tencent.com/document/product/436/6224#.E5.9C.B0.E5.9F.9F)。
735
+ 示例值:cn-shanghai-1
736
+
737
+ AWS S3[地域信息](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-regions)
738
+ 示例值:ap-southeast-3
739
+ :rtype: str
740
+ """
741
+ return self._Region
742
+
743
+ @Region.setter
744
+ def Region(self, Region):
745
+ self._Region = Region
746
+
747
+ @property
748
+ def Bucket(self):
749
+ """云存储桶名称。
750
+ :rtype: str
751
+ """
752
+ return self._Bucket
753
+
754
+ @Bucket.setter
755
+ def Bucket(self, Bucket):
756
+ self._Bucket = Bucket
757
+
758
+ @property
759
+ def AccessKey(self):
760
+ """云存储的access_key账号信息。
761
+ 若存储至腾讯云对象存储COS,请前往https://console.cloud.tencent.com/cam/capi 查看或创建,对应链接中密钥字段的SecretId值。
762
+ 示例值:test-accesskey
763
+ :rtype: str
764
+ """
765
+ return self._AccessKey
766
+
767
+ @AccessKey.setter
768
+ def AccessKey(self, AccessKey):
769
+ self._AccessKey = AccessKey
770
+
771
+ @property
772
+ def SecretKey(self):
773
+ """云存储的secret_key账号信息。
774
+ 若存储至腾讯云对象存储COS,请前往https://console.cloud.tencent.com/cam/capi 查看或创建,对应链接中密钥字段的SecretKey值。
775
+ 示例值:test-secretkey
776
+ :rtype: str
777
+ """
778
+ return self._SecretKey
779
+
780
+ @SecretKey.setter
781
+ def SecretKey(self, SecretKey):
782
+ self._SecretKey = SecretKey
783
+
784
+ @property
785
+ def FileNamePrefix(self):
786
+ """云存储bucket 的指定位置,由字符串数组组成。合法的字符串范围az,AZ,0~9,'_'和'-',举个例子,录制文件xxx.m3u8在 ["prefix1", "prefix2"]作用下,会变成prefix1/prefix2/TaskId/xxx.m3u8。
787
+ 示例值:["prefix1", "prefix2"]
788
+ :rtype: list of str
789
+ """
790
+ return self._FileNamePrefix
791
+
792
+ @FileNamePrefix.setter
793
+ def FileNamePrefix(self, FileNamePrefix):
794
+ self._FileNamePrefix = FileNamePrefix
795
+
796
+
797
+ def _deserialize(self, params):
798
+ self._Vendor = params.get("Vendor")
799
+ self._Region = params.get("Region")
800
+ self._Bucket = params.get("Bucket")
801
+ self._AccessKey = params.get("AccessKey")
802
+ self._SecretKey = params.get("SecretKey")
803
+ self._FileNamePrefix = params.get("FileNamePrefix")
804
+ memeber_set = set(params.keys())
805
+ for name, value in vars(self).items():
806
+ property_name = name[1:]
807
+ if property_name in memeber_set:
808
+ memeber_set.remove(property_name)
809
+ if len(memeber_set) > 0:
810
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
811
+
812
+
813
+
605
814
  class CloudStorage(AbstractModel):
606
815
  """腾讯云对象存储COS以及第三方云存储的账号信息
607
816
 
@@ -867,6 +1076,147 @@ class ControlAIConversationResponse(AbstractModel):
867
1076
  self._RequestId = params.get("RequestId")
868
1077
 
869
1078
 
1079
+ class CreateBasicModerationRequest(AbstractModel):
1080
+ """CreateBasicModeration请求参数结构体
1081
+
1082
+ """
1083
+
1084
+ def __init__(self):
1085
+ r"""
1086
+ :param _SdkAppId: TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和TRTC的房间所对应的SdkAppId相同。
1087
+ :type SdkAppId: int
1088
+ :param _RoomId: TRTC的[RoomId](https://cloud.tencent.com/document/product/647/46351#roomid),为TRTC房间所对应的RoomId。
1089
+ :type RoomId: str
1090
+ :param _UserId: 目标审核用户id
1091
+ :type UserId: str
1092
+ :param _RoomIdType: TRTC房间号的类型。【*注意】必须和TRTC的房间所对应的RoomId类型相同:0: 字符串类型的RoomId1: 32位整型的RoomId(默认)
1093
+ :type RoomIdType: int
1094
+ :param _AuditStorageParams: 音频文件上传到云存储的参数
1095
+ :type AuditStorageParams: :class:`tencentcloud.trtc.v20190722.models.AuditStorageParams`
1096
+ """
1097
+ self._SdkAppId = None
1098
+ self._RoomId = None
1099
+ self._UserId = None
1100
+ self._RoomIdType = None
1101
+ self._AuditStorageParams = None
1102
+
1103
+ @property
1104
+ def SdkAppId(self):
1105
+ """TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和TRTC的房间所对应的SdkAppId相同。
1106
+ :rtype: int
1107
+ """
1108
+ return self._SdkAppId
1109
+
1110
+ @SdkAppId.setter
1111
+ def SdkAppId(self, SdkAppId):
1112
+ self._SdkAppId = SdkAppId
1113
+
1114
+ @property
1115
+ def RoomId(self):
1116
+ """TRTC的[RoomId](https://cloud.tencent.com/document/product/647/46351#roomid),为TRTC房间所对应的RoomId。
1117
+ :rtype: str
1118
+ """
1119
+ return self._RoomId
1120
+
1121
+ @RoomId.setter
1122
+ def RoomId(self, RoomId):
1123
+ self._RoomId = RoomId
1124
+
1125
+ @property
1126
+ def UserId(self):
1127
+ """目标审核用户id
1128
+ :rtype: str
1129
+ """
1130
+ return self._UserId
1131
+
1132
+ @UserId.setter
1133
+ def UserId(self, UserId):
1134
+ self._UserId = UserId
1135
+
1136
+ @property
1137
+ def RoomIdType(self):
1138
+ """TRTC房间号的类型。【*注意】必须和TRTC的房间所对应的RoomId类型相同:0: 字符串类型的RoomId1: 32位整型的RoomId(默认)
1139
+ :rtype: int
1140
+ """
1141
+ return self._RoomIdType
1142
+
1143
+ @RoomIdType.setter
1144
+ def RoomIdType(self, RoomIdType):
1145
+ self._RoomIdType = RoomIdType
1146
+
1147
+ @property
1148
+ def AuditStorageParams(self):
1149
+ """音频文件上传到云存储的参数
1150
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.AuditStorageParams`
1151
+ """
1152
+ return self._AuditStorageParams
1153
+
1154
+ @AuditStorageParams.setter
1155
+ def AuditStorageParams(self, AuditStorageParams):
1156
+ self._AuditStorageParams = AuditStorageParams
1157
+
1158
+
1159
+ def _deserialize(self, params):
1160
+ self._SdkAppId = params.get("SdkAppId")
1161
+ self._RoomId = params.get("RoomId")
1162
+ self._UserId = params.get("UserId")
1163
+ self._RoomIdType = params.get("RoomIdType")
1164
+ if params.get("AuditStorageParams") is not None:
1165
+ self._AuditStorageParams = AuditStorageParams()
1166
+ self._AuditStorageParams._deserialize(params.get("AuditStorageParams"))
1167
+ memeber_set = set(params.keys())
1168
+ for name, value in vars(self).items():
1169
+ property_name = name[1:]
1170
+ if property_name in memeber_set:
1171
+ memeber_set.remove(property_name)
1172
+ if len(memeber_set) > 0:
1173
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1174
+
1175
+
1176
+
1177
+ class CreateBasicModerationResponse(AbstractModel):
1178
+ """CreateBasicModeration返回参数结构体
1179
+
1180
+ """
1181
+
1182
+ def __init__(self):
1183
+ r"""
1184
+ :param _TaskId: 审核服务分配的任务ID。任务ID是对一次审核任务生命周期过程的唯一标识,结束任务时会失去意义。任务ID需要业务保存下来,作为下次针对这个任务操作的参数
1185
+ :type TaskId: str
1186
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1187
+ :type RequestId: str
1188
+ """
1189
+ self._TaskId = None
1190
+ self._RequestId = None
1191
+
1192
+ @property
1193
+ def TaskId(self):
1194
+ """审核服务分配的任务ID。任务ID是对一次审核任务生命周期过程的唯一标识,结束任务时会失去意义。任务ID需要业务保存下来,作为下次针对这个任务操作的参数
1195
+ :rtype: str
1196
+ """
1197
+ return self._TaskId
1198
+
1199
+ @TaskId.setter
1200
+ def TaskId(self, TaskId):
1201
+ self._TaskId = TaskId
1202
+
1203
+ @property
1204
+ def RequestId(self):
1205
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1206
+ :rtype: str
1207
+ """
1208
+ return self._RequestId
1209
+
1210
+ @RequestId.setter
1211
+ def RequestId(self, RequestId):
1212
+ self._RequestId = RequestId
1213
+
1214
+
1215
+ def _deserialize(self, params):
1216
+ self._TaskId = params.get("TaskId")
1217
+ self._RequestId = params.get("RequestId")
1218
+
1219
+
870
1220
  class CreateCloudRecordingRequest(AbstractModel):
871
1221
  """CreateCloudRecording请求参数结构体
872
1222
 
@@ -1285,6 +1635,100 @@ class CreatePictureResponse(AbstractModel):
1285
1635
  self._RequestId = params.get("RequestId")
1286
1636
 
1287
1637
 
1638
+ class DeleteBasicModerationRequest(AbstractModel):
1639
+ """DeleteBasicModeration请求参数结构体
1640
+
1641
+ """
1642
+
1643
+ def __init__(self):
1644
+ r"""
1645
+ :param _SdkAppId: TRTC的SDKAppId,和TRTC的房间所对应的SDKAppId相同。
1646
+ :type SdkAppId: int
1647
+ :param _TaskId: 审核任务的唯一Id,在启动审核任务成功后会返回。
1648
+ :type TaskId: str
1649
+ """
1650
+ self._SdkAppId = None
1651
+ self._TaskId = None
1652
+
1653
+ @property
1654
+ def SdkAppId(self):
1655
+ """TRTC的SDKAppId,和TRTC的房间所对应的SDKAppId相同。
1656
+ :rtype: int
1657
+ """
1658
+ return self._SdkAppId
1659
+
1660
+ @SdkAppId.setter
1661
+ def SdkAppId(self, SdkAppId):
1662
+ self._SdkAppId = SdkAppId
1663
+
1664
+ @property
1665
+ def TaskId(self):
1666
+ """审核任务的唯一Id,在启动审核任务成功后会返回。
1667
+ :rtype: str
1668
+ """
1669
+ return self._TaskId
1670
+
1671
+ @TaskId.setter
1672
+ def TaskId(self, TaskId):
1673
+ self._TaskId = TaskId
1674
+
1675
+
1676
+ def _deserialize(self, params):
1677
+ self._SdkAppId = params.get("SdkAppId")
1678
+ self._TaskId = params.get("TaskId")
1679
+ memeber_set = set(params.keys())
1680
+ for name, value in vars(self).items():
1681
+ property_name = name[1:]
1682
+ if property_name in memeber_set:
1683
+ memeber_set.remove(property_name)
1684
+ if len(memeber_set) > 0:
1685
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1686
+
1687
+
1688
+
1689
+ class DeleteBasicModerationResponse(AbstractModel):
1690
+ """DeleteBasicModeration返回参数结构体
1691
+
1692
+ """
1693
+
1694
+ def __init__(self):
1695
+ r"""
1696
+ :param _TaskId: 审核任务的唯一Id,在启动审核任务成功后会返回。
1697
+ :type TaskId: str
1698
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1699
+ :type RequestId: str
1700
+ """
1701
+ self._TaskId = None
1702
+ self._RequestId = None
1703
+
1704
+ @property
1705
+ def TaskId(self):
1706
+ """审核任务的唯一Id,在启动审核任务成功后会返回。
1707
+ :rtype: str
1708
+ """
1709
+ return self._TaskId
1710
+
1711
+ @TaskId.setter
1712
+ def TaskId(self, TaskId):
1713
+ self._TaskId = TaskId
1714
+
1715
+ @property
1716
+ def RequestId(self):
1717
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1718
+ :rtype: str
1719
+ """
1720
+ return self._RequestId
1721
+
1722
+ @RequestId.setter
1723
+ def RequestId(self, RequestId):
1724
+ self._RequestId = RequestId
1725
+
1726
+
1727
+ def _deserialize(self, params):
1728
+ self._TaskId = params.get("TaskId")
1729
+ self._RequestId = params.get("RequestId")
1730
+
1731
+
1288
1732
  class DeleteCloudRecordingRequest(AbstractModel):
1289
1733
  """DeleteCloudRecording请求参数结构体
1290
1734
 
@@ -6965,7 +7409,8 @@ class McuPassThrough(AbstractModel):
6965
7409
  r"""
6966
7410
  :param _PayloadContent: 透传SEI的payload内容。
6967
7411
  :type PayloadContent: str
6968
- :param _PayloadType: SEI消息的payload_type,取值范围5、100-254(244除外,244为我们内部自定义的时间戳SEI)。
7412
+ :param _PayloadType: SEI消息的PayloadType,取值范围5、100-254(244除外,244为我们内部自定义的时间戳SEI)。
7413
+ 注:部分播放器可能不支持PayloadType为5带PayloadUuid的标准类型,建议优先使用其他PayloadType。
6969
7414
  :type PayloadType: int
6970
7415
  :param _PayloadUuid: PayloadType为5,PayloadUuid必须填写。PayloadType不是5时,不需要填写,填写会被后台忽略。该值必须是32长度的十六进制。
6971
7416
  :type PayloadUuid: str
@@ -6993,7 +7438,8 @@ class McuPassThrough(AbstractModel):
6993
7438
 
6994
7439
  @property
6995
7440
  def PayloadType(self):
6996
- """SEI消息的payload_type,取值范围5、100-254(244除外,244为我们内部自定义的时间戳SEI)。
7441
+ """SEI消息的PayloadType,取值范围5、100-254(244除外,244为我们内部自定义的时间戳SEI)。
7442
+ 注:部分播放器可能不支持PayloadType为5带PayloadUuid的标准类型,建议优先使用其他PayloadType。
6997
7443
  :rtype: int
6998
7444
  """
6999
7445
  return self._PayloadType
@@ -10798,10 +11244,15 @@ class ServerPushText(AbstractModel):
10798
11244
  :type Interrupt: bool
10799
11245
  :param _StopAfterPlay: 播报完文本后,是否自动关闭对话任务
10800
11246
  :type StopAfterPlay: bool
11247
+ :param _Audio: 服务端推送播报音频
11248
+ 格式说明:音频以16KHz采样率的单声道格式提供,编码为Base64字符串。
11249
+ 输入规则:当提供Audio字段时,将不接受Text字段的输入。系统将直接播放Audio字段中的音频内容。
11250
+ :type Audio: str
10801
11251
  """
10802
11252
  self._Text = None
10803
11253
  self._Interrupt = None
10804
11254
  self._StopAfterPlay = None
11255
+ self._Audio = None
10805
11256
 
10806
11257
  @property
10807
11258
  def Text(self):
@@ -10836,11 +11287,25 @@ class ServerPushText(AbstractModel):
10836
11287
  def StopAfterPlay(self, StopAfterPlay):
10837
11288
  self._StopAfterPlay = StopAfterPlay
10838
11289
 
11290
+ @property
11291
+ def Audio(self):
11292
+ """服务端推送播报音频
11293
+ 格式说明:音频以16KHz采样率的单声道格式提供,编码为Base64字符串。
11294
+ 输入规则:当提供Audio字段时,将不接受Text字段的输入。系统将直接播放Audio字段中的音频内容。
11295
+ :rtype: str
11296
+ """
11297
+ return self._Audio
11298
+
11299
+ @Audio.setter
11300
+ def Audio(self, Audio):
11301
+ self._Audio = Audio
11302
+
10839
11303
 
10840
11304
  def _deserialize(self, params):
10841
11305
  self._Text = params.get("Text")
10842
11306
  self._Interrupt = params.get("Interrupt")
10843
11307
  self._StopAfterPlay = params.get("StopAfterPlay")
11308
+ self._Audio = params.get("Audio")
10844
11309
  memeber_set = set(params.keys())
10845
11310
  for name, value in vars(self).items():
10846
11311
  property_name = name[1:]
@@ -13612,6 +14077,7 @@ https://cloud.tencent.com/document/product/269/31999#app-.E7.AE.A1.E7.90.86.E5.9
13612
14077
  :param _TargetUserId: TranscriptionMode为1时必填,机器人只会拉该userid的流,忽略房间里其他用户。
13613
14078
  :type TargetUserId: str
13614
14079
  :param _TargetUserIdList: 机器人订阅的用户列表
14080
+ 仅 TranscriptionMode 为 1或者 TranscriptionMode 为无限上麦模式支持传入多个用户列表
13615
14081
  :type TargetUserIdList: list of str
13616
14082
  """
13617
14083
  self._UserId = None
@@ -13712,6 +14178,7 @@ https://cloud.tencent.com/document/product/269/31999#app-.E7.AE.A1.E7.90.86.E5.9
13712
14178
  @property
13713
14179
  def TargetUserIdList(self):
13714
14180
  """机器人订阅的用户列表
14181
+ 仅 TranscriptionMode 为 1或者 TranscriptionMode 为无限上麦模式支持传入多个用户列表
13715
14182
  :rtype: list of str
13716
14183
  """
13717
14184
  return self._TargetUserIdList
@@ -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,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-trtc
3
- Version: 3.0.1273
3
+ Version: 3.0.1296
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
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common==3.0.1296
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1273