tencentcloud-sdk-python-mps 3.1.147__tar.gz → 3.1.148__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.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_mps-3.1.147 → tencentcloud_sdk_python_mps-3.1.148}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_mps-3.1.147 → tencentcloud_sdk_python_mps-3.1.148}/setup.py +1 -1
  3. {tencentcloud_sdk_python_mps-3.1.147 → tencentcloud_sdk_python_mps-3.1.148}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_mps-3.1.147 → tencentcloud_sdk_python_mps-3.1.148}/tencentcloud/mps/v20190612/models.py +854 -0
  5. {tencentcloud_sdk_python_mps-3.1.147 → tencentcloud_sdk_python_mps-3.1.148}/tencentcloud/mps/v20190612/mps_client.py +69 -0
  6. {tencentcloud_sdk_python_mps-3.1.147 → tencentcloud_sdk_python_mps-3.1.148}/tencentcloud/mps/v20190612/mps_client_async.py +54 -0
  7. {tencentcloud_sdk_python_mps-3.1.147 → tencentcloud_sdk_python_mps-3.1.148}/tencentcloud_sdk_python_mps.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_mps-3.1.148/tencentcloud_sdk_python_mps.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_mps-3.1.147/tencentcloud_sdk_python_mps.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_mps-3.1.147 → tencentcloud_sdk_python_mps-3.1.148}/README.rst +0 -0
  11. {tencentcloud_sdk_python_mps-3.1.147 → tencentcloud_sdk_python_mps-3.1.148}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_mps-3.1.147 → tencentcloud_sdk_python_mps-3.1.148}/tencentcloud/mps/__init__.py +0 -0
  13. {tencentcloud_sdk_python_mps-3.1.147 → tencentcloud_sdk_python_mps-3.1.148}/tencentcloud/mps/v20190612/__init__.py +0 -0
  14. {tencentcloud_sdk_python_mps-3.1.147 → tencentcloud_sdk_python_mps-3.1.148}/tencentcloud/mps/v20190612/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_mps-3.1.147 → tencentcloud_sdk_python_mps-3.1.148}/tencentcloud_sdk_python_mps.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_mps-3.1.147 → tencentcloud_sdk_python_mps-3.1.148}/tencentcloud_sdk_python_mps.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_mps-3.1.147 → tencentcloud_sdk_python_mps-3.1.148}/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.147
3
+ Version: 3.1.148
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.147
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.148
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.147,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.148,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Mps SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.147'
17
+ __version__ = '3.1.148'
@@ -7286,6 +7286,57 @@ class AiExpansionConfig(AbstractModel):
7286
7286
 
7287
7287
 
7288
7288
 
7289
+ class AiFissionInput(AbstractModel):
7290
+ r"""视频裂变输入
7291
+
7292
+ """
7293
+
7294
+ def __init__(self):
7295
+ r"""
7296
+ :param _ImageUrls: <p>视频裂变参考图url</p>
7297
+ :type ImageUrls: list of str
7298
+ :param _Text: <p>视频裂变商品信息参考文案</p>
7299
+ :type Text: str
7300
+ """
7301
+ self._ImageUrls = None
7302
+ self._Text = None
7303
+
7304
+ @property
7305
+ def ImageUrls(self):
7306
+ r"""<p>视频裂变参考图url</p>
7307
+ :rtype: list of str
7308
+ """
7309
+ return self._ImageUrls
7310
+
7311
+ @ImageUrls.setter
7312
+ def ImageUrls(self, ImageUrls):
7313
+ self._ImageUrls = ImageUrls
7314
+
7315
+ @property
7316
+ def Text(self):
7317
+ r"""<p>视频裂变商品信息参考文案</p>
7318
+ :rtype: str
7319
+ """
7320
+ return self._Text
7321
+
7322
+ @Text.setter
7323
+ def Text(self, Text):
7324
+ self._Text = Text
7325
+
7326
+
7327
+ def _deserialize(self, params):
7328
+ self._ImageUrls = params.get("ImageUrls")
7329
+ self._Text = params.get("Text")
7330
+ memeber_set = set(params.keys())
7331
+ for name, value in vars(self).items():
7332
+ property_name = name[1:]
7333
+ if property_name in memeber_set:
7334
+ memeber_set.remove(property_name)
7335
+ if len(memeber_set) > 0:
7336
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
7337
+
7338
+
7339
+
7289
7340
  class AiParagraphInfo(AbstractModel):
