tencentcloud-sdk-python-mps 3.1.82__tar.gz → 3.1.85__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.82 → tencentcloud_sdk_python_mps-3.1.85}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_mps-3.1.82 → tencentcloud_sdk_python_mps-3.1.85}/setup.py +1 -1
  3. {tencentcloud_sdk_python_mps-3.1.82 → tencentcloud_sdk_python_mps-3.1.85}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_mps-3.1.82 → tencentcloud_sdk_python_mps-3.1.85}/tencentcloud/mps/v20190612/models.py +435 -40
  5. {tencentcloud_sdk_python_mps-3.1.82 → tencentcloud_sdk_python_mps-3.1.85}/tencentcloud/mps/v20190612/mps_client.py +46 -0
  6. {tencentcloud_sdk_python_mps-3.1.82 → tencentcloud_sdk_python_mps-3.1.85}/tencentcloud/mps/v20190612/mps_client_async.py +36 -0
  7. {tencentcloud_sdk_python_mps-3.1.82 → tencentcloud_sdk_python_mps-3.1.85}/tencentcloud_sdk_python_mps.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_mps-3.1.85/tencentcloud_sdk_python_mps.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_mps-3.1.82/tencentcloud_sdk_python_mps.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_mps-3.1.82 → tencentcloud_sdk_python_mps-3.1.85}/README.rst +0 -0
  11. {tencentcloud_sdk_python_mps-3.1.82 → tencentcloud_sdk_python_mps-3.1.85}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_mps-3.1.82 → tencentcloud_sdk_python_mps-3.1.85}/tencentcloud/mps/__init__.py +0 -0
  13. {tencentcloud_sdk_python_mps-3.1.82 → tencentcloud_sdk_python_mps-3.1.85}/tencentcloud/mps/v20190612/__init__.py +0 -0
  14. {tencentcloud_sdk_python_mps-3.1.82 → tencentcloud_sdk_python_mps-3.1.85}/tencentcloud/mps/v20190612/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_mps-3.1.82 → tencentcloud_sdk_python_mps-3.1.85}/tencentcloud_sdk_python_mps.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_mps-3.1.82 → tencentcloud_sdk_python_mps-3.1.85}/tencentcloud_sdk_python_mps.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_mps-3.1.82 → tencentcloud_sdk_python_mps-3.1.85}/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.82
3
+ Version: 3.1.85
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.82
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.85
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.82,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.85,<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.82'
17
+ __version__ = '3.1.85'
@@ -12655,31 +12655,20 @@ class AigcImageExtraParam(AbstractModel):
12655
12655
 
12656
12656
  def __init__(self):
12657
12657
  r"""
12658
- :param _AspectRatio: 指定所生成视频的宽高比。
12659
-
12660
- 不同模型支持的宽高比:
12661
- 1. GEM支持:1:1、3:2、2:3、3:4、4:3、4:5、5:4、9:16、16:9 和 21:9。
12662
-
12663
- 注:具体模型的宽高比参数,可查看相应模型官网获取更完整描述。
12658
+ :param _AspectRatio: <p>指定所生成视频的宽高比。</p><p>不同模型支持的宽高比:</p><ol><li>GEM支持:1:1、3:2、2:3、3:4、4:3、4:5、5:4、9:16、16:9 和 21:9。</li></ol><p>注:具体模型的宽高比参数,可查看相应模型官网获取更完整描述。</p>
12664
12659
  :type AspectRatio: str
12665
- :param _Resolution: 指定图片输出分辨率。
12666
-
12667
- 支持该参数的模型:
12668
- 支持选择: 720P, 1080P, 2K, 4K。
12669
-
12660
+ :param _Resolution: <p>指定图片输出分辨率。</p><p>支持该参数的模型:<br>支持选择: 720P, 1080P, 2K, 4K。</p>
12670
12661
  :type Resolution: str
12662
+ :param _LogoAdd: <p>是否添加图标水印。默认不加。1-添加,0-不添加。</p><p>取值范围:[0, 1]</p><p>默认值:0</p>
12663
+ :type LogoAdd: int
12671
12664
  """
12672
12665
  self._AspectRatio = None
12673
12666
  self._Resolution = None
12667
+ self._LogoAdd = None
12674
12668
 
12675
12669
  @property
12676
12670
  def AspectRatio(self):
12677
- r"""指定所生成视频的宽高比。
12678
-
12679
- 不同模型支持的宽高比:
12680
- 1. GEM支持:1:1、3:2、2:3、3:4、4:3、4:5、5:4、9:16、16:9 和 21:9。
12681
-
12682
- 注:具体模型的宽高比参数,可查看相应模型官网获取更完整描述。
12671
+ r"""<p>指定所生成视频的宽高比。</p><p>不同模型支持的宽高比:</p><ol><li>GEM支持:1:1、3:2、2:3、3:4、4:3、4:5、5:4、9:16、16:9 和 21:9。</li></ol><p>注:具体模型的宽高比参数,可查看相应模型官网获取更完整描述。</p>
12683
12672
  :rtype: str
