tencentcloud-sdk-python-trtc 3.0.1275__py2.py3-none-any.whl → 3.0.1294__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


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

tencentcloud/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1275'
17
+ __version__ = '3.0.1294'
@@ -347,6 +347,9 @@ MISSINGPARAMETER_VENDOR = 'MissingParameter.Vendor'
347
347
  # EncodeParams中缺少视频输出参数。
348
348
  MISSINGPARAMETER_VIDEOENCODEPARAMS = 'MissingParameter.VideoEncodeParams'
349
349
 
350
+ # 请求频率超限,请稍后再试
351
+ OPERATIONDENIED_FREQOVERLIMIT = 'OperationDenied.FreqOverLimit'
352
+
350
353
  # 资源不足。
351
354
  RESOURCEINSUFFICIENT_REQUESTREJECTION = 'ResourceInsufficient.RequestRejection'
352
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
 
@@ -882,11 +1091,14 @@ class CreateBasicModerationRequest(AbstractModel):
882
1091
  :type UserId: str
883
1092
  :param _RoomIdType: TRTC房间号的类型。【*注意】必须和TRTC的房间所对应的RoomId类型相同:0: 字符串类型的RoomId1: 32位整型的RoomId(默认)
884
1093
  :type RoomIdType: int
1094
+ :param _AuditStorageParams: 音频文件上传到云存储的参数
1095
+ :type AuditStorageParams: :class:`tencentcloud.trtc.v20190722.models.AuditStorageParams`
885
1096
  """
886
1097
  self._SdkAppId = None
887
1098
  self._RoomId = None
888
1099
  self._UserId = None
889
1100
  self._RoomIdType = None
1101
+ self._AuditStorageParams = None
890
1102
 
891
1103
  @property
892
1104
  def SdkAppId(self):
@@ -932,12 +1144,26 @@ class CreateBasicModerationRequest(AbstractModel):
932
1144
  def RoomIdType(self, RoomIdType):
933
1145
  self._RoomIdType = RoomIdType
934
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
+
935
1158
 
936
1159
  def _deserialize(self, params):
937
1160
  self._SdkAppId = params.get("SdkAppId")
938
1161
  self._RoomId = params.get("RoomId")
939
1162
  self._UserId = params.get("UserId")
940
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"))
941
1167
  memeber_set = set(params.keys())
942
1168
  for name, value in vars(self).items():
943
1169
  property_name = name[1:]
@@ -7183,7 +7409,8 @@ class McuPassThrough(AbstractModel):
7183
7409
  r"""
7184
7410
  :param _PayloadContent: 透传SEI的payload内容。
7185
7411
  :type PayloadContent: str
7186
- :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。
7187
7414
  :type PayloadType: int
7188
7415
  :param _PayloadUuid: PayloadType为5,PayloadUuid必须填写。PayloadType不是5时,不需要填写,填写会被后台忽略。该值必须是32长度的十六进制。
7189
7416
  :type PayloadUuid: str
@@ -7211,7 +7438,8 @@ class McuPassThrough(AbstractModel):
7211
7438
 
7212
7439
  @property
7213
7440
  def PayloadType(self):
7214
- """SEI消息的payload_type,取值范围5、100-254(244除外,244为我们内部自定义的时间戳SEI)。
7441
+ """SEI消息的PayloadType,取值范围5、100-254(244除外,244为我们内部自定义的时间戳SEI)。
7442
+ 注:部分播放器可能不支持PayloadType为5带PayloadUuid的标准类型,建议优先使用其他PayloadType。
7215
7443
  :rtype: int
7216
7444
  """
7217
7445
  return self._PayloadType
@@ -11016,10 +11244,15 @@ class ServerPushText(AbstractModel):
11016
11244
  :type Interrupt: bool
11017
11245
  :param _StopAfterPlay: 播报完文本后,是否自动关闭对话任务
11018
11246
  :type StopAfterPlay: bool
11247
+ :param _Audio: 服务端推送播报音频
11248
+ 格式说明:音频以16KHz采样率的单声道格式提供,编码为Base64字符串。
11249
+ 输入规则:当提供Audio字段时,将不接受Text字段的输入。系统将直接播放Audio字段中的音频内容。
11250
+ :type Audio: str
11019
11251
  """
11020
11252
  self._Text = None
11021
11253
  self._Interrupt = None
11022
11254
  self._StopAfterPlay = None
11255
+ self._Audio = None
11023
11256
 
11024
11257
  @property
11025
11258
  def Text(self):
