tencentcloud-sdk-python 3.0.1214__py2.py3-none-any.whl → 3.0.1216__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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/batch/v20170312/models.py +1 -1
- tencentcloud/ccc/v20200210/models.py +12 -12
- tencentcloud/cdwdoris/v20211228/cdwdoris_client.py +164 -164
- tencentcloud/cdwdoris/v20211228/errorcodes.py +0 -3
- tencentcloud/cdwdoris/v20211228/models.py +1525 -1997
- tencentcloud/clb/v20180317/models.py +1 -1
- tencentcloud/cvm/v20170312/models.py +1 -1
- tencentcloud/cynosdb/v20190107/cynosdb_client.py +46 -0
- tencentcloud/cynosdb/v20190107/models.py +218 -0
- tencentcloud/dcdb/v20180411/models.py +36 -0
- tencentcloud/dnspod/v20210323/errorcodes.py +3 -0
- tencentcloud/dsgc/v20190723/models.py +115 -0
- tencentcloud/emr/v20190103/models.py +12 -0
- tencentcloud/faceid/v20180301/faceid_client.py +1 -1
- tencentcloud/faceid/v20180301/models.py +38 -0
- tencentcloud/hunyuan/v20230901/models.py +4 -2
- tencentcloud/mps/v20190612/models.py +183 -13
- tencentcloud/organization/v20210331/models.py +17 -17
- tencentcloud/organization/v20210331/organization_client.py +2 -2
- tencentcloud/redis/v20180412/models.py +20 -18
- tencentcloud/trtc/v20190722/models.py +212 -0
- tencentcloud/trtc/v20190722/trtc_client.py +48 -35
- tencentcloud/tse/v20201207/models.py +88 -0
- tencentcloud/tts/v20190823/models.py +2 -2
- tencentcloud/vclm/v20240523/errorcodes.py +8 -2
- tencentcloud/vclm/v20240523/models.py +12 -0
- tencentcloud/vod/v20180717/errorcodes.py +6 -0
- tencentcloud/vod/v20180717/models.py +531 -0
- tencentcloud/vod/v20180717/vod_client.py +69 -0
- tencentcloud/vpc/v20170312/models.py +194 -2
- {tencentcloud_sdk_python-3.0.1214.dist-info → tencentcloud_sdk_python-3.0.1216.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1214.dist-info → tencentcloud_sdk_python-3.0.1216.dist-info}/RECORD +36 -36
- {tencentcloud_sdk_python-3.0.1214.dist-info → tencentcloud_sdk_python-3.0.1216.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1214.dist-info → tencentcloud_sdk_python-3.0.1216.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1214.dist-info → tencentcloud_sdk_python-3.0.1216.dist-info}/top_level.txt +0 -0
@@ -11106,6 +11106,124 @@ class TrtcUsage(AbstractModel):
|
|
11106
11106
|
|
11107
11107
|
|
11108
11108
|
|
11109
|
+
class UpdateAIConversationRequest(AbstractModel):
|
11110
|
+
"""UpdateAIConversation请求参数结构体
|
11111
|
+
|
11112
|
+
"""
|
11113
|
+
|
11114
|
+
def __init__(self):
|
11115
|
+
r"""
|
11116
|
+
:param _TaskId: 唯一标识一个任务
|
11117
|
+
:type TaskId: str
|
11118
|
+
:param _WelcomeMessage: 不填写则不进行更新,机器人的欢迎语
|
11119
|
+
:type WelcomeMessage: str
|
11120
|
+
:param _InterruptMode: 不填写则不进行更新。智能打断模式,0表示服务端自动打断,1表示服务端不打断,由端上发送打断信令进行打断
|
11121
|
+
:type InterruptMode: int
|
11122
|
+
:param _InterruptSpeechDuration: 不填写则不进行更新。InterruptMode为0时使用,单位为毫秒,默认为500ms。表示服务端检测到持续InterruptSpeechDuration毫秒的人声则进行打断
|
11123
|
+
:type InterruptSpeechDuration: int
|
11124
|
+
:param _LLMConfig: 不填写则不进行更新,LLM配置,详情见StartAIConversation接口
|
11125
|
+
:type LLMConfig: str
|
11126
|
+
:param _TTSConfig: 不填写则不进行更新,TTS配置,详情见StartAIConversation接口
|
11127
|
+
:type TTSConfig: str
|
11128
|
+
"""
|
11129
|
+
self._TaskId = None
|
11130
|
+
self._WelcomeMessage = None
|
11131
|
+
self._InterruptMode = None
|
11132
|
+
self._InterruptSpeechDuration = None
|
11133
|
+
self._LLMConfig = None
|
11134
|
+
self._TTSConfig = None
|
11135
|
+
|
11136
|
+
@property
|
11137
|
+
def TaskId(self):
|
11138
|
+
return self._TaskId
|
11139
|
+
|
11140
|
+
@TaskId.setter
|
11141
|
+
def TaskId(self, TaskId):
|
11142
|
+
self._TaskId = TaskId
|
11143
|
+
|
11144
|
+
@property
|
11145
|
+
def WelcomeMessage(self):
|
11146
|
+
return self._WelcomeMessage
|
11147
|
+
|
11148
|
+
@WelcomeMessage.setter
|
11149
|
+
def WelcomeMessage(self, WelcomeMessage):
|
11150
|
+
self._WelcomeMessage = WelcomeMessage
|
11151
|
+
|
11152
|
+
@property
|
11153
|
+
def InterruptMode(self):
|
11154
|
+
return self._InterruptMode
|
11155
|
+
|
11156
|
+
@InterruptMode.setter
|
11157
|
+
def InterruptMode(self, InterruptMode):
|
11158
|
+
self._InterruptMode = InterruptMode
|
11159
|
+
|
11160
|
+
@property
|
11161
|
+
def InterruptSpeechDuration(self):
|
11162
|
+
return self._InterruptSpeechDuration
|
11163
|
+
|
11164
|
+
@InterruptSpeechDuration.setter
|
11165
|
+
def InterruptSpeechDuration(self, InterruptSpeechDuration):
|
11166
|
+
self._InterruptSpeechDuration = InterruptSpeechDuration
|
11167
|
+
|
11168
|
+
@property
|
11169
|
+
def LLMConfig(self):
|
11170
|
+
return self._LLMConfig
|
11171
|
+
|
11172
|
+
@LLMConfig.setter
|
11173
|
+
def LLMConfig(self, LLMConfig):
|
11174
|
+
self._LLMConfig = LLMConfig
|
11175
|
+
|
11176
|
+
@property
|
11177
|
+
def TTSConfig(self):
|
11178
|
+
return self._TTSConfig
|
11179
|
+
|
11180
|
+
@TTSConfig.setter
|
11181
|
+
def TTSConfig(self, TTSConfig):
|
11182
|
+
self._TTSConfig = TTSConfig
|
11183
|
+
|
11184
|
+
|
11185
|
+
def _deserialize(self, params):
|
11186
|
+
self._TaskId = params.get("TaskId")
|
11187
|
+
self._WelcomeMessage = params.get("WelcomeMessage")
|
11188
|
+
self._InterruptMode = params.get("InterruptMode")
|
11189
|
+
self._InterruptSpeechDuration = params.get("InterruptSpeechDuration")
|
11190
|
+
self._LLMConfig = params.get("LLMConfig")
|
11191
|
+
self._TTSConfig = params.get("TTSConfig")
|
11192
|
+
memeber_set = set(params.keys())
|
11193
|
+
for name, value in vars(self).items():
|
11194
|
+
property_name = name[1:]
|
11195
|
+
if property_name in memeber_set:
|
11196
|
+
memeber_set.remove(property_name)
|
11197
|
+
if len(memeber_set) > 0:
|
11198
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
11199
|
+
|
11200
|
+
|
11201
|
+
|
11202
|
+
class UpdateAIConversationResponse(AbstractModel):
|
11203
|
+
"""UpdateAIConversation返回参数结构体
|
11204
|
+
|
11205
|
+
"""
|
11206
|
+
|
11207
|
+
def __init__(self):
|
11208
|
+
r"""
|
11209
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
11210
|
+
:type RequestId: str
|
11211
|
+
"""
|
11212
|
+
self._RequestId = None
|
11213
|
+
|
11214
|
+
@property
|
11215
|
+
def RequestId(self):
|
11216
|
+
return self._RequestId
|
11217
|
+
|
11218
|
+
@RequestId.setter
|
11219
|
+
def RequestId(self, RequestId):
|
11220
|
+
self._RequestId = RequestId
|
11221
|
+
|
11222
|
+
|
11223
|
+
def _deserialize(self, params):
|
11224
|
+
self._RequestId = params.get("RequestId")
|
11225
|
+
|
11226
|
+
|
11109
11227
|
class UpdatePublishCdnStreamRequest(AbstractModel):
|
11110
11228
|
"""UpdatePublishCdnStream请求参数结构体
|
11111
11229
|
|
@@ -11302,6 +11420,100 @@ class UpdatePublishCdnStreamResponse(AbstractModel):
|
|
11302
11420
|
self._RequestId = params.get("RequestId")
|
11303
11421
|
|
11304
11422
|
|
11423
|
+
class UpdateStreamIngestRequest(AbstractModel):
|
11424
|
+
"""UpdateStreamIngest请求参数结构体
|
11425
|
+
|
11426
|
+
"""
|
11427
|
+
|
11428
|
+
def __init__(self):
|
11429
|
+
r"""
|
11430
|
+
:param _SdkAppId: TRTC的SDKAppId,和任务的房间所对应的SDKAppId相同
|
11431
|
+
:type SdkAppId: int
|
11432
|
+
:param _TaskId: 任务的唯一Id,在启动任务成功后会返回。
|
11433
|
+
:type TaskId: str
|
11434
|
+
:param _StreamUrl: 源流URL【必填】。
|
11435
|
+
:type StreamUrl: str
|
11436
|
+
"""
|
11437
|
+
self._SdkAppId = None
|
11438
|
+
self._TaskId = None
|
11439
|
+
self._StreamUrl = None
|
11440
|
+
|
11441
|
+
@property
|
11442
|
+
def SdkAppId(self):
|
11443
|
+
return self._SdkAppId
|
11444
|
+
|
11445
|
+
@SdkAppId.setter
|
11446
|
+
def SdkAppId(self, SdkAppId):
|
11447
|
+
self._SdkAppId = SdkAppId
|
11448
|
+
|
11449
|
+
@property
|
11450
|
+
def TaskId(self):
|
11451
|
+
return self._TaskId
|
11452
|
+
|
11453
|
+
@TaskId.setter
|
11454
|
+
def TaskId(self, TaskId):
|
11455
|
+
self._TaskId = TaskId
|
11456
|
+
|
11457
|
+
@property
|
11458
|
+
def StreamUrl(self):
|
11459
|
+
return self._StreamUrl
|
11460
|
+
|
11461
|
+
@StreamUrl.setter
|
11462
|
+
def StreamUrl(self, StreamUrl):
|
11463
|
+
self._StreamUrl = StreamUrl
|
11464
|
+
|
11465
|
+
|
11466
|
+
def _deserialize(self, params):
|
11467
|
+
self._SdkAppId = params.get("SdkAppId")
|
11468
|
+
self._TaskId = params.get("TaskId")
|
11469
|
+
self._StreamUrl = params.get("StreamUrl")
|
11470
|
+
memeber_set = set(params.keys())
|
11471
|
+
for name, value in vars(self).items():
|
11472
|
+
property_name = name[1:]
|
11473
|
+
if property_name in memeber_set:
|
11474
|
+
memeber_set.remove(property_name)
|
11475
|
+
if len(memeber_set) > 0:
|
11476
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
11477
|
+
|
11478
|
+
|
11479
|
+
|
11480
|
+
class UpdateStreamIngestResponse(AbstractModel):
|
11481
|
+
"""UpdateStreamIngest返回参数结构体
|
11482
|
+
|
11483
|
+
"""
|
11484
|
+
|
11485
|
+
def __init__(self):
|
11486
|
+
r"""
|
11487
|
+
:param _Status: 任务的状态信息。InProgress:表示当前任务正在进行中。NotExist:表示当前任务不存在。示例值:InProgress
|
11488
|
+
:type Status: str
|
11489
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
11490
|
+
:type RequestId: str
|
11491
|
+
"""
|
11492
|
+
self._Status = None
|
11493
|
+
self._RequestId = None
|
11494
|
+
|
11495
|
+
@property
|
11496
|
+
def Status(self):
|
11497
|
+
return self._Status
|
11498
|
+
|
11499
|
+
@Status.setter
|
11500
|
+
def Status(self, Status):
|
11501
|
+
self._Status = Status
|
11502
|
+
|
11503
|
+
@property
|
11504
|
+
def RequestId(self):
|
11505
|
+
return self._RequestId
|
11506
|
+
|
11507
|
+
@RequestId.setter
|
11508
|
+
def RequestId(self, RequestId):
|
11509
|
+
self._RequestId = RequestId
|
11510
|
+
|
11511
|
+
|
11512
|
+
def _deserialize(self, params):
|
11513
|
+
self._Status = params.get("Status")
|
11514
|
+
self._RequestId = params.get("RequestId")
|
11515
|
+
|
11516
|
+
|
11305
11517
|
class UserInformation(AbstractModel):
|
11306
11518
|
"""用户信息,包括用户进房时间,退房时间等
|
11307
11519
|
|
@@ -1040,45 +1040,12 @@ class TrtcClient(AbstractClient):
|
|
1040
1040
|
|
1041
1041
|
|
1042
1042
|
def StartAITranscription(self, request):
|
1043
|
-
"""
|
1043
|
+
"""启动转录机器人,后台会通过机器人拉流进行实时进行语音识别并下发字幕和转录消息。
|
1044
1044
|
转录机器人支持两种拉流方式,通过TranscriptionMode字段控制:
|
1045
1045
|
- 拉取全房间的流。
|
1046
1046
|
- 拉取特定用户的流。
|
1047
1047
|
|
1048
|
-
服务端通过TRTC
|
1049
|
-
|
1050
|
-
服务端实时下发的消息是JSON字符串,实时字幕具体格式如下:
|
1051
|
-
`{
|
1052
|
-
"type": "subtitle",
|
1053
|
-
"userid": "xxx",
|
1054
|
-
"text": "xxx",
|
1055
|
-
"start_time": "00:00:02",
|
1056
|
-
"end_time": "00:00:05"
|
1057
|
-
}`
|
1058
|
-
字段作用如下:
|
1059
|
-
- type是subtitle,表示这是实时字幕消息。
|
1060
|
-
- userid表示是哪个用户说的话。
|
1061
|
-
- text是语音识别出的文本。
|
1062
|
-
- start_time和end_time表示该字幕消息从任务开启后的开始和结束时间。
|
1063
|
-
|
1064
|
-
转录消息具体格式如下:
|
1065
|
-
`{
|
1066
|
-
"type": "transcription",
|
1067
|
-
"userid": "xxx",
|
1068
|
-
"text": "xxx",
|
1069
|
-
"start_time": "00:00:02",
|
1070
|
-
"end_time": "00:00:05"
|
1071
|
-
}`
|
1072
|
-
字段作用如下:
|
1073
|
-
- type是transcription,表示这是转录消息。
|
1074
|
-
- 其余字段同实时字幕消息。
|
1075
|
-
|
1076
|
-
转录消息和实时字幕消息的区别是,转录消息是完整的一句话,实时字幕消息则是这一句话的中间阶段。
|
1077
|
-
假如有一句完整的话,“今天天气怎么样?”,那么服务的下发消息的顺序可能是这样:
|
1078
|
-
- 字幕消息,“今天”
|
1079
|
-
- 字幕消息,“今天天气”
|
1080
|
-
- 字幕消息,“今天天气怎么样”
|
1081
|
-
- 转录消息,“今天天气怎么样?”
|
1048
|
+
服务端通过TRTC的自定义消息实时下发字幕以及转录消息,CmdId固定是1。客户端只需监听自定义消息的回调即可,比如[c++回调](https://cloud.tencent.com/document/product/647/79637#4cd82f4edb24992a15a25187089e1565)。其他客户端比如安卓、Web等同样可在该链接处找到。
|
1082
1049
|
|
1083
1050
|
:param request: Request instance for StartAITranscription.
|
1084
1051
|
:type request: :class:`tencentcloud.trtc.v20190722.models.StartAITranscriptionRequest`
|
@@ -1451,6 +1418,29 @@ class TrtcClient(AbstractClient):
|
|
1451
1418
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1452
1419
|
|
1453
1420
|
|
1421
|
+
def UpdateAIConversation(self, request):
|
1422
|
+
"""更新AIConversation参数
|
1423
|
+
|
1424
|
+
:param request: Request instance for UpdateAIConversation.
|
1425
|
+
:type request: :class:`tencentcloud.trtc.v20190722.models.UpdateAIConversationRequest`
|
1426
|
+
:rtype: :class:`tencentcloud.trtc.v20190722.models.UpdateAIConversationResponse`
|
1427
|
+
|
1428
|
+
"""
|
1429
|
+
try:
|
1430
|
+
params = request._serialize()
|
1431
|
+
headers = request.headers
|
1432
|
+
body = self.call("UpdateAIConversation", params, headers=headers)
|
1433
|
+
response = json.loads(body)
|
1434
|
+
model = models.UpdateAIConversationResponse()
|
1435
|
+
model._deserialize(response["Response"])
|
1436
|
+
return model
|
1437
|
+
except Exception as e:
|
1438
|
+
if isinstance(e, TencentCloudSDKException):
|
1439
|
+
raise
|
1440
|
+
else:
|
1441
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1442
|
+
|
1443
|
+
|
1454
1444
|
def UpdatePublishCdnStream(self, request):
|
1455
1445
|
"""接口说明:
|
1456
1446
|
成功发起混流转推后,可以使用此接口来更新任务。仅在任务进行时有效,任务退出后更新将会返回错误。更新操作为增量更新模式。
|
@@ -1469,6 +1459,29 @@ class TrtcClient(AbstractClient):
|
|
1469
1459
|
model = models.UpdatePublishCdnStreamResponse()
|
1470
1460
|
model._deserialize(response["Response"])
|
1471
1461
|
return model
|
1462
|
+
except Exception as e:
|
1463
|
+
if isinstance(e, TencentCloudSDKException):
|
1464
|
+
raise
|
1465
|
+
else:
|
1466
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1467
|
+
|
1468
|
+
|
1469
|
+
def UpdateStreamIngest(self, request):
|
1470
|
+
"""更新输入在线媒体流任务的StreamUrl
|
1471
|
+
|
1472
|
+
:param request: Request instance for UpdateStreamIngest.
|
1473
|
+
:type request: :class:`tencentcloud.trtc.v20190722.models.UpdateStreamIngestRequest`
|
1474
|
+
:rtype: :class:`tencentcloud.trtc.v20190722.models.UpdateStreamIngestResponse`
|
1475
|
+
|
1476
|
+
"""
|
1477
|
+
try:
|
1478
|
+
params = request._serialize()
|
1479
|
+
headers = request.headers
|
1480
|
+
body = self.call("UpdateStreamIngest", params, headers=headers)
|
1481
|
+
response = json.loads(body)
|
1482
|
+
model = models.UpdateStreamIngestResponse()
|
1483
|
+
model._deserialize(response["Response"])
|
1484
|
+
return model
|
1472
1485
|
except Exception as e:
|
1473
1486
|
if isinstance(e, TencentCloudSDKException):
|
1474
1487
|
raise
|
@@ -11924,6 +11924,8 @@ class DescribeGovernanceInstancesRequest(AbstractModel):
|
|
11924
11924
|
:type Offset: int
|
11925
11925
|
:param _Limit: 返回数量,默认为20,最大值为100。
|
11926
11926
|
:type Limit: int
|
11927
|
+
:param _Location: 地域
|
11928
|
+
:type Location: :class:`tencentcloud.tse.v20201207.models.Location`
|
11927
11929
|
"""
|
11928
11930
|
self._Service = None
|
11929
11931
|
self._Namespace = None
|
@@ -11936,6 +11938,7 @@ class DescribeGovernanceInstancesRequest(AbstractModel):
|
|
11936
11938
|
self._Metadatas = None
|
11937
11939
|
self._Offset = None
|
11938
11940
|
self._Limit = None
|
11941
|
+
self._Location = None
|
11939
11942
|
|
11940
11943
|
@property
|
11941
11944
|
def Service(self):
|
@@ -12025,6 +12028,14 @@ class DescribeGovernanceInstancesRequest(AbstractModel):
|
|
12025
12028
|
def Limit(self, Limit):
|
12026
12029
|
self._Limit = Limit
|
12027
12030
|
|
12031
|
+
@property
|
12032
|
+
def Location(self):
|
12033
|
+
return self._Location
|
12034
|
+
|
12035
|
+
@Location.setter
|
12036
|
+
def Location(self, Location):
|
12037
|
+
self._Location = Location
|
12038
|
+
|
12028
12039
|
|
12029
12040
|
def _deserialize(self, params):
|
12030
12041
|
self._Service = params.get("Service")
|
@@ -12043,6 +12054,9 @@ class DescribeGovernanceInstancesRequest(AbstractModel):
|
|
12043
12054
|
self._Metadatas.append(obj)
|
12044
12055
|
self._Offset = params.get("Offset")
|
12045
12056
|
self._Limit = params.get("Limit")
|
12057
|
+
if params.get("Location") is not None:
|
12058
|
+
self._Location = Location()
|
12059
|
+
self._Location._deserialize(params.get("Location"))
|
12046
12060
|
memeber_set = set(params.keys())
|
12047
12061
|
for name, value in vars(self).items():
|
12048
12062
|
property_name = name[1:]
|
@@ -12064,11 +12078,14 @@ class DescribeGovernanceInstancesResponse(AbstractModel):
|
|
12064
12078
|
:type TotalCount: int
|
12065
12079
|
:param _Content: 服务里实例列表。
|
12066
12080
|
:type Content: list of GovernanceInstance
|
12081
|
+
:param _Location: 地域
|
12082
|
+
:type Location: :class:`tencentcloud.tse.v20201207.models.Location`
|
12067
12083
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
12068
12084
|
:type RequestId: str
|
12069
12085
|
"""
|
12070
12086
|
self._TotalCount = None
|
12071
12087
|
self._Content = None
|
12088
|
+
self._Location = None
|
12072
12089
|
self._RequestId = None
|
12073
12090
|
|
12074
12091
|
@property
|
@@ -12087,6 +12104,14 @@ class DescribeGovernanceInstancesResponse(AbstractModel):
|
|
12087
12104
|
def Content(self, Content):
|
12088
12105
|
self._Content = Content
|
12089
12106
|
|
12107
|
+
@property
|
12108
|
+
def Location(self):
|
12109
|
+
return self._Location
|
12110
|
+
|
12111
|
+
@Location.setter
|
12112
|
+
def Location(self, Location):
|
12113
|
+
self._Location = Location
|
12114
|
+
|
12090
12115
|
@property
|
12091
12116
|
def RequestId(self):
|
12092
12117
|
return self._RequestId
|
@@ -12104,6 +12129,9 @@ class DescribeGovernanceInstancesResponse(AbstractModel):
|
|
12104
12129
|
obj = GovernanceInstance()
|
12105
12130
|
obj._deserialize(item)
|
12106
12131
|
self._Content.append(obj)
|
12132
|
+
if params.get("Location") is not None:
|
12133
|
+
self._Location = Location()
|
12134
|
+
self._Location._deserialize(params.get("Location"))
|
12107
12135
|
self._RequestId = params.get("RequestId")
|
12108
12136
|
|
12109
12137
|
|
@@ -19228,6 +19256,66 @@ class ListFilter(AbstractModel):
|
|
19228
19256
|
|
19229
19257
|
|
19230
19258
|
|
19259
|
+
class Location(AbstractModel):
|
19260
|
+
"""新增Location字段,展示zone/region/campus
|
19261
|
+
|
19262
|
+
"""
|
19263
|
+
|
19264
|
+
def __init__(self):
|
19265
|
+
r"""
|
19266
|
+
:param _Region: 大区
|
19267
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
19268
|
+
:type Region: str
|
19269
|
+
:param _Zone: 可用区
|
19270
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
19271
|
+
:type Zone: str
|
19272
|
+
:param _Campus: 机房
|
19273
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
19274
|
+
:type Campus: str
|
19275
|
+
"""
|
19276
|
+
self._Region = None
|
19277
|
+
self._Zone = None
|
19278
|
+
self._Campus = None
|
19279
|
+
|
19280
|
+
@property
|
19281
|
+
def Region(self):
|
19282
|
+
return self._Region
|
19283
|
+
|
19284
|
+
@Region.setter
|
19285
|
+
def Region(self, Region):
|
19286
|
+
self._Region = Region
|
19287
|
+
|
19288
|
+
@property
|
19289
|
+
def Zone(self):
|
19290
|
+
return self._Zone
|
19291
|
+
|
19292
|
+
@Zone.setter
|
19293
|
+
def Zone(self, Zone):
|
19294
|
+
self._Zone = Zone
|
19295
|
+
|
19296
|
+
@property
|
19297
|
+
def Campus(self):
|
19298
|
+
return self._Campus
|
19299
|
+
|
19300
|
+
@Campus.setter
|
19301
|
+
def Campus(self, Campus):
|
19302
|
+
self._Campus = Campus
|
19303
|
+
|
19304
|
+
|
19305
|
+
def _deserialize(self, params):
|
19306
|
+
self._Region = params.get("Region")
|
19307
|
+
self._Zone = params.get("Zone")
|
19308
|
+
self._Campus = params.get("Campus")
|
19309
|
+
memeber_set = set(params.keys())
|
19310
|
+
for name, value in vars(self).items():
|
19311
|
+
property_name = name[1:]
|
19312
|
+
if property_name in memeber_set:
|
19313
|
+
memeber_set.remove(property_name)
|
19314
|
+
if len(memeber_set) > 0:
|
19315
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
19316
|
+
|
19317
|
+
|
19318
|
+
|
19231
19319
|
class Metadata(AbstractModel):
|
19232
19320
|
"""元数据信息
|
19233
19321
|
|
@@ -49,7 +49,7 @@ class CreateTtsTaskRequest(AbstractModel):
|
|
49
49
|
:type EnableSubtitle: bool
|
50
50
|
:param _VoiceoverDialogueSplit: 旁白与对白文本解析,分别合成相应风格(仅适用于旁对白音色10510000、100510000),默认 false
|
51
51
|
:type VoiceoverDialogueSplit: bool
|
52
|
-
:param _EmotionCategory: 控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)
|
52
|
+
:param _EmotionCategory: 控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)、sajiao(撒娇)、disgusted(厌恶)、amaze(震惊)、peaceful(平静)、exciting(兴奋)、aojiao(傲娇)、jieshuo(解说)
|
53
53
|
:type EmotionCategory: str
|
54
54
|
:param _EmotionIntensity: 控制合成音频情感程度,取值范围为[50,200],默认为100;只有EmotionCategory不为空时生效。
|
55
55
|
:type EmotionIntensity: int
|
@@ -579,7 +579,7 @@ class TextToVoiceRequest(AbstractModel):
|
|
579
579
|
:type EnableSubtitle: bool
|
580
580
|
:param _SegmentRate: 断句敏感阈值,默认值为:0,取值范围:[0,1,2]。该值越大越不容易断句,模型会更倾向于仅按照标点符号断句。此参数建议不要随意调整,可能会影响合成效果。
|
581
581
|
:type SegmentRate: int
|
582
|
-
:param _EmotionCategory: 控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)
|
582
|
+
:param _EmotionCategory: 控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)、sajiao(撒娇)、disgusted(厌恶)、amaze(震惊)、peaceful(平静)、exciting(兴奋)、aojiao(傲娇)、jieshuo(解说)
|
583
583
|
示例值:neutral
|
584
584
|
:type EmotionCategory: str
|
585
585
|
:param _EmotionIntensity: 控制合成音频情感程度,取值范围为[50,200],默认为100;只有EmotionCategory不为空时生效;
|
@@ -26,6 +26,9 @@ FAILEDOPERATION_AUDIOPROCESSFAILED = 'FailedOperation.AudioProcessFailed'
|
|
26
26
|
# 音频处理任务未完成,不能执行翻译结果确认
|
27
27
|
FAILEDOPERATION_AUDIOPROCESSNOTFINISHED = 'FailedOperation.AudioProcessNotFinished'
|
28
28
|
|
29
|
+
# 人体关键点检测失败。
|
30
|
+
FAILEDOPERATION_BODYJOINTSFAIL = 'FailedOperation.BodyJointsFail'
|
31
|
+
|
29
32
|
# 翻译结果确认任务异常。
|
30
33
|
FAILEDOPERATION_CONFIRMTASKEXCEPTION = 'FailedOperation.ConfirmTaskException'
|
31
34
|
|
@@ -38,6 +41,9 @@ FAILEDOPERATION_DRIVERFAILED = 'FailedOperation.DriverFailed'
|
|
38
41
|
# 人脸框太小,无法识别使用。
|
39
42
|
FAILEDOPERATION_FACESIZETOOSMALL = 'FailedOperation.FaceSizeTooSmall'
|
40
43
|
|
44
|
+
# 图片身体部位有遮挡或不全,请重新上传图片
|
45
|
+
FAILEDOPERATION_IMAGEBODYJOINSUNDETECTED = 'FailedOperation.ImageBodyJoinsUndetected'
|
46
|
+
|
41
47
|
# 输入图身体(头顶到脚踝)高度占比不到图片高度的二分之一
|
42
48
|
FAILEDOPERATION_IMAGEBODYSMALL = 'FailedOperation.ImageBodySmall'
|
43
49
|
|
@@ -50,8 +56,8 @@ FAILEDOPERATION_IMAGEDECODEFAILED = 'FailedOperation.ImageDecodeFailed'
|
|
50
56
|
# 输入图人脸检测失败
|
51
57
|
FAILEDOPERATION_IMAGEDETECTFACEFAILED = 'FailedOperation.ImageDetectFaceFailed'
|
52
58
|
|
53
|
-
#
|
54
|
-
FAILEDOPERATION_IMAGEFACEDETECTFAILED = 'FailedOperation.
|
59
|
+
# 人脸检测失败
|
60
|
+
FAILEDOPERATION_IMAGEFACEDETECTFAILED = 'FailedOperation.ImageFaceDetectFailed'
|
55
61
|
|
56
62
|
# 输入图中存在多人
|
57
63
|
FAILEDOPERATION_IMAGEMANYPEOPLE = 'FailedOperation.ImageManyPeople'
|
@@ -784,11 +784,14 @@ class SubmitImageAnimateJobRequest(AbstractModel):
|
|
784
784
|
:type TemplateId: str
|
785
785
|
:param _EnableAudio: 结果视频是否保留模板音频。默认为true
|
786
786
|
:type EnableAudio: bool
|
787
|
+
:param _EnableBodyJoins: 是否检测输入图人体12个身体部位(头部、颈部、右肩、右肘、右腕、左肩、左肘、左腕、右髋、左髋,、左膝、右膝)。默认不检测。
|
788
|
+
:type EnableBodyJoins: bool
|
787
789
|
"""
|
788
790
|
self._ImageUrl = None
|
789
791
|
self._ImageBase64 = None
|
790
792
|
self._TemplateId = None
|
791
793
|
self._EnableAudio = None
|
794
|
+
self._EnableBodyJoins = None
|
792
795
|
|
793
796
|
@property
|
794
797
|
def ImageUrl(self):
|
@@ -822,12 +825,21 @@ class SubmitImageAnimateJobRequest(AbstractModel):
|
|
822
825
|
def EnableAudio(self, EnableAudio):
|
823
826
|
self._EnableAudio = EnableAudio
|
824
827
|
|
828
|
+
@property
|
829
|
+
def EnableBodyJoins(self):
|
830
|
+
return self._EnableBodyJoins
|
831
|
+
|
832
|
+
@EnableBodyJoins.setter
|
833
|
+
def EnableBodyJoins(self, EnableBodyJoins):
|
834
|
+
self._EnableBodyJoins = EnableBodyJoins
|
835
|
+
|
825
836
|
|
826
837
|
def _deserialize(self, params):
|
827
838
|
self._ImageUrl = params.get("ImageUrl")
|
828
839
|
self._ImageBase64 = params.get("ImageBase64")
|
829
840
|
self._TemplateId = params.get("TemplateId")
|
830
841
|
self._EnableAudio = params.get("EnableAudio")
|
842
|
+
self._EnableBodyJoins = params.get("EnableBodyJoins")
|
831
843
|
memeber_set = set(params.keys())
|
832
844
|
for name, value in vars(self).items():
|
833
845
|
property_name = name[1:]
|
@@ -341,6 +341,9 @@ INVALIDPARAMETERVALUE_IMAGEDECODEERROR = 'InvalidParameterValue.ImageDecodeError
|
|
341
341
|
# 参数错误:图片水印模板。
|
342
342
|
INVALIDPARAMETERVALUE_IMAGETEMPLATE = 'InvalidParameterValue.ImageTemplate'
|
343
343
|
|
344
|
+
# Index 参数错误。
|
345
|
+
INVALIDPARAMETERVALUE_INDEX = 'InvalidParameterValue.Index'
|
346
|
+
|
344
347
|
# 参数值错误:Interval 无效。
|
345
348
|
INVALIDPARAMETERVALUE_INTERVAL = 'InvalidParameterValue.Interval'
|
346
349
|
|
@@ -458,6 +461,9 @@ INVALIDPARAMETERVALUE_REVIEWCONFIDENCE = 'InvalidParameterValue.ReviewConfidence
|
|
458
461
|
# 参数值错误:ReviewWallSwitch 参数取值非法。
|
459
462
|
INVALIDPARAMETERVALUE_REVIEWWALLSWITCH = 'InvalidParameterValue.ReviewWallSwitch'
|
460
463
|
|
464
|
+
# RoundPlayId 参数错误。
|
465
|
+
INVALIDPARAMETERVALUE_ROUNDPLAYID = 'InvalidParameterValue.RoundPlayId'
|
466
|
+
|
461
467
|
# RoundPlaylist 参数长度错误。
|
462
468
|
INVALIDPARAMETERVALUE_ROUNDPLAYLIST = 'InvalidParameterValue.RoundPlaylist'
|
463
469
|
|