12684
12673
  """
12685
12674
  return self._AspectRatio
@@ -12690,11 +12679,7 @@ class AigcImageExtraParam(AbstractModel):
12690
12679
 
12691
12680
  @property
12692
12681
  def Resolution(self):
12693
- r"""指定图片输出分辨率。
12694
-
12695
- 支持该参数的模型:
12696
- 支持选择: 720P, 1080P, 2K, 4K。
12697
-
12682
+ r"""<p>指定图片输出分辨率。</p><p>支持该参数的模型:<br>支持选择: 720P, 1080P, 2K, 4K。</p>
12698
12683
  :rtype: str
12699
12684
  """
12700
12685
  return self._Resolution
@@ -12703,10 +12688,22 @@ class AigcImageExtraParam(AbstractModel):
12703
12688
  def Resolution(self, Resolution):
12704
12689
  self._Resolution = Resolution
12705
12690
 
12691
+ @property
12692
+ def LogoAdd(self):
12693
+ r"""<p>是否添加图标水印。默认不加。1-添加,0-不添加。</p><p>取值范围:[0, 1]</p><p>默认值:0</p>
12694
+ :rtype: int
12695
+ """
12696
+ return self._LogoAdd
12697
+
12698
+ @LogoAdd.setter
12699
+ def LogoAdd(self, LogoAdd):
12700
+ self._LogoAdd = LogoAdd
12701
+
12706
12702
 
12707
12703
  def _deserialize(self, params):
12708
12704
  self._AspectRatio = params.get("AspectRatio")
12709
12705
  self._Resolution = params.get("Resolution")
12706
+ self._LogoAdd = params.get("LogoAdd")
12710
12707
  memeber_set = set(params.keys())
12711
12708
  for name, value in vars(self).items():
12712
12709
  property_name = name[1:]
@@ -20322,9 +20319,9 @@ class CreateAigcVideoTaskRequest(AbstractModel):
20322
20319
 
20323
20320
  def __init__(self):
20324
20321
  r"""
20325
- :param _ModelName: <p>模型名称。<br>当前支持的模型列表:<br>Hunyuan,<br>Hailuo,<br>Kling,<br>Vidu,<br>OS,<br>GV。</p>
20322
+ :param _ModelName: <p>模型名称。<br>当前支持的模型列表:<br>Hunyuan,<br>Hailuo,<br>Kling,<br>Vidu,<br>OS,<br>GV,<br>PixVerse。</p>
20326
20323
  :type ModelName: str
20327
- :param _ModelVersion: <p>指定模型特定版本号。默认使用系统当前所支持的模型稳定版本。</p><ol><li>Hailuo, 可选[02、2.3]。</li><li>Kling,可选[2.0、2.1、2.5、O1、2.6、3.0、3.0-Omni]。</li><li>Vidu,可选[q2、q2-pro、q2-turbo、q3-pro、q3-turbo]。</li><li>GV, 可选[3.1]。</li><li>OS,可选[2.0]。</li></ol>
20324
+ :param _ModelVersion: <p>指定模型特定版本号。默认使用系统当前所支持的模型稳定版本。</p><ol><li>Hailuo, 可选[02、2.3、2.3-fast]。</li><li>Kling,可选[1.6、2.0、2.1、2.5、O1、2.6、3.0、3.0-Omni]。</li><li>Vidu,可选[q2、q2-pro、q2-turbo、q3-pro、q3-turbo、q3、q3-mix]。</li><li>GV, 可选[3.1、3.1-fast]。</li><li>OS,可选[2.0]。</li><li>PixVerse,可选[v5.6、v6、c1]</li></ol>
20328
20325
  :type ModelVersion: str
20329
20326
  :param _SceneType: <p>指定场景生视频。<br>注意:仅部分模型支持指定场景。</p><ol><li>Kling支持动作控制,motion_control。</li><li>Mingmou支持横转竖,land2port。</li><li>Vidu支持特效模板,template_effect。</li></ol>
20330
20327
  :type SceneType: str
@@ -20371,7 +20368,7 @@ class CreateAigcVideoTaskRequest(AbstractModel):
20371
20368
 
20372
20369
  @property
20373
20370
  def ModelName(self):
20374
- r"""<p>模型名称。<br>当前支持的模型列表:<br>Hunyuan,<br>Hailuo,<br>Kling,<br>Vidu,<br>OS,<br>GV。</p>
20371
+ r"""<p>模型名称。<br>当前支持的模型列表:<br>Hunyuan,<br>Hailuo,<br>Kling,<br>Vidu,<br>OS,<br>GV,<br>PixVerse。</p>
20375
20372
  :rtype: str
20376
20373
  """
20377
20374
  return self._ModelName
@@ -20382,7 +20379,7 @@ class CreateAigcVideoTaskRequest(AbstractModel):
20382
20379
 
20383
20380
  @property
20384
20381
  def ModelVersion(self):