@@ -11054,11 +11287,25 @@ class ServerPushText(AbstractModel):
11054
11287
  def StopAfterPlay(self, StopAfterPlay):
11055
11288
  self._StopAfterPlay = StopAfterPlay
11056
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
+
11057
11303
 
11058
11304
  def _deserialize(self, params):
11059
11305
  self._Text = params.get("Text")
11060
11306
  self._Interrupt = params.get("Interrupt")
11061
11307
  self._StopAfterPlay = params.get("StopAfterPlay")
11308
+ self._Audio = params.get("Audio")
11062
11309
  memeber_set = set(params.keys())
11063
11310
  for name, value in vars(self).items():
11064
11311
  property_name = name[1:]
@@ -13830,6 +14077,7 @@ https://cloud.tencent.com/document/product/269/31999#app-.E7.AE.A1.E7.90.86.E5.9
13830
14077
  :param _TargetUserId: TranscriptionMode为1时必填,机器人只会拉该userid的流,忽略房间里其他用户。
13831
14078
  :type TargetUserId: str
13832
14079
  :param _TargetUserIdList: 机器人订阅的用户列表
14080
+ 仅 TranscriptionMode 为 1或者 TranscriptionMode 为无限上麦模式支持传入多个用户列表
13833
14081
  :type TargetUserIdList: list of str
13834
14082
  """
13835
14083
  self._UserId = None
@@ -13930,6 +14178,7 @@ https://cloud.tencent.com/document/product/269/31999#app-.E7.AE.A1.E7.90.86.E5.9
13930
14178
  @property
13931
14179
  def TargetUserIdList(self):
13932
14180
  """机器人订阅的用户列表
14181
+ 仅 TranscriptionMode 为 1或者 TranscriptionMode 为无限上麦模式支持传入多个用户列表
13933
14182
  :rtype: list of str
13934
14183
  """
13935
14184
  return self._TargetUserIdList
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-trtc
3
- Version: 3.0.1275
3
+ Version: 3.0.1294
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 (==3.0.1275)
18
+ Requires-Dist: tencentcloud-sdk-python-common (==3.0.1294)
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1,10 @@
1
+ tencentcloud/__init__.py,sha256=2rGGHfFp19pPMayyzG88wR9QdN4QzEol8L-0hOUBkYU,631
2
+ tencentcloud/trtc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ tencentcloud/trtc/v20190722/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ tencentcloud/trtc/v20190722/errorcodes.py,sha256=xHA8fGLzwp1OSMztNVB4c08EyyYW8WaOn3et3qE_m7I,11586
5
+ tencentcloud/trtc/v20190722/models.py,sha256=bAijf6BCAIn-u-EZSD9IAas15aDVXmoy1faHnYBGhn8,559324
6
+ tencentcloud/trtc/v20190722/trtc_client.py,sha256=oaomKfzcpEGOJYalgpYuTdCr7K0ugW3CV9jk-3t3Dn4,79095
7
+ tencentcloud_sdk_python_trtc-3.0.1294.dist-info/METADATA,sha256=sXDIoYKc6r7ZES2ysX4boyWvQDqjl1rOwxg_EF5j65E,1501
8
+ tencentcloud_sdk_python_trtc-3.0.1294.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
9
+ tencentcloud_sdk_python_trtc-3.0.1294.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
10
+ tencentcloud_sdk_python_trtc-3.0.1294.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- tencentcloud/__init__.py,sha256=InhEbvQ1HK53D1ZozF4UudYd6myzQGP6Yng-JusZ1bY,631
2
- tencentcloud/trtc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- tencentcloud/trtc/v20190722/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- tencentcloud/trtc/v20190722/errorcodes.py,sha256=m581IullpcukpJ4cLE1ghL5FVKTMQbMcnZLzelpwwvA,11482
5
- tencentcloud/trtc/v20190722/models.py,sha256=nLIXxizZn7kjH64ErZoGBie5y3hKTfbqn9GXTk2BWSk,549309
6
- tencentcloud/trtc/v20190722/trtc_client.py,sha256=oaomKfzcpEGOJYalgpYuTdCr7K0ugW3CV9jk-3t3Dn4,79095
7
- tencentcloud_sdk_python_trtc-3.0.1275.dist-info/METADATA,sha256=b4v4RhTPZ0IiHARic-L1tGaFfuSD4GLL2cip6eRfQDQ,1501
8
- tencentcloud_sdk_python_trtc-3.0.1275.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
9
- tencentcloud_sdk_python_trtc-3.0.1275.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
10
- tencentcloud_sdk_python_trtc-3.0.1275.dist-info/RECORD,,