7290
7341
  r"""分段信息。
7291
7342
 
@@ -18096,6 +18147,254 @@ class CloneViralResponse(AbstractModel):
18096
18147
  self._RequestId = params.get("RequestId")
18097
18148
 
18098
18149
 
18150
+ class CloneVoiceRequest(AbstractModel):
18151
+ r"""CloneVoice请求参数结构体
18152
+
18153
+ """
18154
+
18155
+ def __init__(self):
18156
+ r"""
18157
+ :param _AudioData: <p>克隆音频base64编码</p>
18158
+ :type AudioData: str
18159
+ :param _AudioUrl: <p>克隆音频Url,AudioData为空时有效</p>
18160
+ :type AudioUrl: str
18161
+ :param _AudioLang: <p>克隆音频语言,默认中文。 当前支持语言同语音合成TextLang</p>
18162
+ :type AudioLang: str
18163
+ :param _VoiceProfile: <p>音色属性。音色查询和匹配使用</p>
18164
+ :type VoiceProfile: :class:`tencentcloud.mps.v20190612.models.VoiceProfile`
18165
+ :param _Text: <p>试听文本</p>
18166
+ :type Text: str
18167
+ :param _TextLang: <p>试听文本语言,不填默认自动检测。当前支持语言同语音合成</p>
18168
+ :type TextLang: str
18169
+ :param _Output: <p>输出相关参数,可以指定输出音频形式等。默认输出音频base64。</p>
18170
+ :type Output: :class:`tencentcloud.mps.v20190612.models.SyncDubbingOutputOption`
18171
+ :param _ExtParam: <p>扩展参数,json字符串</p>
18172
+ :type ExtParam: str
18173
+ """
18174
+ self._AudioData = None
18175
+ self._AudioUrl = None
18176
+ self._AudioLang = None
18177
+ self._VoiceProfile = None
18178
+ self._Text = None
18179
+ self._TextLang = None
18180
+ self._Output = None
18181
+ self._ExtParam = None
18182
+
18183
+ @property
18184
+ def AudioData(self):
18185
+ r"""<p>克隆音频base64编码</p>
18186
+ :rtype: str
18187
+ """
18188
+ return self._AudioData
18189
+
18190
+ @AudioData.setter
18191
+ def AudioData(self, AudioData):
18192
+ self._AudioData = AudioData
18193
+
18194
+ @property
18195
+ def AudioUrl(self):
18196
+ r"""<p>克隆音频Url,AudioData为空时有效</p>
18197
+ :rtype: str
18198
+ """
18199
+ return self._AudioUrl
18200
+
18201
+ @AudioUrl.setter
18202
+ def AudioUrl(self, AudioUrl):
18203
+ self._AudioUrl = AudioUrl
18204
+
18205
+ @property
18206
+ def AudioLang(self):
18207
+ r"""<p>克隆音频语言,默认中文。 当前支持语言同语音合成TextLang</p>
18208
+ :rtype: str
18209
+ """
18210
+ return self._AudioLang
18211
+
18212
+ @AudioLang.setter
18213
+ def AudioLang(self, AudioLang):
18214
+ self._AudioLang = AudioLang
18215
+
18216
+ @property
18217
+ def VoiceProfile(self):
18218
+ r"""<p>音色属性。音色查询和匹配使用</p>
18219
+ :rtype: :class:`tencentcloud.mps.v20190612.models.VoiceProfile`
18220
+ """
18221
+ return self._VoiceProfile
18222
+
18223
+ @VoiceProfile.setter
18224
+ def VoiceProfile(self, VoiceProfile):
18225
+ self._VoiceProfile = VoiceProfile
18226
+
18227
+ @property
18228
+ def Text(self):
18229
+ r"""<p>试听文本</p>
18230
+ :rtype: str
18231
+ """
18232
+ return self._Text
18233
+
18234
+ @Text.setter
18235
+ def Text(self, Text):
18236
+ self._Text = Text
18237
+
18238
+ @property
18239
+ def TextLang(self):
18240
+ r"""<p>试听文本语言,不填默认自动检测。当前支持语言同语音合成</p>
18241
+ :rtype: str
18242
+ """
18243
+ return self._TextLang
18244
+
18245
+ @TextLang.setter
18246
+ def TextLang(self, TextLang):
18247
+ self._TextLang = TextLang
18248
+
18249
+ @property
18250
+ def Output(self):
18251
+ r"""<p>输出相关参数,可以指定输出音频形式等。默认输出音频base64。</p>
18252
+ :rtype: :class:`tencentcloud.mps.v20190612.models.SyncDubbingOutputOption`
18253
+ """
18254
+ return self._Output
18255
+
18256
+ @Output.setter
18257
+ def Output(self, Output):
18258
+ self._Output = Output
18259
+
18260
+ @property
18261
+ def ExtParam(self):
18262
+ r"""<p>扩展参数,json字符串</p>
18263
+ :rtype: str
18264
+ """
18265
+ return self._ExtParam
18266
+
18267
+ @ExtParam.setter
18268
+ def ExtParam(self, ExtParam):
18269
+ self._ExtParam = ExtParam
18270
+
18271
+
18272
+ def _deserialize(self, params):
18273
+ self._AudioData = params.get("AudioData")
18274
+ self._AudioUrl = params.get("AudioUrl")
18275
+ self._AudioLang = params.get("AudioLang")
18276
+ if params.get("VoiceProfile") is not None:
18277
+ self._VoiceProfile = VoiceProfile()
18278
+ self._VoiceProfile._deserialize(params.get("VoiceProfile"))
18279
+ self._Text = params.get("Text")
18280
+ self._TextLang = params.get("TextLang")
18281
+ if params.get("Output") is not None:
18282
+ self._Output = SyncDubbingOutputOption()
18283
+ self._Output._deserialize(params.get("Output"))
18284
+ self._ExtParam = params.get("ExtParam")
18285
+ memeber_set = set(params.keys())
18286
+ for name, value in vars(self).items():
18287
+ property_name = name[1:]
18288
+ if property_name in memeber_set:
18289
+ memeber_set.remove(property_name)
18290
+ if len(memeber_set) > 0:
18291
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
18292
+
18293
+
18294
+
18295
+ class CloneVoiceResponse(AbstractModel):
18296
+ r"""CloneVoice返回参数结构体
18297
+
18298
+ """
18299
+
18300
+ def __init__(self):
18301
+ r"""
18302
+ :param _ErrorCode: <p>错误码,成功时返回0</p>
18303
+ :type ErrorCode: int
18304
+ :param _Msg: <p>错误信息,成功时返回success</p>
18305
+ :type Msg: str
18306
+ :param _VoiceId: <p>克隆生成的音色ID</p>
18307
+ :type VoiceId: str
18308
+ :param _AudioData: <p>合成音频的base64编码</p>
18309
+ :type AudioData: str
18310
+ :param _AudioUrl: <p>合成音频Url,有效期24小时</p>
18311
+ :type AudioUrl: str
18312
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
18313
+ :type RequestId: str
18314
+ """
18315
+ self._ErrorCode = None
18316
+ self._Msg = None
18317
+ self._VoiceId = None
18318
+ self._AudioData = None
18319
+ self._AudioUrl = None
18320
+ self._RequestId = None
18321
+
18322
+ @property
18323
+ def ErrorCode(self):
18324
+ r"""<p>错误码,成功时返回0</p>
18325
+ :rtype: int
18326
+ """
18327
+ return self._ErrorCode
18328
+
18329
+ @ErrorCode.setter
18330
+ def ErrorCode(self, ErrorCode):
18331
+ self._ErrorCode = ErrorCode
18332
+
18333
+ @property
18334
+ def Msg(self):
18335
+ r"""<p>错误信息,成功时返回success</p>
18336
+ :rtype: str
18337
+ """
18338
+ return self._Msg
18339
+
18340
+ @Msg.setter
18341
+ def Msg(self, Msg):
18342
+ self._Msg = Msg
18343
+
18344
+ @property
18345
+ def VoiceId(self):
18346
+ r"""<p>克隆生成的音色ID</p>
18347
+ :rtype: str
18348
+ """
18349
+ return self._VoiceId
18350
+
18351
+ @VoiceId.setter
18352
+ def VoiceId(self, VoiceId):
18353
+ self._VoiceId = VoiceId
18354
+
18355
+ @property
18356
+ def AudioData(self):
18357
+ r"""<p>合成音频的base64编码</p>
18358
+ :rtype: str
18359
+ """
18360
+ return self._AudioData
18361
+
18362
+ @AudioData.setter
18363
+ def AudioData(self, AudioData):
18364
+ self._AudioData = AudioData
18365
+
18366
+ @property
18367
+ def AudioUrl(self):
18368
+ r"""<p>合成音频Url,有效期24小时</p>
18369
+ :rtype: str
18370
+ """
18371
+ return self._AudioUrl
18372
+
18373
+ @AudioUrl.setter
18374
+ def AudioUrl(self, AudioUrl):
18375
+ self._AudioUrl = AudioUrl
18376
+
18377
+ @property
18378
+ def RequestId(self):
18379
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
18380
+ :rtype: str
18381
+ """
18382
+ return self._RequestId
18383
+
18384
+ @RequestId.setter
18385
+ def RequestId(self, RequestId):
18386
+ self._RequestId = RequestId
18387
+
18388
+
18389
+ def _deserialize(self, params):
18390
+ self._ErrorCode = params.get("ErrorCode")
18391
+ self._Msg = params.get("Msg")
18392
+ self._VoiceId = params.get("VoiceId")
18393
+ self._AudioData = params.get("AudioData")
18394
+ self._AudioUrl = params.get("AudioUrl")
18395
+ self._RequestId = params.get("RequestId")
18396
+
18397
+
18099
18398
  class ColorEnhanceConfig(AbstractModel):