20385
- r"""<p>指定模型特定版本号。默认使用系统当前所支持的模型稳定版本。</p><ol><li>Hailuo, 可选[02、2.3]。</li><li>Kling,可选[2.0、2.1、2.5、O1、2.6、3.0、3.0-Omni]。</li><li>Vidu,可选[q2、q2-pro、q2-turbo、q3-pro、q3-turbo]。</li><li>GV, 可选[3.1]。</li><li>OS,可选[2.0]。</li></ol>
20382
+ r"""<p>指定模型特定版本号。默认使用系统当前所支持的模型稳定版本。</p><ol><li>Hailuo, 可选[02、2.3、2.3-fast]。</li><li>Kling,可选[1.6、2.0、2.1、2.5、O1、2.6、3.0、3.0-Omni]。</li><li>Vidu,可选[q2、q2-pro、q2-turbo、q3-pro、q3-turbo、q3、q3-mix]。</li><li>GV, 可选[3.1、3.1-fast]。</li><li>OS,可选[2.0]。</li><li>PixVerse,可选[v5.6、v6、c1]</li></ol>
20386
20383
  :rtype: str
20387
20384
  """
20388
20385
  return self._ModelVersion
@@ -41133,6 +41130,160 @@ class DescribeTasksResponse(AbstractModel):
41133
41130
  self._RequestId = params.get("RequestId")
41134
41131
 
41135
41132
 
41133
+ class DescribeTextToSpeechAsyncTaskRequest(AbstractModel):
41134
+ r"""DescribeTextToSpeechAsyncTask请求参数结构体
41135
+
41136
+ """
41137
+
41138
+ def __init__(self):
41139
+ r"""
41140
+ :param _TaskId: <p>任务ID</p>
41141
+ :type TaskId: str
41142
+ """
41143
+ self._TaskId = None
41144
+
41145
+ @property
41146
+ def TaskId(self):
41147
+ r"""<p>任务ID</p>
41148
+ :rtype: str
41149
+ """
41150
+ return self._TaskId
41151
+
41152
+ @TaskId.setter
41153
+ def TaskId(self, TaskId):
41154
+ self._TaskId = TaskId
41155
+
41156
+
41157
+ def _deserialize(self, params):
41158
+ self._TaskId = params.get("TaskId")
41159
+ memeber_set = set(params.keys())
41160
+ for name, value in vars(self).items():
41161
+ property_name = name[1:]
41162
+ if property_name in memeber_set:
41163
+ memeber_set.remove(property_name)
41164
+ if len(memeber_set) > 0:
41165
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
41166
+
41167
+
41168
+
41169
+ class DescribeTextToSpeechAsyncTaskResponse(AbstractModel):
41170
+ r"""DescribeTextToSpeechAsyncTask返回参数结构体
41171
+
41172
+ """
41173
+
41174
+ def __init__(self):
41175
+ r"""
41176
+ :param _ErrorCode: <p>错误码,成功时返回0</p>
41177
+ :type ErrorCode: int
41178
+ :param _Msg: <p>错误信息,成功时返回success</p>
41179
+ :type Msg: str
41180
+ :param _Status: <p>任务状态</p><p>枚举值:</p><ul><li>success: 成功</li><li>fail: 失败</li><li>processing: 处理中</li></ul>
41181
+ :type Status: str
41182
+ :param _AudioUrl: <p>合成音频url</p>
41183
+ :type AudioUrl: str
41184
+ :param _VoiceId: <p>使用的音色ID</p>
41185
+ :type VoiceId: str
41186
+ :param _ExtInfo: <p>扩展信息</p>
41187
+ :type ExtInfo: str
41188
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
41189
+ :type RequestId: str
41190
+ """
41191
+ self._ErrorCode = None
41192
+ self._Msg = None
41193
+ self._Status = None
41194
+ self._AudioUrl = None
41195
+ self._VoiceId = None
41196
+ self._ExtInfo = None
41197
+ self._RequestId = None
41198
+
41199
+ @property
41200
+ def ErrorCode(self):
41201
+ r"""<p>错误码,成功时返回0</p>
41202
+ :rtype: int
41203
+ """
41204
+ return self._ErrorCode
41205
+
41206
+ @ErrorCode.setter
41207
+ def ErrorCode(self, ErrorCode):
41208
+ self._ErrorCode = ErrorCode
41209
+
41210
+ @property
41211
+ def Msg(self):
41212
+ r"""<p>错误信息,成功时返回success</p>
41213
+ :rtype: str
41214
+ """
41215
+ return self._Msg
41216
+
41217
+ @Msg.setter
41218
+ def Msg(self, Msg):
41219
+ self._Msg = Msg
41220
+
41221
+ @property
41222
+ def Status(self):
41223
+ r"""<p>任务状态</p><p>枚举值:</p><ul><li>success: 成功</li><li>fail: 失败</li><li>processing: 处理中</li></ul>
41224
+ :rtype: str
41225
+ """
41226
+ return self._Status
41227
+
41228
+ @Status.setter
41229
+ def Status(self, Status):
41230
+ self._Status = Status
41231
+
41232
+ @property
41233
+ def AudioUrl(self):
41234
+ r"""<p>合成音频url</p>
41235
+ :rtype: str
41236
+ """
41237
+ return self._AudioUrl
41238
+
41239
+ @AudioUrl.setter
41240
+ def AudioUrl(self, AudioUrl):
41241
+ self._AudioUrl = AudioUrl
41242
+
41243
+ @property
41244
+ def VoiceId(self):
41245
+ r"""<p>使用的音色ID</p>
41246
+ :rtype: str
41247
+ """
41248
+ return self._VoiceId
41249
+
41250
+ @VoiceId.setter
41251
+ def VoiceId(self, VoiceId):
41252
+ self._VoiceId = VoiceId
41253
+
41254
+ @property
41255
+ def ExtInfo(self):
41256
+ r"""<p>扩展信息</p>
41257
+ :rtype: str
41258
+ """
41259
+ return self._ExtInfo
41260
+
41261
+ @ExtInfo.setter
41262
+ def ExtInfo(self, ExtInfo):
41263
+ self._ExtInfo = ExtInfo
41264
+
41265
+ @property
41266
+ def RequestId(self):
41267
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
41268
+ :rtype: str
41269
+ """
41270
+ return self._RequestId
41271
+
41272
+ @RequestId.setter
41273
+ def RequestId(self, RequestId):
41274
+ self._RequestId = RequestId
41275
+
41276
+
41277
+ def _deserialize(self, params):
41278
+ self._ErrorCode = params.get("ErrorCode")
41279
+ self._Msg = params.get("Msg")
41280
+ self._Status = params.get("Status")
41281
+ self._AudioUrl = params.get("AudioUrl")
41282
+ self._VoiceId = params.get("VoiceId")
41283
+ self._ExtInfo = params.get("ExtInfo")
41284
+ self._RequestId = params.get("RequestId")
41285
+
41286
+
41136
41287
  class DescribeTranscodeTemplatesRequest(AbstractModel):
