tencentcloud-sdk-python-trtc 3.0.1265__tar.gz → 3.0.1277__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.1265 → tencentcloud-sdk-python-trtc-3.0.1277}/PKG-INFO +3 -3
- {tencentcloud-sdk-python-trtc-3.0.1265 → tencentcloud-sdk-python-trtc-3.0.1277}/setup.cfg +0 -1
- {tencentcloud-sdk-python-trtc-3.0.1265 → tencentcloud-sdk-python-trtc-3.0.1277}/setup.py +1 -1
- {tencentcloud-sdk-python-trtc-3.0.1265 → tencentcloud-sdk-python-trtc-3.0.1277}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-trtc-3.0.1265 → tencentcloud-sdk-python-trtc-3.0.1277}/tencentcloud/trtc/v20190722/errorcodes.py +15 -0
- {tencentcloud-sdk-python-trtc-3.0.1265 → tencentcloud-sdk-python-trtc-3.0.1277}/tencentcloud/trtc/v20190722/models.py +627 -10
- {tencentcloud-sdk-python-trtc-3.0.1265 → tencentcloud-sdk-python-trtc-3.0.1277}/tencentcloud/trtc/v20190722/trtc_client.py +47 -0
- {tencentcloud-sdk-python-trtc-3.0.1265 → tencentcloud-sdk-python-trtc-3.0.1277}/tencentcloud_sdk_python_trtc.egg-info/PKG-INFO +3 -3
- tencentcloud-sdk-python-trtc-3.0.1277/tencentcloud_sdk_python_trtc.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-trtc-3.0.1265/tencentcloud_sdk_python_trtc.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-trtc-3.0.1265 → tencentcloud-sdk-python-trtc-3.0.1277}/README.rst +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1265 → tencentcloud-sdk-python-trtc-3.0.1277}/tencentcloud/trtc/__init__.py +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1265 → tencentcloud-sdk-python-trtc-3.0.1277}/tencentcloud/trtc/v20190722/__init__.py +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1265 → tencentcloud-sdk-python-trtc-3.0.1277}/tencentcloud_sdk_python_trtc.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1265 → tencentcloud-sdk-python-trtc-3.0.1277}/tencentcloud_sdk_python_trtc.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1265 → tencentcloud-sdk-python-trtc-3.0.1277}/tencentcloud_sdk_python_trtc.egg-info/top_level.txt +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
Metadata-Version: 1.
|
|
1
|
+
Metadata-Version: 1.2
|
|
2
2
|
Name: tencentcloud-sdk-python-trtc
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.1277
|
|
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
|
-
|
|
7
|
+
Maintainer-email: tencentcloudapi@tencent.com
|
|
8
8
|
License: Apache License 2.0
|
|
9
9
|
Description: ============================
|
|
10
10
|
Tencent Cloud SDK for Python
|
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-trtc',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common==3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1277"],
|
|
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
|
|
|
@@ -2120,7 +2549,6 @@ InProgress:表示当前录制任务正在进行中。
|
|
|
2120
2549
|
Exited:表示当前录制任务正在退出的过程中。
|
|
2121
2550
|
:type Status: str
|
|
2122
2551
|
:param _StorageFileList: 录制文件信息。
|
|
2123
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
2124
2552
|
:type StorageFileList: list of StorageFile
|
|
2125
2553
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2126
2554
|
:type RequestId: str
|
|
@@ -2158,7 +2586,6 @@ Exited:表示当前录制任务正在退出的过程中。
|
|
|
2158
2586
|
@property
|
|
2159
2587
|
def StorageFileList(self):
|
|
2160
2588
|
"""录制文件信息。
|
|
2161
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
2162
2589
|
:rtype: list of StorageFile
|
|
2163
2590
|
"""
|
|
2164
2591
|
return self._StorageFileList
|
|
@@ -5483,6 +5910,69 @@ class DismissRoomResponse(AbstractModel):
|
|
|
5483
5910
|
self._RequestId = params.get("RequestId")
|
|
5484
5911
|
|
|
5485
5912
|
|
|
5913
|
+
class EmulateMobileParams(AbstractModel):
|
|
5914
|
+
"""渲染移动模式参数,不渲染移动模式时,请勿设置此参数。
|
|
5915
|
+
|
|
5916
|
+
"""
|
|
5917
|
+
|
|
5918
|
+
def __init__(self):
|
|
5919
|
+
r"""
|
|
5920
|
+
:param _MobileDeviceType: 移动设备类型,
|
|
5921
|
+
0: 手机
|
|
5922
|
+
1: 平板
|
|
5923
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5924
|
+
:type MobileDeviceType: int
|
|
5925
|
+
:param _ScreenOrientation: 屏幕方向,
|
|
5926
|
+
0: 竖屏,
|
|
5927
|
+
1: 横屏
|
|
5928
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5929
|
+
:type ScreenOrientation: int
|
|
5930
|
+
"""
|
|
5931
|
+
self._MobileDeviceType = None
|
|
5932
|
+
self._ScreenOrientation = None
|
|
5933
|
+
|
|
5934
|
+
@property
|
|
5935
|
+
def MobileDeviceType(self):
|
|
5936
|
+
"""移动设备类型,
|
|
5937
|
+
0: 手机
|
|
5938
|
+
1: 平板
|
|
5939
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5940
|
+
:rtype: int
|
|
5941
|
+
"""
|
|
5942
|
+
return self._MobileDeviceType
|
|
5943
|
+
|
|
5944
|
+
@MobileDeviceType.setter
|
|
5945
|
+
def MobileDeviceType(self, MobileDeviceType):
|
|
5946
|
+
self._MobileDeviceType = MobileDeviceType
|
|
5947
|
+
|
|
5948
|
+
@property
|
|
5949
|
+
def ScreenOrientation(self):
|
|
5950
|
+
"""屏幕方向,
|
|
5951
|
+
0: 竖屏,
|
|
5952
|
+
1: 横屏
|
|
5953
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5954
|
+
:rtype: int
|
|
5955
|
+
"""
|
|
5956
|
+
return self._ScreenOrientation
|
|
5957
|
+
|
|
5958
|
+
@ScreenOrientation.setter
|
|
5959
|
+
def ScreenOrientation(self, ScreenOrientation):
|
|
5960
|
+
self._ScreenOrientation = ScreenOrientation
|
|
5961
|
+
|
|
5962
|
+
|
|
5963
|
+
def _deserialize(self, params):
|
|
5964
|
+
self._MobileDeviceType = params.get("MobileDeviceType")
|
|
5965
|
+
self._ScreenOrientation = params.get("ScreenOrientation")
|
|
5966
|
+
memeber_set = set(params.keys())
|
|
5967
|
+
for name, value in vars(self).items():
|
|
5968
|
+
property_name = name[1:]
|
|
5969
|
+
if property_name in memeber_set:
|
|
5970
|
+
memeber_set.remove(property_name)
|
|
5971
|
+
if len(memeber_set) > 0:
|
|
5972
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5973
|
+
|
|
5974
|
+
|
|
5975
|
+
|
|
5486
5976
|
class EncodeParams(AbstractModel):
|
|
5487
5977
|
"""MCU混流输出流编码参数
|
|
5488
5978
|
|
|
@@ -6904,7 +7394,8 @@ class McuPassThrough(AbstractModel):
|
|
|
6904
7394
|
r"""
|
|
6905
7395
|
:param _PayloadContent: 透传SEI的payload内容。
|
|
6906
7396
|
:type PayloadContent: str
|
|
6907
|
-
:param _PayloadType: SEI消息的
|
|
7397
|
+
:param _PayloadType: SEI消息的PayloadType,取值范围5、100-254(244除外,244为我们内部自定义的时间戳SEI)。
|
|
7398
|
+
注:部分播放器可能不支持PayloadType为5带PayloadUuid的标准类型,建议优先使用其他PayloadType。
|
|
6908
7399
|
:type PayloadType: int
|
|
6909
7400
|
:param _PayloadUuid: PayloadType为5,PayloadUuid必须填写。PayloadType不是5时,不需要填写,填写会被后台忽略。该值必须是32长度的十六进制。
|
|
6910
7401
|
:type PayloadUuid: str
|
|
@@ -6932,7 +7423,8 @@ class McuPassThrough(AbstractModel):
|
|
|
6932
7423
|
|
|
6933
7424
|
@property
|
|
6934
7425
|
def PayloadType(self):
|
|
6935
|
-
"""SEI消息的
|
|
7426
|
+
"""SEI消息的PayloadType,取值范围5、100-254(244除外,244为我们内部自定义的时间戳SEI)。
|
|
7427
|
+
注:部分播放器可能不支持PayloadType为5带PayloadUuid的标准类型,建议优先使用其他PayloadType。
|
|
6936
7428
|
:rtype: int
|
|
6937
7429
|
"""
|
|
6938
7430
|
return self._PayloadType
|
|
@@ -9458,7 +9950,28 @@ class RecognizeConfig(AbstractModel):
|
|
|
9458
9950
|
:type AlternativeLanguage: list of str
|
|
9459
9951
|
:param _Model: 目前已不支持
|
|
9460
9952
|
:type Model: str
|
|
9461
|
-
: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
|
|
9462
9975
|
:type TranslationLanguage: str
|
|
9463
9976
|
"""
|
|
9464
9977
|
self._Language = None
|
|
@@ -9537,7 +10050,28 @@ class RecognizeConfig(AbstractModel):
|
|
|
9537
10050
|
def TranslationLanguage(self):
|
|
9538
10051
|
warnings.warn("parameter `TranslationLanguage` is deprecated", DeprecationWarning)
|
|
9539
10052
|
|
|
9540
|
-
"""
|
|
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
|
|
9541
10075
|
:rtype: str
|
|
9542
10076
|
"""
|
|
9543
10077
|
return self._TranslationLanguage
|
|
@@ -9575,7 +10109,7 @@ class RecordParams(AbstractModel):
|
|
|
9575
10109
|
1:单流录制,分别录制房间的订阅UserId的音频和视频,将录制文件上传至云存储;
|
|
9576
10110
|
2:合流录制,将房间内订阅UserId的音视频混录成一个音视频文件,将录制文件上传至云存储;
|
|
9577
10111
|
:type RecordMode: int
|
|
9578
|
-
:param _MaxIdleTime:
|
|
10112
|
+
:param _MaxIdleTime: 房间内持续没有主播的状态超过MaxIdleTime的时长,自动停止录制,单位:秒。默认值为 30 秒,该值需大于等于 5秒,且小于等于 86400秒(24小时)。
|
|
9579
10113
|
:type MaxIdleTime: int
|
|
9580
10114
|
:param _StreamType: 录制的媒体流类型:
|
|
9581
10115
|
0:录制音频+视频流(默认);
|
|
@@ -9623,7 +10157,7 @@ Hls 格式录制此参数不生效。
|
|
|
9623
10157
|
|
|
9624
10158
|
@property
|
|
9625
10159
|
def MaxIdleTime(self):
|
|
9626
|
-
"""
|
|
10160
|
+
"""房间内持续没有主播的状态超过MaxIdleTime的时长,自动停止录制,单位:秒。默认值为 30 秒,该值需大于等于 5秒,且小于等于 86400秒(24小时)。
|
|
9627
10161
|
:rtype: int
|
|
9628
10162
|
"""
|
|
9629
10163
|
return self._MaxIdleTime
|
|
@@ -10211,11 +10745,15 @@ class STTConfig(AbstractModel):
|
|
|
10211
10745
|
注:Language指定为"zh-dialect" # 中国方言 时,不支持模糊识别,该字段无效
|
|
10212
10746
|
|
|
10213
10747
|
:type AlternativeLanguage: list of str
|
|
10748
|
+
:param _CustomParam: 自定义参数,联系后台使用
|
|
10749
|
+
|
|
10750
|
+
:type CustomParam: str
|
|
10214
10751
|
:param _VadSilenceTime: 语音识别vad的时间,范围为240-2000,默认为1000,单位为ms。更小的值会让语音识别分句更快。
|
|
10215
10752
|
:type VadSilenceTime: int
|
|
10216
10753
|
"""
|
|
10217
10754
|
self._Language = None
|
|
10218
10755
|
self._AlternativeLanguage = None
|
|
10756
|
+
self._CustomParam = None
|
|
10219
10757
|
self._VadSilenceTime = None
|
|
10220
10758
|
|
|
10221
10759
|
@property
|
|
@@ -10269,6 +10807,18 @@ class STTConfig(AbstractModel):
|
|
|
10269
10807
|
def AlternativeLanguage(self, AlternativeLanguage):
|
|
10270
10808
|
self._AlternativeLanguage = AlternativeLanguage
|
|
10271
10809
|
|
|
10810
|
+
@property
|
|
10811
|
+
def CustomParam(self):
|
|
10812
|
+
"""自定义参数,联系后台使用
|
|
10813
|
+
|
|
10814
|
+
:rtype: str
|
|
10815
|
+
"""
|
|
10816
|
+
return self._CustomParam
|
|
10817
|
+
|
|
10818
|
+
@CustomParam.setter
|
|
10819
|
+
def CustomParam(self, CustomParam):
|
|
10820
|
+
self._CustomParam = CustomParam
|
|
10821
|
+
|
|
10272
10822
|
@property
|
|
10273
10823
|
def VadSilenceTime(self):
|
|
10274
10824
|
"""语音识别vad的时间,范围为240-2000,默认为1000,单位为ms。更小的值会让语音识别分句更快。
|
|
@@ -10284,6 +10834,7 @@ class STTConfig(AbstractModel):
|
|
|
10284
10834
|
def _deserialize(self, params):
|
|
10285
10835
|
self._Language = params.get("Language")
|
|
10286
10836
|
self._AlternativeLanguage = params.get("AlternativeLanguage")
|
|
10837
|
+
self._CustomParam = params.get("CustomParam")
|
|
10287
10838
|
self._VadSilenceTime = params.get("VadSilenceTime")
|
|
10288
10839
|
memeber_set = set(params.keys())
|
|
10289
10840
|
for name, value in vars(self).items():
|
|
@@ -10678,10 +11229,15 @@ class ServerPushText(AbstractModel):
|
|
|
10678
11229
|
:type Interrupt: bool
|
|
10679
11230
|
:param _StopAfterPlay: 播报完文本后,是否自动关闭对话任务
|
|
10680
11231
|
:type StopAfterPlay: bool
|
|
11232
|
+
:param _Audio: 服务端推送播报音频
|
|
11233
|
+
格式说明:音频以16KHz采样率的单声道格式提供,编码为Base64字符串。
|
|
11234
|
+
输入规则:当提供Audio字段时,将不接受Text字段的输入。系统将直接播放Audio字段中的音频内容。
|
|
11235
|
+
:type Audio: str
|
|
10681
11236
|
"""
|
|
10682
11237
|
self._Text = None
|
|
10683
11238
|
self._Interrupt = None
|
|
10684
11239
|
self._StopAfterPlay = None
|
|
11240
|
+
self._Audio = None
|
|
10685
11241
|
|
|
10686
11242
|
@property
|
|
10687
11243
|
def Text(self):
|
|
@@ -10716,11 +11272,25 @@ class ServerPushText(AbstractModel):
|
|
|
10716
11272
|
def StopAfterPlay(self, StopAfterPlay):
|
|
10717
11273
|
self._StopAfterPlay = StopAfterPlay
|
|
10718
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
|
+
|
|
10719
11288
|
|
|
10720
11289
|
def _deserialize(self, params):
|
|
10721
11290
|
self._Text = params.get("Text")
|
|
10722
11291
|
self._Interrupt = params.get("Interrupt")
|
|
10723
11292
|
self._StopAfterPlay = params.get("StopAfterPlay")
|
|
11293
|
+
self._Audio = params.get("Audio")
|
|
10724
11294
|
memeber_set = set(params.keys())
|
|
10725
11295
|
for name, value in vars(self).items():
|
|
10726
11296
|
property_name = name[1:]
|
|
@@ -11843,6 +12413,8 @@ class StartStreamIngestRequest(AbstractModel):
|
|
|
11843
12413
|
:type RepeatNum: int
|
|
11844
12414
|
:param _MaxDuration: 循环播放最大时长,仅支持RepeatNum设置-1时生效,取值范围[1, 10080],单位分钟。
|
|
11845
12415
|
:type MaxDuration: int
|
|
12416
|
+
:param _Volume: 音量,取值范围[0, 100],默认100,表示原音量。
|
|
12417
|
+
:type Volume: int
|
|
11846
12418
|
"""
|
|
11847
12419
|
self._SdkAppId = None
|
|
11848
12420
|
self._RoomId = None
|
|
@@ -11858,6 +12430,7 @@ class StartStreamIngestRequest(AbstractModel):
|
|
|
11858
12430
|
self._AutoPush = None
|
|
11859
12431
|
self._RepeatNum = None
|
|
11860
12432
|
self._MaxDuration = None
|
|
12433
|
+
self._Volume = None
|
|
11861
12434
|
|
|
11862
12435
|
@property
|
|
11863
12436
|
def SdkAppId(self):
|
|
@@ -12031,6 +12604,17 @@ class StartStreamIngestRequest(AbstractModel):
|
|
|
12031
12604
|
def MaxDuration(self, MaxDuration):
|
|
12032
12605
|
self._MaxDuration = MaxDuration
|
|
12033
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
|
+
|
|
12034
12618
|
|
|
12035
12619
|
def _deserialize(self, params):
|
|
12036
12620
|
self._SdkAppId = params.get("SdkAppId")
|
|
@@ -12051,6 +12635,7 @@ class StartStreamIngestRequest(AbstractModel):
|
|
|
12051
12635
|
self._AutoPush = params.get("AutoPush")
|
|
12052
12636
|
self._RepeatNum = params.get("RepeatNum")
|
|
12053
12637
|
self._MaxDuration = params.get("MaxDuration")
|
|
12638
|
+
self._Volume = params.get("Volume")
|
|
12054
12639
|
memeber_set = set(params.keys())
|
|
12055
12640
|
for name, value in vars(self).items():
|
|
12056
12641
|
property_name = name[1:]
|
|
@@ -12130,6 +12715,8 @@ class StartWebRecordRequest(AbstractModel):
|
|
|
12130
12715
|
:type PublishCdnParams: list of McuPublishCdnParam
|
|
12131
12716
|
:param _ReadyTimeout: 录制页面资源加载的超时时间,单位:秒。默认值为 0 秒,该值需大于等于 0秒,且小于等于 60秒。录制页面未启用页面加载超时检测时,请勿设置此参数。
|
|
12132
12717
|
:type ReadyTimeout: int
|
|
12718
|
+
:param _EmulateMobileParams: 渲染移动模式参数;不准备渲染移动模式页面时,请勿设置此参数。
|
|
12719
|
+
:type EmulateMobileParams: :class:`tencentcloud.trtc.v20190722.models.EmulateMobileParams`
|
|
12133
12720
|
"""
|
|
12134
12721
|
self._RecordUrl = None
|
|
12135
12722
|
self._MaxDurationLimit = None
|
|
@@ -12139,6 +12726,7 @@ class StartWebRecordRequest(AbstractModel):
|
|
|
12139
12726
|
self._RecordId = None
|
|
12140
12727
|
self._PublishCdnParams = None
|
|
12141
12728
|
self._ReadyTimeout = None
|
|
12729
|
+
self._EmulateMobileParams = None
|
|
12142
12730
|
|
|
12143
12731
|
@property
|
|
12144
12732
|
def RecordUrl(self):
|
|
@@ -12231,6 +12819,17 @@ class StartWebRecordRequest(AbstractModel):
|
|
|
12231
12819
|
def ReadyTimeout(self, ReadyTimeout):
|
|
12232
12820
|
self._ReadyTimeout = ReadyTimeout
|
|
12233
12821
|
|
|
12822
|
+
@property
|
|
12823
|
+
def EmulateMobileParams(self):
|
|
12824
|
+
"""渲染移动模式参数;不准备渲染移动模式页面时,请勿设置此参数。
|
|
12825
|
+
:rtype: :class:`tencentcloud.trtc.v20190722.models.EmulateMobileParams`
|
|
12826
|
+
"""
|
|
12827
|
+
return self._EmulateMobileParams
|
|
12828
|
+
|
|
12829
|
+
@EmulateMobileParams.setter
|
|
12830
|
+
def EmulateMobileParams(self, EmulateMobileParams):
|
|
12831
|
+
self._EmulateMobileParams = EmulateMobileParams
|
|
12832
|
+
|
|
12234
12833
|
|
|
12235
12834
|
def _deserialize(self, params):
|
|
12236
12835
|
self._RecordUrl = params.get("RecordUrl")
|
|
@@ -12250,6 +12849,9 @@ class StartWebRecordRequest(AbstractModel):
|
|
|
12250
12849
|
obj._deserialize(item)
|
|
12251
12850
|
self._PublishCdnParams.append(obj)
|
|
12252
12851
|
self._ReadyTimeout = params.get("ReadyTimeout")
|
|
12852
|
+
if params.get("EmulateMobileParams") is not None:
|
|
12853
|
+
self._EmulateMobileParams = EmulateMobileParams()
|
|
12854
|
+
self._EmulateMobileParams._deserialize(params.get("EmulateMobileParams"))
|
|
12253
12855
|
memeber_set = set(params.keys())
|
|
12254
12856
|
for name, value in vars(self).items():
|
|
12255
12857
|
property_name = name[1:]
|
|
@@ -14036,12 +14638,15 @@ class UpdateStreamIngestRequest(AbstractModel):
|
|
|
14036
14638
|
:type SdkAppId: int
|
|
14037
14639
|
:param _TaskId: 任务的唯一Id,在启动任务成功后会返回。
|
|
14038
14640
|
:type TaskId: str
|
|
14039
|
-
:param _StreamUrl: 源流URL
|
|
14641
|
+
:param _StreamUrl: 源流URL。
|
|
14040
14642
|
:type StreamUrl: str
|
|
14643
|
+
:param _Volume: 音量,取值范围[0, 100],默认100,表示原音量。
|
|
14644
|
+
:type Volume: int
|
|
14041
14645
|
"""
|
|
14042
14646
|
self._SdkAppId = None
|
|
14043
14647
|
self._TaskId = None
|
|
14044
14648
|
self._StreamUrl = None
|
|
14649
|
+
self._Volume = None
|
|
14045
14650
|
|
|
14046
14651
|
@property
|
|
14047
14652
|
def SdkAppId(self):
|
|
@@ -14067,7 +14672,7 @@ class UpdateStreamIngestRequest(AbstractModel):
|
|
|
14067
14672
|
|
|
14068
14673
|
@property
|
|
14069
14674
|
def StreamUrl(self):
|
|
14070
|
-
"""源流URL
|
|
14675
|
+
"""源流URL。
|
|
14071
14676
|
:rtype: str
|
|
14072
14677
|
"""
|
|
14073
14678
|
return self._StreamUrl
|
|
@@ -14076,11 +14681,23 @@ class UpdateStreamIngestRequest(AbstractModel):
|
|
|
14076
14681
|
def StreamUrl(self, StreamUrl):
|
|
14077
14682
|
self._StreamUrl = StreamUrl
|
|
14078
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
|
+
|
|
14079
14695
|
|
|
14080
14696
|
def _deserialize(self, params):
|
|
14081
14697
|
self._SdkAppId = params.get("SdkAppId")
|
|
14082
14698
|
self._TaskId = params.get("TaskId")
|
|
14083
14699
|
self._StreamUrl = params.get("StreamUrl")
|
|
14700
|
+
self._Volume = params.get("Volume")
|
|
14084
14701
|
memeber_set = set(params.keys())
|
|
14085
14702
|
for name, value in vars(self).items():
|
|
14086
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
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
Metadata-Version: 1.
|
|
1
|
+
Metadata-Version: 1.2
|
|
2
2
|
Name: tencentcloud-sdk-python-trtc
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.1277
|
|
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
|
-
|
|
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.1277
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1265
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|