18100
18399
  r"""色彩增强配置
18101
18400
 
@@ -21660,6 +21959,121 @@ class CreateAiDramaTaskResponse(AbstractModel):
21660
21959
  self._RequestId = params.get("RequestId")
21661
21960
 
21662
21961
 
21962
+ class CreateAiFissionTaskRequest(AbstractModel):
21963
+ r"""CreateAiFissionTask请求参数结构体
21964
+
21965
+ """
21966
+
21967
+ def __init__(self):
21968
+ r"""
21969
+ :param _Input: <p>ai视频裂变输入信息</p>
21970
+ :type Input: :class:`tencentcloud.mps.v20190612.models.AiFissionInput`
21971
+ :param _CosInfo: <p>用户cos信息</p>
21972
+ :type CosInfo: :class:`tencentcloud.mps.v20190612.models.VideoDramaCosInfo`
21973
+ :param _TaskInfo: <p>ai视频裂变任务信息</p>
21974
+ :type TaskInfo: :class:`tencentcloud.mps.v20190612.models.FissionTaskInfo`
21975
+ """
21976
+ self._Input = None
21977
+ self._CosInfo = None
21978
+ self._TaskInfo = None
21979
+
21980
+ @property
21981
+ def Input(self):
21982
+ r"""<p>ai视频裂变输入信息</p>
21983
+ :rtype: :class:`tencentcloud.mps.v20190612.models.AiFissionInput`
21984
+ """
21985
+ return self._Input
21986
+
21987
+ @Input.setter
21988
+ def Input(self, Input):
21989
+ self._Input = Input
21990
+
21991
+ @property
21992
+ def CosInfo(self):
21993
+ r"""<p>用户cos信息</p>
21994
+ :rtype: :class:`tencentcloud.mps.v20190612.models.VideoDramaCosInfo`
21995
+ """
21996
+ return self._CosInfo
21997
+
21998
+ @CosInfo.setter
21999
+ def CosInfo(self, CosInfo):
22000
+ self._CosInfo = CosInfo
22001
+
22002
+ @property
22003
+ def TaskInfo(self):
22004
+ r"""<p>ai视频裂变任务信息</p>
22005
+ :rtype: :class:`tencentcloud.mps.v20190612.models.FissionTaskInfo`
22006
+ """
22007
+ return self._TaskInfo
22008
+
22009
+ @TaskInfo.setter
22010
+ def TaskInfo(self, TaskInfo):
22011
+ self._TaskInfo = TaskInfo
22012
+
22013
+
22014
+ def _deserialize(self, params):
22015
+ if params.get("Input") is not None:
22016
+ self._Input = AiFissionInput()
22017
+ self._Input._deserialize(params.get("Input"))
22018
+ if params.get("CosInfo") is not None:
22019
+ self._CosInfo = VideoDramaCosInfo()
22020
+ self._CosInfo._deserialize(params.get("CosInfo"))
22021
+ if params.get("TaskInfo") is not None:
22022
+ self._TaskInfo = FissionTaskInfo()
22023
+ self._TaskInfo._deserialize(params.get("TaskInfo"))
22024
+ memeber_set = set(params.keys())
22025
+ for name, value in vars(self).items():
22026
+ property_name = name[1:]
22027
+ if property_name in memeber_set:
22028
+ memeber_set.remove(property_name)
22029
+ if len(memeber_set) > 0:
22030
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
22031
+
22032
+
22033
+
22034
+ class CreateAiFissionTaskResponse(AbstractModel):
22035
+ r"""CreateAiFissionTask返回参数结构体
22036
+
22037
+ """
22038
+
22039
+ def __init__(self):
22040
+ r"""
22041
+ :param _TaskId: <p>任务id</p>
22042
+ :type TaskId: str
22043
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
22044
+ :type RequestId: str
22045
+ """
22046
+ self._TaskId = None
22047
+ self._RequestId = None
22048
+
22049
+ @property
22050
+ def TaskId(self):
22051
+ r"""<p>任务id</p>
22052
+ :rtype: str
22053
+ """
22054
+ return self._TaskId
22055
+
22056
+ @TaskId.setter
22057
+ def TaskId(self, TaskId):
22058
+ self._TaskId = TaskId
22059
+
22060
+ @property
22061
+ def RequestId(self):
22062
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
22063
+ :rtype: str
22064
+ """
22065
+ return self._RequestId
22066
+
22067
+ @RequestId.setter
22068
+ def RequestId(self, RequestId):
22069
+ self._RequestId = RequestId
22070
+
22071
+
22072
+ def _deserialize(self, params):
22073
+ self._TaskId = params.get("TaskId")
22074
+ self._RequestId = params.get("RequestId")
22075
+
22076
+
21663
22077
  class CreateAigcAudioTaskRequest(AbstractModel):