41137
41288
  r"""DescribeTranscodeTemplates请求参数结构体
41138
41289
 
@@ -72400,32 +72551,38 @@ class SSAIChannelInfo(AbstractModel):
72400
72551
 
72401
72552
  def __init__(self):
72402
72553
  r"""
72403
- :param _ID: 频道ID,全局唯一标识。
72554
+ :param _ID: <p>频道ID,全局唯一标识。</p>
72404
72555
  :type ID: str
72405
- :param _Name: 频道名称。
72556
+ :param _Name: <p>频道名称。</p>
72406
72557
  :type Name: str
72407
- :param _ContentSource: 广告源信息。
72558
+ :param _ContentSource: <p>广告源信息。</p>
72408
72559
  :type ContentSource: str
72409
- :param _PlaybackPrefix: 播放地址。
72560
+ :param _PlaybackPrefix: <p>播放地址。兼容旧版本参数,推荐使用HlsPlaybackPrefix或DashPlaybackPrefix</p>
72410
72561
  :type PlaybackPrefix: str
72411
- :param _SSAIInfo: 广告插入SSAI配置信息。
72562
+ :param _HlsPlaybackPrefix: <p>hls播放地址</p>
72563
+ :type HlsPlaybackPrefix: str
72564
+ :param _DashPlaybackPrefix: <p>dash播放地址</p>
72565
+ :type DashPlaybackPrefix: str
72566
+ :param _SSAIInfo: <p>广告插入SSAI配置信息。</p>
72412
72567
  :type SSAIInfo: :class:`tencentcloud.mps.v20190612.models.SSAIConf`
72413
- :param _Region: 地域信息。
72568
+ :param _Region: <p>地域信息。</p>
72414
72569
  :type Region: str
72415
- :param _SessionInitPrefix: 用于clickthrough地址
72570
+ :param _SessionInitPrefix: <p>用于clickthrough地址</p>
72416
72571
  :type SessionInitPrefix: str
72417
72572
  """
72418
72573
  self._ID = None
72419
72574
  self._Name = None
72420
72575
  self._ContentSource = None
72421
72576
  self._PlaybackPrefix = None
72577
+ self._HlsPlaybackPrefix = None
72578
+ self._DashPlaybackPrefix = None
72422
72579
  self._SSAIInfo = None
72423
72580
  self._Region = None
72424
72581
  self._SessionInitPrefix = None
72425
72582
 
72426
72583
  @property
72427
72584
  def ID(self):
72428
- r"""频道ID,全局唯一标识。
72585
+ r"""<p>频道ID,全局唯一标识。</p>
72429
72586
  :rtype: str
72430
72587
  """
72431
72588
  return self._ID
@@ -72436,7 +72593,7 @@ class SSAIChannelInfo(AbstractModel):
72436
72593
 
72437
72594
  @property
72438
72595
  def Name(self):
72439
- r"""频道名称。
72596
+ r"""<p>频道名称。</p>
72440
72597
  :rtype: str
72441
72598
  """
72442
72599
  return self._Name
@@ -72447,7 +72604,7 @@ class SSAIChannelInfo(AbstractModel):
72447
72604
 
72448
72605
  @property
72449
72606
  def ContentSource(self):
72450
- r"""广告源信息。
72607
+ r"""<p>广告源信息。</p>
72451
72608
  :rtype: str
72452
72609
  """
72453
72610
  return self._ContentSource
@@ -72458,7 +72615,7 @@ class SSAIChannelInfo(AbstractModel):
72458
72615
 
