tencentcloud-sdk-python-trtc 3.0.1251__py2.py3-none-any.whl → 3.0.1260__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 +1 -1
- tencentcloud/trtc/v20190722/models.py +356 -45
- tencentcloud/trtc/v20190722/trtc_client.py +0 -25
- {tencentcloud_sdk_python_trtc-3.0.1251.dist-info → tencentcloud_sdk_python_trtc-3.0.1260.dist-info}/METADATA +2 -2
- tencentcloud_sdk_python_trtc-3.0.1260.dist-info/RECORD +10 -0
- tencentcloud_sdk_python_trtc-3.0.1251.dist-info/RECORD +0 -10
- {tencentcloud_sdk_python_trtc-3.0.1251.dist-info → tencentcloud_sdk_python_trtc-3.0.1260.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_trtc-3.0.1251.dist-info → tencentcloud_sdk_python_trtc-3.0.1260.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -158,25 +158,18 @@ class AgentConfig(AbstractModel):
|
|
|
158
158
|
def __init__(self):
|
|
159
159
|
r"""
|
|
160
160
|
:param _UserId: 机器人的UserId,用于进房发起任务。【注意】这个UserId不能与当前房间内的主播观众[UserId](https://cloud.tencent.com/document/product/647/46351#userid)重复。如果一个房间发起多个任务时,机器人的UserId也不能相互重复,否则会中断前一个任务。需要保证机器人UserId在房间内唯一。
|
|
161
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
162
161
|
:type UserId: str
|
|
163
162
|
:param _UserSig: 机器人UserId对应的校验签名,即UserId和UserSig相当于机器人进房的登录密码,具体计算方法请参考TRTC计算[UserSig](https://cloud.tencent.com/document/product/647/45910#UserSig)的方案。
|
|
164
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
165
163
|
:type UserSig: str
|
|
166
164
|
:param _TargetUserId: 机器人拉流的UserId, 填写后,机器人会拉取该UserId的流进行实时处理
|
|
167
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
168
165
|
:type TargetUserId: str
|
|
169
166
|
:param _MaxIdleTime: 房间内超过MaxIdleTime 没有推流,后台自动关闭任务,默认值是60s。
|
|
170
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
171
167
|
:type MaxIdleTime: int
|
|
172
168
|
:param _WelcomeMessage: 机器人的欢迎语
|
|
173
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
174
169
|
:type WelcomeMessage: str
|
|
175
170
|
:param _InterruptMode: 智能打断模式,默认为0,0表示服务端自动打断,1表示服务端不打断,由端上发送打断信令进行打断
|
|
176
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
177
171
|
:type InterruptMode: int
|
|
178
172
|
:param _InterruptSpeechDuration: InterruptMode为0时使用,单位为毫秒,默认为500ms。表示服务端检测到持续InterruptSpeechDuration毫秒的人声则进行打断。
|
|
179
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
180
173
|
:type InterruptSpeechDuration: int
|
|
181
174
|
"""
|
|
182
175
|
self._UserId = None
|
|
@@ -5259,6 +5252,41 @@ class McuBackgroundCustomRender(AbstractModel):
|
|
|
5259
5252
|
|
|
5260
5253
|
|
|
5261
5254
|
|
|
5255
|
+
class McuCloudVod(AbstractModel):
|
|
5256
|
+
"""Mcu转推录制,点播相关参数。
|
|
5257
|
+
|
|
5258
|
+
"""
|
|
5259
|
+
|
|
5260
|
+
def __init__(self):
|
|
5261
|
+
r"""
|
|
5262
|
+
:param _McuTencentVod: 腾讯云点播相关参数。
|
|
5263
|
+
:type McuTencentVod: :class:`tencentcloud.trtc.v20190722.models.McuTencentVod`
|
|
5264
|
+
"""
|
|
5265
|
+
self._McuTencentVod = None
|
|
5266
|
+
|
|
5267
|
+
@property
|
|
5268
|
+
def McuTencentVod(self):
|
|
5269
|
+
return self._McuTencentVod
|
|
5270
|
+
|
|
5271
|
+
@McuTencentVod.setter
|
|
5272
|
+
def McuTencentVod(self, McuTencentVod):
|
|
5273
|
+
self._McuTencentVod = McuTencentVod
|
|
5274
|
+
|
|
5275
|
+
|
|
5276
|
+
def _deserialize(self, params):
|
|
5277
|
+
if params.get("McuTencentVod") is not None:
|
|
5278
|
+
self._McuTencentVod = McuTencentVod()
|
|
5279
|
+
self._McuTencentVod._deserialize(params.get("McuTencentVod"))
|
|
5280
|
+
memeber_set = set(params.keys())
|
|
5281
|
+
for name, value in vars(self).items():
|
|
5282
|
+
property_name = name[1:]
|
|
5283
|
+
if property_name in memeber_set:
|
|
5284
|
+
memeber_set.remove(property_name)
|
|
5285
|
+
if len(memeber_set) > 0:
|
|
5286
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5287
|
+
|
|
5288
|
+
|
|
5289
|
+
|
|
5262
5290
|
class McuCustomCrop(AbstractModel):
|
|
5263
5291
|
"""混流自定义裁剪参数
|
|
5264
5292
|
|
|
@@ -5616,11 +5644,11 @@ class McuLayoutParams(AbstractModel):
|
|
|
5616
5644
|
|
|
5617
5645
|
def __init__(self):
|
|
5618
5646
|
r"""
|
|
5619
|
-
:param _MixLayoutMode: 布局模式:动态布局(1:悬浮布局(默认),2:屏幕分享布局,3:九宫格布局),静态布局(4
|
|
5647
|
+
:param _MixLayoutMode: 布局模式:动态布局(1:悬浮布局(默认),2:屏幕分享布局,3:九宫格布局),静态布局(4:自定义布局)。最多支持混入16路音视频流,如果用户只上行音频,也会被算作一路;自定义布局中,如果子画面只设置占位图,也被算作一路。
|
|
5620
5648
|
:type MixLayoutMode: int
|
|
5621
5649
|
:param _PureAudioHoldPlaceMode: 纯音频上行是否占布局位置,只在动态布局中有效。0表示纯音频不占布局位置,1表示纯音频占布局位置,不填默认为0。
|
|
5622
5650
|
:type PureAudioHoldPlaceMode: int
|
|
5623
|
-
:param _MixLayoutList:
|
|
5651
|
+
:param _MixLayoutList: 自定义模板中有效,指定用户视频在混合画面中的位置,最多支持设置16个输入流。
|
|
5624
5652
|
:type MixLayoutList: list of McuLayout
|
|
5625
5653
|
:param _MaxVideoUser: 指定动态布局中悬浮布局和屏幕分享布局的大画面信息,只在悬浮布局和屏幕分享布局有效。
|
|
5626
5654
|
:type MaxVideoUser: :class:`tencentcloud.trtc.v20190722.models.MaxVideoUser`
|
|
@@ -5894,6 +5922,137 @@ class McuPublishCdnParam(AbstractModel):
|
|
|
5894
5922
|
|
|
5895
5923
|
|
|
5896
5924
|
|
|
5925
|
+
class McuRecordParams(AbstractModel):
|
|
5926
|
+
"""转推录制参数
|
|
5927
|
+
|
|
5928
|
+
"""
|
|
5929
|
+
|
|
5930
|
+
def __init__(self):
|
|
5931
|
+
r"""
|
|
5932
|
+
:param _UniRecord: 转推录制模式,
|
|
5933
|
+
0/不填: 暂不支持,行为未定义;
|
|
5934
|
+
1: 不开启录制;
|
|
5935
|
+
2: 开启录制(使用控制台自动录制模板参数,参考:[跳转文档](https://cloud.tencent.com/document/product/647/111748#.E5.BD.95.E5.88.B6.E6.8E.A7.E5.88.B6.E6.96.B9.E6.A1.88));
|
|
5936
|
+
3: 开启录制(使用API指定参数)。
|
|
5937
|
+
:type UniRecord: int
|
|
5938
|
+
:param _RecordKey: 录制任务 key,标识一个录制任务;您可以通过该参数,将多个转推任务录制成一个文件。不指定该参数时,只录制当前转推任务。
|
|
5939
|
+
【限制长度为128字节,只允许包含大小写英文字母(a-zA-Z)、数字(0-9)及下划线(_)和连词符(-)】
|
|
5940
|
+
:type RecordKey: str
|
|
5941
|
+
:param _RecordWaitTime: 【仅当UniRecord=3时此参数有效】
|
|
5942
|
+
续录等待时间,对应录制模板“续录等待时长”,单位:秒。该值需大于等于 5,且小于等于 86400(24小时),默认值为 30。启用续录时,录制任务空闲超过RecordWaitTime的时长,自动结束。
|
|
5943
|
+
:type RecordWaitTime: int
|
|
5944
|
+
:param _RecordFormat: 【仅当UniRecord=3时此参数有效】
|
|
5945
|
+
录制输出文件格式列表,对应录制模板“文件格式”,支持“hls”、"mp4"、"aac"三种格式,默认值为"mp4"。其中"mp4"和"aac"格式,不能同时指定。
|
|
5946
|
+
只录制 mp4格式,示例值:["mp4"]。同时录制mp4 和 HLS 格式,示例值:["mp4","hls"]。
|
|
5947
|
+
:type RecordFormat: list of str
|
|
5948
|
+
:param _MaxMediaFileDuration: 【仅当UniRecord=3时此参数有效】
|
|
5949
|
+
单个文件录制时长,对应录制模板“单个录制文件时长”,单位:分钟。该值需大于等于 1,且小于等于 1440(24小时),默认值为 1440。只对"mp4"或"aac"格式生效。实际单文件录制时长还受单文件大小不超过 2G 限制,超过2G则强制拆分。
|
|
5950
|
+
:type MaxMediaFileDuration: int
|
|
5951
|
+
:param _StreamType: 【仅当UniRecord=3时此参数有效】
|
|
5952
|
+
录制的音视频类型,对应录制模板“录制格式”,0:音视频,1:纯音频,2:纯视频。最终录制文件内容是录制指定类型和转推内容的交集。
|
|
5953
|
+
:type StreamType: int
|
|
5954
|
+
:param _UserDefineRecordPrefix: 录制文件名前缀,不超过64字符。只有存储为vod时生效。
|
|
5955
|
+
【限制长度为64字节,只允许包含大小写英文字母(a-zA-Z)、数字(0-9)及下划线(_)和连词符(-)】
|
|
5956
|
+
:type UserDefineRecordPrefix: str
|
|
5957
|
+
:param _McuStorageParams: 【仅当UniRecord=3时此参数有效】
|
|
5958
|
+
录制文件存储参数,对应控制台“存储位置”及相关参数。目前支持云点播VOD和对象存储COS两种存储方式,只能填写一种。
|
|
5959
|
+
:type McuStorageParams: :class:`tencentcloud.trtc.v20190722.models.McuStorageParams`
|
|
5960
|
+
"""
|
|
5961
|
+
self._UniRecord = None
|
|
5962
|
+
self._RecordKey = None
|
|
5963
|
+
self._RecordWaitTime = None
|
|
5964
|
+
self._RecordFormat = None
|
|
5965
|
+
self._MaxMediaFileDuration = None
|
|
5966
|
+
self._StreamType = None
|
|
5967
|
+
self._UserDefineRecordPrefix = None
|
|
5968
|
+
self._McuStorageParams = None
|
|
5969
|
+
|
|
5970
|
+
@property
|
|
5971
|
+
def UniRecord(self):
|
|
5972
|
+
return self._UniRecord
|
|
5973
|
+
|
|
5974
|
+
@UniRecord.setter
|
|
5975
|
+
def UniRecord(self, UniRecord):
|
|
5976
|
+
self._UniRecord = UniRecord
|
|
5977
|
+
|
|
5978
|
+
@property
|
|
5979
|
+
def RecordKey(self):
|
|
5980
|
+
return self._RecordKey
|
|
5981
|
+
|
|
5982
|
+
@RecordKey.setter
|
|
5983
|
+
def RecordKey(self, RecordKey):
|
|
5984
|
+
self._RecordKey = RecordKey
|
|
5985
|
+
|
|
5986
|
+
@property
|
|
5987
|
+
def RecordWaitTime(self):
|
|
5988
|
+
return self._RecordWaitTime
|
|
5989
|
+
|
|
5990
|
+
@RecordWaitTime.setter
|
|
5991
|
+
def RecordWaitTime(self, RecordWaitTime):
|
|
5992
|
+
self._RecordWaitTime = RecordWaitTime
|
|
5993
|
+
|
|
5994
|
+
@property
|
|
5995
|
+
def RecordFormat(self):
|
|
5996
|
+
return self._RecordFormat
|
|
5997
|
+
|
|
5998
|
+
@RecordFormat.setter
|
|
5999
|
+
def RecordFormat(self, RecordFormat):
|
|
6000
|
+
self._RecordFormat = RecordFormat
|
|
6001
|
+
|
|
6002
|
+
@property
|
|
6003
|
+
def MaxMediaFileDuration(self):
|
|
6004
|
+
return self._MaxMediaFileDuration
|
|
6005
|
+
|
|
6006
|
+
@MaxMediaFileDuration.setter
|
|
6007
|
+
def MaxMediaFileDuration(self, MaxMediaFileDuration):
|
|
6008
|
+
self._MaxMediaFileDuration = MaxMediaFileDuration
|
|
6009
|
+
|
|
6010
|
+
@property
|
|
6011
|
+
def StreamType(self):
|
|
6012
|
+
return self._StreamType
|
|
6013
|
+
|
|
6014
|
+
@StreamType.setter
|
|
6015
|
+
def StreamType(self, StreamType):
|
|
6016
|
+
self._StreamType = StreamType
|
|
6017
|
+
|
|
6018
|
+
@property
|
|
6019
|
+
def UserDefineRecordPrefix(self):
|
|
6020
|
+
return self._UserDefineRecordPrefix
|
|
6021
|
+
|
|
6022
|
+
@UserDefineRecordPrefix.setter
|
|
6023
|
+
def UserDefineRecordPrefix(self, UserDefineRecordPrefix):
|
|
6024
|
+
self._UserDefineRecordPrefix = UserDefineRecordPrefix
|
|
6025
|
+
|
|
6026
|
+
@property
|
|
6027
|
+
def McuStorageParams(self):
|
|
6028
|
+
return self._McuStorageParams
|
|
6029
|
+
|
|
6030
|
+
@McuStorageParams.setter
|
|
6031
|
+
def McuStorageParams(self, McuStorageParams):
|
|
6032
|
+
self._McuStorageParams = McuStorageParams
|
|
6033
|
+
|
|
6034
|
+
|
|
6035
|
+
def _deserialize(self, params):
|
|
6036
|
+
self._UniRecord = params.get("UniRecord")
|
|
6037
|
+
self._RecordKey = params.get("RecordKey")
|
|
6038
|
+
self._RecordWaitTime = params.get("RecordWaitTime")
|
|
6039
|
+
self._RecordFormat = params.get("RecordFormat")
|
|
6040
|
+
self._MaxMediaFileDuration = params.get("MaxMediaFileDuration")
|
|
6041
|
+
self._StreamType = params.get("StreamType")
|
|
6042
|
+
self._UserDefineRecordPrefix = params.get("UserDefineRecordPrefix")
|
|
6043
|
+
if params.get("McuStorageParams") is not None:
|
|
6044
|
+
self._McuStorageParams = McuStorageParams()
|
|
6045
|
+
self._McuStorageParams._deserialize(params.get("McuStorageParams"))
|
|
6046
|
+
memeber_set = set(params.keys())
|
|
6047
|
+
for name, value in vars(self).items():
|
|
6048
|
+
property_name = name[1:]
|
|
6049
|
+
if property_name in memeber_set:
|
|
6050
|
+
memeber_set.remove(property_name)
|
|
6051
|
+
if len(memeber_set) > 0:
|
|
6052
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
6053
|
+
|
|
6054
|
+
|
|
6055
|
+
|
|
5897
6056
|
class McuSeiParams(AbstractModel):
|
|
5898
6057
|
"""混流SEI参数
|
|
5899
6058
|
|
|
@@ -5943,6 +6102,161 @@ class McuSeiParams(AbstractModel):
|
|
|
5943
6102
|
|
|
5944
6103
|
|
|
5945
6104
|
|
|
6105
|
+
class McuStorageParams(AbstractModel):
|
|
6106
|
+
"""Mcu转推录制,第三方存储参数。
|
|
6107
|
+
|
|
6108
|
+
"""
|
|
6109
|
+
|
|
6110
|
+
def __init__(self):
|
|
6111
|
+
r"""
|
|
6112
|
+
:param _CloudStorage: 第三方云存储的账号信息(特别说明:若您选择存储至对象存储COS将会收取录制文件投递至COS的费用,详见云端录制收费说明,存储至VOD将不收取此项费用。)。
|
|
6113
|
+
:type CloudStorage: :class:`tencentcloud.trtc.v20190722.models.CloudStorage`
|
|
6114
|
+
:param _McuCloudVod: 腾讯云云点播的账号信息。
|
|
6115
|
+
:type McuCloudVod: :class:`tencentcloud.trtc.v20190722.models.McuCloudVod`
|
|
6116
|
+
"""
|
|
6117
|
+
self._CloudStorage = None
|
|
6118
|
+
self._McuCloudVod = None
|
|
6119
|
+
|
|
6120
|
+
@property
|
|
6121
|
+
def CloudStorage(self):
|
|
6122
|
+
return self._CloudStorage
|
|
6123
|
+
|
|
6124
|
+
@CloudStorage.setter
|
|
6125
|
+
def CloudStorage(self, CloudStorage):
|
|
6126
|
+
self._CloudStorage = CloudStorage
|
|
6127
|
+
|
|
6128
|
+
@property
|
|
6129
|
+
def McuCloudVod(self):
|
|
6130
|
+
return self._McuCloudVod
|
|
6131
|
+
|
|
6132
|
+
@McuCloudVod.setter
|
|
6133
|
+
def McuCloudVod(self, McuCloudVod):
|
|
6134
|
+
self._McuCloudVod = McuCloudVod
|
|
6135
|
+
|
|
6136
|
+
|
|
6137
|
+
def _deserialize(self, params):
|
|
6138
|
+
if params.get("CloudStorage") is not None:
|
|
6139
|
+
self._CloudStorage = CloudStorage()
|
|
6140
|
+
self._CloudStorage._deserialize(params.get("CloudStorage"))
|
|
6141
|
+
if params.get("McuCloudVod") is not None:
|
|
6142
|
+
self._McuCloudVod = McuCloudVod()
|
|
6143
|
+
self._McuCloudVod._deserialize(params.get("McuCloudVod"))
|
|
6144
|
+
memeber_set = set(params.keys())
|
|
6145
|
+
for name, value in vars(self).items():
|
|
6146
|
+
property_name = name[1:]
|
|
6147
|
+
if property_name in memeber_set:
|
|
6148
|
+
memeber_set.remove(property_name)
|
|
6149
|
+
if len(memeber_set) > 0:
|
|
6150
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
6151
|
+
|
|
6152
|
+
|
|
6153
|
+
|
|
6154
|
+
class McuTencentVod(AbstractModel):
|
|
6155
|
+
"""Mcu转推录制,腾讯云点播相关参数。
|
|
6156
|
+
|
|
6157
|
+
"""
|
|
6158
|
+
|
|
6159
|
+
def __init__(self):
|
|
6160
|
+
r"""
|
|
6161
|
+
:param _Procedure: 媒体后续任务处理操作,即完成媒体上传后,可自动发起任务流操作。参数值为任务流模板名,云点播支持 创建任务流模板 并为模板命名。
|
|
6162
|
+
:type Procedure: str
|
|
6163
|
+
:param _ExpireTime: 媒体文件过期时间,为当前时间的绝对过期时间;保存一天,就填"86400",永久保存就填"0",默认永久保存。
|
|
6164
|
+
:type ExpireTime: int
|
|
6165
|
+
:param _StorageRegion: 指定上传园区,仅适用于对上传地域有特殊需求的用户。
|
|
6166
|
+
:type StorageRegion: str
|
|
6167
|
+
:param _ClassId: 分类ID,用于对媒体进行分类管理,可通过 创建分类 接口,创建分类,获得分类 ID。
|
|
6168
|
+
默认值:0,表示其他分类。
|
|
6169
|
+
:type ClassId: int
|
|
6170
|
+
:param _SubAppId: 点播 子应用 ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
|
|
6171
|
+
:type SubAppId: int
|
|
6172
|
+
:param _SessionContext: 任务流上下文,任务完成回调时透传。
|
|
6173
|
+
:type SessionContext: str
|
|
6174
|
+
:param _SourceContext: 上传上下文,上传完成回调时透传。
|
|
6175
|
+
:type SourceContext: str
|
|
6176
|
+
"""
|
|
6177
|
+
self._Procedure = None
|
|
6178
|
+
self._ExpireTime = None
|
|
6179
|
+
self._StorageRegion = None
|
|
6180
|
+
self._ClassId = None
|
|
6181
|
+
self._SubAppId = None
|
|
6182
|
+
self._SessionContext = None
|
|
6183
|
+
self._SourceContext = None
|
|
6184
|
+
|
|
6185
|
+
@property
|
|
6186
|
+
def Procedure(self):
|
|
6187
|
+
return self._Procedure
|
|
6188
|
+
|
|
6189
|
+
@Procedure.setter
|
|
6190
|
+
def Procedure(self, Procedure):
|
|
6191
|
+
self._Procedure = Procedure
|
|
6192
|
+
|
|
6193
|
+
@property
|
|
6194
|
+
def ExpireTime(self):
|
|
6195
|
+
return self._ExpireTime
|
|
6196
|
+
|
|
6197
|
+
@ExpireTime.setter
|
|
6198
|
+
def ExpireTime(self, ExpireTime):
|
|
6199
|
+
self._ExpireTime = ExpireTime
|
|
6200
|
+
|
|
6201
|
+
@property
|
|
6202
|
+
def StorageRegion(self):
|
|
6203
|
+
return self._StorageRegion
|
|
6204
|
+
|
|
6205
|
+
@StorageRegion.setter
|
|
6206
|
+
def StorageRegion(self, StorageRegion):
|
|
6207
|
+
self._StorageRegion = StorageRegion
|
|
6208
|
+
|
|
6209
|
+
@property
|
|
6210
|
+
def ClassId(self):
|
|
6211
|
+
return self._ClassId
|
|
6212
|
+
|
|
6213
|
+
@ClassId.setter
|
|
6214
|
+
def ClassId(self, ClassId):
|
|
6215
|
+
self._ClassId = ClassId
|
|
6216
|
+
|
|
6217
|
+
@property
|
|
6218
|
+
def SubAppId(self):
|
|
6219
|
+
return self._SubAppId
|
|
6220
|
+
|
|
6221
|
+
@SubAppId.setter
|
|
6222
|
+
def SubAppId(self, SubAppId):
|
|
6223
|
+
self._SubAppId = SubAppId
|
|
6224
|
+
|
|
6225
|
+
@property
|
|
6226
|
+
def SessionContext(self):
|
|
6227
|
+
return self._SessionContext
|
|
6228
|
+
|
|
6229
|
+
@SessionContext.setter
|
|
6230
|
+
def SessionContext(self, SessionContext):
|
|
6231
|
+
self._SessionContext = SessionContext
|
|
6232
|
+
|
|
6233
|
+
@property
|
|
6234
|
+
def SourceContext(self):
|
|
6235
|
+
return self._SourceContext
|
|
6236
|
+
|
|
6237
|
+
@SourceContext.setter
|
|
6238
|
+
def SourceContext(self, SourceContext):
|
|
6239
|
+
self._SourceContext = SourceContext
|
|
6240
|
+
|
|
6241
|
+
|
|
6242
|
+
def _deserialize(self, params):
|
|
6243
|
+
self._Procedure = params.get("Procedure")
|
|
6244
|
+
self._ExpireTime = params.get("ExpireTime")
|
|
6245
|
+
self._StorageRegion = params.get("StorageRegion")
|
|
6246
|
+
self._ClassId = params.get("ClassId")
|
|
6247
|
+
self._SubAppId = params.get("SubAppId")
|
|
6248
|
+
self._SessionContext = params.get("SessionContext")
|
|
6249
|
+
self._SourceContext = params.get("SourceContext")
|
|
6250
|
+
memeber_set = set(params.keys())
|
|
6251
|
+
for name, value in vars(self).items():
|
|
6252
|
+
property_name = name[1:]
|
|
6253
|
+
if property_name in memeber_set:
|
|
6254
|
+
memeber_set.remove(property_name)
|
|
6255
|
+
if len(memeber_set) > 0:
|
|
6256
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
6257
|
+
|
|
6258
|
+
|
|
6259
|
+
|
|
5946
6260
|
class McuUserInfoParams(AbstractModel):
|
|
5947
6261
|
"""混流用户参数
|
|
5948
6262
|
|
|
@@ -8227,18 +8541,18 @@ class STTConfig(AbstractModel):
|
|
|
8227
8541
|
18. German = "de" # 德语
|
|
8228
8542
|
19. Italian = "it" # 意大利语
|
|
8229
8543
|
20. Russian = "ru" # 俄语
|
|
8544
|
+
21. Swedish = "sv" # 瑞典语
|
|
8545
|
+
22. Danish = "da" # 丹麦语
|
|
8546
|
+
23. Norwegian = "no" # 挪威语
|
|
8230
8547
|
|
|
8231
8548
|
注意:
|
|
8232
8549
|
如果缺少满足您需求的语言,请联系我们技术人员。
|
|
8233
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
8234
8550
|
:type Language: str
|
|
8235
8551
|
:param _AlternativeLanguage: 发起模糊识别额外可能替代语言类型,最多填写3种语言类型,
|
|
8236
8552
|
注:Language指定为"zh-dialect" # 中国方言 时,不支持模糊识别,该字段无效
|
|
8237
8553
|
|
|
8238
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
8239
8554
|
:type AlternativeLanguage: list of str
|
|
8240
8555
|
:param _VadSilenceTime: 语音识别vad的时间,范围为240-2000,默认为1000,单位为ms。更小的值会让语音识别分句更快。
|
|
8241
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
8242
8556
|
:type VadSilenceTime: int
|
|
8243
8557
|
"""
|
|
8244
8558
|
self._Language = None
|
|
@@ -9359,12 +9673,14 @@ class StartPublishCdnStreamRequest(AbstractModel):
|
|
|
9359
9673
|
:type VideoParams: :class:`tencentcloud.trtc.v20190722.models.McuVideoParams`
|
|
9360
9674
|
:param _SingleSubscribeParams: 需要单流旁路转推的用户上行参数,单流旁路转推时,WithTranscoding需要设置为0。
|
|
9361
9675
|
:type SingleSubscribeParams: :class:`tencentcloud.trtc.v20190722.models.SingleSubscribeParams`
|
|
9362
|
-
:param _PublishCdnParams: 转推的CDN
|
|
9676
|
+
:param _PublishCdnParams: 转推的CDN参数,一个任务最多支持10个推流URL。和回推房间参数必须要有一个。
|
|
9363
9677
|
:type PublishCdnParams: list of McuPublishCdnParam
|
|
9364
9678
|
:param _SeiParams: 混流SEI参数
|
|
9365
9679
|
:type SeiParams: :class:`tencentcloud.trtc.v20190722.models.McuSeiParams`
|
|
9366
|
-
:param _FeedBackRoomParams:
|
|
9680
|
+
:param _FeedBackRoomParams: 回推房间信息,一个任务最多支持回推10个房间,和转推CDN参数必须要有一个。注:回推房间需使用10.4及以上SDK版本,如您有需求,请联系腾讯云技术支持。
|
|
9367
9681
|
:type FeedBackRoomParams: list of McuFeedBackRoomParams
|
|
9682
|
+
:param _RecordParams: 转推录制参数,[参考文档](https://cloud.tencent.com/document/product/647/111748)。
|
|
9683
|
+
:type RecordParams: :class:`tencentcloud.trtc.v20190722.models.McuRecordParams`
|
|
9368
9684
|
"""
|
|
9369
9685
|
self._SdkAppId = None
|
|
9370
9686
|
self._RoomId = None
|
|
@@ -9377,6 +9693,7 @@ class StartPublishCdnStreamRequest(AbstractModel):
|
|
|
9377
9693
|
self._PublishCdnParams = None
|
|
9378
9694
|
self._SeiParams = None
|
|
9379
9695
|
self._FeedBackRoomParams = None
|
|
9696
|
+
self._RecordParams = None
|
|
9380
9697
|
|
|
9381
9698
|
@property
|
|
9382
9699
|
def SdkAppId(self):
|
|
@@ -9466,6 +9783,14 @@ class StartPublishCdnStreamRequest(AbstractModel):
|
|
|
9466
9783
|
def FeedBackRoomParams(self, FeedBackRoomParams):
|
|
9467
9784
|
self._FeedBackRoomParams = FeedBackRoomParams
|
|
9468
9785
|
|
|
9786
|
+
@property
|
|
9787
|
+
def RecordParams(self):
|
|
9788
|
+
return self._RecordParams
|
|
9789
|
+
|
|
9790
|
+
@RecordParams.setter
|
|
9791
|
+
def RecordParams(self, RecordParams):
|
|
9792
|
+
self._RecordParams = RecordParams
|
|
9793
|
+
|
|
9469
9794
|
|
|
9470
9795
|
def _deserialize(self, params):
|
|
9471
9796
|
self._SdkAppId = params.get("SdkAppId")
|
|
@@ -9499,6 +9824,9 @@ class StartPublishCdnStreamRequest(AbstractModel):
|
|
|
9499
9824
|
obj = McuFeedBackRoomParams()
|
|
9500
9825
|
obj._deserialize(item)
|
|
9501
9826
|
self._FeedBackRoomParams.append(obj)
|
|
9827
|
+
if params.get("RecordParams") is not None:
|
|
9828
|
+
self._RecordParams = McuRecordParams()
|
|
9829
|
+
self._RecordParams._deserialize(params.get("RecordParams"))
|
|
9502
9830
|
memeber_set = set(params.keys())
|
|
9503
9831
|
for name, value in vars(self).items():
|
|
9504
9832
|
property_name = name[1:]
|
|
@@ -10227,9 +10555,14 @@ class StopPublishCdnStreamRequest(AbstractModel):
|
|
|
10227
10555
|
:type SdkAppId: int
|
|
10228
10556
|
:param _TaskId: 唯一标识转推任务。
|
|
10229
10557
|
:type TaskId: str
|
|
10558
|
+
:param _RecordKey: 录制任务 key,标识一个录制任务,对应转推任务发起时指定 RecordKey;
|
|
10559
|
+
如果填写该参数,表示调用者希望立即结束该录制任务。当RecordKey 指定的录制任务正在录制当前转推任务时,录制任务立即结束,否则录制任务不受影响。
|
|
10560
|
+
如果没有填写该参数,但是转推任务发起时填写了 RecordKey,则表示在续录等待时间结束后才结束录制任务,续录等待期间可以使用相同的 RecordKey 发起新的转推任务,和当前转推任务录制到同一文件。
|
|
10561
|
+
:type RecordKey: str
|
|
10230
10562
|
"""
|
|
10231
10563
|
self._SdkAppId = None
|
|
10232
10564
|
self._TaskId = None
|
|
10565
|
+
self._RecordKey = None
|
|
10233
10566
|
|
|
10234
10567
|
@property
|
|
10235
10568
|
def SdkAppId(self):
|
|
@@ -10247,10 +10580,19 @@ class StopPublishCdnStreamRequest(AbstractModel):
|
|
|
10247
10580
|
def TaskId(self, TaskId):
|
|
10248
10581
|
self._TaskId = TaskId
|
|
10249
10582
|
|
|
10583
|
+
@property
|
|
10584
|
+
def RecordKey(self):
|
|
10585
|
+
return self._RecordKey
|
|
10586
|
+
|
|
10587
|
+
@RecordKey.setter
|
|
10588
|
+
def RecordKey(self, RecordKey):
|
|
10589
|
+
self._RecordKey = RecordKey
|
|
10590
|
+
|
|
10250
10591
|
|
|
10251
10592
|
def _deserialize(self, params):
|
|
10252
10593
|
self._SdkAppId = params.get("SdkAppId")
|
|
10253
10594
|
self._TaskId = params.get("TaskId")
|
|
10595
|
+
self._RecordKey = params.get("RecordKey")
|
|
10254
10596
|
memeber_set = set(params.keys())
|
|
10255
10597
|
for name, value in vars(self).items():
|
|
10256
10598
|
property_name = name[1:]
|
|
@@ -10618,37 +10960,6 @@ class SubscribeStreamUserIds(AbstractModel):
|
|
|
10618
10960
|
|
|
10619
10961
|
|
|
10620
10962
|
|
|
10621
|
-
class SummarizeTranscriptionRequest(AbstractModel):
|
|
10622
|
-
"""SummarizeTranscription请求参数结构体
|
|
10623
|
-
|
|
10624
|
-
"""
|
|
10625
|
-
|
|
10626
|
-
|
|
10627
|
-
class SummarizeTranscriptionResponse(AbstractModel):
|
|
10628
|
-
"""SummarizeTranscription返回参数结构体
|
|
10629
|
-
|
|
10630
|
-
"""
|
|
10631
|
-
|
|
10632
|
-
def __init__(self):
|
|
10633
|
-
r"""
|
|
10634
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
10635
|
-
:type RequestId: str
|
|
10636
|
-
"""
|
|
10637
|
-
self._RequestId = None
|
|
10638
|
-
|
|
10639
|
-
@property
|
|
10640
|
-
def RequestId(self):
|
|
10641
|
-
return self._RequestId
|
|
10642
|
-
|
|
10643
|
-
@RequestId.setter
|
|
10644
|
-
def RequestId(self, RequestId):
|
|
10645
|
-
self._RequestId = RequestId
|
|
10646
|
-
|
|
10647
|
-
|
|
10648
|
-
def _deserialize(self, params):
|
|
10649
|
-
self._RequestId = params.get("RequestId")
|
|
10650
|
-
|
|
10651
|
-
|
|
10652
10963
|
class TRTCDataResp(AbstractModel):
|
|
10653
10964
|
"""TRTC数据大盘/实时监控 API接口数据出参
|
|
10654
10965
|
|
|
@@ -1393,31 +1393,6 @@ class TrtcClient(AbstractClient):
|
|
|
1393
1393
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1394
1394
|
|
|
1395
1395
|
|
|
1396
|
-
def SummarizeTranscription(self, request):
|
|
1397
|
-
"""接口不再支持
|
|
1398
|
-
|
|
1399
|
-
对转录的文本进行总结。
|
|
1400
|
-
|
|
1401
|
-
:param request: Request instance for SummarizeTranscription.
|
|
1402
|
-
:type request: :class:`tencentcloud.trtc.v20190722.models.SummarizeTranscriptionRequest`
|
|
1403
|
-
:rtype: :class:`tencentcloud.trtc.v20190722.models.SummarizeTranscriptionResponse`
|
|
1404
|
-
|
|
1405
|
-
"""
|
|
1406
|
-
try:
|
|
1407
|
-
params = request._serialize()
|
|
1408
|
-
headers = request.headers
|
|
1409
|
-
body = self.call("SummarizeTranscription", params, headers=headers)
|
|
1410
|
-
response = json.loads(body)
|
|
1411
|
-
model = models.SummarizeTranscriptionResponse()
|
|
1412
|
-
model._deserialize(response["Response"])
|
|
1413
|
-
return model
|
|
1414
|
-
except Exception as e:
|
|
1415
|
-
if isinstance(e, TencentCloudSDKException):
|
|
1416
|
-
raise
|
|
1417
|
-
else:
|
|
1418
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
1396
|
def UpdateAIConversation(self, request):
|
|
1422
1397
|
"""更新AIConversation参数
|
|
1423
1398
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-trtc
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.1260
|
|
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.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common (==3.0.1260)
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
tencentcloud/__init__.py,sha256=wg1uGZpru2XWqYf86gC4jfDKAATxY9H8UW1SwQGBv64,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=WNu9Hx8kn4lpbc342xXM1lw4uTQIx2JCvZchRlUXBL8,10987
|
|
5
|
+
tencentcloud/trtc/v20190722/models.py,sha256=Nu8Q8gjTsvM3AUUCaQh3wdQV1jNMM3L9yCFv5q58PdQ,413800
|
|
6
|
+
tencentcloud/trtc/v20190722/trtc_client.py,sha256=6FKGmUMKPx22b8mWYHPX0Xwt63y8xNyqJJ1cCzGZP9c,77188
|
|
7
|
+
tencentcloud_sdk_python_trtc-3.0.1260.dist-info/METADATA,sha256=s7Axnma0Fsr-oJ0lQJqR9omKN75dPFCXfXyCE_3OVU8,1497
|
|
8
|
+
tencentcloud_sdk_python_trtc-3.0.1260.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
|
9
|
+
tencentcloud_sdk_python_trtc-3.0.1260.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
10
|
+
tencentcloud_sdk_python_trtc-3.0.1260.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
tencentcloud/__init__.py,sha256=4ShRF5stIoNri9YFqFY5cD8ek5hw8hdm4qZdr-plJP8,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=WNu9Hx8kn4lpbc342xXM1lw4uTQIx2JCvZchRlUXBL8,10987
|
|
5
|
-
tencentcloud/trtc/v20190722/models.py,sha256=xWaBB3IMzhPsAMT3Oo979019tgQ8pUqqyspD27jrQ4I,401165
|
|
6
|
-
tencentcloud/trtc/v20190722/trtc_client.py,sha256=sTzamtT7sp-ul08Ekv4xEa9sWm03AEDqQMcioZX4LtE,78132
|
|
7
|
-
tencentcloud_sdk_python_trtc-3.0.1251.dist-info/METADATA,sha256=P6YAwjV-ikKCWJbuyREgM_YVUWwyZIn1Wr60zm4LP14,1497
|
|
8
|
-
tencentcloud_sdk_python_trtc-3.0.1251.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
|
9
|
-
tencentcloud_sdk_python_trtc-3.0.1251.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
10
|
-
tencentcloud_sdk_python_trtc-3.0.1251.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|