21664
22078
  r"""CreateAigcAudioTask请求参数结构体
21665
22079
 
@@ -29638,6 +30052,87 @@ class CreateWorkflowResponse(AbstractModel):
29638
30052
  self._RequestId = params.get("RequestId")
29639
30053
 
29640
30054
 
30055
+ class CustomModel(AbstractModel):
30056
+ r"""商品裂变模特信息
30057
+
30058
+ """
30059
+
30060
+ def __init__(self):
30061
+ r"""
30062
+ :param _Gender: <p>性别</p><p>枚举值:</p><ul><li>male: 男性</li><li>female: 女性</li><li>any: 不限</li></ul>
30063
+ :type Gender: str
30064
+ :param _Age: <p>年龄范围</p><p>枚举值:</p><ul><li>teen: 青年</li><li>young_adult: 成年</li><li>middle_aged: 中年</li><li>mature: 成熟</li></ul>
30065
+ :type Age: str
30066
+ :param _Appearance: <p>外貌</p><p>枚举值:</p><ul><li>caucasian: 白人</li><li>asian: 亚裔</li><li>latino: 拉丁裔</li><li>african: 非裔</li><li>middle_eastern: 中东</li></ul>
30067
+ :type Appearance: str
30068
+ :param _BodyType: <p>身材</p><p>枚举值:</p><ul><li>slim: 苗条</li><li>standard: 标准</li><li>athletic: 健壮</li><li>chubby: 丰满</li></ul>
30069
+ :type BodyType: str
30070
+ """
30071
+ self._Gender = None
30072
+ self._Age = None
30073
+ self._Appearance = None
30074
+ self._BodyType = None
30075
+
30076
+ @property
30077
+ def Gender(self):
30078
+ r"""<p>性别</p><p>枚举值:</p><ul><li>male: 男性</li><li>female: 女性</li><li>any: 不限</li></ul>
30079
+ :rtype: str
30080
+ """
30081
+ return self._Gender
30082
+
30083
+ @Gender.setter
30084
+ def Gender(self, Gender):
30085
+ self._Gender = Gender
30086
+
30087
+ @property
30088
+ def Age(self):
30089
+ r"""<p>年龄范围</p><p>枚举值:</p><ul><li>teen: 青年</li><li>young_adult: 成年</li><li>middle_aged: 中年</li><li>mature: 成熟</li></ul>
30090
+ :rtype: str
30091
+ """
30092
+ return self._Age
30093
+
30094
+ @Age.setter
30095
+ def Age(self, Age):
30096
+ self._Age = Age
30097
+
30098
+ @property
30099
+ def Appearance(self):
30100
+ r"""<p>外貌</p><p>枚举值:</p><ul><li>caucasian: 白人</li><li>asian: 亚裔</li><li>latino: 拉丁裔</li><li>african: 非裔</li><li>middle_eastern: 中东</li></ul>
30101
+ :rtype: str
30102
+ """
30103
+ return self._Appearance
30104
+
30105
+ @Appearance.setter
30106
+ def Appearance(self, Appearance):
30107
+ self._Appearance = Appearance
30108
+
30109
+ @property
30110
+ def BodyType(self):
30111
+ r"""<p>身材</p><p>枚举值:</p><ul><li>slim: 苗条</li><li>standard: 标准</li><li>athletic: 健壮</li><li>chubby: 丰满</li></ul>
30112
+ :rtype: str
30113
+ """
30114
+ return self._BodyType
30115
+
30116
+ @BodyType.setter
30117
+ def BodyType(self, BodyType):
30118
+ self._BodyType = BodyType
30119
+
30120
+
30121
+ def _deserialize(self, params):
30122
+ self._Gender = params.get("Gender")
30123
+ self._Age = params.get("Age")
30124
+ self._Appearance = params.get("Appearance")
30125
+ self._BodyType = params.get("BodyType")
30126
+ memeber_set = set(params.keys())
30127
+ for name, value in vars(self).items():
30128
+ property_name = name[1:]
30129
+ if property_name in memeber_set:
30130
+ memeber_set.remove(property_name)
30131
+ if len(memeber_set) > 0:
30132
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
30133
+
30134
+
30135
+
29641
30136
  class CustomVariable(AbstractModel):
29642
30137
  r"""自定义描述变量