72459
72616
  @property
72460
72617
  def PlaybackPrefix(self):
72461
- r"""播放地址。
72618
+ r"""<p>播放地址。兼容旧版本参数,推荐使用HlsPlaybackPrefix或DashPlaybackPrefix</p>
72462
72619
  :rtype: str
72463
72620
  """
72464
72621
  return self._PlaybackPrefix
@@ -72467,9 +72624,31 @@ class SSAIChannelInfo(AbstractModel):
72467
72624
  def PlaybackPrefix(self, PlaybackPrefix):
72468
72625
  self._PlaybackPrefix = PlaybackPrefix
72469
72626
 
72627
+ @property
72628
+ def HlsPlaybackPrefix(self):
72629
+ r"""<p>hls播放地址</p>
72630
+ :rtype: str
72631
+ """
72632
+ return self._HlsPlaybackPrefix
72633
+
72634
+ @HlsPlaybackPrefix.setter
72635
+ def HlsPlaybackPrefix(self, HlsPlaybackPrefix):
72636
+ self._HlsPlaybackPrefix = HlsPlaybackPrefix
72637
+
72638
+ @property
72639
+ def DashPlaybackPrefix(self):
72640
+ r"""<p>dash播放地址</p>
72641
+ :rtype: str
72642
+ """
72643
+ return self._DashPlaybackPrefix
72644
+
72645
+ @DashPlaybackPrefix.setter
72646
+ def DashPlaybackPrefix(self, DashPlaybackPrefix):
72647
+ self._DashPlaybackPrefix = DashPlaybackPrefix
72648
+
72470
72649
  @property
72471
72650
  def SSAIInfo(self):
72472
- r"""广告插入SSAI配置信息。
72651
+ r"""<p>广告插入SSAI配置信息。</p>
72473
72652
  :rtype: :class:`tencentcloud.mps.v20190612.models.SSAIConf`
72474
72653
  """
72475
72654
  return self._SSAIInfo
@@ -72480,7 +72659,7 @@ class SSAIChannelInfo(AbstractModel):
72480
72659
 
72481
72660
  @property
72482
72661
  def Region(self):
72483
- r"""地域信息。
72662
+ r"""<p>地域信息。</p>
72484
72663
  :rtype: str
72485
72664
  """
72486
72665
  return self._Region
@@ -72491,7 +72670,7 @@ class SSAIChannelInfo(AbstractModel):
72491
72670
 
72492
72671
  @property
72493
72672
  def SessionInitPrefix(self):
72494
- r"""用于clickthrough地址
72673
+ r"""<p>用于clickthrough地址</p>
72495
72674
  :rtype: str
72496
72675
  """
72497
72676
  return self._SessionInitPrefix
@@ -72506,6 +72685,8 @@ class SSAIChannelInfo(AbstractModel):
72506
72685
  self._Name = params.get("Name")
72507
72686
  self._ContentSource = params.get("ContentSource")
72508
72687
  self._PlaybackPrefix = params.get("PlaybackPrefix")
72688
+ self._HlsPlaybackPrefix = params.get("HlsPlaybackPrefix")
72689
+ self._DashPlaybackPrefix = params.get("DashPlaybackPrefix")
72509
72690
  if params.get("SSAIInfo") is not None:
72510
72691
  self._SSAIInfo = SSAIConf()
72511
72692
  self._SSAIInfo._deserialize(params.get("SSAIInfo"))
@@ -72564,6 +72745,14 @@ class SSAIConf(AbstractModel):
72564
72745
  :type PreRollMaxAllowedDuration: int
72565
72746
  :param _MultiRequest: <p>是否开启多次请求ADS,开启后将优先请求ADS,请求失败后再请求兜底广告</p>
72566
72747
  :type MultiRequest: bool
