tencentcloud-sdk-python-mps 3.1.147__tar.gz → 3.1.151__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_mps-3.1.147 → tencentcloud_sdk_python_mps-3.1.151}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_mps-3.1.147 → tencentcloud_sdk_python_mps-3.1.151}/setup.py +1 -1
- {tencentcloud_sdk_python_mps-3.1.147 → tencentcloud_sdk_python_mps-3.1.151}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_mps-3.1.147 → tencentcloud_sdk_python_mps-3.1.151}/tencentcloud/mps/v20190612/models.py +884 -0
- {tencentcloud_sdk_python_mps-3.1.147 → tencentcloud_sdk_python_mps-3.1.151}/tencentcloud/mps/v20190612/mps_client.py +71 -1
- {tencentcloud_sdk_python_mps-3.1.147 → tencentcloud_sdk_python_mps-3.1.151}/tencentcloud/mps/v20190612/mps_client_async.py +56 -1
- {tencentcloud_sdk_python_mps-3.1.147 → tencentcloud_sdk_python_mps-3.1.151}/tencentcloud_sdk_python_mps.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_mps-3.1.151/tencentcloud_sdk_python_mps.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_mps-3.1.147/tencentcloud_sdk_python_mps.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_mps-3.1.147 → tencentcloud_sdk_python_mps-3.1.151}/README.rst +0 -0
- {tencentcloud_sdk_python_mps-3.1.147 → tencentcloud_sdk_python_mps-3.1.151}/setup.cfg +0 -0
- {tencentcloud_sdk_python_mps-3.1.147 → tencentcloud_sdk_python_mps-3.1.151}/tencentcloud/mps/__init__.py +0 -0
- {tencentcloud_sdk_python_mps-3.1.147 → tencentcloud_sdk_python_mps-3.1.151}/tencentcloud/mps/v20190612/__init__.py +0 -0
- {tencentcloud_sdk_python_mps-3.1.147 → tencentcloud_sdk_python_mps-3.1.151}/tencentcloud/mps/v20190612/errorcodes.py +0 -0
- {tencentcloud_sdk_python_mps-3.1.147 → tencentcloud_sdk_python_mps-3.1.151}/tencentcloud_sdk_python_mps.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_mps-3.1.147 → tencentcloud_sdk_python_mps-3.1.151}/tencentcloud_sdk_python_mps.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_mps-3.1.147 → tencentcloud_sdk_python_mps-3.1.151}/tencentcloud_sdk_python_mps.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-mps
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.151
|
|
4
4
|
Summary: Tencent Cloud Mps 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<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.151
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-mps',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.151,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Mps SDK for Python',
|
|
@@ -7069,10 +7069,13 @@ class AiCutoutConfig(AbstractModel):
|
|
|
7069
7069
|
:type Type: str
|
|
7070
7070
|
:param _PatternConfig: <p>图案抠图配置。仅在Type为pattern时生效。</p>
|
|
7071
7071
|
:type PatternConfig: :class:`tencentcloud.mps.v20190612.models.PatternConfig`
|
|
7072
|
+
:param _Model: <p>抠图模型选择,可不填。</p><p>枚举值:</p><ul><li>auto: 自动选择合适的模型</li><li>WAND-cutout-1.0-lite: 标准版,速度最快</li><li>WAND-cutout-2.0-lite: 增强版,速度最快</li><li>WAND-cutout-2.0-flash: 增强版,质量-速度平衡</li></ul>
|
|
7073
|
+
:type Model: str
|
|
7072
7074
|
"""
|
|
7073
7075
|
self._Switch = None
|
|
7074
7076
|
self._Type = None
|
|
7075
7077
|
self._PatternConfig = None
|
|
7078
|
+
self._Model = None
|
|
7076
7079
|
|
|
7077
7080
|
@property
|
|
7078
7081
|
def Switch(self):
|
|
@@ -7107,6 +7110,17 @@ class AiCutoutConfig(AbstractModel):
|
|
|
7107
7110
|
def PatternConfig(self, PatternConfig):
|
|
7108
7111
|
self._PatternConfig = PatternConfig
|
|
7109
7112
|
|
|
7113
|
+
@property
|
|
7114
|
+
def Model(self):
|
|
7115
|
+
r"""<p>抠图模型选择,可不填。</p><p>枚举值:</p><ul><li>auto: 自动选择合适的模型</li><li>WAND-cutout-1.0-lite: 标准版,速度最快</li><li>WAND-cutout-2.0-lite: 增强版,速度最快</li><li>WAND-cutout-2.0-flash: 增强版,质量-速度平衡</li></ul>
|
|
7116
|
+
:rtype: str
|
|
7117
|
+
"""
|
|
7118
|
+
return self._Model
|
|
7119
|
+
|
|
7120
|
+
@Model.setter
|
|
7121
|
+
def Model(self, Model):
|
|
7122
|
+
self._Model = Model
|
|
7123
|
+
|
|
7110
7124
|
|
|
7111
7125
|
def _deserialize(self, params):
|
|
7112
7126
|
self._Switch = params.get("Switch")
|
|
@@ -7114,6 +7128,7 @@ class AiCutoutConfig(AbstractModel):
|
|
|
7114
7128
|
if params.get("PatternConfig") is not None:
|
|
7115
7129
|
self._PatternConfig = PatternConfig()
|
|
7116
7130
|
self._PatternConfig._deserialize(params.get("PatternConfig"))
|
|
7131
|
+
self._Model = params.get("Model")
|
|
7117
7132
|
memeber_set = set(params.keys())
|
|
7118
7133
|
for name, value in vars(self).items():
|
|
7119
7134
|
property_name = name[1:]
|
|
@@ -7286,6 +7301,57 @@ class AiExpansionConfig(AbstractModel):
|
|
|
7286
7301
|
|
|
7287
7302
|
|
|
7288
7303
|
|
|
7304
|
+
class AiFissionInput(AbstractModel):
|
|
7305
|
+
r"""视频裂变输入
|
|
7306
|
+
|
|
7307
|
+
"""
|
|
7308
|
+
|
|
7309
|
+
def __init__(self):
|
|
7310
|
+
r"""
|
|
7311
|
+
:param _ImageUrls: <p>视频裂变参考图url</p>
|
|
7312
|
+
:type ImageUrls: list of str
|
|
7313
|
+
:param _Text: <p>视频裂变商品信息参考文案</p>
|
|
7314
|
+
:type Text: str
|
|
7315
|
+
"""
|
|
7316
|
+
self._ImageUrls = None
|
|
7317
|
+
self._Text = None
|
|
7318
|
+
|
|
7319
|
+
@property
|
|
7320
|
+
def ImageUrls(self):
|
|
7321
|
+
r"""<p>视频裂变参考图url</p>
|
|
7322
|
+
:rtype: list of str
|
|
7323
|
+
"""
|
|
7324
|
+
return self._ImageUrls
|
|
7325
|
+
|
|
7326
|
+
@ImageUrls.setter
|
|
7327
|
+
def ImageUrls(self, ImageUrls):
|
|
7328
|
+
self._ImageUrls = ImageUrls
|
|
7329
|
+
|
|
7330
|
+
@property
|
|
7331
|
+
def Text(self):
|
|
7332
|
+
r"""<p>视频裂变商品信息参考文案</p>
|
|
7333
|
+
:rtype: str
|
|
7334
|
+
"""
|
|
7335
|
+
return self._Text
|
|
7336
|
+
|
|
7337
|
+
@Text.setter
|
|
7338
|
+
def Text(self, Text):
|
|
7339
|
+
self._Text = Text
|
|
7340
|
+
|
|
7341
|
+
|
|
7342
|
+
def _deserialize(self, params):
|
|
7343
|
+
self._ImageUrls = params.get("ImageUrls")
|
|
7344
|
+
self._Text = params.get("Text")
|
|
7345
|
+
memeber_set = set(params.keys())
|
|
7346
|
+
for name, value in vars(self).items():
|
|
7347
|
+
property_name = name[1:]
|
|
7348
|
+
if property_name in memeber_set:
|
|
7349
|
+
memeber_set.remove(property_name)
|
|
7350
|
+
if len(memeber_set) > 0:
|
|
7351
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
7352
|
+
|
|
7353
|
+
|
|
7354
|
+
|
|
7289
7355
|
class AiParagraphInfo(AbstractModel):
|
|
7290
7356
|
r"""分段信息。
|
|
7291
7357
|
|
|
@@ -18096,6 +18162,254 @@ class CloneViralResponse(AbstractModel):
|
|
|
18096
18162
|
self._RequestId = params.get("RequestId")
|
|
18097
18163
|
|
|
18098
18164
|
|
|
18165
|
+
class CloneVoiceRequest(AbstractModel):
|
|
18166
|
+
r"""CloneVoice请求参数结构体
|
|
18167
|
+
|
|
18168
|
+
"""
|
|
18169
|
+
|
|
18170
|
+
def __init__(self):
|
|
18171
|
+
r"""
|
|
18172
|
+
:param _AudioData: <p>克隆音频base64编码</p>
|
|
18173
|
+
:type AudioData: str
|
|
18174
|
+
:param _AudioUrl: <p>克隆音频Url,AudioData为空时有效</p>
|
|
18175
|
+
:type AudioUrl: str
|
|
18176
|
+
:param _AudioLang: <p>克隆音频语言,默认中文。 当前支持语言同语音合成TextLang</p>
|
|
18177
|
+
:type AudioLang: str
|
|
18178
|
+
:param _VoiceProfile: <p>音色属性。音色查询和匹配使用</p>
|
|
18179
|
+
:type VoiceProfile: :class:`tencentcloud.mps.v20190612.models.VoiceProfile`
|
|
18180
|
+
:param _Text: <p>试听文本</p>
|
|
18181
|
+
:type Text: str
|
|
18182
|
+
:param _TextLang: <p>试听文本语言,不填默认自动检测。当前支持语言同语音合成</p>
|
|
18183
|
+
:type TextLang: str
|
|
18184
|
+
:param _Output: <p>输出相关参数,可以指定输出音频形式等。默认输出音频base64。</p>
|
|
18185
|
+
:type Output: :class:`tencentcloud.mps.v20190612.models.SyncDubbingOutputOption`
|
|
18186
|
+
:param _ExtParam: <p>扩展参数,json字符串</p>
|
|
18187
|
+
:type ExtParam: str
|
|
18188
|
+
"""
|
|
18189
|
+
self._AudioData = None
|
|
18190
|
+
self._AudioUrl = None
|
|
18191
|
+
self._AudioLang = None
|
|
18192
|
+
self._VoiceProfile = None
|
|
18193
|
+
self._Text = None
|
|
18194
|
+
self._TextLang = None
|
|
18195
|
+
self._Output = None
|
|
18196
|
+
self._ExtParam = None
|
|
18197
|
+
|
|
18198
|
+
@property
|
|
18199
|
+
def AudioData(self):
|
|
18200
|
+
r"""<p>克隆音频base64编码</p>
|
|
18201
|
+
:rtype: str
|
|
18202
|
+
"""
|
|
18203
|
+
return self._AudioData
|
|
18204
|
+
|
|
18205
|
+
@AudioData.setter
|
|
18206
|
+
def AudioData(self, AudioData):
|
|
18207
|
+
self._AudioData = AudioData
|
|
18208
|
+
|
|
18209
|
+
@property
|
|
18210
|
+
def AudioUrl(self):
|
|
18211
|
+
r"""<p>克隆音频Url,AudioData为空时有效</p>
|
|
18212
|
+
:rtype: str
|
|
18213
|
+
"""
|
|
18214
|
+
return self._AudioUrl
|
|
18215
|
+
|
|
18216
|
+
@AudioUrl.setter
|
|
18217
|
+
def AudioUrl(self, AudioUrl):
|
|
18218
|
+
self._AudioUrl = AudioUrl
|
|
18219
|
+
|
|
18220
|
+
@property
|
|
18221
|
+
def AudioLang(self):
|
|
18222
|
+
r"""<p>克隆音频语言,默认中文。 当前支持语言同语音合成TextLang</p>
|
|
18223
|
+
:rtype: str
|
|
18224
|
+
"""
|
|
18225
|
+
return self._AudioLang
|
|
18226
|
+
|
|
18227
|
+
@AudioLang.setter
|
|
18228
|
+
def AudioLang(self, AudioLang):
|
|
18229
|
+
self._AudioLang = AudioLang
|
|
18230
|
+
|
|
18231
|
+
@property
|
|
18232
|
+
def VoiceProfile(self):
|
|
18233
|
+
r"""<p>音色属性。音色查询和匹配使用</p>
|
|
18234
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.VoiceProfile`
|
|
18235
|
+
"""
|
|
18236
|
+
return self._VoiceProfile
|
|
18237
|
+
|
|
18238
|
+
@VoiceProfile.setter
|
|
18239
|
+
def VoiceProfile(self, VoiceProfile):
|
|
18240
|
+
self._VoiceProfile = VoiceProfile
|
|
18241
|
+
|
|
18242
|
+
@property
|
|
18243
|
+
def Text(self):
|
|
18244
|
+
r"""<p>试听文本</p>
|
|
18245
|
+
:rtype: str
|
|
18246
|
+
"""
|
|
18247
|
+
return self._Text
|
|
18248
|
+
|
|
18249
|
+
@Text.setter
|
|
18250
|
+
def Text(self, Text):
|
|
18251
|
+
self._Text = Text
|
|
18252
|
+
|
|
18253
|
+
@property
|
|
18254
|
+
def TextLang(self):
|
|
18255
|
+
r"""<p>试听文本语言,不填默认自动检测。当前支持语言同语音合成</p>
|
|
18256
|
+
:rtype: str
|
|
18257
|
+
"""
|
|
18258
|
+
return self._TextLang
|
|
18259
|
+
|
|
18260
|
+
@TextLang.setter
|
|
18261
|
+
def TextLang(self, TextLang):
|
|
18262
|
+
self._TextLang = TextLang
|
|
18263
|
+
|
|
18264
|
+
@property
|
|
18265
|
+
def Output(self):
|
|
18266
|
+
r"""<p>输出相关参数,可以指定输出音频形式等。默认输出音频base64。</p>
|
|
18267
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.SyncDubbingOutputOption`
|
|
18268
|
+
"""
|
|
18269
|
+
return self._Output
|
|
18270
|
+
|
|
18271
|
+
@Output.setter
|
|
18272
|
+
def Output(self, Output):
|
|
18273
|
+
self._Output = Output
|
|
18274
|
+
|
|
18275
|
+
@property
|
|
18276
|
+
def ExtParam(self):
|
|
18277
|
+
r"""<p>扩展参数,json字符串</p>
|
|
18278
|
+
:rtype: str
|
|
18279
|
+
"""
|
|
18280
|
+
return self._ExtParam
|
|
18281
|
+
|
|
18282
|
+
@ExtParam.setter
|
|
18283
|
+
def ExtParam(self, ExtParam):
|
|
18284
|
+
self._ExtParam = ExtParam
|
|
18285
|
+
|
|
18286
|
+
|
|
18287
|
+
def _deserialize(self, params):
|
|
18288
|
+
self._AudioData = params.get("AudioData")
|
|
18289
|
+
self._AudioUrl = params.get("AudioUrl")
|
|
18290
|
+
self._AudioLang = params.get("AudioLang")
|
|
18291
|
+
if params.get("VoiceProfile") is not None:
|
|
18292
|
+
self._VoiceProfile = VoiceProfile()
|
|
18293
|
+
self._VoiceProfile._deserialize(params.get("VoiceProfile"))
|
|
18294
|
+
self._Text = params.get("Text")
|
|
18295
|
+
self._TextLang = params.get("TextLang")
|
|
18296
|
+
if params.get("Output") is not None:
|
|
18297
|
+
self._Output = SyncDubbingOutputOption()
|
|
18298
|
+
self._Output._deserialize(params.get("Output"))
|
|
18299
|
+
self._ExtParam = params.get("ExtParam")
|
|
18300
|
+
memeber_set = set(params.keys())
|
|
18301
|
+
for name, value in vars(self).items():
|
|
18302
|
+
property_name = name[1:]
|
|
18303
|
+
if property_name in memeber_set:
|
|
18304
|
+
memeber_set.remove(property_name)
|
|
18305
|
+
if len(memeber_set) > 0:
|
|
18306
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
18307
|
+
|
|
18308
|
+
|
|
18309
|
+
|
|
18310
|
+
class CloneVoiceResponse(AbstractModel):
|
|
18311
|
+
r"""CloneVoice返回参数结构体
|
|
18312
|
+
|
|
18313
|
+
"""
|
|
18314
|
+
|
|
18315
|
+
def __init__(self):
|
|
18316
|
+
r"""
|
|
18317
|
+
:param _ErrorCode: <p>错误码,成功时返回0</p>
|
|
18318
|
+
:type ErrorCode: int
|
|
18319
|
+
:param _Msg: <p>错误信息,成功时返回success</p>
|
|
18320
|
+
:type Msg: str
|
|
18321
|
+
:param _VoiceId: <p>克隆生成的音色ID</p>
|
|
18322
|
+
:type VoiceId: str
|
|
18323
|
+
:param _AudioData: <p>合成音频的base64编码</p>
|
|
18324
|
+
:type AudioData: str
|
|
18325
|
+
:param _AudioUrl: <p>合成音频Url,有效期24小时</p>
|
|
18326
|
+
:type AudioUrl: str
|
|
18327
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
18328
|
+
:type RequestId: str
|
|
18329
|
+
"""
|
|
18330
|
+
self._ErrorCode = None
|
|
18331
|
+
self._Msg = None
|
|
18332
|
+
self._VoiceId = None
|
|
18333
|
+
self._AudioData = None
|
|
18334
|
+
self._AudioUrl = None
|
|
18335
|
+
self._RequestId = None
|
|
18336
|
+
|
|
18337
|
+
@property
|
|
18338
|
+
def ErrorCode(self):
|
|
18339
|
+
r"""<p>错误码,成功时返回0</p>
|
|
18340
|
+
:rtype: int
|
|
18341
|
+
"""
|
|
18342
|
+
return self._ErrorCode
|
|
18343
|
+
|
|
18344
|
+
@ErrorCode.setter
|
|
18345
|
+
def ErrorCode(self, ErrorCode):
|
|
18346
|
+
self._ErrorCode = ErrorCode
|
|
18347
|
+
|
|
18348
|
+
@property
|
|
18349
|
+
def Msg(self):
|
|
18350
|
+
r"""<p>错误信息,成功时返回success</p>
|
|
18351
|
+
:rtype: str
|
|
18352
|
+
"""
|
|
18353
|
+
return self._Msg
|
|
18354
|
+
|
|
18355
|
+
@Msg.setter
|
|
18356
|
+
def Msg(self, Msg):
|
|
18357
|
+
self._Msg = Msg
|
|
18358
|
+
|
|
18359
|
+
@property
|
|
18360
|
+
def VoiceId(self):
|
|
18361
|
+
r"""<p>克隆生成的音色ID</p>
|
|
18362
|
+
:rtype: str
|
|
18363
|
+
"""
|
|
18364
|
+
return self._VoiceId
|
|
18365
|
+
|
|
18366
|
+
@VoiceId.setter
|
|
18367
|
+
def VoiceId(self, VoiceId):
|
|
18368
|
+
self._VoiceId = VoiceId
|
|
18369
|
+
|
|
18370
|
+
@property
|
|
18371
|
+
def AudioData(self):
|
|
18372
|
+
r"""<p>合成音频的base64编码</p>
|
|
18373
|
+
:rtype: str
|
|
18374
|
+
"""
|
|
18375
|
+
return self._AudioData
|
|
18376
|
+
|
|
18377
|
+
@AudioData.setter
|
|
18378
|
+
def AudioData(self, AudioData):
|
|
18379
|
+
self._AudioData = AudioData
|
|
18380
|
+
|
|
18381
|
+
@property
|
|
18382
|
+
def AudioUrl(self):
|
|
18383
|
+
r"""<p>合成音频Url,有效期24小时</p>
|
|
18384
|
+
:rtype: str
|
|
18385
|
+
"""
|
|
18386
|
+
return self._AudioUrl
|
|
18387
|
+
|
|
18388
|
+
@AudioUrl.setter
|
|
18389
|
+
def AudioUrl(self, AudioUrl):
|
|
18390
|
+
self._AudioUrl = AudioUrl
|
|
18391
|
+
|
|
18392
|
+
@property
|
|
18393
|
+
def RequestId(self):
|
|
18394
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
18395
|
+
:rtype: str
|
|
18396
|
+
"""
|
|
18397
|
+
return self._RequestId
|
|
18398
|
+
|
|
18399
|
+
@RequestId.setter
|
|
18400
|
+
def RequestId(self, RequestId):
|
|
18401
|
+
self._RequestId = RequestId
|
|
18402
|
+
|
|
18403
|
+
|
|
18404
|
+
def _deserialize(self, params):
|
|
18405
|
+
self._ErrorCode = params.get("ErrorCode")
|
|
18406
|
+
self._Msg = params.get("Msg")
|
|
18407
|
+
self._VoiceId = params.get("VoiceId")
|
|
18408
|
+
self._AudioData = params.get("AudioData")
|
|
18409
|
+
self._AudioUrl = params.get("AudioUrl")
|
|
18410
|
+
self._RequestId = params.get("RequestId")
|
|
18411
|
+
|
|
18412
|
+
|
|
18099
18413
|
class ColorEnhanceConfig(AbstractModel):
|
|
18100
18414
|
r"""色彩增强配置
|
|
18101
18415
|
|
|
@@ -21660,6 +21974,121 @@ class CreateAiDramaTaskResponse(AbstractModel):
|
|
|
21660
21974
|
self._RequestId = params.get("RequestId")
|
|
21661
21975
|
|
|
21662
21976
|
|
|
21977
|
+
class CreateAiFissionTaskRequest(AbstractModel):
|
|
21978
|
+
r"""CreateAiFissionTask请求参数结构体
|
|
21979
|
+
|
|
21980
|
+
"""
|
|
21981
|
+
|
|
21982
|
+
def __init__(self):
|
|
21983
|
+
r"""
|
|
21984
|
+
:param _Input: <p>ai视频裂变输入信息</p>
|
|
21985
|
+
:type Input: :class:`tencentcloud.mps.v20190612.models.AiFissionInput`
|
|
21986
|
+
:param _CosInfo: <p>用户cos信息</p>
|
|
21987
|
+
:type CosInfo: :class:`tencentcloud.mps.v20190612.models.VideoDramaCosInfo`
|
|
21988
|
+
:param _TaskInfo: <p>ai视频裂变任务信息</p>
|
|
21989
|
+
:type TaskInfo: :class:`tencentcloud.mps.v20190612.models.FissionTaskInfo`
|
|
21990
|
+
"""
|
|
21991
|
+
self._Input = None
|
|
21992
|
+
self._CosInfo = None
|
|
21993
|
+
self._TaskInfo = None
|
|
21994
|
+
|
|
21995
|
+
@property
|
|
21996
|
+
def Input(self):
|
|
21997
|
+
r"""<p>ai视频裂变输入信息</p>
|
|
21998
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.AiFissionInput`
|
|
21999
|
+
"""
|
|
22000
|
+
return self._Input
|
|
22001
|
+
|
|
22002
|
+
@Input.setter
|
|
22003
|
+
def Input(self, Input):
|
|
22004
|
+
self._Input = Input
|
|
22005
|
+
|
|
22006
|
+
@property
|
|
22007
|
+
def CosInfo(self):
|
|
22008
|
+
r"""<p>用户cos信息</p>
|
|
22009
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.VideoDramaCosInfo`
|
|
22010
|
+
"""
|
|
22011
|
+
return self._CosInfo
|
|
22012
|
+
|
|
22013
|
+
@CosInfo.setter
|
|
22014
|
+
def CosInfo(self, CosInfo):
|
|
22015
|
+
self._CosInfo = CosInfo
|
|
22016
|
+
|
|
22017
|
+
@property
|
|
22018
|
+
def TaskInfo(self):
|
|
22019
|
+
r"""<p>ai视频裂变任务信息</p>
|
|
22020
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.FissionTaskInfo`
|
|
22021
|
+
"""
|
|
22022
|
+
return self._TaskInfo
|
|
22023
|
+
|
|
22024
|
+
@TaskInfo.setter
|
|
22025
|
+
def TaskInfo(self, TaskInfo):
|
|
22026
|
+
self._TaskInfo = TaskInfo
|
|
22027
|
+
|
|
22028
|
+
|
|
22029
|
+
def _deserialize(self, params):
|
|
22030
|
+
if params.get("Input") is not None:
|
|
22031
|
+
self._Input = AiFissionInput()
|
|
22032
|
+
self._Input._deserialize(params.get("Input"))
|
|
22033
|
+
if params.get("CosInfo") is not None:
|
|
22034
|
+
self._CosInfo = VideoDramaCosInfo()
|
|
22035
|
+
self._CosInfo._deserialize(params.get("CosInfo"))
|
|
22036
|
+
if params.get("TaskInfo") is not None:
|
|
22037
|
+
self._TaskInfo = FissionTaskInfo()
|
|
22038
|
+
self._TaskInfo._deserialize(params.get("TaskInfo"))
|
|
22039
|
+
memeber_set = set(params.keys())
|
|
22040
|
+
for name, value in vars(self).items():
|
|
22041
|
+
property_name = name[1:]
|
|
22042
|
+
if property_name in memeber_set:
|
|
22043
|
+
memeber_set.remove(property_name)
|
|
22044
|
+
if len(memeber_set) > 0:
|
|
22045
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
22046
|
+
|
|
22047
|
+
|
|
22048
|
+
|
|
22049
|
+
class CreateAiFissionTaskResponse(AbstractModel):
|
|
22050
|
+
r"""CreateAiFissionTask返回参数结构体
|
|
22051
|
+
|
|
22052
|
+
"""
|
|
22053
|
+
|
|
22054
|
+
def __init__(self):
|
|
22055
|
+
r"""
|
|
22056
|
+
:param _TaskId: <p>任务id</p>
|
|
22057
|
+
:type TaskId: str
|
|
22058
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
22059
|
+
:type RequestId: str
|
|
22060
|
+
"""
|
|
22061
|
+
self._TaskId = None
|
|
22062
|
+
self._RequestId = None
|
|
22063
|
+
|
|
22064
|
+
@property
|
|
22065
|
+
def TaskId(self):
|
|
22066
|
+
r"""<p>任务id</p>
|
|
22067
|
+
:rtype: str
|
|
22068
|
+
"""
|
|
22069
|
+
return self._TaskId
|
|
22070
|
+
|
|
22071
|
+
@TaskId.setter
|
|
22072
|
+
def TaskId(self, TaskId):
|
|
22073
|
+
self._TaskId = TaskId
|
|
22074
|
+
|
|
22075
|
+
@property
|
|
22076
|
+
def RequestId(self):
|
|
22077
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
22078
|
+
:rtype: str
|
|
22079
|
+
"""
|
|
22080
|
+
return self._RequestId
|
|
22081
|
+
|
|
22082
|
+
@RequestId.setter
|
|
22083
|
+
def RequestId(self, RequestId):
|
|
22084
|
+
self._RequestId = RequestId
|
|
22085
|
+
|
|
22086
|
+
|
|
22087
|
+
def _deserialize(self, params):
|
|
22088
|
+
self._TaskId = params.get("TaskId")
|
|
22089
|
+
self._RequestId = params.get("RequestId")
|
|
22090
|
+
|
|
22091
|
+
|
|
21663
22092
|
class CreateAigcAudioTaskRequest(AbstractModel):
|
|
21664
22093
|
r"""CreateAigcAudioTask请求参数结构体
|
|
21665
22094
|
|
|
@@ -23173,9 +23602,12 @@ class CreateDocToVideoTaskRequest(AbstractModel):
|
|
|
23173
23602
|
:type Input: :class:`tencentcloud.mps.v20190612.models.DocToVideoInput`
|
|
23174
23603
|
:param _CosInfo: <p>用户cos信息,用于保存生成结果</p>
|
|
23175
23604
|
:type CosInfo: :class:`tencentcloud.mps.v20190612.models.DocToVideoCosInfo`
|
|
23605
|
+
:param _ResourceId: <p>资源ID,需要保证对应资源是开启状态。默认为账号主资源ID。</p>
|
|
23606
|
+
:type ResourceId: str
|
|
23176
23607
|
"""
|
|
23177
23608
|
self._Input = None
|
|
23178
23609
|
self._CosInfo = None
|
|
23610
|
+
self._ResourceId = None
|
|
23179
23611
|
|
|
23180
23612
|
@property
|
|
23181
23613
|
def Input(self):
|
|
@@ -23199,6 +23631,17 @@ class CreateDocToVideoTaskRequest(AbstractModel):
|
|
|
23199
23631
|
def CosInfo(self, CosInfo):
|
|
23200
23632
|
self._CosInfo = CosInfo
|
|
23201
23633
|
|
|
23634
|
+
@property
|
|
23635
|
+
def ResourceId(self):
|
|
23636
|
+
r"""<p>资源ID,需要保证对应资源是开启状态。默认为账号主资源ID。</p>
|
|
23637
|
+
:rtype: str
|
|
23638
|
+
"""
|
|
23639
|
+
return self._ResourceId
|
|
23640
|
+
|
|
23641
|
+
@ResourceId.setter
|
|
23642
|
+
def ResourceId(self, ResourceId):
|
|
23643
|
+
self._ResourceId = ResourceId
|
|
23644
|
+
|
|
23202
23645
|
|
|
23203
23646
|
def _deserialize(self, params):
|
|
23204
23647
|
if params.get("Input") is not None:
|
|
@@ -23207,6 +23650,7 @@ class CreateDocToVideoTaskRequest(AbstractModel):
|
|
|
23207
23650
|
if params.get("CosInfo") is not None:
|
|
23208
23651
|
self._CosInfo = DocToVideoCosInfo()
|
|
23209
23652
|
self._CosInfo._deserialize(params.get("CosInfo"))
|
|
23653
|
+
self._ResourceId = params.get("ResourceId")
|
|
23210
23654
|
memeber_set = set(params.keys())
|
|
23211
23655
|
for name, value in vars(self).items():
|
|
23212
23656
|
property_name = name[1:]
|
|
@@ -29638,6 +30082,87 @@ class CreateWorkflowResponse(AbstractModel):
|
|
|
29638
30082
|
self._RequestId = params.get("RequestId")
|
|
29639
30083
|
|
|
29640
30084
|
|
|
30085
|
+
class CustomModel(AbstractModel):
|
|
30086
|
+
r"""商品裂变模特信息
|
|
30087
|
+
|
|
30088
|
+
"""
|
|
30089
|
+
|
|
30090
|
+
def __init__(self):
|
|
30091
|
+
r"""
|
|
30092
|
+
:param _Gender: <p>性别</p><p>枚举值:</p><ul><li>male: 男性</li><li>female: 女性</li><li>any: 不限</li></ul>
|
|
30093
|
+
:type Gender: str
|
|
30094
|
+
:param _Age: <p>年龄范围</p><p>枚举值:</p><ul><li>teen: 青年</li><li>young_adult: 成年</li><li>middle_aged: 中年</li><li>mature: 成熟</li></ul>
|
|
30095
|
+
:type Age: str
|
|
30096
|
+
:param _Appearance: <p>外貌</p><p>枚举值:</p><ul><li>caucasian: 白人</li><li>asian: 亚裔</li><li>latino: 拉丁裔</li><li>african: 非裔</li><li>middle_eastern: 中东</li></ul>
|
|
30097
|
+
:type Appearance: str
|
|
30098
|
+
:param _BodyType: <p>身材</p><p>枚举值:</p><ul><li>slim: 苗条</li><li>standard: 标准</li><li>athletic: 健壮</li><li>chubby: 丰满</li></ul>
|
|
30099
|
+
:type BodyType: str
|
|
30100
|
+
"""
|
|
30101
|
+
self._Gender = None
|
|
30102
|
+
self._Age = None
|
|
30103
|
+
self._Appearance = None
|
|
30104
|
+
self._BodyType = None
|
|
30105
|
+
|
|
30106
|
+
@property
|
|
30107
|
+
def Gender(self):
|
|
30108
|
+
r"""<p>性别</p><p>枚举值:</p><ul><li>male: 男性</li><li>female: 女性</li><li>any: 不限</li></ul>
|
|
30109
|
+
:rtype: str
|
|
30110
|
+
"""
|
|
30111
|
+
return self._Gender
|
|
30112
|
+
|
|
30113
|
+
@Gender.setter
|
|
30114
|
+
def Gender(self, Gender):
|
|
30115
|
+
self._Gender = Gender
|
|
30116
|
+
|
|
30117
|
+
@property
|
|
30118
|
+
def Age(self):
|
|
30119
|
+
r"""<p>年龄范围</p><p>枚举值:</p><ul><li>teen: 青年</li><li>young_adult: 成年</li><li>middle_aged: 中年</li><li>mature: 成熟</li></ul>
|
|
30120
|
+
:rtype: str
|
|
30121
|
+
"""
|
|
30122
|
+
return self._Age
|
|
30123
|
+
|
|
30124
|
+
@Age.setter
|
|
30125
|
+
def Age(self, Age):
|
|
30126
|
+
self._Age = Age
|
|
30127
|
+
|
|
30128
|
+
@property
|
|
30129
|
+
def Appearance(self):
|
|
30130
|
+
r"""<p>外貌</p><p>枚举值:</p><ul><li>caucasian: 白人</li><li>asian: 亚裔</li><li>latino: 拉丁裔</li><li>african: 非裔</li><li>middle_eastern: 中东</li></ul>
|
|
30131
|
+
:rtype: str
|
|
30132
|
+
"""
|
|
30133
|
+
return self._Appearance
|
|
30134
|
+
|
|
30135
|
+
@Appearance.setter
|
|
30136
|
+
def Appearance(self, Appearance):
|
|
30137
|
+
self._Appearance = Appearance
|
|
30138
|
+
|
|
30139
|
+
@property
|
|
30140
|
+
def BodyType(self):
|
|
30141
|
+
r"""<p>身材</p><p>枚举值:</p><ul><li>slim: 苗条</li><li>standard: 标准</li><li>athletic: 健壮</li><li>chubby: 丰满</li></ul>
|
|
30142
|
+
:rtype: str
|
|
30143
|
+
"""
|
|
30144
|
+
return self._BodyType
|
|
30145
|
+
|
|
30146
|
+
@BodyType.setter
|
|
30147
|
+
def BodyType(self, BodyType):
|
|
30148
|
+
self._BodyType = BodyType
|
|
30149
|
+
|
|
30150
|
+
|
|
30151
|
+
def _deserialize(self, params):
|
|
30152
|
+
self._Gender = params.get("Gender")
|
|
30153
|
+
self._Age = params.get("Age")
|
|
30154
|
+
self._Appearance = params.get("Appearance")
|
|
30155
|
+
self._BodyType = params.get("BodyType")
|
|
30156
|
+
memeber_set = set(params.keys())
|
|
30157
|
+
for name, value in vars(self).items():
|
|
30158
|
+
property_name = name[1:]
|
|
30159
|
+
if property_name in memeber_set:
|
|
30160
|
+
memeber_set.remove(property_name)
|
|
30161
|
+
if len(memeber_set) > 0:
|
|
30162
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
30163
|
+
|
|
30164
|
+
|
|
30165
|
+
|
|
29641
30166
|
class CustomVariable(AbstractModel):
|
|
29642
30167
|
r"""自定义描述变量
|
|
29643
30168
|
|
|
@@ -49555,6 +50080,164 @@ class FailOverOption(AbstractModel):
|
|
|
49555
50080
|
|
|
49556
50081
|
|
|
49557
50082
|
|
|
50083
|
+
class FissionTaskInfo(AbstractModel):
|
|
50084
|
+
r"""商品裂变任务信息
|
|
50085
|
+
|
|
50086
|
+
"""
|
|
50087
|
+
|
|
50088
|
+
def __init__(self):
|
|
50089
|
+
r"""
|
|
50090
|
+
:param _Duration: <p>视频输出时长</p><p>取值范围:[1, 15]</p><p>单位:秒</p><p>默认值:15</p>
|
|
50091
|
+
:type Duration: int
|
|
50092
|
+
:param _ModelTier: <p>模型档位</p><p>枚举值:</p><ul><li>standard: 标准版</li><li>flagship: 旗舰版</li></ul>
|
|
50093
|
+
:type ModelTier: str
|
|
50094
|
+
:param _Ratio: <p>视频画面比例</p><p>枚举值:</p><ul><li>9:16: 9:16</li><li>16:9: 16:9</li><li>1:1: 1:1</li><li>3:4: 3:4</li><li>4:3: 4:3</li></ul>
|
|
50095
|
+
:type Ratio: str
|
|
50096
|
+
:param _Resolution: <p>输出分辨率</p><p>枚举值:</p><ul><li>720p: 720p</li><li>1080p: 1080p</li><li>2k: 2k</li><li>4k: 4k</li></ul>
|
|
50097
|
+
:type Resolution: str
|
|
50098
|
+
:param _Market: <p>目标市场</p><p>枚举值:</p><ul><li>north_america: 北美</li><li>europe: 欧洲</li><li>china: 中国</li><li>japan: 日本</li><li>korea: 韩国</li><li>southeast_asia: 东南亚</li><li>brazil: 巴西</li><li>global: 全球</li><li>other: 其他</li></ul><p>影响默认出镜模特族裔与本地化风格;未指定 CustomModel 时按市场自动决定人种</p>
|
|
50099
|
+
:type Market: str
|
|
50100
|
+
:param _Language: <p>口播/字幕语言</p><p>枚举值:</p><ul><li>english: 英文</li><li>chinese: 中文</li><li>japanese: 日语</li><li>korean: 汉语</li><li>spanish: 西班牙语</li><li>portuguese: 葡萄牙语</li><li>music_only: 纯音乐无口播</li></ul>
|
|
50101
|
+
:type Language: str
|
|
50102
|
+
:param _VideoType: <p>视频类型</p><p>枚举值:</p><ul><li>ugc: UGC种草</li><li>talk: 产品口播</li><li>display: 产品展示(纯商品、无人声)</li><li>unboxing: 开箱分享</li><li>reaction: 反应展示</li></ul>
|
|
50103
|
+
:type VideoType: str
|
|
50104
|
+
:param _SplitCount: <p>裂变数量</p><p>取值范围:[0, 1]</p><p>单位:个</p>
|
|
50105
|
+
:type SplitCount: int
|
|
50106
|
+
:param _CustomModel: <p>定制出镜模特</p>
|
|
50107
|
+
:type CustomModel: :class:`tencentcloud.mps.v20190612.models.CustomModel`
|
|
50108
|
+
"""
|
|
50109
|
+
self._Duration = None
|
|
50110
|
+
self._ModelTier = None
|
|
50111
|
+
self._Ratio = None
|
|
50112
|
+
self._Resolution = None
|
|
50113
|
+
self._Market = None
|
|
50114
|
+
self._Language = None
|
|
50115
|
+
self._VideoType = None
|
|
50116
|
+
self._SplitCount = None
|
|
50117
|
+
self._CustomModel = None
|
|
50118
|
+
|
|
50119
|
+
@property
|
|
50120
|
+
def Duration(self):
|
|
50121
|
+
r"""<p>视频输出时长</p><p>取值范围:[1, 15]</p><p>单位:秒</p><p>默认值:15</p>
|
|
50122
|
+
:rtype: int
|
|
50123
|
+
"""
|
|
50124
|
+
return self._Duration
|
|
50125
|
+
|
|
50126
|
+
@Duration.setter
|
|
50127
|
+
def Duration(self, Duration):
|
|
50128
|
+
self._Duration = Duration
|
|
50129
|
+
|
|
50130
|
+
@property
|
|
50131
|
+
def ModelTier(self):
|
|
50132
|
+
r"""<p>模型档位</p><p>枚举值:</p><ul><li>standard: 标准版</li><li>flagship: 旗舰版</li></ul>
|
|
50133
|
+
:rtype: str
|
|
50134
|
+
"""
|
|
50135
|
+
return self._ModelTier
|
|
50136
|
+
|
|
50137
|
+
@ModelTier.setter
|
|
50138
|
+
def ModelTier(self, ModelTier):
|
|
50139
|
+
self._ModelTier = ModelTier
|
|
50140
|
+
|
|
50141
|
+
@property
|
|
50142
|
+
def Ratio(self):
|
|
50143
|
+
r"""<p>视频画面比例</p><p>枚举值:</p><ul><li>9:16: 9:16</li><li>16:9: 16:9</li><li>1:1: 1:1</li><li>3:4: 3:4</li><li>4:3: 4:3</li></ul>
|
|
50144
|
+
:rtype: str
|
|
50145
|
+
"""
|
|
50146
|
+
return self._Ratio
|
|
50147
|
+
|
|
50148
|
+
@Ratio.setter
|
|
50149
|
+
def Ratio(self, Ratio):
|
|
50150
|
+
self._Ratio = Ratio
|
|
50151
|
+
|
|
50152
|
+
@property
|
|
50153
|
+
def Resolution(self):
|
|
50154
|
+
r"""<p>输出分辨率</p><p>枚举值:</p><ul><li>720p: 720p</li><li>1080p: 1080p</li><li>2k: 2k</li><li>4k: 4k</li></ul>
|
|
50155
|
+
:rtype: str
|
|
50156
|
+
"""
|
|
50157
|
+
return self._Resolution
|
|
50158
|
+
|
|
50159
|
+
@Resolution.setter
|
|
50160
|
+
def Resolution(self, Resolution):
|
|
50161
|
+
self._Resolution = Resolution
|
|
50162
|
+
|
|
50163
|
+
@property
|
|
50164
|
+
def Market(self):
|
|
50165
|
+
r"""<p>目标市场</p><p>枚举值:</p><ul><li>north_america: 北美</li><li>europe: 欧洲</li><li>china: 中国</li><li>japan: 日本</li><li>korea: 韩国</li><li>southeast_asia: 东南亚</li><li>brazil: 巴西</li><li>global: 全球</li><li>other: 其他</li></ul><p>影响默认出镜模特族裔与本地化风格;未指定 CustomModel 时按市场自动决定人种</p>
|
|
50166
|
+
:rtype: str
|
|
50167
|
+
"""
|
|
50168
|
+
return self._Market
|
|
50169
|
+
|
|
50170
|
+
@Market.setter
|
|
50171
|
+
def Market(self, Market):
|
|
50172
|
+
self._Market = Market
|
|
50173
|
+
|
|
50174
|
+
@property
|
|
50175
|
+
def Language(self):
|
|
50176
|
+
r"""<p>口播/字幕语言</p><p>枚举值:</p><ul><li>english: 英文</li><li>chinese: 中文</li><li>japanese: 日语</li><li>korean: 汉语</li><li>spanish: 西班牙语</li><li>portuguese: 葡萄牙语</li><li>music_only: 纯音乐无口播</li></ul>
|
|
50177
|
+
:rtype: str
|
|
50178
|
+
"""
|
|
50179
|
+
return self._Language
|
|
50180
|
+
|
|
50181
|
+
@Language.setter
|
|
50182
|
+
def Language(self, Language):
|
|
50183
|
+
self._Language = Language
|
|
50184
|
+
|
|
50185
|
+
@property
|
|
50186
|
+
def VideoType(self):
|
|
50187
|
+
r"""<p>视频类型</p><p>枚举值:</p><ul><li>ugc: UGC种草</li><li>talk: 产品口播</li><li>display: 产品展示(纯商品、无人声)</li><li>unboxing: 开箱分享</li><li>reaction: 反应展示</li></ul>
|
|
50188
|
+
:rtype: str
|
|
50189
|
+
"""
|
|
50190
|
+
return self._VideoType
|
|
50191
|
+
|
|
50192
|
+
@VideoType.setter
|
|
50193
|
+
def VideoType(self, VideoType):
|
|
50194
|
+
self._VideoType = VideoType
|
|
50195
|
+
|
|
50196
|
+
@property
|
|
50197
|
+
def SplitCount(self):
|
|
50198
|
+
r"""<p>裂变数量</p><p>取值范围:[0, 1]</p><p>单位:个</p>
|
|
50199
|
+
:rtype: int
|
|
50200
|
+
"""
|
|
50201
|
+
return self._SplitCount
|
|
50202
|
+
|
|
50203
|
+
@SplitCount.setter
|
|
50204
|
+
def SplitCount(self, SplitCount):
|
|
50205
|
+
self._SplitCount = SplitCount
|
|
50206
|
+
|
|
50207
|
+
@property
|
|
50208
|
+
def CustomModel(self):
|
|
50209
|
+
r"""<p>定制出镜模特</p>
|
|
50210
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.CustomModel`
|
|
50211
|
+
"""
|
|
50212
|
+
return self._CustomModel
|
|
50213
|
+
|
|
50214
|
+
@CustomModel.setter
|
|
50215
|
+
def CustomModel(self, CustomModel):
|
|
50216
|
+
self._CustomModel = CustomModel
|
|
50217
|
+
|
|
50218
|
+
|
|
50219
|
+
def _deserialize(self, params):
|
|
50220
|
+
self._Duration = params.get("Duration")
|
|
50221
|
+
self._ModelTier = params.get("ModelTier")
|
|
50222
|
+
self._Ratio = params.get("Ratio")
|
|
50223
|
+
self._Resolution = params.get("Resolution")
|
|
50224
|
+
self._Market = params.get("Market")
|
|
50225
|
+
self._Language = params.get("Language")
|
|
50226
|
+
self._VideoType = params.get("VideoType")
|
|
50227
|
+
self._SplitCount = params.get("SplitCount")
|
|
50228
|
+
if params.get("CustomModel") is not None:
|
|
50229
|
+
self._CustomModel = CustomModel()
|
|
50230
|
+
self._CustomModel._deserialize(params.get("CustomModel"))
|
|
50231
|
+
memeber_set = set(params.keys())
|
|
50232
|
+
for name, value in vars(self).items():
|
|
50233
|
+
property_name = name[1:]
|
|
50234
|
+
if property_name in memeber_set:
|
|
50235
|
+
memeber_set.remove(property_name)
|
|
50236
|
+
if len(memeber_set) > 0:
|
|
50237
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
50238
|
+
|
|
50239
|
+
|
|
50240
|
+
|
|
49558
50241
|
class FlowAudio(AbstractModel):
|
|
49559
50242
|
r"""流的音频数据。
|
|
49560
50243
|
|
|
@@ -89003,6 +89686,207 @@ class TextToSpeechAsyncResponse(AbstractModel):
|
|
|
89003
89686
|
self._RequestId = params.get("RequestId")
|
|
89004
89687
|
|
|
89005
89688
|
|
|
89689
|
+
class TextToSpeechRequest(AbstractModel):
|
|
89690
|
+
r"""TextToSpeech请求参数结构体
|
|
89691
|
+
|
|
89692
|
+
"""
|
|
89693
|
+
|
|
89694
|
+
def __init__(self):
|
|
89695
|
+
r"""
|
|
89696
|
+
:param _Text: <p>语音合成文本</p>
|
|
89697
|
+
:type Text: str
|
|
89698
|
+
:param _VoiceId: <p>音色ID</p>
|
|
89699
|
+
:type VoiceId: str
|
|
89700
|
+
:param _TextLang: <p>文本语言。不填默认自动识别<br>当前支持语言:<br>zh 中文 (Chinese)<br>en 英语 (English)<br>ja 日语 (Japanese)<br>de 德语 (German)<br>fr 法语 (French)<br>ko 韩语 (Korean)<br>ru 俄语 (Russian)<br>uk 乌克兰语 (Ukrainian)<br>pt 葡萄牙语 (Portuguese)<br>it 意大利语 (Italian)<br>es 西班牙语 (Spanish)<br>id 印度尼西亚语 (Indonesian)<br>nl 荷兰语 (Dutch)<br>tr 土耳其语 (Turkish)<br>fil 菲律宾语 (Filipino)<br>ms 马来语 (Malay)<br>el 希腊语 (Greek)<br>fi 芬兰语 (Finnish)<br>hr 克罗地亚语 (Croatian)<br>sk 斯洛伐克语 (Slovak)<br>pl 波兰语 (Polish)<br>sv 瑞典语 (Swedish)<br>hi 印地语 (Hindi)<br>bg 保加利亚语 (Bulgarian)<br>ro 罗马尼亚语 (Romanian)<br>ar 阿拉伯语 (Arabic)<br>cs 捷克语 (Czech)<br>da 丹麦语 (Danish)<br>ta 泰米尔语 (Tamil)<br>hun 匈牙利语(Hungarian)<br>vi 越南语(Vietnamese)<br>no 挪威语(Norwegian)<br>yue 粤语(Cantonese)<br>th 泰语(Thai)<br>he 希伯来语(Hebrew)<br>ca 加泰罗尼亚语(Catalan)<br>nn 尼诺斯克语(Nynorsk)<br>af 阿非利卡语(Afrikaans)<br>fa 波斯语(Persian)<br>sl 斯洛文尼亚语(Slovenian)</p>
|
|
89701
|
+
:type TextLang: str
|
|
89702
|
+
:param _Output: <p>输出相关参数</p>
|
|
89703
|
+
:type Output: :class:`tencentcloud.mps.v20190612.models.SyncDubbingOutputOption`
|
|
89704
|
+
:param _ExtParam: <p>扩展参数,json字符串</p><p><strong>synExt</strong> Object 语音合成扩展参数<br> <strong>duration</strong> Float 合成音频时长(单位秒),默认不控制时长。示例:5.2<br> <strong>format</strong> String 输出音频格式,默认wav,支持wav、mp3<br> <strong>sampleRate</strong> Integer 合成音频采样率,默认16000,支持[8000,16000,22050,24000,32000,44100]</p>
|
|
89705
|
+
:type ExtParam: str
|
|
89706
|
+
"""
|
|
89707
|
+
self._Text = None
|
|
89708
|
+
self._VoiceId = None
|
|
89709
|
+
self._TextLang = None
|
|
89710
|
+
self._Output = None
|
|
89711
|
+
self._ExtParam = None
|
|
89712
|
+
|
|
89713
|
+
@property
|
|
89714
|
+
def Text(self):
|
|
89715
|
+
r"""<p>语音合成文本</p>
|
|
89716
|
+
:rtype: str
|
|
89717
|
+
"""
|
|
89718
|
+
return self._Text
|
|
89719
|
+
|
|
89720
|
+
@Text.setter
|
|
89721
|
+
def Text(self, Text):
|
|
89722
|
+
self._Text = Text
|
|
89723
|
+
|
|
89724
|
+
@property
|
|
89725
|
+
def VoiceId(self):
|
|
89726
|
+
r"""<p>音色ID</p>
|
|
89727
|
+
:rtype: str
|
|
89728
|
+
"""
|
|
89729
|
+
return self._VoiceId
|
|
89730
|
+
|
|
89731
|
+
@VoiceId.setter
|
|
89732
|
+
def VoiceId(self, VoiceId):
|
|
89733
|
+
self._VoiceId = VoiceId
|
|
89734
|
+
|
|
89735
|
+
@property
|
|
89736
|
+
def TextLang(self):
|
|
89737
|
+
r"""<p>文本语言。不填默认自动识别<br>当前支持语言:<br>zh 中文 (Chinese)<br>en 英语 (English)<br>ja 日语 (Japanese)<br>de 德语 (German)<br>fr 法语 (French)<br>ko 韩语 (Korean)<br>ru 俄语 (Russian)<br>uk 乌克兰语 (Ukrainian)<br>pt 葡萄牙语 (Portuguese)<br>it 意大利语 (Italian)<br>es 西班牙语 (Spanish)<br>id 印度尼西亚语 (Indonesian)<br>nl 荷兰语 (Dutch)<br>tr 土耳其语 (Turkish)<br>fil 菲律宾语 (Filipino)<br>ms 马来语 (Malay)<br>el 希腊语 (Greek)<br>fi 芬兰语 (Finnish)<br>hr 克罗地亚语 (Croatian)<br>sk 斯洛伐克语 (Slovak)<br>pl 波兰语 (Polish)<br>sv 瑞典语 (Swedish)<br>hi 印地语 (Hindi)<br>bg 保加利亚语 (Bulgarian)<br>ro 罗马尼亚语 (Romanian)<br>ar 阿拉伯语 (Arabic)<br>cs 捷克语 (Czech)<br>da 丹麦语 (Danish)<br>ta 泰米尔语 (Tamil)<br>hun 匈牙利语(Hungarian)<br>vi 越南语(Vietnamese)<br>no 挪威语(Norwegian)<br>yue 粤语(Cantonese)<br>th 泰语(Thai)<br>he 希伯来语(Hebrew)<br>ca 加泰罗尼亚语(Catalan)<br>nn 尼诺斯克语(Nynorsk)<br>af 阿非利卡语(Afrikaans)<br>fa 波斯语(Persian)<br>sl 斯洛文尼亚语(Slovenian)</p>
|
|
89738
|
+
:rtype: str
|
|
89739
|
+
"""
|
|
89740
|
+
return self._TextLang
|
|
89741
|
+
|
|
89742
|
+
@TextLang.setter
|
|
89743
|
+
def TextLang(self, TextLang):
|
|
89744
|
+
self._TextLang = TextLang
|
|
89745
|
+
|
|
89746
|
+
@property
|
|
89747
|
+
def Output(self):
|
|
89748
|
+
r"""<p>输出相关参数</p>
|
|
89749
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.SyncDubbingOutputOption`
|
|
89750
|
+
"""
|
|
89751
|
+
return self._Output
|
|
89752
|
+
|
|
89753
|
+
@Output.setter
|
|
89754
|
+
def Output(self, Output):
|
|
89755
|
+
self._Output = Output
|
|
89756
|
+
|
|
89757
|
+
@property
|
|
89758
|
+
def ExtParam(self):
|
|
89759
|
+
r"""<p>扩展参数,json字符串</p><p><strong>synExt</strong> Object 语音合成扩展参数<br> <strong>duration</strong> Float 合成音频时长(单位秒),默认不控制时长。示例:5.2<br> <strong>format</strong> String 输出音频格式,默认wav,支持wav、mp3<br> <strong>sampleRate</strong> Integer 合成音频采样率,默认16000,支持[8000,16000,22050,24000,32000,44100]</p>
|
|
89760
|
+
:rtype: str
|
|
89761
|
+
"""
|
|
89762
|
+
return self._ExtParam
|
|
89763
|
+
|
|
89764
|
+
@ExtParam.setter
|
|
89765
|
+
def ExtParam(self, ExtParam):
|
|
89766
|
+
self._ExtParam = ExtParam
|
|
89767
|
+
|
|
89768
|
+
|
|
89769
|
+
def _deserialize(self, params):
|
|
89770
|
+
self._Text = params.get("Text")
|
|
89771
|
+
self._VoiceId = params.get("VoiceId")
|
|
89772
|
+
self._TextLang = params.get("TextLang")
|
|
89773
|
+
if params.get("Output") is not None:
|
|
89774
|
+
self._Output = SyncDubbingOutputOption()
|
|
89775
|
+
self._Output._deserialize(params.get("Output"))
|
|
89776
|
+
self._ExtParam = params.get("ExtParam")
|
|
89777
|
+
memeber_set = set(params.keys())
|
|
89778
|
+
for name, value in vars(self).items():
|
|
89779
|
+
property_name = name[1:]
|
|
89780
|
+
if property_name in memeber_set:
|
|
89781
|
+
memeber_set.remove(property_name)
|
|
89782
|
+
if len(memeber_set) > 0:
|
|
89783
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
89784
|
+
|
|
89785
|
+
|
|
89786
|
+
|
|
89787
|
+
class TextToSpeechResponse(AbstractModel):
|
|
89788
|
+
r"""TextToSpeech返回参数结构体
|
|
89789
|
+
|
|
89790
|
+
"""
|
|
89791
|
+
|
|
89792
|
+
def __init__(self):
|
|
89793
|
+
r"""
|
|
89794
|
+
:param _ErrorCode: <p>错误码,成功时返回0</p>
|
|
89795
|
+
:type ErrorCode: int
|
|
89796
|
+
:param _Msg: <p>错误信息,成功时返回success</p>
|
|
89797
|
+
:type Msg: str
|
|
89798
|
+
:param _AudioData: <p>合成音频的base64编码,默认wav格式</p>
|
|
89799
|
+
:type AudioData: str
|
|
89800
|
+
:param _AudioUrl: <p>合成音频url,有效期24小时</p>
|
|
89801
|
+
:type AudioUrl: str
|
|
89802
|
+
:param _ExtInfo: <p>扩展信息,json字符串 duration: 结果音频时长,单位秒</p>
|
|
89803
|
+
:type ExtInfo: str
|
|
89804
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
89805
|
+
:type RequestId: str
|
|
89806
|
+
"""
|
|
89807
|
+
self._ErrorCode = None
|
|
89808
|
+
self._Msg = None
|
|
89809
|
+
self._AudioData = None
|
|
89810
|
+
self._AudioUrl = None
|
|
89811
|
+
self._ExtInfo = None
|
|
89812
|
+
self._RequestId = None
|
|
89813
|
+
|
|
89814
|
+
@property
|
|
89815
|
+
def ErrorCode(self):
|
|
89816
|
+
r"""<p>错误码,成功时返回0</p>
|
|
89817
|
+
:rtype: int
|
|
89818
|
+
"""
|
|
89819
|
+
return self._ErrorCode
|
|
89820
|
+
|
|
89821
|
+
@ErrorCode.setter
|
|
89822
|
+
def ErrorCode(self, ErrorCode):
|
|
89823
|
+
self._ErrorCode = ErrorCode
|
|
89824
|
+
|
|
89825
|
+
@property
|
|
89826
|
+
def Msg(self):
|
|
89827
|
+
r"""<p>错误信息,成功时返回success</p>
|
|
89828
|
+
:rtype: str
|
|
89829
|
+
"""
|
|
89830
|
+
return self._Msg
|
|
89831
|
+
|
|
89832
|
+
@Msg.setter
|
|
89833
|
+
def Msg(self, Msg):
|
|
89834
|
+
self._Msg = Msg
|
|
89835
|
+
|
|
89836
|
+
@property
|
|
89837
|
+
def AudioData(self):
|
|
89838
|
+
r"""<p>合成音频的base64编码,默认wav格式</p>
|
|
89839
|
+
:rtype: str
|
|
89840
|
+
"""
|
|
89841
|
+
return self._AudioData
|
|
89842
|
+
|
|
89843
|
+
@AudioData.setter
|
|
89844
|
+
def AudioData(self, AudioData):
|
|
89845
|
+
self._AudioData = AudioData
|
|
89846
|
+
|
|
89847
|
+
@property
|
|
89848
|
+
def AudioUrl(self):
|
|
89849
|
+
r"""<p>合成音频url,有效期24小时</p>
|
|
89850
|
+
:rtype: str
|
|
89851
|
+
"""
|
|
89852
|
+
return self._AudioUrl
|
|
89853
|
+
|
|
89854
|
+
@AudioUrl.setter
|
|
89855
|
+
def AudioUrl(self, AudioUrl):
|
|
89856
|
+
self._AudioUrl = AudioUrl
|
|
89857
|
+
|
|
89858
|
+
@property
|
|
89859
|
+
def ExtInfo(self):
|
|
89860
|
+
r"""<p>扩展信息,json字符串 duration: 结果音频时长,单位秒</p>
|
|
89861
|
+
:rtype: str
|
|
89862
|
+
"""
|
|
89863
|
+
return self._ExtInfo
|
|
89864
|
+
|
|
89865
|
+
@ExtInfo.setter
|
|
89866
|
+
def ExtInfo(self, ExtInfo):
|
|
89867
|
+
self._ExtInfo = ExtInfo
|
|
89868
|
+
|
|
89869
|
+
@property
|
|
89870
|
+
def RequestId(self):
|
|
89871
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
89872
|
+
:rtype: str
|
|
89873
|
+
"""
|
|
89874
|
+
return self._RequestId
|
|
89875
|
+
|
|
89876
|
+
@RequestId.setter
|
|
89877
|
+
def RequestId(self, RequestId):
|
|
89878
|
+
self._RequestId = RequestId
|
|
89879
|
+
|
|
89880
|
+
|
|
89881
|
+
def _deserialize(self, params):
|
|
89882
|
+
self._ErrorCode = params.get("ErrorCode")
|
|
89883
|
+
self._Msg = params.get("Msg")
|
|
89884
|
+
self._AudioData = params.get("AudioData")
|
|
89885
|
+
self._AudioUrl = params.get("AudioUrl")
|
|
89886
|
+
self._ExtInfo = params.get("ExtInfo")
|
|
89887
|
+
self._RequestId = params.get("RequestId")
|
|
89888
|
+
|
|
89889
|
+
|
|
89006
89890
|
class TextTranslationRequest(AbstractModel):
|
|
89007
89891
|
r"""TextTranslation请求参数结构体
|
|
89008
89892
|
|
|
@@ -188,6 +188,29 @@ class MpsClient(AbstractClient):
|
|
|
188
188
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
189
189
|
|
|
190
190
|
|
|
191
|
+
def CloneVoice(self, request):
|
|
192
|
+
r"""同步接口,使用该接口从参考音频克隆一个音色
|
|
193
|
+
|
|
194
|
+
:param request: Request instance for CloneVoice.
|
|
195
|
+
:type request: :class:`tencentcloud.mps.v20190612.models.CloneVoiceRequest`
|
|
196
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.CloneVoiceResponse`
|
|
197
|
+
|
|
198
|
+
"""
|
|
199
|
+
try:
|
|
200
|
+
params = request._serialize()
|
|
201
|
+
headers = request.headers
|
|
202
|
+
body = self.call("CloneVoice", params, headers=headers)
|
|
203
|
+
response = json.loads(body)
|
|
204
|
+
model = models.CloneVoiceResponse()
|
|
205
|
+
model._deserialize(response["Response"])
|
|
206
|
+
return model
|
|
207
|
+
except Exception as e:
|
|
208
|
+
if isinstance(e, TencentCloudSDKException):
|
|
209
|
+
raise
|
|
210
|
+
else:
|
|
211
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
212
|
+
|
|
213
|
+
|
|
191
214
|
def CreateAIAnalysisTemplate(self, request):
|
|
192
215
|
r"""创建用户自定义内容分析模板,数量上限:50。
|
|
193
216
|
|
|
@@ -280,6 +303,29 @@ class MpsClient(AbstractClient):
|
|
|
280
303
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
281
304
|
|
|
282
305
|
|
|
306
|
+
def CreateAiFissionTask(self, request):
|
|
307
|
+
r"""创建ai视频裂变任务
|
|
308
|
+
|
|
309
|
+
:param request: Request instance for CreateAiFissionTask.
|
|
310
|
+
:type request: :class:`tencentcloud.mps.v20190612.models.CreateAiFissionTaskRequest`
|
|
311
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.CreateAiFissionTaskResponse`
|
|
312
|
+
|
|
313
|
+
"""
|
|
314
|
+
try:
|
|
315
|
+
params = request._serialize()
|
|
316
|
+
headers = request.headers
|
|
317
|
+
body = self.call("CreateAiFissionTask", params, headers=headers)
|
|
318
|
+
response = json.loads(body)
|
|
319
|
+
model = models.CreateAiFissionTaskResponse()
|
|
320
|
+
model._deserialize(response["Response"])
|
|
321
|
+
return model
|
|
322
|
+
except Exception as e:
|
|
323
|
+
if isinstance(e, TencentCloudSDKException):
|
|
324
|
+
raise
|
|
325
|
+
else:
|
|
326
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
327
|
+
|
|
328
|
+
|
|
283
329
|
def CreateAigcAudioTask(self, request):
|
|
284
330
|
r"""调用该接口,用于创建AI生音频任务。
|
|
285
331
|
|
|
@@ -442,7 +488,8 @@ class MpsClient(AbstractClient):
|
|
|
442
488
|
|
|
443
489
|
|
|
444
490
|
def CreateDocToVideoTask(self, request):
|
|
445
|
-
r"""创建
|
|
491
|
+
r"""创建 AIGC 文档生成视频任务
|
|
492
|
+
(使用 DescribeAigcTaskStatus 接口进行任务查询)
|
|
446
493
|
|
|
447
494
|
:param request: Request instance for CreateDocToVideoTask.
|
|
448
495
|
:type request: :class:`tencentcloud.mps.v20190612.models.CreateDocToVideoTaskRequest`
|
|
@@ -5048,6 +5095,29 @@ class MpsClient(AbstractClient):
|
|
|
5048
5095
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
5049
5096
|
|
|
5050
5097
|
|
|
5098
|
+
def TextToSpeech(self, request):
|
|
5099
|
+
r"""同步语音合成,根据输入文本和指定音色生成语音
|
|
5100
|
+
|
|
5101
|
+
:param request: Request instance for TextToSpeech.
|
|
5102
|
+
:type request: :class:`tencentcloud.mps.v20190612.models.TextToSpeechRequest`
|
|
5103
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.TextToSpeechResponse`
|
|
5104
|
+
|
|
5105
|
+
"""
|
|
5106
|
+
try:
|
|
5107
|
+
params = request._serialize()
|
|
5108
|
+
headers = request.headers
|
|
5109
|
+
body = self.call("TextToSpeech", params, headers=headers)
|
|
5110
|
+
response = json.loads(body)
|
|
5111
|
+
model = models.TextToSpeechResponse()
|
|
5112
|
+
model._deserialize(response["Response"])
|
|
5113
|
+
return model
|
|
5114
|
+
except Exception as e:
|
|
5115
|
+
if isinstance(e, TencentCloudSDKException):
|
|
5116
|
+
raise
|
|
5117
|
+
else:
|
|
5118
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
5119
|
+
|
|
5120
|
+
|
|
5051
5121
|
def TextToSpeechAsync(self, request):
|
|
5052
5122
|
r"""异步语音合成接口,支持长文本转语音
|
|
5053
5123
|
|
|
@@ -152,6 +152,24 @@ class MpsClient(AbstractClient):
|
|
|
152
152
|
|
|
153
153
|
return await self.call_and_deserialize(**kwargs)
|
|
154
154
|
|
|
155
|
+
async def CloneVoice(
|
|
156
|
+
self,
|
|
157
|
+
request: models.CloneVoiceRequest,
|
|
158
|
+
opts: Dict = None,
|
|
159
|
+
) -> models.CloneVoiceResponse:
|
|
160
|
+
"""
|
|
161
|
+
同步接口,使用该接口从参考音频克隆一个音色
|
|
162
|
+
"""
|
|
163
|
+
|
|
164
|
+
kwargs = {}
|
|
165
|
+
kwargs["action"] = "CloneVoice"
|
|
166
|
+
kwargs["params"] = request._serialize()
|
|
167
|
+
kwargs["resp_cls"] = models.CloneVoiceResponse
|
|
168
|
+
kwargs["headers"] = request.headers
|
|
169
|
+
kwargs["opts"] = opts or {}
|
|
170
|
+
|
|
171
|
+
return await self.call_and_deserialize(**kwargs)
|
|
172
|
+
|
|
155
173
|
async def CreateAIAnalysisTemplate(
|
|
156
174
|
self,
|
|
157
175
|
request: models.CreateAIAnalysisTemplateRequest,
|
|
@@ -224,6 +242,24 @@ class MpsClient(AbstractClient):
|
|
|
224
242
|
|
|
225
243
|
return await self.call_and_deserialize(**kwargs)
|
|
226
244
|
|
|
245
|
+
async def CreateAiFissionTask(
|
|
246
|
+
self,
|
|
247
|
+
request: models.CreateAiFissionTaskRequest,
|
|
248
|
+
opts: Dict = None,
|
|
249
|
+
) -> models.CreateAiFissionTaskResponse:
|
|
250
|
+
"""
|
|
251
|
+
创建ai视频裂变任务
|
|
252
|
+
"""
|
|
253
|
+
|
|
254
|
+
kwargs = {}
|
|
255
|
+
kwargs["action"] = "CreateAiFissionTask"
|
|
256
|
+
kwargs["params"] = request._serialize()
|
|
257
|
+
kwargs["resp_cls"] = models.CreateAiFissionTaskResponse
|
|
258
|
+
kwargs["headers"] = request.headers
|
|
259
|
+
kwargs["opts"] = opts or {}
|
|
260
|
+
|
|
261
|
+
return await self.call_and_deserialize(**kwargs)
|
|
262
|
+
|
|
227
263
|
async def CreateAigcAudioTask(
|
|
228
264
|
self,
|
|
229
265
|
request: models.CreateAigcAudioTaskRequest,
|
|
@@ -356,7 +392,8 @@ class MpsClient(AbstractClient):
|
|
|
356
392
|
opts: Dict = None,
|
|
357
393
|
) -> models.CreateDocToVideoTaskResponse:
|
|
358
394
|
"""
|
|
359
|
-
创建
|
|
395
|
+
创建 AIGC 文档生成视频任务
|
|
396
|
+
(使用 DescribeAigcTaskStatus 接口进行任务查询)
|
|
360
397
|
"""
|
|
361
398
|
|
|
362
399
|
kwargs = {}
|
|
@@ -3972,6 +4009,24 @@ class MpsClient(AbstractClient):
|
|
|
3972
4009
|
|
|
3973
4010
|
return await self.call_and_deserialize(**kwargs)
|
|
3974
4011
|
|
|
4012
|
+
async def TextToSpeech(
|
|
4013
|
+
self,
|
|
4014
|
+
request: models.TextToSpeechRequest,
|
|
4015
|
+
opts: Dict = None,
|
|
4016
|
+
) -> models.TextToSpeechResponse:
|
|
4017
|
+
"""
|
|
4018
|
+
同步语音合成,根据输入文本和指定音色生成语音
|
|
4019
|
+
"""
|
|
4020
|
+
|
|
4021
|
+
kwargs = {}
|
|
4022
|
+
kwargs["action"] = "TextToSpeech"
|
|
4023
|
+
kwargs["params"] = request._serialize()
|
|
4024
|
+
kwargs["resp_cls"] = models.TextToSpeechResponse
|
|
4025
|
+
kwargs["headers"] = request.headers
|
|
4026
|
+
kwargs["opts"] = opts or {}
|
|
4027
|
+
|
|
4028
|
+
return await self.call_and_deserialize(**kwargs)
|
|
4029
|
+
|
|
3975
4030
|
async def TextToSpeechAsync(
|
|
3976
4031
|
self,
|
|
3977
4032
|
request: models.TextToSpeechAsyncRequest,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-mps
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.151
|
|
4
4
|
Summary: Tencent Cloud Mps 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<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.151
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.151
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.147
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|