29643
30138
 
@@ -49555,6 +50050,164 @@ class FailOverOption(AbstractModel):
49555
50050
 
49556
50051
 
49557
50052
 
50053
+ class FissionTaskInfo(AbstractModel):
50054
+ r"""商品裂变任务信息
50055
+
50056
+ """
50057
+
50058
+ def __init__(self):
50059
+ r"""
50060
+ :param _Duration: <p>视频输出时长</p><p>取值范围:[1, 15]</p><p>单位:秒</p><p>默认值:15</p>
50061
+ :type Duration: int
50062
+ :param _ModelTier: <p>模型档位</p><p>枚举值:</p><ul><li>standard: 标准版</li><li>flagship: 旗舰版</li></ul>
50063
+ :type ModelTier: str
50064
+ :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>
50065
+ :type Ratio: str
50066
+ :param _Resolution: <p>输出分辨率</p><p>枚举值:</p><ul><li>720p: 720p</li><li>1080p: 1080p</li><li>2k: 2k</li><li>4k: 4k</li></ul>
50067
+ :type Resolution: str
50068
+ :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>
50069
+ :type Market: str
50070
+ :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>
50071
+ :type Language: str
50072
+ :param _VideoType: <p>视频类型</p><p>枚举值:</p><ul><li>ugc: UGC种草</li><li>talk: 产品口播</li><li>display: 产品展示(纯商品、无人声)</li><li>unboxing: 开箱分享</li><li>reaction: 反应展示</li></ul>
50073
+ :type VideoType: str
50074
+ :param _SplitCount: <p>裂变数量</p><p>取值范围:[0, 1]</p><p>单位:个</p>
50075
+ :type SplitCount: int
50076
+ :param _CustomModel: <p>定制出镜模特</p>
50077
+ :type CustomModel: :class:`tencentcloud.mps.v20190612.models.CustomModel`
50078
+ """
50079
+ self._Duration = None
50080
+ self._ModelTier = None
50081
+ self._Ratio = None
50082
+ self._Resolution = None
50083
+ self._Market = None
50084
+ self._Language = None
50085
+ self._VideoType = None
50086
+ self._SplitCount = None
50087
+ self._CustomModel = None
50088
+
50089
+ @property
50090
+ def Duration(self):
50091
+ r"""<p>视频输出时长</p><p>取值范围:[1, 15]</p><p>单位:秒</p><p>默认值:15</p>
50092
+ :rtype: int
50093
+ """
50094
+ return self._Duration
50095
+
50096
+ @Duration.setter
50097
+ def Duration(self, Duration):
50098
+ self._Duration = Duration
50099
+
50100
+ @property
50101
+ def ModelTier(self):
50102
+ r"""<p>模型档位</p><p>枚举值:</p><ul><li>standard: 标准版</li><li>flagship: 旗舰版</li></ul>
50103
+ :rtype: str
50104
+ """
50105
+ return self._ModelTier
50106
+
50107
+ @ModelTier.setter
50108
+ def ModelTier(self, ModelTier):
50109
+ self._ModelTier = ModelTier
50110
+
50111
+ @property
50112
+ def Ratio(self):
50113
+ 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>
50114
+ :rtype: str
50115
+ """
50116
+ return self._Ratio
50117
+
50118
+ @Ratio.setter
50119
+ def Ratio(self, Ratio):
50120
+ self._Ratio = Ratio
50121
+
50122
+ @property
50123
+ def Resolution(self):
50124
+ r"""<p>输出分辨率</p><p>枚举值:</p><ul><li>720p: 720p</li><li>1080p: 1080p</li><li>2k: 2k</li><li>4k: 4k</li></ul>
50125
+ :rtype: str
50126
+ """
50127
+ return self._Resolution
50128
+
50129
+ @Resolution.setter
50130
+ def Resolution(self, Resolution):
50131
+ self._Resolution = Resolution
50132
+
50133
+ @property
50134
+ def Market(self):
50135
+ 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>
50136
+ :rtype: str
50137
+ """
50138
+ return self._Market
50139
+
50140
+ @Market.setter
50141
+ def Market(self, Market):
50142
+ self._Market = Market
50143
+
50144
+ @property
50145
+ def Language(self):
50146
+ 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>
50147
+ :rtype: str
50148
+ """
50149
+ return self._Language
50150
+
50151
+ @Language.setter
50152
+ def Language(self, Language):
50153
+ self._Language = Language
50154
+
50155
+ @property
50156
+ def VideoType(self):
50157
+ r"""<p>视频类型</p><p>枚举值:</p><ul><li>ugc: UGC种草</li><li>talk: 产品口播</li><li>display: 产品展示(纯商品、无人声)</li><li>unboxing: 开箱分享</li><li>reaction: 反应展示</li></ul>
50158
+ :rtype: str
50159
+ """
50160
+ return self._VideoType
50161
+
50162
+ @VideoType.setter
50163
+ def VideoType(self, VideoType):
50164
+ self._VideoType = VideoType
50165
+
50166
+ @property
50167
+ def SplitCount(self):
50168
+ r"""<p>裂变数量</p><p>取值范围:[0, 1]</p><p>单位:个</p>
50169
+ :rtype: int
50170
+ """
50171
+ return self._SplitCount
50172
+
50173
+ @SplitCount.setter
50174
+ def SplitCount(self, SplitCount):
50175
+ self._SplitCount = SplitCount
50176
+
50177
+ @property
50178
+ def CustomModel(self):
50179
+ r"""<p>定制出镜模特</p>
50180
+ :rtype: :class:`tencentcloud.mps.v20190612.models.CustomModel`
50181
+ """
50182
+ return self._CustomModel
50183
+
50184
+ @CustomModel.setter
50185
+ def CustomModel(self, CustomModel):
50186
+ self._CustomModel = CustomModel
50187
+
50188
+
50189
+ def _deserialize(self, params):
50190
+ self._Duration = params.get("Duration")
50191
+ self._ModelTier = params.get("ModelTier")
50192
+ self._Ratio = params.get("Ratio")
50193
+ self._Resolution = params.get("Resolution")
50194
+ self._Market = params.get("Market")
50195
+ self._Language = params.get("Language")
50196
+ self._VideoType = params.get("VideoType")
50197
+ self._SplitCount = params.get("SplitCount")
50198
+ if params.get("CustomModel") is not None:
50199
+ self._CustomModel = CustomModel()
50200
+ self._CustomModel._deserialize(params.get("CustomModel"))
50201
+ memeber_set = set(params.keys())
50202
+ for name, value in vars(self).items():
50203
+ property_name = name[1:]
50204
+ if property_name in memeber_set:
50205
+ memeber_set.remove(property_name)
50206
+ if len(memeber_set) > 0:
50207
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
50208
+
50209
+
50210
+
49558
50211
  class FlowAudio(AbstractModel):
49559
50212
  r"""流的音频数据。