72748
+ :param _DashOriginManifestType: <p>dash周期类型:SinglePeriod 或 MultiPeriod,默认 MultiPeriod</p>
72749
+ :type DashOriginManifestType: str
72750
+ :param _SlateOnEmptyVast: <p>Empty VAST时是否播放Slate,默认开启(true)</p>
72751
+ :type SlateOnEmptyVast: bool
72752
+ :param _SCTEMarkerDuration: <p>SCTE marker duration,默认180,范围0-3600</p>
72753
+ :type SCTEMarkerDuration: int
72754
+ :param _SecurityGroupId: <p>安全组Id</p>
72755
+ :type SecurityGroupId: str
72567
72756
  """
72568
72757
  self._AdsUrl = None
72569
72758
  self._AdsUrls = None
@@ -72581,6 +72770,10 @@ class SSAIConf(AbstractModel):
72581
72770
  self._PreRollAdsUrls = None
72582
72771
  self._PreRollMaxAllowedDuration = None
72583
72772
  self._MultiRequest = None
72773
+ self._DashOriginManifestType = None
72774
+ self._SlateOnEmptyVast = None
72775
+ self._SCTEMarkerDuration = None
72776
+ self._SecurityGroupId = None
72584
72777
 
72585
72778
  @property
72586
72779
  def AdsUrl(self):
@@ -72762,6 +72955,50 @@ class SSAIConf(AbstractModel):
72762
72955
  def MultiRequest(self, MultiRequest):
72763
72956
  self._MultiRequest = MultiRequest
72764
72957
 
72958
+ @property
72959
+ def DashOriginManifestType(self):
72960
+ r"""<p>dash周期类型:SinglePeriod 或 MultiPeriod,默认 MultiPeriod</p>
72961
+ :rtype: str
72962
+ """
72963
+ return self._DashOriginManifestType
72964
+
72965
+ @DashOriginManifestType.setter
72966
+ def DashOriginManifestType(self, DashOriginManifestType):
72967
+ self._DashOriginManifestType = DashOriginManifestType
72968
+
72969
+ @property
72970
+ def SlateOnEmptyVast(self):
72971
+ r"""<p>Empty VAST时是否播放Slate,默认开启(true)</p>
72972
+ :rtype: bool
72973
+ """
72974
+ return self._SlateOnEmptyVast
72975
+
72976
+ @SlateOnEmptyVast.setter
72977
+ def SlateOnEmptyVast(self, SlateOnEmptyVast):
72978
+ self._SlateOnEmptyVast = SlateOnEmptyVast
72979
+
72980
+ @property
72981
+ def SCTEMarkerDuration(self):
72982
+ r"""<p>SCTE marker duration,默认180,范围0-3600</p>
72983
+ :rtype: int
72984
+ """
72985
+ return self._SCTEMarkerDuration
72986
+
72987
+ @SCTEMarkerDuration.setter
72988
+ def SCTEMarkerDuration(self, SCTEMarkerDuration):
72989
+ self._SCTEMarkerDuration = SCTEMarkerDuration
72990
+
72991
+ @property
72992
+ def SecurityGroupId(self):
72993
+ r"""<p>安全组Id</p>
72994
+ :rtype: str
72995
+ """
72996
+ return self._SecurityGroupId
72997
+
72998
+ @SecurityGroupId.setter
72999
+ def SecurityGroupId(self, SecurityGroupId):
73000
+ self._SecurityGroupId = SecurityGroupId
73001
+
72765
73002
 
72766
73003
  def _deserialize(self, params):
72767
73004
  self._AdsUrl = params.get("AdsUrl")
@@ -72785,6 +73022,10 @@ class SSAIConf(AbstractModel):
72785
73022
  self._PreRollAdsUrls = params.get("PreRollAdsUrls")
72786
73023
  self._PreRollMaxAllowedDuration = params.get("PreRollMaxAllowedDuration")
72787
73024
  self._MultiRequest = params.get("MultiRequest")
73025
+ self._DashOriginManifestType = params.get("DashOriginManifestType")
73026
+ self._SlateOnEmptyVast = params.get("SlateOnEmptyVast")
73027
+ self._SCTEMarkerDuration = params.get("SCTEMarkerDuration")
73028
+ self._SecurityGroupId = params.get("SecurityGroupId")
72788
73029
  memeber_set = set(params.keys())
72789
73030
  for name, value in vars(self).items():
72790
73031
  property_name = name[1:]
@@ -83798,6 +84039,160 @@ class TerrorismOcrReviewTemplateInfoForUpdate(AbstractModel):
83798
84039
 
83799
84040
 
83800
84041
 
84042
+ class TextToSpeechAsyncRequest(AbstractModel):
84043
+ r"""TextToSpeechAsync请求参数结构体
84044
+
84045
+ """
84046
+
84047
+ def __init__(self):
84048
+ r"""
84049
+ :param _Text: <p>语音合成文本</p>
84050
+ :type Text: str
84051
+ :param _VoiceId: <p>音色ID</p>
84052
+ :type VoiceId: str
84053
+ :param _TextLang: <p>文本语言,默认中文</p>
84054
+ :type TextLang: str
84055
+ :param _ExtParam: <p>扩展参数,json字符串</p><p>synExt Object 语音合成扩展参数<br>  duration Float 合成音频时长,单位秒,示例:5.2<br>  sampleRate Integer 合成音频采样率,默认16000,支持[8000,16000,22050,32000,44100]<br>  pitch Integer 音调,默认0原音色输出,取值[-12, 12]</p><p>transExt Object 翻译扩展参数<br>  transInfo Object<br>   transDst String 目标语言,如en<br>  transRequirement String 翻译要求</p>
84056
+ :type ExtParam: str
84057
+ """
84058
+ self._Text = None
84059
+ self._VoiceId = None
84060
+ self._TextLang = None
84061
+ self._ExtParam = None
84062
+
84063
+ @property
84064
+ def Text(self):
84065
+ r"""<p>语音合成文本</p>
84066
+ :rtype: str
84067
+ """
84068
+ return self._Text
84069
+
84070
+ @Text.setter
84071
+ def Text(self, Text):
84072
+ self._Text = Text
84073
+
84074
+ @property
84075
+ def VoiceId(self):
84076
+ r"""<p>音色ID</p>
84077
+ :rtype: str
84078
+ """
84079
+ return self._VoiceId
84080
+
84081
+ @VoiceId.setter
84082
+ def VoiceId(self, VoiceId):
84083
+ self._VoiceId = VoiceId
84084
+
84085
+ @property
84086
+ def TextLang(self):
84087
+ r"""<p>文本语言,默认中文</p>
84088
+ :rtype: str
84089
+ """
84090
+ return self._TextLang
84091
+
84092
+ @TextLang.setter
84093
+ def TextLang(self, TextLang):
84094
+ self._TextLang = TextLang
84095
+
84096
+ @property
84097
+ def ExtParam(self):
84098
+ r"""<p>扩展参数,json字符串</p><p>synExt Object 语音合成扩展参数<br>  duration Float 合成音频时长,单位秒,示例:5.2<br>  sampleRate Integer 合成音频采样率,默认16000,支持[8000,16000,22050,32000,44100]<br>  pitch Integer 音调,默认0原音色输出,取值[-12, 12]</p><p>transExt Object 翻译扩展参数<br>  transInfo Object<br>   transDst String 目标语言,如en<br>  transRequirement String 翻译要求</p>
84099
+ :rtype: str
84100
+ """
84101
+ return self._ExtParam
84102
+
84103
+ @ExtParam.setter
84104
+ def ExtParam(self, ExtParam):
84105
+ self._ExtParam = ExtParam
84106
+
84107
+
84108
+ def _deserialize(self, params):
84109
+ self._Text = params.get("Text")
84110
+ self._VoiceId = params.get("VoiceId")
84111
+ self._TextLang = params.get("TextLang")
84112
+ self._ExtParam = params.get("ExtParam")
84113
+ memeber_set = set(params.keys())
84114
+ for name, value in vars(self).items():
84115
+ property_name = name[1:]
84116
+ if property_name in memeber_set:
84117
+ memeber_set.remove(property_name)
84118
+ if len(memeber_set) > 0:
84119
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
84120
+
84121
+
84122
+
84123
+ class TextToSpeechAsyncResponse(AbstractModel):
84124
+ r"""TextToSpeechAsync返回参数结构体
84125
+
84126
+ """
84127
+
84128
+ def __init__(self):
84129
+ r"""
84130
+ :param _ErrorCode: <p>错误码,成功时返回0</p>
84131
+ :type ErrorCode: int
84132
+ :param _Msg: <p>错误信息,成功时返回success</p>
84133
+ :type Msg: str
84134
+ :param _TaskId: <p>任务ID,使用该ID查询结果</p>
84135
+ :type TaskId: str
84136
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
84137
+ :type RequestId: str
84138
+ """
84139
+ self._ErrorCode = None
84140
+ self._Msg = None
84141
+ self._TaskId = None
84142
+ self._RequestId = None
84143
+
84144
+ @property
84145
+ def ErrorCode(self):
84146
+ r"""<p>错误码,成功时返回0</p>
84147
+ :rtype: int
84148
+ """
84149
+ return self._ErrorCode
84150
+
84151
+ @ErrorCode.setter
84152
+ def ErrorCode(self, ErrorCode):
84153
+ self._ErrorCode = ErrorCode
84154
+
84155
+ @property
84156
+ def Msg(self):
84157
+ r"""<p>错误信息,成功时返回success</p>
84158
+ :rtype: str
84159
+ """
84160
+ return self._Msg
84161
+
84162
+ @Msg.setter
84163
+ def Msg(self, Msg):
84164
+ self._Msg = Msg
84165
+
84166
+ @property
84167
+ def TaskId(self):
84168
+ r"""<p>任务ID,使用该ID查询结果</p>
84169
+ :rtype: str
84170
+ """
84171
+ return self._TaskId
84172
+
84173
+ @TaskId.setter
84174
+ def TaskId(self, TaskId):
84175
+ self._TaskId = TaskId
84176
+
84177
+ @property
84178
+ def RequestId(self):
84179
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
84180
+ :rtype: str
84181
+ """
84182
+ return self._RequestId
84183
+
84184
+ @RequestId.setter
84185
+ def RequestId(self, RequestId):
84186
+ self._RequestId = RequestId
84187
+
84188
+
84189
+ def _deserialize(self, params):
84190
+ self._ErrorCode = params.get("ErrorCode")
84191
+ self._Msg = params.get("Msg")
84192
+ self._TaskId = params.get("TaskId")
84193
+ self._RequestId = params.get("RequestId")
84194
+
84195
+
83801
84196
  class TextTranslationRequest(AbstractModel):
