tencentcloud-sdk-python-trtc 3.0.1148__tar.gz → 3.0.1153__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.
- {tencentcloud-sdk-python-trtc-3.0.1148 → tencentcloud-sdk-python-trtc-3.0.1153}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-trtc-3.0.1148 → tencentcloud-sdk-python-trtc-3.0.1153}/setup.py +1 -1
- {tencentcloud-sdk-python-trtc-3.0.1148 → tencentcloud-sdk-python-trtc-3.0.1153}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-trtc-3.0.1148 → tencentcloud-sdk-python-trtc-3.0.1153}/tencentcloud/trtc/v20190722/errorcodes.py +3 -0
- {tencentcloud-sdk-python-trtc-3.0.1148 → tencentcloud-sdk-python-trtc-3.0.1153}/tencentcloud/trtc/v20190722/models.py +490 -22
- {tencentcloud-sdk-python-trtc-3.0.1148 → tencentcloud-sdk-python-trtc-3.0.1153}/tencentcloud/trtc/v20190722/trtc_client.py +104 -6
- {tencentcloud-sdk-python-trtc-3.0.1148 → tencentcloud-sdk-python-trtc-3.0.1153}/tencentcloud_sdk_python_trtc.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-trtc-3.0.1153/tencentcloud_sdk_python_trtc.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-trtc-3.0.1148/tencentcloud_sdk_python_trtc.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-trtc-3.0.1148 → tencentcloud-sdk-python-trtc-3.0.1153}/README.rst +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1148 → tencentcloud-sdk-python-trtc-3.0.1153}/setup.cfg +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1148 → tencentcloud-sdk-python-trtc-3.0.1153}/tencentcloud/trtc/__init__.py +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1148 → tencentcloud-sdk-python-trtc-3.0.1153}/tencentcloud/trtc/v20190722/__init__.py +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1148 → tencentcloud-sdk-python-trtc-3.0.1153}/tencentcloud_sdk_python_trtc.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1148 → tencentcloud-sdk-python-trtc-3.0.1153}/tencentcloud_sdk_python_trtc.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1148 → tencentcloud-sdk-python-trtc-3.0.1153}/tencentcloud_sdk_python_trtc.egg-info/top_level.txt +0 -0
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-trtc',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common==3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1153"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Trtc SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -53,6 +53,9 @@ FAILEDOPERATION_RESTRICTEDCONCURRENCY = 'FailedOperation.RestrictedConcurrency'
|
|
|
53
53
|
# 房间不存在。
|
|
54
54
|
FAILEDOPERATION_ROOMNOTEXIST = 'FailedOperation.RoomNotExist'
|
|
55
55
|
|
|
56
|
+
# 该sdkappid没有开通AITranscription能力
|
|
57
|
+
FAILEDOPERATION_SDKAPPIDNOTAITRANSCRIPTIONABILITY = 'FailedOperation.SdkAppIdNotAITranscriptionAbility'
|
|
58
|
+
|
|
56
59
|
# 应用ID不存在。
|
|
57
60
|
FAILEDOPERATION_SDKAPPIDNOTEXIST = 'FailedOperation.SdkAppIdNotExist'
|
|
58
61
|
|
|
@@ -1044,6 +1044,88 @@ class DeletePictureResponse(AbstractModel):
|
|
|
1044
1044
|
self._RequestId = params.get("RequestId")
|
|
1045
1045
|
|
|
1046
1046
|
|
|
1047
|
+
class DescribeAITranscriptionRequest(AbstractModel):
|
|
1048
|
+
"""DescribeAITranscription请求参数结构体
|
|
1049
|
+
|
|
1050
|
+
"""
|
|
1051
|
+
|
|
1052
|
+
def __init__(self):
|
|
1053
|
+
r"""
|
|
1054
|
+
:param _TaskId: 唯一标识AI转录任务。
|
|
1055
|
+
:type TaskId: str
|
|
1056
|
+
"""
|
|
1057
|
+
self._TaskId = None
|
|
1058
|
+
|
|
1059
|
+
@property
|
|
1060
|
+
def TaskId(self):
|
|
1061
|
+
return self._TaskId
|
|
1062
|
+
|
|
1063
|
+
@TaskId.setter
|
|
1064
|
+
def TaskId(self, TaskId):
|
|
1065
|
+
self._TaskId = TaskId
|
|
1066
|
+
|
|
1067
|
+
|
|
1068
|
+
def _deserialize(self, params):
|
|
1069
|
+
self._TaskId = params.get("TaskId")
|
|
1070
|
+
memeber_set = set(params.keys())
|
|
1071
|
+
for name, value in vars(self).items():
|
|
1072
|
+
property_name = name[1:]
|
|
1073
|
+
if property_name in memeber_set:
|
|
1074
|
+
memeber_set.remove(property_name)
|
|
1075
|
+
if len(memeber_set) > 0:
|
|
1076
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1077
|
+
|
|
1078
|
+
|
|
1079
|
+
|
|
1080
|
+
class DescribeAITranscriptionResponse(AbstractModel):
|
|
1081
|
+
"""DescribeAITranscription返回参数结构体
|
|
1082
|
+
|
|
1083
|
+
"""
|
|
1084
|
+
|
|
1085
|
+
def __init__(self):
|
|
1086
|
+
r"""
|
|
1087
|
+
:param _StartTime: 起始时间。
|
|
1088
|
+
:type StartTime: str
|
|
1089
|
+
:param _Status: 转录任务状态。
|
|
1090
|
+
:type Status: str
|
|
1091
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1092
|
+
:type RequestId: str
|
|
1093
|
+
"""
|
|
1094
|
+
self._StartTime = None
|
|
1095
|
+
self._Status = None
|
|
1096
|
+
self._RequestId = None
|
|
1097
|
+
|
|
1098
|
+
@property
|
|
1099
|
+
def StartTime(self):
|
|
1100
|
+
return self._StartTime
|
|
1101
|
+
|
|
1102
|
+
@StartTime.setter
|
|
1103
|
+
def StartTime(self, StartTime):
|
|
1104
|
+
self._StartTime = StartTime
|
|
1105
|
+
|
|
1106
|
+
@property
|
|
1107
|
+
def Status(self):
|
|
1108
|
+
return self._Status
|
|
1109
|
+
|
|
1110
|
+
@Status.setter
|
|
1111
|
+
def Status(self, Status):
|
|
1112
|
+
self._Status = Status
|
|
1113
|
+
|
|
1114
|
+
@property
|
|
1115
|
+
def RequestId(self):
|
|
1116
|
+
return self._RequestId
|
|
1117
|
+
|
|
1118
|
+
@RequestId.setter
|
|
1119
|
+
def RequestId(self, RequestId):
|
|
1120
|
+
self._RequestId = RequestId
|
|
1121
|
+
|
|
1122
|
+
|
|
1123
|
+
def _deserialize(self, params):
|
|
1124
|
+
self._StartTime = params.get("StartTime")
|
|
1125
|
+
self._Status = params.get("Status")
|
|
1126
|
+
self._RequestId = params.get("RequestId")
|
|
1127
|
+
|
|
1128
|
+
|
|
1047
1129
|
class DescribeCallDetailInfoRequest(AbstractModel):
|
|
1048
1130
|
"""DescribeCallDetailInfo请求参数结构体
|
|
1049
1131
|
|
|
@@ -1951,8 +2033,7 @@ class DescribeRoomInfoRequest(AbstractModel):
|
|
|
1951
2033
|
r"""
|
|
1952
2034
|
:param _SdkAppId: 用户SdkAppId(如:1400xxxxxx)
|
|
1953
2035
|
:type SdkAppId: int
|
|
1954
|
-
:param _StartTime: 查询开始时间,本地unix时间戳,单位为秒(如:1590065777
|
|
1955
|
-
注意:支持查询14天内的数据
|
|
2036
|
+
:param _StartTime: 查询开始时间,本地unix时间戳,单位为秒(如:1590065777)注意:最大支持查询14天内的数据
|
|
1956
2037
|
:type StartTime: int
|
|
1957
2038
|
:param _EndTime: 查询结束时间,本地unix时间戳,单位为秒(如:1590065877)
|
|
1958
2039
|
注意:与StartTime间隔时间不超过24小时。
|
|
@@ -3749,8 +3830,7 @@ class DescribeUserInfoRequest(AbstractModel):
|
|
|
3749
3830
|
r"""
|
|
3750
3831
|
:param _CommId: 通话 ID(唯一标识一次通话): SdkAppId_RoomId(房间号)_ CreateTime(房间创建时间,unix时间戳,单位为s)例:1400xxxxxx_218695_1590065777。通过 DescribeRoomInfo(查询历史房间列表)接口获取([查询历史房间列表](https://cloud.tencent.com/document/product/647/44050))。
|
|
3751
3832
|
:type CommId: str
|
|
3752
|
-
:param _StartTime: 查询开始时间,本地unix时间戳,单位为秒(如:1590065777
|
|
3753
|
-
注意:支持查询14天内的数据
|
|
3833
|
+
:param _StartTime: 查询开始时间,本地unix时间戳,单位为秒(如:1590065777)注意:最大支持查询14天内的数据
|
|
3754
3834
|
:type StartTime: int
|
|
3755
3835
|
:param _EndTime: 查询结束时间,本地unix时间戳,单位为秒(如:1590065877)
|
|
3756
3836
|
注意:与StartTime间隔时间不超过4小时。
|
|
@@ -7086,6 +7166,65 @@ class QualityData(AbstractModel):
|
|
|
7086
7166
|
|
|
7087
7167
|
|
|
7088
7168
|
|
|
7169
|
+
class RecognizeConfig(AbstractModel):
|
|
7170
|
+
"""语音识别使用的配置
|
|
7171
|
+
|
|
7172
|
+
"""
|
|
7173
|
+
|
|
7174
|
+
def __init__(self):
|
|
7175
|
+
r"""
|
|
7176
|
+
:param _Language: 支持的语言,目前支持语言如下:
|
|
7177
|
+
Chinese = "zh"
|
|
7178
|
+
Chinese_TW = "zh-TW"
|
|
7179
|
+
English = "en"
|
|
7180
|
+
Vietnamese = "vi"
|
|
7181
|
+
Japanese = "ja"
|
|
7182
|
+
Korean = "ko"
|
|
7183
|
+
Indonesia = "id"
|
|
7184
|
+
Thai = "th"
|
|
7185
|
+
Portuguese = "pt"
|
|
7186
|
+
Turkish = "tr"
|
|
7187
|
+
Arabic = "ar"
|
|
7188
|
+
Spanish = "es"
|
|
7189
|
+
Hindi = "hi"
|
|
7190
|
+
French = "fr"
|
|
7191
|
+
:type Language: str
|
|
7192
|
+
:param _TranslationLanguage: 选填,如果填写,则会启用翻译,不填则忽略。支持语言同Language字段。
|
|
7193
|
+
:type TranslationLanguage: str
|
|
7194
|
+
"""
|
|
7195
|
+
self._Language = None
|
|
7196
|
+
self._TranslationLanguage = None
|
|
7197
|
+
|
|
7198
|
+
@property
|
|
7199
|
+
def Language(self):
|
|
7200
|
+
return self._Language
|
|
7201
|
+
|
|
7202
|
+
@Language.setter
|
|
7203
|
+
def Language(self, Language):
|
|
7204
|
+
self._Language = Language
|
|
7205
|
+
|
|
7206
|
+
@property
|
|
7207
|
+
def TranslationLanguage(self):
|
|
7208
|
+
return self._TranslationLanguage
|
|
7209
|
+
|
|
7210
|
+
@TranslationLanguage.setter
|
|
7211
|
+
def TranslationLanguage(self, TranslationLanguage):
|
|
7212
|
+
self._TranslationLanguage = TranslationLanguage
|
|
7213
|
+
|
|
7214
|
+
|
|
7215
|
+
def _deserialize(self, params):
|
|
7216
|
+
self._Language = params.get("Language")
|
|
7217
|
+
self._TranslationLanguage = params.get("TranslationLanguage")
|
|
7218
|
+
memeber_set = set(params.keys())
|
|
7219
|
+
for name, value in vars(self).items():
|
|
7220
|
+
property_name = name[1:]
|
|
7221
|
+
if property_name in memeber_set:
|
|
7222
|
+
memeber_set.remove(property_name)
|
|
7223
|
+
if len(memeber_set) > 0:
|
|
7224
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
7225
|
+
|
|
7226
|
+
|
|
7227
|
+
|
|
7089
7228
|
class RecordParams(AbstractModel):
|
|
7090
7229
|
"""云端录制控制参数。
|
|
7091
7230
|
|
|
@@ -8040,6 +8179,128 @@ class SmallVideoLayoutParams(AbstractModel):
|
|
|
8040
8179
|
|
|
8041
8180
|
|
|
8042
8181
|
|
|
8182
|
+
class StartAITranscriptionRequest(AbstractModel):
|
|
8183
|
+
"""StartAITranscription请求参数结构体
|
|
8184
|
+
|
|
8185
|
+
"""
|
|
8186
|
+
|
|
8187
|
+
def __init__(self):
|
|
8188
|
+
r"""
|
|
8189
|
+
:param _SdkAppId: TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),使用该sdkappid开启任务。
|
|
8190
|
+
:type SdkAppId: int
|
|
8191
|
+
:param _RoomId: TRTC的[RoomId](https://cloud.tencent.com/document/product/647/46351#roomid),使用该roomid开启任务。
|
|
8192
|
+
:type RoomId: str
|
|
8193
|
+
:param _TranscriptionParams: 启动转录机器人和鉴权的参数。
|
|
8194
|
+
:type TranscriptionParams: :class:`tencentcloud.trtc.v20190722.models.TranscriptionParams`
|
|
8195
|
+
:param _RoomIdType: TRTC房间号的类型,0代表数字房间号,1代表字符串房间号。不填默认是数字房间号。
|
|
8196
|
+
:type RoomIdType: int
|
|
8197
|
+
:param _RecognizeConfig: 语音识别配置
|
|
8198
|
+
:type RecognizeConfig: :class:`tencentcloud.trtc.v20190722.models.RecognizeConfig`
|
|
8199
|
+
"""
|
|
8200
|
+
self._SdkAppId = None
|
|
8201
|
+
self._RoomId = None
|
|
8202
|
+
self._TranscriptionParams = None
|
|
8203
|
+
self._RoomIdType = None
|
|
8204
|
+
self._RecognizeConfig = None
|
|
8205
|
+
|
|
8206
|
+
@property
|
|
8207
|
+
def SdkAppId(self):
|
|
8208
|
+
return self._SdkAppId
|
|
8209
|
+
|
|
8210
|
+
@SdkAppId.setter
|
|
8211
|
+
def SdkAppId(self, SdkAppId):
|
|
8212
|
+
self._SdkAppId = SdkAppId
|
|
8213
|
+
|
|
8214
|
+
@property
|
|
8215
|
+
def RoomId(self):
|
|
8216
|
+
return self._RoomId
|
|
8217
|
+
|
|
8218
|
+
@RoomId.setter
|
|
8219
|
+
def RoomId(self, RoomId):
|
|
8220
|
+
self._RoomId = RoomId
|
|
8221
|
+
|
|
8222
|
+
@property
|
|
8223
|
+
def TranscriptionParams(self):
|
|
8224
|
+
return self._TranscriptionParams
|
|
8225
|
+
|
|
8226
|
+
@TranscriptionParams.setter
|
|
8227
|
+
def TranscriptionParams(self, TranscriptionParams):
|
|
8228
|
+
self._TranscriptionParams = TranscriptionParams
|
|
8229
|
+
|
|
8230
|
+
@property
|
|
8231
|
+
def RoomIdType(self):
|
|
8232
|
+
return self._RoomIdType
|
|
8233
|
+
|
|
8234
|
+
@RoomIdType.setter
|
|
8235
|
+
def RoomIdType(self, RoomIdType):
|
|
8236
|
+
self._RoomIdType = RoomIdType
|
|
8237
|
+
|
|
8238
|
+
@property
|
|
8239
|
+
def RecognizeConfig(self):
|
|
8240
|
+
return self._RecognizeConfig
|
|
8241
|
+
|
|
8242
|
+
@RecognizeConfig.setter
|
|
8243
|
+
def RecognizeConfig(self, RecognizeConfig):
|
|
8244
|
+
self._RecognizeConfig = RecognizeConfig
|
|
8245
|
+
|
|
8246
|
+
|
|
8247
|
+
def _deserialize(self, params):
|
|
8248
|
+
self._SdkAppId = params.get("SdkAppId")
|
|
8249
|
+
self._RoomId = params.get("RoomId")
|
|
8250
|
+
if params.get("TranscriptionParams") is not None:
|
|
8251
|
+
self._TranscriptionParams = TranscriptionParams()
|
|
8252
|
+
self._TranscriptionParams._deserialize(params.get("TranscriptionParams"))
|
|
8253
|
+
self._RoomIdType = params.get("RoomIdType")
|
|
8254
|
+
if params.get("RecognizeConfig") is not None:
|
|
8255
|
+
self._RecognizeConfig = RecognizeConfig()
|
|
8256
|
+
self._RecognizeConfig._deserialize(params.get("RecognizeConfig"))
|
|
8257
|
+
memeber_set = set(params.keys())
|
|
8258
|
+
for name, value in vars(self).items():
|
|
8259
|
+
property_name = name[1:]
|
|
8260
|
+
if property_name in memeber_set:
|
|
8261
|
+
memeber_set.remove(property_name)
|
|
8262
|
+
if len(memeber_set) > 0:
|
|
8263
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
8264
|
+
|
|
8265
|
+
|
|
8266
|
+
|
|
8267
|
+
class StartAITranscriptionResponse(AbstractModel):
|
|
8268
|
+
"""StartAITranscription返回参数结构体
|
|
8269
|
+
|
|
8270
|
+
"""
|
|
8271
|
+
|
|
8272
|
+
def __init__(self):
|
|
8273
|
+
r"""
|
|
8274
|
+
:param _TaskId: 用于唯一标识转录任务。
|
|
8275
|
+
:type TaskId: str
|
|
8276
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
8277
|
+
:type RequestId: str
|
|
8278
|
+
"""
|
|
8279
|
+
self._TaskId = None
|
|
8280
|
+
self._RequestId = None
|
|
8281
|
+
|
|
8282
|
+
@property
|
|
8283
|
+
def TaskId(self):
|
|
8284
|
+
return self._TaskId
|
|
8285
|
+
|
|
8286
|
+
@TaskId.setter
|
|
8287
|
+
def TaskId(self, TaskId):
|
|
8288
|
+
self._TaskId = TaskId
|
|
8289
|
+
|
|
8290
|
+
@property
|
|
8291
|
+
def RequestId(self):
|
|
8292
|
+
return self._RequestId
|
|
8293
|
+
|
|
8294
|
+
@RequestId.setter
|
|
8295
|
+
def RequestId(self, RequestId):
|
|
8296
|
+
self._RequestId = RequestId
|
|
8297
|
+
|
|
8298
|
+
|
|
8299
|
+
def _deserialize(self, params):
|
|
8300
|
+
self._TaskId = params.get("TaskId")
|
|
8301
|
+
self._RequestId = params.get("RequestId")
|
|
8302
|
+
|
|
8303
|
+
|
|
8043
8304
|
class StartMCUMixTranscodeByStrRoomIdRequest(AbstractModel):
|
|
8044
8305
|
"""StartMCUMixTranscodeByStrRoomId请求参数结构体
|
|
8045
8306
|
|
|
@@ -8522,27 +8783,30 @@ class StartStreamIngestRequest(AbstractModel):
|
|
|
8522
8783
|
:type UserId: str
|
|
8523
8784
|
:param _UserSig: 输入在线媒体流机器人UserId对应的校验签名,即UserId和UserSig相当于机器人进房的登录密码,具体计算方法请参考TRTC计算[UserSig](https://cloud.tencent.com/document/product/647/45910#UserSig)的方案。
|
|
8524
8785
|
:type UserSig: str
|
|
8525
|
-
:param
|
|
8526
|
-
:type
|
|
8786
|
+
:param _StreamUrl: 源流URL。历史原因本字段【必填】。如果是视频流,分辨率请保持不变。
|
|
8787
|
+
:type StreamUrl: str
|
|
8527
8788
|
:param _PrivateMapKey: TRTC房间权限加密串,只有在TRTC控制台启用了高级权限控制的时候需要携带,在TRTC控制台如果开启高级权限控制后,TRTC 的后台服务系统会校验一个叫做 [PrivateMapKey] 的“权限票据”,权限票据中包含了一个加密后的 RoomId 和一个加密后的“权限位列表”。由于 PrivateMapKey 中包含 RoomId,所以只提供了 UserSig 没有提供 PrivateMapKey 时,并不能进入指定的房间。
|
|
8528
8789
|
:type PrivateMapKey: str
|
|
8529
8790
|
:param _VideoEncodeParams: 视频编码参数。可选,如果不填,保持原始流的参数。
|
|
8530
8791
|
:type VideoEncodeParams: :class:`tencentcloud.trtc.v20190722.models.VideoEncodeParams`
|
|
8531
8792
|
:param _AudioEncodeParams: 音频编码参数。可选,如果不填,保持原始流的参数。
|
|
8532
8793
|
:type AudioEncodeParams: :class:`tencentcloud.trtc.v20190722.models.AudioEncodeParams`
|
|
8533
|
-
:param
|
|
8534
|
-
:type
|
|
8794
|
+
:param _SourceUrl: 【本字段已废弃,请使用 StreamUrl 字段】源流URL,支持一个地址。
|
|
8795
|
+
:type SourceUrl: list of str
|
|
8796
|
+
:param _SeekSecond: 指定视频从某个秒时间戳播放
|
|
8797
|
+
:type SeekSecond: int
|
|
8535
8798
|
"""
|
|
8536
8799
|
self._SdkAppId = None
|
|
8537
8800
|
self._RoomId = None
|
|
8538
8801
|
self._RoomIdType = None
|
|
8539
8802
|
self._UserId = None
|
|
8540
8803
|
self._UserSig = None
|
|
8541
|
-
self.
|
|
8804
|
+
self._StreamUrl = None
|
|
8542
8805
|
self._PrivateMapKey = None
|
|
8543
8806
|
self._VideoEncodeParams = None
|
|
8544
8807
|
self._AudioEncodeParams = None
|
|
8545
|
-
self.
|
|
8808
|
+
self._SourceUrl = None
|
|
8809
|
+
self._SeekSecond = None
|
|
8546
8810
|
|
|
8547
8811
|
@property
|
|
8548
8812
|
def SdkAppId(self):
|
|
@@ -8585,12 +8849,12 @@ class StartStreamIngestRequest(AbstractModel):
|
|
|
8585
8849
|
self._UserSig = UserSig
|
|
8586
8850
|
|
|
8587
8851
|
@property
|
|
8588
|
-
def
|
|
8589
|
-
return self.
|
|
8852
|
+
def StreamUrl(self):
|
|
8853
|
+
return self._StreamUrl
|
|
8590
8854
|
|
|
8591
|
-
@
|
|
8592
|
-
def
|
|
8593
|
-
self.
|
|
8855
|
+
@StreamUrl.setter
|
|
8856
|
+
def StreamUrl(self, StreamUrl):
|
|
8857
|
+
self._StreamUrl = StreamUrl
|
|
8594
8858
|
|
|
8595
8859
|
@property
|
|
8596
8860
|
def PrivateMapKey(self):
|
|
@@ -8617,12 +8881,20 @@ class StartStreamIngestRequest(AbstractModel):
|
|
|
8617
8881
|
self._AudioEncodeParams = AudioEncodeParams
|
|
8618
8882
|
|
|
8619
8883
|
@property
|
|
8620
|
-
def
|
|
8621
|
-
return self.
|
|
8884
|
+
def SourceUrl(self):
|
|
8885
|
+
return self._SourceUrl
|
|
8622
8886
|
|
|
8623
|
-
@
|
|
8624
|
-
def
|
|
8625
|
-
self.
|
|
8887
|
+
@SourceUrl.setter
|
|
8888
|
+
def SourceUrl(self, SourceUrl):
|
|
8889
|
+
self._SourceUrl = SourceUrl
|
|
8890
|
+
|
|
8891
|
+
@property
|
|
8892
|
+
def SeekSecond(self):
|
|
8893
|
+
return self._SeekSecond
|
|
8894
|
+
|
|
8895
|
+
@SeekSecond.setter
|
|
8896
|
+
def SeekSecond(self, SeekSecond):
|
|
8897
|
+
self._SeekSecond = SeekSecond
|
|
8626
8898
|
|
|
8627
8899
|
|
|
8628
8900
|
def _deserialize(self, params):
|
|
@@ -8631,7 +8903,7 @@ class StartStreamIngestRequest(AbstractModel):
|
|
|
8631
8903
|
self._RoomIdType = params.get("RoomIdType")
|
|
8632
8904
|
self._UserId = params.get("UserId")
|
|
8633
8905
|
self._UserSig = params.get("UserSig")
|
|
8634
|
-
self.
|
|
8906
|
+
self._StreamUrl = params.get("StreamUrl")
|
|
8635
8907
|
self._PrivateMapKey = params.get("PrivateMapKey")
|
|
8636
8908
|
if params.get("VideoEncodeParams") is not None:
|
|
8637
8909
|
self._VideoEncodeParams = VideoEncodeParams()
|
|
@@ -8639,7 +8911,8 @@ class StartStreamIngestRequest(AbstractModel):
|
|
|
8639
8911
|
if params.get("AudioEncodeParams") is not None:
|
|
8640
8912
|
self._AudioEncodeParams = AudioEncodeParams()
|
|
8641
8913
|
self._AudioEncodeParams._deserialize(params.get("AudioEncodeParams"))
|
|
8642
|
-
self.
|
|
8914
|
+
self._SourceUrl = params.get("SourceUrl")
|
|
8915
|
+
self._SeekSecond = params.get("SeekSecond")
|
|
8643
8916
|
memeber_set = set(params.keys())
|
|
8644
8917
|
for name, value in vars(self).items():
|
|
8645
8918
|
property_name = name[1:]
|
|
@@ -8841,6 +9114,64 @@ class StartWebRecordResponse(AbstractModel):
|
|
|
8841
9114
|
self._RequestId = params.get("RequestId")
|
|
8842
9115
|
|
|
8843
9116
|
|
|
9117
|
+
class StopAITranscriptionRequest(AbstractModel):
|
|
9118
|
+
"""StopAITranscription请求参数结构体
|
|
9119
|
+
|
|
9120
|
+
"""
|
|
9121
|
+
|
|
9122
|
+
def __init__(self):
|
|
9123
|
+
r"""
|
|
9124
|
+
:param _TaskId: 唯一标识转录任务。
|
|
9125
|
+
:type TaskId: str
|
|
9126
|
+
"""
|
|
9127
|
+
self._TaskId = None
|
|
9128
|
+
|
|
9129
|
+
@property
|
|
9130
|
+
def TaskId(self):
|
|
9131
|
+
return self._TaskId
|
|
9132
|
+
|
|
9133
|
+
@TaskId.setter
|
|
9134
|
+
def TaskId(self, TaskId):
|
|
9135
|
+
self._TaskId = TaskId
|
|
9136
|
+
|
|
9137
|
+
|
|
9138
|
+
def _deserialize(self, params):
|
|
9139
|
+
self._TaskId = params.get("TaskId")
|
|
9140
|
+
memeber_set = set(params.keys())
|
|
9141
|
+
for name, value in vars(self).items():
|
|
9142
|
+
property_name = name[1:]
|
|
9143
|
+
if property_name in memeber_set:
|
|
9144
|
+
memeber_set.remove(property_name)
|
|
9145
|
+
if len(memeber_set) > 0:
|
|
9146
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
9147
|
+
|
|
9148
|
+
|
|
9149
|
+
|
|
9150
|
+
class StopAITranscriptionResponse(AbstractModel):
|
|
9151
|
+
"""StopAITranscription返回参数结构体
|
|
9152
|
+
|
|
9153
|
+
"""
|
|
9154
|
+
|
|
9155
|
+
def __init__(self):
|
|
9156
|
+
r"""
|
|
9157
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
9158
|
+
:type RequestId: str
|
|
9159
|
+
"""
|
|
9160
|
+
self._RequestId = None
|
|
9161
|
+
|
|
9162
|
+
@property
|
|
9163
|
+
def RequestId(self):
|
|
9164
|
+
return self._RequestId
|
|
9165
|
+
|
|
9166
|
+
@RequestId.setter
|
|
9167
|
+
def RequestId(self, RequestId):
|
|
9168
|
+
self._RequestId = RequestId
|
|
9169
|
+
|
|
9170
|
+
|
|
9171
|
+
def _deserialize(self, params):
|
|
9172
|
+
self._RequestId = params.get("RequestId")
|
|
9173
|
+
|
|
9174
|
+
|
|
8844
9175
|
class StopMCUMixTranscodeByStrRoomIdRequest(AbstractModel):
|
|
8845
9176
|
"""StopMCUMixTranscodeByStrRoomId请求参数结构体
|
|
8846
9177
|
|
|
@@ -9383,6 +9714,37 @@ class SubscribeStreamUserIds(AbstractModel):
|
|
|
9383
9714
|
|
|
9384
9715
|
|
|
9385
9716
|
|
|
9717
|
+
class SummarizeTranscriptionRequest(AbstractModel):
|
|
9718
|
+
"""SummarizeTranscription请求参数结构体
|
|
9719
|
+
|
|
9720
|
+
"""
|
|
9721
|
+
|
|
9722
|
+
|
|
9723
|
+
class SummarizeTranscriptionResponse(AbstractModel):
|
|
9724
|
+
"""SummarizeTranscription返回参数结构体
|
|
9725
|
+
|
|
9726
|
+
"""
|
|
9727
|
+
|
|
9728
|
+
def __init__(self):
|
|
9729
|
+
r"""
|
|
9730
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
9731
|
+
:type RequestId: str
|
|
9732
|
+
"""
|
|
9733
|
+
self._RequestId = None
|
|
9734
|
+
|
|
9735
|
+
@property
|
|
9736
|
+
def RequestId(self):
|
|
9737
|
+
return self._RequestId
|
|
9738
|
+
|
|
9739
|
+
@RequestId.setter
|
|
9740
|
+
def RequestId(self, RequestId):
|
|
9741
|
+
self._RequestId = RequestId
|
|
9742
|
+
|
|
9743
|
+
|
|
9744
|
+
def _deserialize(self, params):
|
|
9745
|
+
self._RequestId = params.get("RequestId")
|
|
9746
|
+
|
|
9747
|
+
|
|
9386
9748
|
class TRTCDataResp(AbstractModel):
|
|
9387
9749
|
"""TRTC数据大盘/实时监控 API接口数据出参
|
|
9388
9750
|
|
|
@@ -9689,6 +10051,112 @@ class TimeValue(AbstractModel):
|
|
|
9689
10051
|
|
|
9690
10052
|
|
|
9691
10053
|
|
|
10054
|
+
class TranscriptionParams(AbstractModel):
|
|
10055
|
+
"""AI转录参数
|
|
10056
|
+
|
|
10057
|
+
"""
|
|
10058
|
+
|
|
10059
|
+
def __init__(self):
|
|
10060
|
+
r"""
|
|
10061
|
+
:param _UserId: 转录机器人的UserId,用于进房发起转录任务。【注意】这个UserId不能与当前房间内的主播观众[UserId](https://cloud.tencent.com/document/product/647/46351#userid)重复。如果一个房间发起多个转录任务时,机器人的userid也不能相互重复,否则会中断前一个任务。需要保证转录机器人UserId在房间内唯一。
|
|
10062
|
+
:type UserId: str
|
|
10063
|
+
:param _UserSig: 转录机器人UserId对应的校验签名,即UserId和UserSig相当于转录机器人进房的登录密码,具体计算方法请参考TRTC计算[UserSig](https://cloud.tencent.com/document/product/647/45910#UserSig)的方案。
|
|
10064
|
+
:type UserSig: str
|
|
10065
|
+
:param _IMAdminUserId: IM[管理员账户](
|
|
10066
|
+
https://cloud.tencent.com/document/product/269/31999#app-.E7.AE.A1.E7.90.86.E5.91.98),如果填写,后台下发消息会使用IM通道,而不是TRTC自定义消息。
|
|
10067
|
+
:type IMAdminUserId: str
|
|
10068
|
+
:param _IMAdminUserSig: IM管理员账户生成的签名,用于向特定群组发送消息。如果填写,后台下发消息会使用IM通道,而不是TRTC自定义消息。必须和IM管理员的UserId一起填写。
|
|
10069
|
+
:type IMAdminUserSig: str
|
|
10070
|
+
:param _MaxIdleTime: 房间内推流用户全部退出后超过MaxIdleTime秒,后台自动关闭转录任务,默认值是60s。
|
|
10071
|
+
:type MaxIdleTime: int
|
|
10072
|
+
:param _TranscriptionMode: 1表示机器人只订阅单个人的流,0表示机器人订阅整个房间的流,如果不填默认订阅整个房间的流。
|
|
10073
|
+
:type TranscriptionMode: int
|
|
10074
|
+
:param _TargetUserId: TranscriptionMode为1时必填,机器人只会拉该userid的流,忽略房间里其他用户。
|
|
10075
|
+
:type TargetUserId: str
|
|
10076
|
+
"""
|
|
10077
|
+
self._UserId = None
|
|
10078
|
+
self._UserSig = None
|
|
10079
|
+
self._IMAdminUserId = None
|
|
10080
|
+
self._IMAdminUserSig = None
|
|
10081
|
+
self._MaxIdleTime = None
|
|
10082
|
+
self._TranscriptionMode = None
|
|
10083
|
+
self._TargetUserId = None
|
|
10084
|
+
|
|
10085
|
+
@property
|
|
10086
|
+
def UserId(self):
|
|
10087
|
+
return self._UserId
|
|
10088
|
+
|
|
10089
|
+
@UserId.setter
|
|
10090
|
+
def UserId(self, UserId):
|
|
10091
|
+
self._UserId = UserId
|
|
10092
|
+
|
|
10093
|
+
@property
|
|
10094
|
+
def UserSig(self):
|
|
10095
|
+
return self._UserSig
|
|
10096
|
+
|
|
10097
|
+
@UserSig.setter
|
|
10098
|
+
def UserSig(self, UserSig):
|
|
10099
|
+
self._UserSig = UserSig
|
|
10100
|
+
|
|
10101
|
+
@property
|
|
10102
|
+
def IMAdminUserId(self):
|
|
10103
|
+
return self._IMAdminUserId
|
|
10104
|
+
|
|
10105
|
+
@IMAdminUserId.setter
|
|
10106
|
+
def IMAdminUserId(self, IMAdminUserId):
|
|
10107
|
+
self._IMAdminUserId = IMAdminUserId
|
|
10108
|
+
|
|
10109
|
+
@property
|
|
10110
|
+
def IMAdminUserSig(self):
|
|
10111
|
+
return self._IMAdminUserSig
|
|
10112
|
+
|
|
10113
|
+
@IMAdminUserSig.setter
|
|
10114
|
+
def IMAdminUserSig(self, IMAdminUserSig):
|
|
10115
|
+
self._IMAdminUserSig = IMAdminUserSig
|
|
10116
|
+
|
|
10117
|
+
@property
|
|
10118
|
+
def MaxIdleTime(self):
|
|
10119
|
+
return self._MaxIdleTime
|
|
10120
|
+
|
|
10121
|
+
@MaxIdleTime.setter
|
|
10122
|
+
def MaxIdleTime(self, MaxIdleTime):
|
|
10123
|
+
self._MaxIdleTime = MaxIdleTime
|
|
10124
|
+
|
|
10125
|
+
@property
|
|
10126
|
+
def TranscriptionMode(self):
|
|
10127
|
+
return self._TranscriptionMode
|
|
10128
|
+
|
|
10129
|
+
@TranscriptionMode.setter
|
|
10130
|
+
def TranscriptionMode(self, TranscriptionMode):
|
|
10131
|
+
self._TranscriptionMode = TranscriptionMode
|
|
10132
|
+
|
|
10133
|
+
@property
|
|
10134
|
+
def TargetUserId(self):
|
|
10135
|
+
return self._TargetUserId
|
|
10136
|
+
|
|
10137
|
+
@TargetUserId.setter
|
|
10138
|
+
def TargetUserId(self, TargetUserId):
|
|
10139
|
+
self._TargetUserId = TargetUserId
|
|
10140
|
+
|
|
10141
|
+
|
|
10142
|
+
def _deserialize(self, params):
|
|
10143
|
+
self._UserId = params.get("UserId")
|
|
10144
|
+
self._UserSig = params.get("UserSig")
|
|
10145
|
+
self._IMAdminUserId = params.get("IMAdminUserId")
|
|
10146
|
+
self._IMAdminUserSig = params.get("IMAdminUserSig")
|
|
10147
|
+
self._MaxIdleTime = params.get("MaxIdleTime")
|
|
10148
|
+
self._TranscriptionMode = params.get("TranscriptionMode")
|
|
10149
|
+
self._TargetUserId = params.get("TargetUserId")
|
|
10150
|
+
memeber_set = set(params.keys())
|
|
10151
|
+
for name, value in vars(self).items():
|
|
10152
|
+
property_name = name[1:]
|
|
10153
|
+
if property_name in memeber_set:
|
|
10154
|
+
memeber_set.remove(property_name)
|
|
10155
|
+
if len(memeber_set) > 0:
|
|
10156
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
10157
|
+
|
|
10158
|
+
|
|
10159
|
+
|
|
9692
10160
|
class TrtcUsage(AbstractModel):
|
|
9693
10161
|
"""实时音视频用量在某一时间段的统计信息。
|
|
9694
10162
|
|
|
@@ -129,11 +129,36 @@ class TrtcClient(AbstractClient):
|
|
|
129
129
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
130
130
|
|
|
131
131
|
|
|
132
|
+
def DescribeAITranscription(self, request):
|
|
133
|
+
"""查询AI转录状态
|
|
134
|
+
|
|
135
|
+
:param request: Request instance for DescribeAITranscription.
|
|
136
|
+
:type request: :class:`tencentcloud.trtc.v20190722.models.DescribeAITranscriptionRequest`
|
|
137
|
+
:rtype: :class:`tencentcloud.trtc.v20190722.models.DescribeAITranscriptionResponse`
|
|
138
|
+
|
|
139
|
+
"""
|
|
140
|
+
try:
|
|
141
|
+
params = request._serialize()
|
|
142
|
+
headers = request.headers
|
|
143
|
+
body = self.call("DescribeAITranscription", params, headers=headers)
|
|
144
|
+
response = json.loads(body)
|
|
145
|
+
model = models.DescribeAITranscriptionResponse()
|
|
146
|
+
model._deserialize(response["Response"])
|
|
147
|
+
return model
|
|
148
|
+
except Exception as e:
|
|
149
|
+
if isinstance(e, TencentCloudSDKException):
|
|
150
|
+
raise
|
|
151
|
+
else:
|
|
152
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
153
|
+
|
|
154
|
+
|
|
132
155
|
def DescribeCallDetailInfo(self, request):
|
|
133
|
-
"""
|
|
156
|
+
"""查询指定时间内的用户列表及用户通话质量数据,最大可查询14天内数据。DataType 不为null,查询起止时间不超过1个小时,查询用户不超过6个,支持跨天查询。DataType为null时,查询起止时间不超过4个小时, 默认查询6个用户,同时支持每页查询100以内用户个数(PageSize不超过100)。接口用于查询质量问题,不推荐作为计费使用。(同老接口DescribeCallDetail)
|
|
134
157
|
**注意**:
|
|
135
158
|
1.该接口只用于历史数据统计或核对数据使用,实时类关键业务逻辑不能使用。
|
|
136
|
-
2.该接口自2024年4月1
|
|
159
|
+
2.该接口自2024年4月1日起正式商业化,需订阅套餐解锁调用能力,提供以下两种解锁方式,可任选其一解锁:
|
|
160
|
+
方式一:通过订阅[包月套餐](https://cloud.tencent.com/document/product/647/85386)「尊享版」(可查近7天)和「旗舰版」(可查近14天),[前往订阅](https://buy.cloud.tencent.com/trtc?trtcversion=top)。
|
|
161
|
+
方式二:通过订阅[监控仪表盘](https://cloud.tencent.com/document/product/647/81331)商业套餐包「基础版」(可查近7天)和「进阶版」(可查近14天),[前往订阅](https://buy.cloud.tencent.com/trtc_monitor)。
|
|
137
162
|
|
|
138
163
|
:param request: Request instance for DescribeCallDetailInfo.
|
|
139
164
|
:type request: :class:`tencentcloud.trtc.v20190722.models.DescribeCallDetailInfoRequest`
|
|
@@ -315,10 +340,12 @@ class TrtcClient(AbstractClient):
|
|
|
315
340
|
|
|
316
341
|
|
|
317
342
|
def DescribeRoomInfo(self, request):
|
|
318
|
-
"""查询SdkAppId下的房间列表。默认返回10条通话,一次最多返回100
|
|
343
|
+
"""查询SdkAppId下的房间列表。默认返回10条通话,一次最多返回100条通话。最大可查询14天内的数据。(同老接口DescribeRoomInformation)
|
|
319
344
|
**注意**:
|
|
320
345
|
1.该接口只用于历史数据统计或核对数据使用,实时类关键业务逻辑不能使用。
|
|
321
|
-
2.该接口自2024年4月1
|
|
346
|
+
2.该接口自2024年4月1日起正式商业化,需订阅套餐解锁调用能力,提供以下两种解锁方式,可任意其一解锁:
|
|
347
|
+
方式一:通过订阅[包月套餐](https://cloud.tencent.com/document/product/647/85386)「尊享版」(可查近7天)和「旗舰版」(可查近14天),[前往订阅](https://buy.cloud.tencent.com/trtc?trtcversion=top)。
|
|
348
|
+
方式二:通过订阅[监控仪表盘](https://cloud.tencent.com/document/product/647/81331)商业套餐包「基础版」(可查近7天)和「进阶版」(可查近14天),[前往订阅](https://buy.cloud.tencent.com/trtc_monitor)。
|
|
322
349
|
|
|
323
350
|
:param request: Request instance for DescribeRoomInfo.
|
|
324
351
|
:type request: :class:`tencentcloud.trtc.v20190722.models.DescribeRoomInfoRequest`
|
|
@@ -753,10 +780,12 @@ class TrtcClient(AbstractClient):
|
|
|
753
780
|
|
|
754
781
|
|
|
755
782
|
def DescribeUserInfo(self, request):
|
|
756
|
-
"""
|
|
783
|
+
"""查询指定时间内的用户列表,最大可查询14天内数据,查询起止时间不超过4小时。默认每页查询6个用户,支持每页最大查询100个用户PageSize不超过100)。(同老接口DescribeUserInformation)
|
|
757
784
|
**注意**:
|
|
758
785
|
1.该接口只用于历史数据统计或核对数据使用,实时类关键业务逻辑不能使用。
|
|
759
|
-
2.该接口自2024年4月1
|
|
786
|
+
2.该接口自2024年4月1日起正式商业化,需订阅套餐解锁调用能力,提供以下两种解锁方式,可任选其一解锁:
|
|
787
|
+
方式一:通过订阅[包月套餐](https://cloud.tencent.com/document/product/647/85386)「尊享版」(可查近7天)和「旗舰版」(可查近14天),[前往订阅](https://buy.cloud.tencent.com/trtc?trtcversion=top)。
|
|
788
|
+
方式二:通过订阅[监控仪表盘](https://cloud.tencent.com/document/product/647/81331)商业套餐包「基础版」(可查近7天)和「进阶版」(可查近14天),[前往订阅](https://buy.cloud.tencent.com/trtc_monitor)。
|
|
760
789
|
|
|
761
790
|
:param request: Request instance for DescribeUserInfo.
|
|
762
791
|
:type request: :class:`tencentcloud.trtc.v20190722.models.DescribeUserInfoRequest`
|
|
@@ -939,6 +968,29 @@ class TrtcClient(AbstractClient):
|
|
|
939
968
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
940
969
|
|
|
941
970
|
|
|
971
|
+
def StartAITranscription(self, request):
|
|
972
|
+
"""这个接口调用后,后台会启动机器人,实时进行语音识别并下发字幕和会议记录。
|
|
973
|
+
|
|
974
|
+
:param request: Request instance for StartAITranscription.
|
|
975
|
+
:type request: :class:`tencentcloud.trtc.v20190722.models.StartAITranscriptionRequest`
|
|
976
|
+
:rtype: :class:`tencentcloud.trtc.v20190722.models.StartAITranscriptionResponse`
|
|
977
|
+
|
|
978
|
+
"""
|
|
979
|
+
try:
|
|
980
|
+
params = request._serialize()
|
|
981
|
+
headers = request.headers
|
|
982
|
+
body = self.call("StartAITranscription", params, headers=headers)
|
|
983
|
+
response = json.loads(body)
|
|
984
|
+
model = models.StartAITranscriptionResponse()
|
|
985
|
+
model._deserialize(response["Response"])
|
|
986
|
+
return model
|
|
987
|
+
except Exception as e:
|
|
988
|
+
if isinstance(e, TencentCloudSDKException):
|
|
989
|
+
raise
|
|
990
|
+
else:
|
|
991
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
992
|
+
|
|
993
|
+
|
|
942
994
|
def StartMCUMixTranscode(self, request):
|
|
943
995
|
"""接口说明:启动云端混流,并指定混流画面中各路画面的布局位置。
|
|
944
996
|
|
|
@@ -1192,6 +1244,29 @@ class TrtcClient(AbstractClient):
|
|
|
1192
1244
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1193
1245
|
|
|
1194
1246
|
|
|
1247
|
+
def StopAITranscription(self, request):
|
|
1248
|
+
"""停止AI转录
|
|
1249
|
+
|
|
1250
|
+
:param request: Request instance for StopAITranscription.
|
|
1251
|
+
:type request: :class:`tencentcloud.trtc.v20190722.models.StopAITranscriptionRequest`
|
|
1252
|
+
:rtype: :class:`tencentcloud.trtc.v20190722.models.StopAITranscriptionResponse`
|
|
1253
|
+
|
|
1254
|
+
"""
|
|
1255
|
+
try:
|
|
1256
|
+
params = request._serialize()
|
|
1257
|
+
headers = request.headers
|
|
1258
|
+
body = self.call("StopAITranscription", params, headers=headers)
|
|
1259
|
+
response = json.loads(body)
|
|
1260
|
+
model = models.StopAITranscriptionResponse()
|
|
1261
|
+
model._deserialize(response["Response"])
|
|
1262
|
+
return model
|
|
1263
|
+
except Exception as e:
|
|
1264
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1265
|
+
raise
|
|
1266
|
+
else:
|
|
1267
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1268
|
+
|
|
1269
|
+
|
|
1195
1270
|
def StopMCUMixTranscode(self, request):
|
|
1196
1271
|
"""接口说明:结束云端混流
|
|
1197
1272
|
|
|
@@ -1307,6 +1382,29 @@ class TrtcClient(AbstractClient):
|
|
|
1307
1382
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1308
1383
|
|
|
1309
1384
|
|
|
1385
|
+
def SummarizeTranscription(self, request):
|
|
1386
|
+
"""对转录的文本进行总结
|
|
1387
|
+
|
|
1388
|
+
:param request: Request instance for SummarizeTranscription.
|
|
1389
|
+
:type request: :class:`tencentcloud.trtc.v20190722.models.SummarizeTranscriptionRequest`
|
|
1390
|
+
:rtype: :class:`tencentcloud.trtc.v20190722.models.SummarizeTranscriptionResponse`
|
|
1391
|
+
|
|
1392
|
+
"""
|
|
1393
|
+
try:
|
|
1394
|
+
params = request._serialize()
|
|
1395
|
+
headers = request.headers
|
|
1396
|
+
body = self.call("SummarizeTranscription", params, headers=headers)
|
|
1397
|
+
response = json.loads(body)
|
|
1398
|
+
model = models.SummarizeTranscriptionResponse()
|
|
1399
|
+
model._deserialize(response["Response"])
|
|
1400
|
+
return model
|
|
1401
|
+
except Exception as e:
|
|
1402
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1403
|
+
raise
|
|
1404
|
+
else:
|
|
1405
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1406
|
+
|
|
1407
|
+
|
|
1310
1408
|
def UpdatePublishCdnStream(self, request):
|
|
1311
1409
|
"""更新转推任务。
|
|
1312
1410
|
注:请参见启动转推任务的接口说明和使用说明。
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1153
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1148
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|