49560
50213
 
@@ -89003,6 +89656,207 @@ class TextToSpeechAsyncResponse(AbstractModel):
89003
89656
  self._RequestId = params.get("RequestId")
89004
89657
 
89005
89658
 
89659
+ class TextToSpeechRequest(AbstractModel):
89660
+ r"""TextToSpeech请求参数结构体
89661
+
89662
+ """
89663
+
89664
+ def __init__(self):
89665
+ r"""
89666
+ :param _Text: <p>语音合成文本</p>
89667
+ :type Text: str
89668
+ :param _VoiceId: <p>音色ID</p>
89669
+ :type VoiceId: str
89670
+ :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>
89671
+ :type TextLang: str
89672
+ :param _Output: <p>输出相关参数</p>
89673
+ :type Output: :class:`tencentcloud.mps.v20190612.models.SyncDubbingOutputOption`
89674
+ :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>
89675
+ :type ExtParam: str
89676
+ """
89677
+ self._Text = None
89678
+ self._VoiceId = None
89679
+ self._TextLang = None
89680
+ self._Output = None
89681
+ self._ExtParam = None
89682
+
89683
+ @property
89684
+ def Text(self):
89685
+ r"""<p>语音合成文本</p>
89686
+ :rtype: str
89687
+ """
89688
+ return self._Text
89689
+
89690
+ @Text.setter
89691
+ def Text(self, Text):
89692
+ self._Text = Text
89693
+
89694
+ @property
89695
+ def VoiceId(self):
89696
+ r"""<p>音色ID</p>
89697
+ :rtype: str
89698
+ """
89699
+ return self._VoiceId
89700
+
89701
+ @VoiceId.setter
89702
+ def VoiceId(self, VoiceId):
89703
+ self._VoiceId = VoiceId
89704
+
89705
+ @property
89706
+ def TextLang(self):
89707
+ 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>
89708
+ :rtype: str
89709
+ """
89710
+ return self._TextLang
89711
+
89712
+ @TextLang.setter
89713
+ def TextLang(self, TextLang):
89714
+ self._TextLang = TextLang
89715
+
89716
+ @property
89717
+ def Output(self):
89718
+ r"""<p>输出相关参数</p>
89719
+ :rtype: :class:`tencentcloud.mps.v20190612.models.SyncDubbingOutputOption`
89720
+ """
89721
+ return self._Output
89722
+
89723
+ @Output.setter
89724
+ def Output(self, Output):
89725
+ self._Output = Output
89726
+
89727
+ @property
89728
+ def ExtParam(self):
89729
+ 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>
89730
+ :rtype: str
89731
+ """
89732
+ return self._ExtParam
89733
+
89734
+ @ExtParam.setter
89735
+ def ExtParam(self, ExtParam):
89736
+ self._ExtParam = ExtParam
89737
+
89738
+
89739
+ def _deserialize(self, params):
89740
+ self._Text = params.get("Text")
89741
+ self._VoiceId = params.get("VoiceId")
89742
+ self._TextLang = params.get("TextLang")
89743
+ if params.get("Output") is not None:
89744
+ self._Output = SyncDubbingOutputOption()
89745
+ self._Output._deserialize(params.get("Output"))
89746
+ self._ExtParam = params.get("ExtParam")
89747
+ memeber_set = set(params.keys())
89748
+ for name, value in vars(self).items():
89749
+ property_name = name[1:]
89750
+ if property_name in memeber_set:
89751
+ memeber_set.remove(property_name)
89752
+ if len(memeber_set) > 0:
89753
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
89754
+
89755
+
89756
+
89757
+ class TextToSpeechResponse(AbstractModel):
89758
+ r"""TextToSpeech返回参数结构体
89759
+
89760
+ """
89761
+
89762
+ def __init__(self):
89763
+ r"""
89764
+ :param _ErrorCode: <p>错误码,成功时返回0</p>
89765
+ :type ErrorCode: int
89766
+ :param _Msg: <p>错误信息,成功时返回success</p>
89767
+ :type Msg: str
89768
+ :param _AudioData: <p>合成音频的base64编码,默认wav格式</p>
89769
+ :type AudioData: str
89770
+ :param _AudioUrl: <p>合成音频url,有效期24小时</p>
89771
+ :type AudioUrl: str
89772
+ :param _ExtInfo: <p>扩展信息,json字符串 duration: 结果音频时长,单位秒</p>
89773
+ :type ExtInfo: str
89774
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
89775
+ :type RequestId: str
89776
+ """
89777
+ self._ErrorCode = None
89778
+ self._Msg = None
89779
+ self._AudioData = None
89780
+ self._AudioUrl = None
89781
+ self._ExtInfo = None
89782
+ self._RequestId = None
89783
+
89784
+ @property
89785
+ def ErrorCode(self):
89786
+ r"""<p>错误码,成功时返回0</p>
89787
+ :rtype: int
89788
+ """
89789
+ return self._ErrorCode
89790
+
89791
+ @ErrorCode.setter
89792
+ def ErrorCode(self, ErrorCode):
89793
+ self._ErrorCode = ErrorCode
89794
+
89795
+ @property
89796
+ def Msg(self):
89797
+ r"""<p>错误信息,成功时返回success</p>
89798
+ :rtype: str
89799
+ """
89800
+ return self._Msg
89801
+
89802
+ @Msg.setter
89803
+ def Msg(self, Msg):
89804
+ self._Msg = Msg
89805
+
89806
+ @property
89807
+ def AudioData(self):
89808
+ r"""<p>合成音频的base64编码,默认wav格式</p>
89809
+ :rtype: str
89810
+ """
89811
+ return self._AudioData
89812
+
89813
+ @AudioData.setter
89814
+ def AudioData(self, AudioData):
89815
+ self._AudioData = AudioData
89816
+
89817
+ @property
89818
+ def AudioUrl(self):
89819
+ r"""<p>合成音频url,有效期24小时</p>
89820
+ :rtype: str
89821
+ """
89822
+ return self._AudioUrl
89823
+
89824
+ @AudioUrl.setter
89825
+ def AudioUrl(self, AudioUrl):
89826
+ self._AudioUrl = AudioUrl
89827
+
89828
+ @property
89829
+ def ExtInfo(self):
89830
+ r"""<p>扩展信息,json字符串 duration: 结果音频时长,单位秒</p>
89831
+ :rtype: str
89832
+ """
89833
+ return self._ExtInfo
89834
+
89835
+ @ExtInfo.setter
89836
+ def ExtInfo(self, ExtInfo):
89837
+ self._ExtInfo = ExtInfo
89838
+
89839
+ @property
89840
+ def RequestId(self):
89841
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
89842
+ :rtype: str
89843
+ """
89844
+ return self._RequestId
89845
+
89846
+ @RequestId.setter
89847
+ def RequestId(self, RequestId):
89848
+ self._RequestId = RequestId
89849
+
89850
+
89851
+ def _deserialize(self, params):
89852
+ self._ErrorCode = params.get("ErrorCode")
89853
+ self._Msg = params.get("Msg")
89854
+ self._AudioData = params.get("AudioData")
89855
+ self._AudioUrl = params.get("AudioUrl")
89856
+ self._ExtInfo = params.get("ExtInfo")
89857
+ self._RequestId = params.get("RequestId")
89858
+
89859
+
89006
89860
  class TextTranslationRequest(AbstractModel):
89007
89861
  r"""TextTranslation请求参数结构体