83802
84197
  r"""TextTranslation请求参数结构体
83803
84198
 
@@ -3234,6 +3234,29 @@ class MpsClient(AbstractClient):
3234
3234
  raise TencentCloudSDKException(type(e).__name__, str(e))
3235
3235
 
3236
3236
 
3237
+ def DescribeTextToSpeechAsyncTask(self, request):
3238
+ r"""查询异步语音合成任务结果
3239
+
3240
+ :param request: Request instance for DescribeTextToSpeechAsyncTask.
3241
+ :type request: :class:`tencentcloud.mps.v20190612.models.DescribeTextToSpeechAsyncTaskRequest`
3242
+ :rtype: :class:`tencentcloud.mps.v20190612.models.DescribeTextToSpeechAsyncTaskResponse`
3243
+
3244
+ """
3245
+ try:
3246
+ params = request._serialize()
3247
+ headers = request.headers
3248
+ body = self.call("DescribeTextToSpeechAsyncTask", params, headers=headers)
3249
+ response = json.loads(body)
3250
+ model = models.DescribeTextToSpeechAsyncTaskResponse()
3251
+ model._deserialize(response["Response"])
3252
+ return model
3253
+ except Exception as e:
3254
+ if isinstance(e, TencentCloudSDKException):
3255
+ raise
3256
+ else:
3257
+ raise TencentCloudSDKException(type(e).__name__, str(e))
3258
+
3259
+
3237
3260
  def DescribeTranscodeTemplates(self, request):
3238
3261
  r"""根据转码模板唯一标识,获取转码模板详情列表。返回结果包含符合条件的所有用户自定义模板及[系统预置转码模板](https://cloud.tencent.com/document/product/266/33476#.E9.A2.84.E7.BD.AE.E8.BD.AC.E7.A0.81.E6.A8.A1.E6.9D.BF)。
3239
3262
 
@@ -4724,6 +4747,29 @@ class MpsClient(AbstractClient):
4724
4747
  raise TencentCloudSDKException(type(e).__name__, str(e))
4725
4748
 
4726
4749
 
4750
+ def TextToSpeechAsync(self, request):
4751
+ r"""异步语音合成接口,支持长文本转语音
4752
+
4753
+ :param request: Request instance for TextToSpeechAsync.
4754
+ :type request: :class:`tencentcloud.mps.v20190612.models.TextToSpeechAsyncRequest`
4755
+ :rtype: :class:`tencentcloud.mps.v20190612.models.TextToSpeechAsyncResponse`
4756
+
4757
+ """
4758
+ try:
4759
+ params = request._serialize()
4760
+ headers = request.headers
4761
+ body = self.call("TextToSpeechAsync", params, headers=headers)
4762
+ response = json.loads(body)
4763
+ model = models.TextToSpeechAsyncResponse()
4764
+ model._deserialize(response["Response"])
4765
+ return model
4766
+ except Exception as e:
4767
+ if isinstance(e, TencentCloudSDKException):
4768
+ raise
4769
+ else:
4770
+ raise TencentCloudSDKException(type(e).__name__, str(e))
4771
+
4772
+
4727
4773
  def TextTranslation(self, request):
4728
4774
  r"""文本翻译,使用 翻译字幕(附加语种)计费项,按1100字符(按照 Unicode 码点数 统计,hello 算5个字符,你好 算2个字符)/分钟折算到时长计费
4729
4775
 
@@ -2543,6 +2543,24 @@ class MpsClient(AbstractClient):
2543
2543
 
2544
2544
  return await self.call_and_deserialize(**kwargs)
2545
2545
 
2546
+ async def DescribeTextToSpeechAsyncTask(
2547
+ self,
2548
+ request: models.DescribeTextToSpeechAsyncTaskRequest,
2549
+ opts: Dict = None,
2550
+ ) -> models.DescribeTextToSpeechAsyncTaskResponse:
2551
+ """
2552
+ 查询异步语音合成任务结果
2553
+ """
2554
+
2555
+ kwargs = {}
2556
+ kwargs["action"] = "DescribeTextToSpeechAsyncTask"
2557
+ kwargs["params"] = request._serialize()
2558
+ kwargs["resp_cls"] = models.DescribeTextToSpeechAsyncTaskResponse
2559
+ kwargs["headers"] = request.headers
2560
+ kwargs["opts"] = opts or {}
2561
+
2562
+ return await self.call_and_deserialize(**kwargs)
2563
+
2546
2564
  async def DescribeTranscodeTemplates(
2547
2565
  self,
2548
2566
  request: models.DescribeTranscodeTemplatesRequest,
@@ -3718,6 +3736,24 @@ class MpsClient(AbstractClient):
3718
3736
 
3719
3737
  return await self.call_and_deserialize(**kwargs)
3720
3738
 
3739
+ async def TextToSpeechAsync(
3740
+ self,
3741
+ request: models.TextToSpeechAsyncRequest,
3742
+ opts: Dict = None,
3743
+ ) -> models.TextToSpeechAsyncResponse:
3744
+ """
3745
+ 异步语音合成接口,支持长文本转语音
3746
+ """
3747
+
3748
+ kwargs = {}
3749
+ kwargs["action"] = "TextToSpeechAsync"
3750
+ kwargs["params"] = request._serialize()
3751
+ kwargs["resp_cls"] = models.TextToSpeechAsyncResponse
3752
+ kwargs["headers"] = request.headers
3753
+ kwargs["opts"] = opts or {}
3754
+
3755
+ return await self.call_and_deserialize(**kwargs)
3756
+
3721
3757
  async def TextTranslation(
3722
3758
  self,
3723
3759
  request: models.TextTranslationRequest,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-mps
3
- Version: 3.1.82
3
+ Version: 3.1.85
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.82
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.85
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.85
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.82