tencentcloud-sdk-python 3.0.1204__py2.py3-none-any.whl → 3.0.1206__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/cvm/v20170312/cvm_client.py +1 -1
- tencentcloud/cvm/v20170312/models.py +7 -4
- tencentcloud/dsgc/v20190723/models.py +14 -14
- tencentcloud/ess/v20201111/ess_client.py +13 -4
- tencentcloud/ess/v20201111/models.py +18 -6
- tencentcloud/essbasic/v20210526/models.py +15 -5
- tencentcloud/hunyuan/v20230901/errorcodes.py +18 -0
- tencentcloud/hunyuan/v20230901/hunyuan_client.py +46 -0
- tencentcloud/hunyuan/v20230901/models.py +120 -6
- tencentcloud/lighthouse/v20200324/errorcodes.py +3 -0
- tencentcloud/ocr/v20181119/models.py +12 -0
- tencentcloud/pts/v20210728/errorcodes.py +3 -0
- tencentcloud/pts/v20210728/models.py +1 -1
- tencentcloud/redis/v20180412/models.py +8 -6
- tencentcloud/redis/v20180412/redis_client.py +1 -1
- tencentcloud/tcb/v20180608/models.py +13 -0
- tencentcloud/tds/v20220801/models.py +117 -0
- tencentcloud/trtc/v20190722/models.py +2 -0
- tencentcloud/tts/v20190823/models.py +2 -1
- tencentcloud/vpc/v20170312/models.py +139 -0
- tencentcloud/vpc/v20170312/vpc_client.py +2 -0
- tencentcloud/vrs/v20200824/models.py +165 -8
- tencentcloud/vrs/v20200824/vrs_client.py +1 -0
- tencentcloud/wedata/v20210820/models.py +897 -0
- tencentcloud/wedata/v20210820/wedata_client.py +23 -0
- {tencentcloud_sdk_python-3.0.1204.dist-info → tencentcloud_sdk_python-3.0.1206.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1204.dist-info → tencentcloud_sdk_python-3.0.1206.dist-info}/RECORD +31 -31
- {tencentcloud_sdk_python-3.0.1204.dist-info → tencentcloud_sdk_python-3.0.1206.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1204.dist-info → tencentcloud_sdk_python-3.0.1206.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1204.dist-info → tencentcloud_sdk_python-3.0.1206.dist-info}/top_level.txt +0 -0
@@ -117,7 +117,7 @@ class CreateVRSTaskRequest(AbstractModel):
|
|
117
117
|
|
118
118
|
1-中文
|
119
119
|
:type VoiceLanguage: int
|
120
|
-
:param _AudioIdList: 音频ID
|
120
|
+
:param _AudioIdList: 音频ID集合。(一句话声音复刻仅需填写一个音质检测接口返回的AudioId)
|
121
121
|
:type AudioIdList: list of str
|
122
122
|
:param _SampleRate: 音频采样率:
|
123
123
|
|
@@ -130,9 +130,11 @@ class CreateVRSTaskRequest(AbstractModel):
|
|
130
130
|
:type CallbackUrl: str
|
131
131
|
:param _ModelType: 模型类型 1:在线 2:离线 默认为1
|
132
132
|
:type ModelType: int
|
133
|
-
:param _TaskType: 复刻类型。
|
133
|
+
:param _TaskType: 复刻类型。
|
134
|
+
0 - 轻量版声音复刻(默认);
|
135
|
+
5 - 一句话声音复刻。
|
134
136
|
:type TaskType: int
|
135
|
-
:param _VPRAudioId: 校验音频ID
|
137
|
+
:param _VPRAudioId: 校验音频ID。(仅基础版声音复刻使用)
|
136
138
|
:type VPRAudioId: str
|
137
139
|
"""
|
138
140
|
self._SessionId = None
|
@@ -380,18 +382,26 @@ class DescribeVRSTaskStatusRespData(AbstractModel):
|
|
380
382
|
:param _StatusStr: 任务状态,waiting:任务等待,doing:任务执行中,success:任务成功,failed:任务失败。
|
381
383
|
注意:此字段可能返回 null,表示取不到有效值。
|
382
384
|
:type StatusStr: str
|
383
|
-
:param _VoiceType: 音色id
|
385
|
+
:param _VoiceType: 音色id。(若为一句话复刻时,该值为固定值“200000000”)
|
384
386
|
注意:此字段可能返回 null,表示取不到有效值。
|
385
387
|
:type VoiceType: int
|
386
388
|
:param _ErrorMsg: 失败原因说明。
|
387
389
|
注意:此字段可能返回 null,表示取不到有效值。
|
388
390
|
:type ErrorMsg: str
|
391
|
+
:param _ExpireTime: 任务过期时间。(当复刻类型为一句话复刻时展示)
|
392
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
393
|
+
:type ExpireTime: str
|
394
|
+
:param _FastVoiceType: 快速复刻音色ID。(当复刻类型为一句话复刻时展示)
|
395
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
396
|
+
:type FastVoiceType: str
|
389
397
|
"""
|
390
398
|
self._TaskId = None
|
391
399
|
self._Status = None
|
392
400
|
self._StatusStr = None
|
393
401
|
self._VoiceType = None
|
394
402
|
self._ErrorMsg = None
|
403
|
+
self._ExpireTime = None
|
404
|
+
self._FastVoiceType = None
|
395
405
|
|
396
406
|
@property
|
397
407
|
def TaskId(self):
|
@@ -433,6 +443,22 @@ class DescribeVRSTaskStatusRespData(AbstractModel):
|
|
433
443
|
def ErrorMsg(self, ErrorMsg):
|
434
444
|
self._ErrorMsg = ErrorMsg
|
435
445
|
|
446
|
+
@property
|
447
|
+
def ExpireTime(self):
|
448
|
+
return self._ExpireTime
|
449
|
+
|
450
|
+
@ExpireTime.setter
|
451
|
+
def ExpireTime(self, ExpireTime):
|
452
|
+
self._ExpireTime = ExpireTime
|
453
|
+
|
454
|
+
@property
|
455
|
+
def FastVoiceType(self):
|
456
|
+
return self._FastVoiceType
|
457
|
+
|
458
|
+
@FastVoiceType.setter
|
459
|
+
def FastVoiceType(self, FastVoiceType):
|
460
|
+
self._FastVoiceType = FastVoiceType
|
461
|
+
|
436
462
|
|
437
463
|
def _deserialize(self, params):
|
438
464
|
self._TaskId = params.get("TaskId")
|
@@ -440,6 +466,8 @@ class DescribeVRSTaskStatusRespData(AbstractModel):
|
|
440
466
|
self._StatusStr = params.get("StatusStr")
|
441
467
|
self._VoiceType = params.get("VoiceType")
|
442
468
|
self._ErrorMsg = params.get("ErrorMsg")
|
469
|
+
self._ExpireTime = params.get("ExpireTime")
|
470
|
+
self._FastVoiceType = params.get("FastVoiceType")
|
443
471
|
memeber_set = set(params.keys())
|
444
472
|
for name, value in vars(self).items():
|
445
473
|
property_name = name[1:]
|
@@ -504,16 +532,22 @@ class DetectEnvAndSoundQualityRequest(AbstractModel):
|
|
504
532
|
:type TypeId: int
|
505
533
|
:param _Codec: 音频格式,音频类型(wav,mp3,aac,m4a)
|
506
534
|
:type Codec: str
|
507
|
-
:param _SampleRate:
|
508
|
-
|
509
|
-
|
535
|
+
:param _SampleRate: 音频采样率。
|
536
|
+
16000:16k(默认);
|
537
|
+
24000:24k(仅一句话声音复刻支持);
|
538
|
+
48000:48k(仅一句话声音复刻支持)。
|
510
539
|
:type SampleRate: int
|
540
|
+
:param _TaskType: 复刻类型。
|
541
|
+
0 - 轻量版声音复刻(默认);
|
542
|
+
5 - 一句话声音复刻。
|
543
|
+
:type TaskType: int
|
511
544
|
"""
|
512
545
|
self._TextId = None
|
513
546
|
self._AudioData = None
|
514
547
|
self._TypeId = None
|
515
548
|
self._Codec = None
|
516
549
|
self._SampleRate = None
|
550
|
+
self._TaskType = None
|
517
551
|
|
518
552
|
@property
|
519
553
|
def TextId(self):
|
@@ -555,6 +589,14 @@ class DetectEnvAndSoundQualityRequest(AbstractModel):
|
|
555
589
|
def SampleRate(self, SampleRate):
|
556
590
|
self._SampleRate = SampleRate
|
557
591
|
|
592
|
+
@property
|
593
|
+
def TaskType(self):
|
594
|
+
return self._TaskType
|
595
|
+
|
596
|
+
@TaskType.setter
|
597
|
+
def TaskType(self, TaskType):
|
598
|
+
self._TaskType = TaskType
|
599
|
+
|
558
600
|
|
559
601
|
def _deserialize(self, params):
|
560
602
|
self._TextId = params.get("TextId")
|
@@ -562,6 +604,7 @@ class DetectEnvAndSoundQualityRequest(AbstractModel):
|
|
562
604
|
self._TypeId = params.get("TypeId")
|
563
605
|
self._Codec = params.get("Codec")
|
564
606
|
self._SampleRate = params.get("SampleRate")
|
607
|
+
self._TaskType = params.get("TaskType")
|
565
608
|
memeber_set = set(params.keys())
|
566
609
|
for name, value in vars(self).items():
|
567
610
|
property_name = name[1:]
|
@@ -859,6 +902,64 @@ class GetTrainingTextRequest(AbstractModel):
|
|
859
902
|
|
860
903
|
"""
|
861
904
|
|
905
|
+
def __init__(self):
|
906
|
+
r"""
|
907
|
+
:param _TaskType: 复刻类型。
|
908
|
+
0 - 轻量版声音复刻(默认);
|
909
|
+
5 - 一句话声音复刻。
|
910
|
+
:type TaskType: int
|
911
|
+
:param _Domain: 音色场景。(仅支持一句话声音复刻,其余复刻类型不生效)
|
912
|
+
0 - 通用场景(默认);
|
913
|
+
1 - 聊天场景;
|
914
|
+
2 - 阅读场景;
|
915
|
+
3 - 资讯播报场景。
|
916
|
+
:type Domain: int
|
917
|
+
:param _TextLanguage: 文本语种。(仅支持一句话声音复刻,其余复刻类型不生效)
|
918
|
+
1 - 中文(默认)。
|
919
|
+
:type TextLanguage: int
|
920
|
+
"""
|
921
|
+
self._TaskType = None
|
922
|
+
self._Domain = None
|
923
|
+
self._TextLanguage = None
|
924
|
+
|
925
|
+
@property
|
926
|
+
def TaskType(self):
|
927
|
+
return self._TaskType
|
928
|
+
|
929
|
+
@TaskType.setter
|
930
|
+
def TaskType(self, TaskType):
|
931
|
+
self._TaskType = TaskType
|
932
|
+
|
933
|
+
@property
|
934
|
+
def Domain(self):
|
935
|
+
return self._Domain
|
936
|
+
|
937
|
+
@Domain.setter
|
938
|
+
def Domain(self, Domain):
|
939
|
+
self._Domain = Domain
|
940
|
+
|
941
|
+
@property
|
942
|
+
def TextLanguage(self):
|
943
|
+
return self._TextLanguage
|
944
|
+
|
945
|
+
@TextLanguage.setter
|
946
|
+
def TextLanguage(self, TextLanguage):
|
947
|
+
self._TextLanguage = TextLanguage
|
948
|
+
|
949
|
+
|
950
|
+
def _deserialize(self, params):
|
951
|
+
self._TaskType = params.get("TaskType")
|
952
|
+
self._Domain = params.get("Domain")
|
953
|
+
self._TextLanguage = params.get("TextLanguage")
|
954
|
+
memeber_set = set(params.keys())
|
955
|
+
for name, value in vars(self).items():
|
956
|
+
property_name = name[1:]
|
957
|
+
if property_name in memeber_set:
|
958
|
+
memeber_set.remove(property_name)
|
959
|
+
if len(memeber_set) > 0:
|
960
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
961
|
+
|
962
|
+
|
862
963
|
|
863
964
|
class GetTrainingTextResponse(AbstractModel):
|
864
965
|
"""GetTrainingText返回参数结构体
|
@@ -904,6 +1005,35 @@ class GetVRSVoiceTypesRequest(AbstractModel):
|
|
904
1005
|
|
905
1006
|
"""
|
906
1007
|
|
1008
|
+
def __init__(self):
|
1009
|
+
r"""
|
1010
|
+
:param _TaskType: 复刻类型。
|
1011
|
+
0 - 除快速声音复刻外其他复刻类型(默认);
|
1012
|
+
5 - 一句话声音复刻。
|
1013
|
+
:type TaskType: int
|
1014
|
+
"""
|
1015
|
+
self._TaskType = None
|
1016
|
+
|
1017
|
+
@property
|
1018
|
+
def TaskType(self):
|
1019
|
+
return self._TaskType
|
1020
|
+
|
1021
|
+
@TaskType.setter
|
1022
|
+
def TaskType(self, TaskType):
|
1023
|
+
self._TaskType = TaskType
|
1024
|
+
|
1025
|
+
|
1026
|
+
def _deserialize(self, params):
|
1027
|
+
self._TaskType = params.get("TaskType")
|
1028
|
+
memeber_set = set(params.keys())
|
1029
|
+
for name, value in vars(self).items():
|
1030
|
+
property_name = name[1:]
|
1031
|
+
if property_name in memeber_set:
|
1032
|
+
memeber_set.remove(property_name)
|
1033
|
+
if len(memeber_set) > 0:
|
1034
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1035
|
+
|
1036
|
+
|
907
1037
|
|
908
1038
|
class GetVRSVoiceTypesResponse(AbstractModel):
|
909
1039
|
"""GetVRSVoiceTypes返回参数结构体
|
@@ -1037,7 +1167,7 @@ class VoiceTypeInfo(AbstractModel):
|
|
1037
1167
|
|
1038
1168
|
def __init__(self):
|
1039
1169
|
r"""
|
1040
|
-
:param _VoiceType: 音色id
|
1170
|
+
:param _VoiceType: 音色id。(若为一句话复刻时,该值为固定值“200000000”)
|
1041
1171
|
:type VoiceType: int
|
1042
1172
|
:param _VoiceName: 音色名称
|
1043
1173
|
:type VoiceName: str
|
@@ -1051,6 +1181,13 @@ class VoiceTypeInfo(AbstractModel):
|
|
1051
1181
|
:type DateCreated: str
|
1052
1182
|
:param _IsDeployed: 部署状态。若已部署,则可通过语音合成接口调用该音色
|
1053
1183
|
:type IsDeployed: bool
|
1184
|
+
:param _ExpireTime: 任务过期时间。(当复刻类型为一句话复刻时展示)
|
1185
|
+
|
1186
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1187
|
+
:type ExpireTime: str
|
1188
|
+
:param _FastVoiceType: 快速复刻音色ID。(当复刻类型为一句话复刻时展示)
|
1189
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1190
|
+
:type FastVoiceType: str
|
1054
1191
|
"""
|
1055
1192
|
self._VoiceType = None
|
1056
1193
|
self._VoiceName = None
|
@@ -1059,6 +1196,8 @@ class VoiceTypeInfo(AbstractModel):
|
|
1059
1196
|
self._TaskID = None
|
1060
1197
|
self._DateCreated = None
|
1061
1198
|
self._IsDeployed = None
|
1199
|
+
self._ExpireTime = None
|
1200
|
+
self._FastVoiceType = None
|
1062
1201
|
|
1063
1202
|
@property
|
1064
1203
|
def VoiceType(self):
|
@@ -1116,6 +1255,22 @@ class VoiceTypeInfo(AbstractModel):
|
|
1116
1255
|
def IsDeployed(self, IsDeployed):
|
1117
1256
|
self._IsDeployed = IsDeployed
|
1118
1257
|
|
1258
|
+
@property
|
1259
|
+
def ExpireTime(self):
|
1260
|
+
return self._ExpireTime
|
1261
|
+
|
1262
|
+
@ExpireTime.setter
|
1263
|
+
def ExpireTime(self, ExpireTime):
|
1264
|
+
self._ExpireTime = ExpireTime
|
1265
|
+
|
1266
|
+
@property
|
1267
|
+
def FastVoiceType(self):
|
1268
|
+
return self._FastVoiceType
|
1269
|
+
|
1270
|
+
@FastVoiceType.setter
|
1271
|
+
def FastVoiceType(self, FastVoiceType):
|
1272
|
+
self._FastVoiceType = FastVoiceType
|
1273
|
+
|
1119
1274
|
|
1120
1275
|
def _deserialize(self, params):
|
1121
1276
|
self._VoiceType = params.get("VoiceType")
|
@@ -1125,6 +1280,8 @@ class VoiceTypeInfo(AbstractModel):
|
|
1125
1280
|
self._TaskID = params.get("TaskID")
|
1126
1281
|
self._DateCreated = params.get("DateCreated")
|
1127
1282
|
self._IsDeployed = params.get("IsDeployed")
|
1283
|
+
self._ExpireTime = params.get("ExpireTime")
|
1284
|
+
self._FastVoiceType = params.get("FastVoiceType")
|
1128
1285
|
memeber_set = set(params.keys())
|
1129
1286
|
for name, value in vars(self).items():
|
1130
1287
|
property_name = name[1:]
|
@@ -103,6 +103,7 @@ class VrsClient(AbstractClient):
|
|
103
103
|
|
104
104
|
def DetectEnvAndSoundQuality(self, request):
|
105
105
|
"""本接口用于检测音频的环境和音频质量。
|
106
|
+
对于一句话声音复刻,音频时长需大于3s,小于15s,文件大小不能超过2MB,音频需为单声道,位深为16bit。建议格式:wav、单声道、采样率48kHz或24kHz
|
106
107
|
• 请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"
|
107
108
|
• 签名方法参考 公共参数 中签名方法v3。
|
108
109
|
|