89008
89862
 
@@ -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
 
@@ -5048,6 +5094,29 @@ class MpsClient(AbstractClient):
5048
5094
  raise TencentCloudSDKException(type(e).__name__, str(e))
5049
5095
 
5050
5096
 
5097
+ def TextToSpeech(self, request):
5098
+ r"""同步语音合成,根据输入文本和指定音色生成语音
5099
+
5100
+ :param request: Request instance for TextToSpeech.
5101
+ :type request: :class:`tencentcloud.mps.v20190612.models.TextToSpeechRequest`
5102
+ :rtype: :class:`tencentcloud.mps.v20190612.models.TextToSpeechResponse`
5103
+
5104
+ """
5105
+ try:
5106
+ params = request._serialize()
5107
+ headers = request.headers
5108
+ body = self.call("TextToSpeech", params, headers=headers)
5109
+ response = json.loads(body)
5110
+ model = models.TextToSpeechResponse()
5111
+ model._deserialize(response["Response"])
5112
+ return model
5113
+ except Exception as e:
5114
+ if isinstance(e, TencentCloudSDKException):
5115
+ raise
5116
+ else:
5117
+ raise TencentCloudSDKException(type(e).__name__, str(e))
5118
+
5119
+
5051
5120
  def TextToSpeechAsync(self, request):
5052
5121
  r"""异步语音合成接口,支持长文本转语音
5053
5122
 
@@ -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,
@@ -3972,6 +4008,24 @@ class MpsClient(AbstractClient):
3972
4008
 
3973
4009
  return await self.call_and_deserialize(**kwargs)
3974
4010
 
4011
+ async def TextToSpeech(
4012
+ self,
4013
+ request: models.TextToSpeechRequest,
4014
+ opts: Dict = None,
4015
+ ) -> models.TextToSpeechResponse:
4016
+ """
4017
+ 同步语音合成,根据输入文本和指定音色生成语音
4018
+ """
4019
+
4020
+ kwargs = {}
4021
+ kwargs["action"] = "TextToSpeech"
4022
+ kwargs["params"] = request._serialize()
4023
+ kwargs["resp_cls"] = models.TextToSpeechResponse
4024
+ kwargs["headers"] = request.headers
4025
+ kwargs["opts"] = opts or {}
4026
+
4027
+ return await self.call_and_deserialize(**kwargs)
4028
+
3975
4029
  async def TextToSpeechAsync(
3976
4030
  self,
3977
4031
  request: models.TextToSpeechAsyncRequest,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-mps
3
- Version: 3.1.147
3
+ Version: 3.1.148
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.147
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.148
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.148
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.147