tencentcloud-sdk-python-vod 3.1.196__tar.gz → 3.1.203__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 (22) hide show
  1. {tencentcloud_sdk_python_vod-3.1.196 → tencentcloud_sdk_python_vod-3.1.203}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_vod-3.1.196 → tencentcloud_sdk_python_vod-3.1.203}/setup.py +1 -1
  3. {tencentcloud_sdk_python_vod-3.1.196 → tencentcloud_sdk_python_vod-3.1.203}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_vod-3.1.196 → tencentcloud_sdk_python_vod-3.1.203}/tencentcloud/vod/v20180717/models.py +602 -12
  5. {tencentcloud_sdk_python_vod-3.1.196 → tencentcloud_sdk_python_vod-3.1.203}/tencentcloud/vod/v20180717/vod_client.py +1 -1
  6. {tencentcloud_sdk_python_vod-3.1.196 → tencentcloud_sdk_python_vod-3.1.203}/tencentcloud/vod/v20180717/vod_client_async.py +1 -1
  7. {tencentcloud_sdk_python_vod-3.1.196 → tencentcloud_sdk_python_vod-3.1.203}/tencentcloud_sdk_python_vod.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_vod-3.1.203/tencentcloud_sdk_python_vod.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_vod-3.1.196/tencentcloud_sdk_python_vod.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_vod-3.1.196 → tencentcloud_sdk_python_vod-3.1.203}/README.rst +0 -0
  11. {tencentcloud_sdk_python_vod-3.1.196 → tencentcloud_sdk_python_vod-3.1.203}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_vod-3.1.196 → tencentcloud_sdk_python_vod-3.1.203}/tencentcloud/vod/__init__.py +0 -0
  13. {tencentcloud_sdk_python_vod-3.1.196 → tencentcloud_sdk_python_vod-3.1.203}/tencentcloud/vod/v20180717/__init__.py +0 -0
  14. {tencentcloud_sdk_python_vod-3.1.196 → tencentcloud_sdk_python_vod-3.1.203}/tencentcloud/vod/v20180717/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_vod-3.1.196 → tencentcloud_sdk_python_vod-3.1.203}/tencentcloud/vod/v20240718/__init__.py +0 -0
  16. {tencentcloud_sdk_python_vod-3.1.196 → tencentcloud_sdk_python_vod-3.1.203}/tencentcloud/vod/v20240718/errorcodes.py +0 -0
  17. {tencentcloud_sdk_python_vod-3.1.196 → tencentcloud_sdk_python_vod-3.1.203}/tencentcloud/vod/v20240718/models.py +0 -0
  18. {tencentcloud_sdk_python_vod-3.1.196 → tencentcloud_sdk_python_vod-3.1.203}/tencentcloud/vod/v20240718/vod_client.py +0 -0
  19. {tencentcloud_sdk_python_vod-3.1.196 → tencentcloud_sdk_python_vod-3.1.203}/tencentcloud/vod/v20240718/vod_client_async.py +0 -0
  20. {tencentcloud_sdk_python_vod-3.1.196 → tencentcloud_sdk_python_vod-3.1.203}/tencentcloud_sdk_python_vod.egg-info/SOURCES.txt +0 -0
  21. {tencentcloud_sdk_python_vod-3.1.196 → tencentcloud_sdk_python_vod-3.1.203}/tencentcloud_sdk_python_vod.egg-info/dependency_links.txt +0 -0
  22. {tencentcloud_sdk_python_vod-3.1.196 → tencentcloud_sdk_python_vod-3.1.203}/tencentcloud_sdk_python_vod.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-vod
3
- Version: 3.1.196
3
+ Version: 3.1.203
4
4
  Summary: Tencent Cloud Vod 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.196
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.203
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-vod',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.196,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.203,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Vod SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.196'
17
+ __version__ = '3.1.203'
@@ -13769,6 +13769,153 @@ class AigcImageTaskOutputFileInfo(AbstractModel):
13769
13769
 
13770
13770
 
13771
13771
 
13772
+ class AigcModelQuota(AbstractModel):
13773
+ r"""AIGC 单配额模型。
13774
+
13775
+ """
13776
+
13777
+ def __init__(self):
13778
+ r"""
13779
+ :param _ModelName: <p>模型名称。</p>
13780
+ :type ModelName: str
13781
+ :param _QuotaLimit: <p>任务的配额数。</p><p>单位:张/秒。</p><ul><li>当 QuotaType 为 Image 时,单位为张;</li><li>当 QuotaType 为 Video 时,单位为秒;</li></ul>
13782
+ :type QuotaLimit: int
13783
+ :param _ModelVersion: <p>模型版本。</p>
13784
+ :type ModelVersion: str
13785
+ """
13786
+ self._ModelName = None
13787
+ self._QuotaLimit = None
13788
+ self._ModelVersion = None
13789
+
13790
+ @property
13791
+ def ModelName(self):
13792
+ r"""<p>模型名称。</p>
13793
+ :rtype: str
13794
+ """
13795
+ return self._ModelName
13796
+
13797
+ @ModelName.setter
13798
+ def ModelName(self, ModelName):
13799
+ self._ModelName = ModelName
13800
+
13801
+ @property
13802
+ def QuotaLimit(self):
13803
+ r"""<p>任务的配额数。</p><p>单位:张/秒。</p><ul><li>当 QuotaType 为 Image 时,单位为张;</li><li>当 QuotaType 为 Video 时,单位为秒;</li></ul>
13804
+ :rtype: int
13805
+ """
13806
+ return self._QuotaLimit
13807
+
13808
+ @QuotaLimit.setter
13809
+ def QuotaLimit(self, QuotaLimit):
13810
+ self._QuotaLimit = QuotaLimit
13811
+
13812
+ @property
13813
+ def ModelVersion(self):
13814
+ r"""<p>模型版本。</p>
13815
+ :rtype: str
13816
+ """
13817
+ return self._ModelVersion
13818
+
13819
+ @ModelVersion.setter
13820
+ def ModelVersion(self, ModelVersion):
13821
+ self._ModelVersion = ModelVersion
13822
+
13823
+
13824
+ def _deserialize(self, params):
13825
+ self._ModelName = params.get("ModelName")
13826
+ self._QuotaLimit = params.get("QuotaLimit")
13827
+ self._ModelVersion = params.get("ModelVersion")
13828
+ memeber_set = set(params.keys())
13829
+ for name, value in vars(self).items():
13830
+ property_name = name[1:]
13831
+ if property_name in memeber_set:
13832
+ memeber_set.remove(property_name)
13833
+ if len(memeber_set) > 0:
13834
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
13835
+
13836
+
13837
+
13838
+ class AigcModelQuotaWithUsage(AbstractModel):
13839
+ r"""AIGC 单模型配额与用量信息。
13840
+
13841
+ """
13842
+
13843
+ def __init__(self):
13844
+ r"""
13845
+ :param _ModelName: <p>模型名称。</p>
13846
+ :type ModelName: str
13847
+ :param _ModelVersion: <p>模型版本。</p>
13848
+ :type ModelVersion: str
13849
+ :param _QuotaLimit: <p>任务的配额数。</p><p>单位:张/秒。</p><ul><li>当 QuotaType 为 Image 时,单位为张;</li><li>当 QuotaType 为 Video 时,单位为秒;</li></ul>
13850
+ :type QuotaLimit: int
13851
+ :param _Usage: <p>已经使用的用量数</p><p>单位:</p><ul><li>当QuotaLimit=Image时,单位为张</li><li>当QuotaLimit=Video时,单位为秒</li></ul>
13852
+ :type Usage: int
13853
+ """
13854
+ self._ModelName = None
13855
+ self._ModelVersion = None
13856
+ self._QuotaLimit = None
13857
+ self._Usage = None
13858
+
13859
+ @property
13860
+ def ModelName(self):
13861
+ r"""<p>模型名称。</p>
13862
+ :rtype: str
13863
+ """
13864
+ return self._ModelName
13865
+
13866
+ @ModelName.setter
13867
+ def ModelName(self, ModelName):
13868
+ self._ModelName = ModelName
13869
+
13870
+ @property
13871
+ def ModelVersion(self):
13872
+ r"""<p>模型版本。</p>
13873
+ :rtype: str
13874
+ """
13875
+ return self._ModelVersion
13876
+
13877
+ @ModelVersion.setter
13878
+ def ModelVersion(self, ModelVersion):
13879
+ self._ModelVersion = ModelVersion
13880
+
13881
+ @property
13882
+ def QuotaLimit(self):
13883
+ r"""<p>任务的配额数。</p><p>单位:张/秒。</p><ul><li>当 QuotaType 为 Image 时,单位为张;</li><li>当 QuotaType 为 Video 时,单位为秒;</li></ul>
13884
+ :rtype: int
13885
+ """
13886
+ return self._QuotaLimit
13887
+
13888
+ @QuotaLimit.setter
13889
+ def QuotaLimit(self, QuotaLimit):
13890
+ self._QuotaLimit = QuotaLimit
13891
+
13892
+ @property
13893
+ def Usage(self):
13894
+ r"""<p>已经使用的用量数</p><p>单位:</p><ul><li>当QuotaLimit=Image时,单位为张</li><li>当QuotaLimit=Video时,单位为秒</li></ul>
13895
+ :rtype: int
13896
+ """
13897
+ return self._Usage
13898
+
13899
+ @Usage.setter
13900
+ def Usage(self, Usage):
13901
+ self._Usage = Usage
13902
+
13903
+
13904
+ def _deserialize(self, params):
13905
+ self._ModelName = params.get("ModelName")
13906
+ self._ModelVersion = params.get("ModelVersion")
13907
+ self._QuotaLimit = params.get("QuotaLimit")
13908
+ self._Usage = params.get("Usage")
13909
+ memeber_set = set(params.keys())
13910
+ for name, value in vars(self).items():
13911
+ property_name = name[1:]
13912
+ if property_name in memeber_set:
13913
+ memeber_set.remove(property_name)
13914
+ if len(memeber_set) > 0:
13915
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
13916
+
13917
+
13918
+
13772
13919
  class AigcQuotaItem(AbstractModel):
13773
13920
  r"""AIGC 配额
13774
13921
 
@@ -13784,11 +13931,23 @@ class AigcQuotaItem(AbstractModel):
13784
13931
  :type QuotaLimit: int
13785
13932
  :param _Usage: <p>已经使用的用量数</p><p>单位:</p><ul><li>当QuotaLimit=Image时,单位为张</li><li>当QuotaLimit=Video时,单位为秒</li><li>当QuotaLimit=Text时,单位为token</li></ul>
13786
13933
  :type Usage: int
13934
+ :param _QuotaPeriod: <p>配额重置周期。</p><p>枚举值:</p><ul><li>Day: 每天重置。</li><li>Month: 每月指定日期重置。</li><li>Total: 永不重置,QuotaLimit参数即为总额度。</li></ul>
13935
+ :type QuotaPeriod: str
13936
+ :param _ResetDay: <p>每月配额的重置日期,仅QuotaPeriod=Month时有效。</p><p>如果当月无所选日期时,顺延至次月 1 日 00:00 重置。</p>
13937
+ :type ResetDay: int
13938
+ :param _ModelQuotaSwitch: <p>是否开启按单个模型设置配额</p><p>枚举值:</p><ul><li>ON: 打开</li><li>OFF: 关闭</li></ul><p>默认值:OFF</p>
13939
+ :type ModelQuotaSwitch: str
13940
+ :param _ModelQuotas: <p>按单个模型设置的配额,仅ModelQuotaSwitch=ON时有效。</p>
13941
+ :type ModelQuotas: list of AigcModelQuotaWithUsage
13787
13942
  """
13788
13943
  self._QuotaType = None
13789
13944
  self._ApiToken = None
13790
13945
  self._QuotaLimit = None
13791
13946
  self._Usage = None
13947
+ self._QuotaPeriod = None
13948
+ self._ResetDay = None
13949
+ self._ModelQuotaSwitch = None
13950
+ self._ModelQuotas = None
13792
13951
 
13793
13952
  @property
13794
13953
  def QuotaType(self):
@@ -13834,12 +13993,65 @@ class AigcQuotaItem(AbstractModel):
13834
13993
  def Usage(self, Usage):
13835
13994
  self._Usage = Usage
13836
13995
 
13996
+ @property
13997
+ def QuotaPeriod(self):
13998
+ r"""<p>配额重置周期。</p><p>枚举值:</p><ul><li>Day: 每天重置。</li><li>Month: 每月指定日期重置。</li><li>Total: 永不重置,QuotaLimit参数即为总额度。</li></ul>
13999
+ :rtype: str
14000
+ """
14001
+ return self._QuotaPeriod
14002
+
14003
+ @QuotaPeriod.setter
14004
+ def QuotaPeriod(self, QuotaPeriod):
14005
+ self._QuotaPeriod = QuotaPeriod
14006
+
14007
+ @property
14008
+ def ResetDay(self):
14009
+ r"""<p>每月配额的重置日期,仅QuotaPeriod=Month时有效。</p><p>如果当月无所选日期时,顺延至次月 1 日 00:00 重置。</p>
14010
+ :rtype: int
14011
+ """
14012
+ return self._ResetDay
14013
+
14014
+ @ResetDay.setter
14015
+ def ResetDay(self, ResetDay):
14016
+ self._ResetDay = ResetDay
14017
+
14018
+ @property
14019
+ def ModelQuotaSwitch(self):
14020
+ r"""<p>是否开启按单个模型设置配额</p><p>枚举值:</p><ul><li>ON: 打开</li><li>OFF: 关闭</li></ul><p>默认值:OFF</p>
14021
+ :rtype: str
14022
+ """
14023
+ return self._ModelQuotaSwitch
14024
+
14025
+ @ModelQuotaSwitch.setter
14026
+ def ModelQuotaSwitch(self, ModelQuotaSwitch):
14027
+ self._ModelQuotaSwitch = ModelQuotaSwitch
14028
+
14029
+ @property
14030
+ def ModelQuotas(self):
14031
+ r"""<p>按单个模型设置的配额,仅ModelQuotaSwitch=ON时有效。</p>
14032
+ :rtype: list of AigcModelQuotaWithUsage
14033
+ """
14034
+ return self._ModelQuotas
14035
+
14036
+ @ModelQuotas.setter
14037
+ def ModelQuotas(self, ModelQuotas):
14038
+ self._ModelQuotas = ModelQuotas
14039
+
13837
14040
 
13838
14041
  def _deserialize(self, params):
13839
14042
  self._QuotaType = params.get("QuotaType")
13840
14043
  self._ApiToken = params.get("ApiToken")
13841
14044
  self._QuotaLimit = params.get("QuotaLimit")
13842
14045
  self._Usage = params.get("Usage")
14046
+ self._QuotaPeriod = params.get("QuotaPeriod")
14047
+ self._ResetDay = params.get("ResetDay")
14048
+ self._ModelQuotaSwitch = params.get("ModelQuotaSwitch")
14049
+ if params.get("ModelQuotas") is not None:
14050
+ self._ModelQuotas = []
14051
+ for item in params.get("ModelQuotas"):
14052
+ obj = AigcModelQuotaWithUsage()
14053
+ obj._deserialize(item)
14054
+ self._ModelQuotas.append(obj)
13843
14055
  memeber_set = set(params.keys())
13844
14056
  for name, value in vars(self).items():
13845
14057
  property_name = name[1:]
@@ -20228,6 +20440,8 @@ class CloneVoiceAsyncRequest(AbstractModel):
20228
20440
  r"""
20229
20441
  :param _SubAppId: <p>点播应用 ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</p>
20230
20442
  :type SubAppId: str
20443
+ :param _ModelName: <p>模型名,不填默认为MiniMax模型。</p> 枚举值: <ul><li>MiniMax</li><li>ElevenLabs</li></ul>
20444
+ :type ModelName: str
20231
20445
  :param _AudioData: <p>克隆音频base64编码。</p>
20232
20446
  :type AudioData: str
20233
20447
  :param _AudioUrl: <p>克隆音频Url,AudioData为空时有效</p>
@@ -20236,7 +20450,7 @@ class CloneVoiceAsyncRequest(AbstractModel):
20236
20450
  :type AudioFileId: str
20237
20451
  :param _LanguageBoost: <p>语言增强,如 "zh" "en" "auto",默认 "auto"</p>
20238
20452
  :type LanguageBoost: str
20239
- :param _ExtParam: <p>音色克隆拓展参数。<code>ExtParam</code> 支持的字段:</p><ul> <li><code>text</code> (string):试听合成文本,最大 <code>1000</code> 字符;非空时必须同时传 <code>tts_model</code>,克隆成功后返回试听音频 <code>DemoAudio</code>。</li> <li><code>model</code> (string):克隆模型,缺省 <code>minimax-voice-clone</code>。</li> <li><code>tts_model</code> (string):合成试听音频用的模型,可选 <code>minimax-speech-2.8-hd</code>、<code>minimax-speech-2.8-turbo</code>、<code>minimax-speech-2.6-hd</code>、<code>minimax-speech-2.6-turbo</code>、<code>minimax-speech-02-hd</code>、<code>minimax-speech-02-turbo</code>;<code>text</code> 非空时必填。</li> <li><code>text_lang</code> (string):试听文本语言。</li> <li><code>voice_profile</code> (object):音色画像,可选字段: <ul> <li><code>name</code> (string):音色名称。</li> <li><code>description</code> (string):音色描述。</li> <li><code>gender</code> (string):性别,可选 <code>male</code> / <code>female</code> / <code>unknown</code>。</li> <li><code>age</code> (string):年龄段,可选 <code>child</code> / <code>teenager</code> / <code>youth</code> / <code>middle_aged</code> / <code>senior</code> / <code>unknown</code>。</li> <li><code>languages</code> (string[]):支持语言,如 <code>["zh", "en"]</code>。</li> <li><code>labels</code> (string[]):音色标签,如 <code>["磁性"]</code>。</li> <li><code>scenes</code> (string[]):适用场景,如 <code>["解说"]</code>。</li> </ul> </li></ul>
20453
+ :param _ExtParam: <p><strong>ExtParam</strong> JSON 字符串字段,用于指定各模型的高级音色参数。</p><hr><h3 id="Clone">通用参数</h3><ul><li>text(string):试听文本,最大 1000 字符;传入后返回试听音频 DemoAudio</li><li>tts_model(string):试听文本合成模型,text 非空时必填;按 ModelName 模型系列白名单校验</li><li>text_lang(string):试听文本语言,如 zh</li><li>voice_profile.name(string):音色名称</li><li>voice_profile.description(string):音色描述</li><li>voice_profile.gender(string):性别,可选 male、female、unknown</li><li>voice_profile.age(string):年龄段,可选 child、teenager、youth、middle_aged、senior、unknown</li><li>voice_profile.languages(array of string):语言,如 ["zh"]</li><li>voice_profile.labels(array of string):标签,如 ["磁性"]</li><li>voice_profile.scenes(array of string):场景,如 ["解说"]</li></ul><hr><h3 id="CloneElevenLabs">ElevenLabs</h3><ul><li>voice_name(string):音色名称;未传时回退取 voice_profile.name,两者都缺时使用默认名称</li><li>description(string):音色描述;未传时回退取 voice_profile.description</li><li>labels(map&lt;string,string&gt;):音色标签,官方推荐键 language、accent、gender、age;最多 16 项,键值各不超过 256 字节</li><li>remove_background_noise(boolean):是否用音频隔离模型去除背景噪声,默认 false;样本本身无噪声时开启可能降低质量</li></ul><hr>
20240
20454
  :type ExtParam: str
20241
20455
  :param _SessionContext: <p>标识来源上下文,用于透传用户请求信息,在回调和任务流状态变更回调将返回该字段值,最长 1000 个字符。</p>
20242
20456
  :type SessionContext: str
@@ -20244,6 +20458,7 @@ class CloneVoiceAsyncRequest(AbstractModel):
20244
20458
  :type SessionId: str
20245
20459
  """
20246
20460
  self._SubAppId = None
20461
+ self._ModelName = None
20247
20462
  self._AudioData = None
20248
20463
  self._AudioUrl = None
20249
20464
  self._AudioFileId = None
@@ -20263,6 +20478,17 @@ class CloneVoiceAsyncRequest(AbstractModel):
20263
20478
  def SubAppId(self, SubAppId):
20264
20479
  self._SubAppId = SubAppId
20265
20480
 
20481
+ @property
20482
+ def ModelName(self):
20483
+ r"""<p>模型名,不填默认为MiniMax模型。</p> 枚举值: <ul><li>MiniMax</li><li>ElevenLabs</li></ul>
20484
+ :rtype: str
20485
+ """
20486
+ return self._ModelName
20487
+
20488
+ @ModelName.setter
20489
+ def ModelName(self, ModelName):
20490
+ self._ModelName = ModelName
20491
+
20266
20492
  @property
20267
20493
  def AudioData(self):
20268
20494
  r"""<p>克隆音频base64编码。</p>
@@ -20309,7 +20535,7 @@ class CloneVoiceAsyncRequest(AbstractModel):
20309
20535
 
20310
20536
  @property
20311
20537
  def ExtParam(self):
20312
- r"""<p>音色克隆拓展参数。<code>ExtParam</code> 支持的字段:</p><ul> <li><code>text</code> (string):试听合成文本,最大 <code>1000</code> 字符;非空时必须同时传 <code>tts_model</code>,克隆成功后返回试听音频 <code>DemoAudio</code>。</li> <li><code>model</code> (string):克隆模型,缺省 <code>minimax-voice-clone</code>。</li> <li><code>tts_model</code> (string):合成试听音频用的模型,可选 <code>minimax-speech-2.8-hd</code>、<code>minimax-speech-2.8-turbo</code>、<code>minimax-speech-2.6-hd</code>、<code>minimax-speech-2.6-turbo</code>、<code>minimax-speech-02-hd</code>、<code>minimax-speech-02-turbo</code>;<code>text</code> 非空时必填。</li> <li><code>text_lang</code> (string):试听文本语言。</li> <li><code>voice_profile</code> (object):音色画像,可选字段: <ul> <li><code>name</code> (string):音色名称。</li> <li><code>description</code> (string):音色描述。</li> <li><code>gender</code> (string):性别,可选 <code>male</code> / <code>female</code> / <code>unknown</code>。</li> <li><code>age</code> (string):年龄段,可选 <code>child</code> / <code>teenager</code> / <code>youth</code> / <code>middle_aged</code> / <code>senior</code> / <code>unknown</code>。</li> <li><code>languages</code> (string[]):支持语言,如 <code>["zh", "en"]</code>。</li> <li><code>labels</code> (string[]):音色标签,如 <code>["磁性"]</code>。</li> <li><code>scenes</code> (string[]):适用场景,如 <code>["解说"]</code>。</li> </ul> </li></ul>
20538
+ r"""<p><strong>ExtParam</strong> JSON 字符串字段,用于指定各模型的高级音色参数。</p><hr><h3 id="Clone">通用参数</h3><ul><li>text(string):试听文本,最大 1000 字符;传入后返回试听音频 DemoAudio</li><li>tts_model(string):试听文本合成模型,text 非空时必填;按 ModelName 模型系列白名单校验</li><li>text_lang(string):试听文本语言,如 zh</li><li>voice_profile.name(string):音色名称</li><li>voice_profile.description(string):音色描述</li><li>voice_profile.gender(string):性别,可选 male、female、unknown</li><li>voice_profile.age(string):年龄段,可选 child、teenager、youth、middle_aged、senior、unknown</li><li>voice_profile.languages(array of string):语言,如 ["zh"]</li><li>voice_profile.labels(array of string):标签,如 ["磁性"]</li><li>voice_profile.scenes(array of string):场景,如 ["解说"]</li></ul><hr><h3 id="CloneElevenLabs">ElevenLabs</h3><ul><li>voice_name(string):音色名称;未传时回退取 voice_profile.name,两者都缺时使用默认名称</li><li>description(string):音色描述;未传时回退取 voice_profile.description</li><li>labels(map&lt;string,string&gt;):音色标签,官方推荐键 language、accent、gender、age;最多 16 项,键值各不超过 256 字节</li><li>remove_background_noise(boolean):是否用音频隔离模型去除背景噪声,默认 false;样本本身无噪声时开启可能降低质量</li></ul><hr>
20313
20539
  :rtype: str
20314
20540
  """
20315
20541
  return self._ExtParam
@@ -20343,6 +20569,7 @@ class CloneVoiceAsyncRequest(AbstractModel):
20343
20569
 
20344
20570
  def _deserialize(self, params):
20345
20571
  self._SubAppId = params.get("SubAppId")
20572
+ self._ModelName = params.get("ModelName")
20346
20573
  self._AudioData = params.get("AudioData")
20347
20574
  self._AudioUrl = params.get("AudioUrl")
20348
20575
  self._AudioFileId = params.get("AudioFileId")
@@ -20587,6 +20814,8 @@ class CloneVoiceSyncRequest(AbstractModel):
20587
20814
  r"""
20588
20815
  :param _SubAppId: <p>点播应用 ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</p>
20589
20816
  :type SubAppId: str
20817
+ :param _ModelName: <p>模型名,不填默认为MiniMax模型。</p> 枚举值: <ul><li>MiniMax</li><li>ElevenLabs</li></ul>
20818
+ :type ModelName: str
20590
20819
  :param _AudioData: <p>克隆音频base64编码。</p>
20591
20820
  :type AudioData: str
20592
20821
  :param _AudioUrl: <p>克隆音频Url,AudioData为空时有效</p>
@@ -20595,10 +20824,11 @@ class CloneVoiceSyncRequest(AbstractModel):
20595
20824
  :type AudioFileId: str
20596
20825
  :param _LanguageBoost: <p>语言增强,如 "zh" "en" "auto",默认 "auto"</p>
20597
20826
  :type LanguageBoost: str
20598
- :param _ExtParam: <p>同步音色克隆拓展参数。<code>ExtParam</code> 支持的字段:</p><ul> <li><code>text</code> (string):试听合成文本,最大 <code>1000</code> 字符;非空时必须同时传 <code>tts_model</code>,克隆成功后返回试听音频 <code>DemoAudio</code>。</li> <li><code>model</code> (string):克隆模型,缺省 <code>minimax-voice-clone</code>。</li> <li><code>tts_model</code> (string):合成试听音频用的模型,可选 <code>minimax-speech-2.8-hd</code>、<code>minimax-speech-2.8-turbo</code>、<code>minimax-speech-2.6-hd</code>、<code>minimax-speech-2.6-turbo</code>、<code>minimax-speech-02-hd</code>、<code>minimax-speech-02-turbo</code>;<code>text</code> 非空时必填。</li> <li><code>text_lang</code> (string):试听文本语言。</li> <li><code>voice_profile</code> (object):音色画像,可选字段: <ul> <li><code>name</code> (string):音色名称。</li> <li><code>description</code> (string):音色描述。</li> <li><code>gender</code> (string):性别,可选 <code>male</code> / <code>female</code> / <code>unknown</code>。</li> <li><code>age</code> (string):年龄段,可选 <code>child</code> / <code>teenager</code> / <code>youth</code> / <code>middle_aged</code> / <code>senior</code> / <code>unknown</code>。</li> <li><code>languages</code> (string[]):支持语言,如 <code>["zh", "en"]</code>。</li> <li><code>labels</code> (string[]):音色标签,如 <code>["磁性"]</code>。</li> <li><code>scenes</code> (string[]):适用场景,如 <code>["解说"]</code>。</li> </ul> </li></ul>
20827
+ :param _ExtParam: <p><strong>ExtParam</strong> JSON 字符串字段,用于指定各模型的高级音色参数。</p><hr><h3 id="Clone">通用参数</h3><ul><li>text(string):试听文本,最大 1000 字符;传入后返回试听音频 DemoAudio</li><li>tts_model(string):试听文本合成模型,text 非空时必填;按 ModelName 模型系列白名单校验</li><li>text_lang(string):试听文本语言,如 zh</li><li>voice_profile.name(string):音色名称</li><li>voice_profile.description(string):音色描述</li><li>voice_profile.gender(string):性别,可选 male、female、unknown</li><li>voice_profile.age(string):年龄段,可选 child、teenager、youth、middle_aged、senior、unknown</li><li>voice_profile.languages(array of string):语言,如 ["zh"]</li><li>voice_profile.labels(array of string):标签,如 ["磁性"]</li><li>voice_profile.scenes(array of string):场景,如 ["解说"]</li></ul><hr><h3 id="CloneElevenLabs">ElevenLabs</h3><ul><li>voice_name(string):音色名称;未传时回退取 voice_profile.name,两者都缺时使用默认名称</li><li>description(string):音色描述;未传时回退取 voice_profile.description</li><li>labels(map&lt;string,string&gt;):音色标签,官方推荐键 language、accent、gender、age;最多 16 项,键值各不超过 256 字节</li><li>remove_background_noise(boolean):是否用音频隔离模型去除背景噪声,默认 false;样本本身无噪声时开启可能降低质量</li></ul><hr>
20599
20828
  :type ExtParam: str
20600
20829
  """
20601
20830
  self._SubAppId = None
20831
+ self._ModelName = None
20602
20832
  self._AudioData = None
20603
20833
  self._AudioUrl = None
20604
20834
  self._AudioFileId = None
@@ -20616,6 +20846,17 @@ class CloneVoiceSyncRequest(AbstractModel):
20616
20846
  def SubAppId(self, SubAppId):
20617
20847
  self._SubAppId = SubAppId
20618
20848
 
20849
+ @property
20850
+ def ModelName(self):
20851
+ r"""<p>模型名,不填默认为MiniMax模型。</p> 枚举值: <ul><li>MiniMax</li><li>ElevenLabs</li></ul>
20852
+ :rtype: str
20853
+ """
20854
+ return self._ModelName
20855
+
20856
+ @ModelName.setter
20857
+ def ModelName(self, ModelName):
20858
+ self._ModelName = ModelName
20859
+
20619
20860
  @property
20620
20861
  def AudioData(self):
20621
20862
  r"""<p>克隆音频base64编码。</p>
@@ -20662,7 +20903,7 @@ class CloneVoiceSyncRequest(AbstractModel):
20662
20903
 
20663
20904
  @property
20664
20905
  def ExtParam(self):
20665
- r"""<p>同步音色克隆拓展参数。<code>ExtParam</code> 支持的字段:</p><ul> <li><code>text</code> (string):试听合成文本,最大 <code>1000</code> 字符;非空时必须同时传 <code>tts_model</code>,克隆成功后返回试听音频 <code>DemoAudio</code>。</li> <li><code>model</code> (string):克隆模型,缺省 <code>minimax-voice-clone</code>。</li> <li><code>tts_model</code> (string):合成试听音频用的模型,可选 <code>minimax-speech-2.8-hd</code>、<code>minimax-speech-2.8-turbo</code>、<code>minimax-speech-2.6-hd</code>、<code>minimax-speech-2.6-turbo</code>、<code>minimax-speech-02-hd</code>、<code>minimax-speech-02-turbo</code>;<code>text</code> 非空时必填。</li> <li><code>text_lang</code> (string):试听文本语言。</li> <li><code>voice_profile</code> (object):音色画像,可选字段: <ul> <li><code>name</code> (string):音色名称。</li> <li><code>description</code> (string):音色描述。</li> <li><code>gender</code> (string):性别,可选 <code>male</code> / <code>female</code> / <code>unknown</code>。</li> <li><code>age</code> (string):年龄段,可选 <code>child</code> / <code>teenager</code> / <code>youth</code> / <code>middle_aged</code> / <code>senior</code> / <code>unknown</code>。</li> <li><code>languages</code> (string[]):支持语言,如 <code>["zh", "en"]</code>。</li> <li><code>labels</code> (string[]):音色标签,如 <code>["磁性"]</code>。</li> <li><code>scenes</code> (string[]):适用场景,如 <code>["解说"]</code>。</li> </ul> </li></ul>
20906
+ r"""<p><strong>ExtParam</strong> JSON 字符串字段,用于指定各模型的高级音色参数。</p><hr><h3 id="Clone">通用参数</h3><ul><li>text(string):试听文本,最大 1000 字符;传入后返回试听音频 DemoAudio</li><li>tts_model(string):试听文本合成模型,text 非空时必填;按 ModelName 模型系列白名单校验</li><li>text_lang(string):试听文本语言,如 zh</li><li>voice_profile.name(string):音色名称</li><li>voice_profile.description(string):音色描述</li><li>voice_profile.gender(string):性别,可选 male、female、unknown</li><li>voice_profile.age(string):年龄段,可选 child、teenager、youth、middle_aged、senior、unknown</li><li>voice_profile.languages(array of string):语言,如 ["zh"]</li><li>voice_profile.labels(array of string):标签,如 ["磁性"]</li><li>voice_profile.scenes(array of string):场景,如 ["解说"]</li></ul><hr><h3 id="CloneElevenLabs">ElevenLabs</h3><ul><li>voice_name(string):音色名称;未传时回退取 voice_profile.name,两者都缺时使用默认名称</li><li>description(string):音色描述;未传时回退取 voice_profile.description</li><li>labels(map&lt;string,string&gt;):音色标签,官方推荐键 language、accent、gender、age;最多 16 项,键值各不超过 256 字节</li><li>remove_background_noise(boolean):是否用音频隔离模型去除背景噪声,默认 false;样本本身无噪声时开启可能降低质量</li></ul><hr>
20666
20907
  :rtype: str
20667
20908
  """
20668
20909
  return self._ExtParam
@@ -20674,6 +20915,7 @@ class CloneVoiceSyncRequest(AbstractModel):
20674
20915
 
20675
20916
  def _deserialize(self, params):
20676
20917
  self._SubAppId = params.get("SubAppId")
20918
+ self._ModelName = params.get("ModelName")
20677
20919
  self._AudioData = params.get("AudioData")
20678
20920
  self._AudioUrl = params.get("AudioUrl")
20679
20921
  self._AudioFileId = params.get("AudioFileId")
@@ -26680,11 +26922,23 @@ class CreateAigcQuotaRequest(AbstractModel):
26680
26922
  :type QuotaLimit: int
26681
26923
  :param _ApiToken: <p>仅当QuotaType=Text时有效,用于选择需要进行配额限制ApiToken</p>
26682
26924
  :type ApiToken: str
26925
+ :param _QuotaPeriod: <p>配额重置周期。</p><p>枚举值:</p><ul><li>Day: 每天重置。</li><li>Month: 每月指定日期重置。</li><li>Total: 永不重置,QuotaLimit参数即为总额度。</li></ul>
26926
+ :type QuotaPeriod: str
26927
+ :param _ResetDay: <p>每月配额的重置日期,仅QuotaPeriod=Month时有效。</p><p>如果当月无所选日期时,顺延至次月 1 日 00:00 重置。</p>
26928
+ :type ResetDay: int
26929
+ :param _ModelQuotaSwitch: <p>是否开启按单个模型设置配额</p><p>枚举值:</p><ul><li>ON: 打开</li><li>OFF: 关闭</li></ul>
26930
+ :type ModelQuotaSwitch: str
26931
+ :param _ModelQuotas: <p>按单个模型设置的配额,仅ModelQuotaSwitch=ON时有效。</p>
26932
+ :type ModelQuotas: list of AigcModelQuota
26683
26933
  """
26684
26934
  self._SubAppId = None
26685
26935
  self._QuotaType = None
26686
26936
  self._QuotaLimit = None
26687
26937
  self._ApiToken = None
26938
+ self._QuotaPeriod = None
26939
+ self._ResetDay = None
26940
+ self._ModelQuotaSwitch = None
26941
+ self._ModelQuotas = None
26688
26942
 
26689
26943
  @property
26690
26944
  def SubAppId(self):
@@ -26730,12 +26984,65 @@ class CreateAigcQuotaRequest(AbstractModel):
26730
26984
  def ApiToken(self, ApiToken):
26731
26985
  self._ApiToken = ApiToken
26732
26986
 
26987
+ @property
26988
+ def QuotaPeriod(self):
26989
+ r"""<p>配额重置周期。</p><p>枚举值:</p><ul><li>Day: 每天重置。</li><li>Month: 每月指定日期重置。</li><li>Total: 永不重置,QuotaLimit参数即为总额度。</li></ul>
26990
+ :rtype: str
26991
+ """
26992
+ return self._QuotaPeriod
26993
+
26994
+ @QuotaPeriod.setter
26995
+ def QuotaPeriod(self, QuotaPeriod):
26996
+ self._QuotaPeriod = QuotaPeriod
26997
+
26998
+ @property
26999
+ def ResetDay(self):
27000
+ r"""<p>每月配额的重置日期,仅QuotaPeriod=Month时有效。</p><p>如果当月无所选日期时,顺延至次月 1 日 00:00 重置。</p>
27001
+ :rtype: int
27002
+ """
27003
+ return self._ResetDay
27004
+
27005
+ @ResetDay.setter
27006
+ def ResetDay(self, ResetDay):
27007
+ self._ResetDay = ResetDay
27008
+
27009
+ @property
27010
+ def ModelQuotaSwitch(self):
27011
+ r"""<p>是否开启按单个模型设置配额</p><p>枚举值:</p><ul><li>ON: 打开</li><li>OFF: 关闭</li></ul>
27012
+ :rtype: str
27013
+ """
27014
+ return self._ModelQuotaSwitch
27015
+
27016
+ @ModelQuotaSwitch.setter
27017
+ def ModelQuotaSwitch(self, ModelQuotaSwitch):
27018
+ self._ModelQuotaSwitch = ModelQuotaSwitch
27019
+
27020
+ @property
27021
+ def ModelQuotas(self):
27022
+ r"""<p>按单个模型设置的配额,仅ModelQuotaSwitch=ON时有效。</p>
27023
+ :rtype: list of AigcModelQuota
27024
+ """
27025
+ return self._ModelQuotas
27026
+
27027
+ @ModelQuotas.setter
27028
+ def ModelQuotas(self, ModelQuotas):
27029
+ self._ModelQuotas = ModelQuotas
27030
+
26733
27031
 
26734
27032
  def _deserialize(self, params):
26735
27033
  self._SubAppId = params.get("SubAppId")
26736
27034
  self._QuotaType = params.get("QuotaType")
26737
27035
  self._QuotaLimit = params.get("QuotaLimit")
26738
27036
  self._ApiToken = params.get("ApiToken")
27037
+ self._QuotaPeriod = params.get("QuotaPeriod")
27038
+ self._ResetDay = params.get("ResetDay")
27039
+ self._ModelQuotaSwitch = params.get("ModelQuotaSwitch")
27040
+ if params.get("ModelQuotas") is not None:
27041
+ self._ModelQuotas = []
27042
+ for item in params.get("ModelQuotas"):
27043
+ obj = AigcModelQuota()
27044
+ obj._deserialize(item)
27045
+ self._ModelQuotas.append(obj)
26739
27046
  memeber_set = set(params.keys())
26740
27047
  for name, value in vars(self).items():
26741
27048
  property_name = name[1:]
@@ -37129,10 +37436,13 @@ class DeleteVoiceRequest(AbstractModel):
37129
37436
  r"""
37130
37437
  :param _VoiceId: <p>音色Id</p>
37131
37438
  :type VoiceId: str
37439
+ :param _ModelName: <p>模型名,不填默认为MiniMax模型。</p> 枚举值:<ul><li><p>MiniMax </p></li><li><p>ElevenLabs</p></li></ul>
37440
+ :type ModelName: str
37132
37441
  :param _SubAppId: <p>点播应用 ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</p>
37133
37442
  :type SubAppId: str
37134
37443
  """
37135
37444
  self._VoiceId = None
37445
+ self._ModelName = None
37136
37446
  self._SubAppId = None
37137
37447
 
37138
37448
  @property
@@ -37146,6 +37456,17 @@ class DeleteVoiceRequest(AbstractModel):
37146
37456
  def VoiceId(self, VoiceId):
37147
37457
  self._VoiceId = VoiceId
37148
37458
 
37459
+ @property
37460
+ def ModelName(self):
37461
+ r"""<p>模型名,不填默认为MiniMax模型。</p> 枚举值:<ul><li><p>MiniMax </p></li><li><p>ElevenLabs</p></li></ul>
37462
+ :rtype: str
37463
+ """
37464
+ return self._ModelName
37465
+
37466
+ @ModelName.setter
37467
+ def ModelName(self, ModelName):
37468
+ self._ModelName = ModelName
37469
+
37149
37470
  @property
37150
37471
  def SubAppId(self):
37151
37472
  r"""<p>点播应用 ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</p>
@@ -37160,6 +37481,7 @@ class DeleteVoiceRequest(AbstractModel):
37160
37481
 
37161
37482
  def _deserialize(self, params):
37162
37483
  self._VoiceId = params.get("VoiceId")
37484
+ self._ModelName = params.get("ModelName")
37163
37485
  self._SubAppId = params.get("SubAppId")
37164
37486
  memeber_set = set(params.keys())
37165
37487
  for name, value in vars(self).items():
@@ -48155,6 +48477,8 @@ class DescribeVoicesRequest(AbstractModel):
48155
48477
  r"""
48156
48478
  :param _SubAppId: <p>点播应用 ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</p>
48157
48479
  :type SubAppId: str
48480
+ :param _ModelName: <p>模型名,不填默认为MiniMax模型。</p>枚举值:<ul><li><p>MiniMax</p></li><li><p>ElevenLabs</p></li></ul>
48481
+ :type ModelName: str
48158
48482
  :param _VoiceId: <p>音色ID</p>
48159
48483
  :type VoiceId: str
48160
48484
  :param _VoiceType: <p>音色类别</p><p>枚举值:</p><ul><li>system: 系统音色</li><li>clone: 克隆音色</li><li>design: 设计音色</li><li>all: 所有音色(默认)</li></ul>
@@ -48177,6 +48501,7 @@ class DescribeVoicesRequest(AbstractModel):
48177
48501
  :type ExtParam: str
48178
48502
  """
48179
48503
  self._SubAppId = None
48504
+ self._ModelName = None
48180
48505
  self._VoiceId = None
48181
48506
  self._VoiceType = None
48182
48507
  self._VoiceName = None
@@ -48199,6 +48524,17 @@ class DescribeVoicesRequest(AbstractModel):
48199
48524
  def SubAppId(self, SubAppId):
48200
48525
  self._SubAppId = SubAppId
48201
48526
 
48527
+ @property
48528
+ def ModelName(self):
48529
+ r"""<p>模型名,不填默认为MiniMax模型。</p>枚举值:<ul><li><p>MiniMax</p></li><li><p>ElevenLabs</p></li></ul>
48530
+ :rtype: str
48531
+ """
48532
+ return self._ModelName
48533
+
48534
+ @ModelName.setter
48535
+ def ModelName(self, ModelName):
48536
+ self._ModelName = ModelName
48537
+
48202
48538
  @property
48203
48539
  def VoiceId(self):
48204
48540
  r"""<p>音色ID</p>
@@ -48312,6 +48648,7 @@ class DescribeVoicesRequest(AbstractModel):
48312
48648
 
48313
48649
  def _deserialize(self, params):
48314
48650
  self._SubAppId = params.get("SubAppId")
48651
+ self._ModelName = params.get("ModelName")
48315
48652
  self._VoiceId = params.get("VoiceId")
48316
48653
  self._VoiceType = params.get("VoiceType")
48317
48654
  self._VoiceName = params.get("VoiceName")
@@ -48343,11 +48680,14 @@ class DescribeVoicesResponse(AbstractModel):
48343
48680
  :type Voices: list of VoiceInfo
48344
48681
  :param _TotalCount: <p>可用音色总数</p>
48345
48682
  :type TotalCount: int
48683
+ :param _VoiceSlot: <p>可用音色槽位信息</p>
48684
+ :type VoiceSlot: :class:`tencentcloud.vod.v20180717.models.VoiceSlotInfo`
48346
48685
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
48347
48686
  :type RequestId: str
48348
48687
  """
48349
48688
  self._Voices = None
48350
48689
  self._TotalCount = None
48690
+ self._VoiceSlot = None
48351
48691
  self._RequestId = None
48352
48692
 
48353
48693
  @property
@@ -48372,6 +48712,17 @@ class DescribeVoicesResponse(AbstractModel):
48372
48712
  def TotalCount(self, TotalCount):
48373
48713
  self._TotalCount = TotalCount
48374
48714
 
48715
+ @property
48716
+ def VoiceSlot(self):
48717
+ r"""<p>可用音色槽位信息</p>
48718
+ :rtype: :class:`tencentcloud.vod.v20180717.models.VoiceSlotInfo`
48719
+ """
48720
+ return self._VoiceSlot
48721
+
48722
+ @VoiceSlot.setter
48723
+ def VoiceSlot(self, VoiceSlot):
48724
+ self._VoiceSlot = VoiceSlot
48725
+
48375
48726
  @property
48376
48727
  def RequestId(self):
48377
48728
  r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -48392,6 +48743,9 @@ class DescribeVoicesResponse(AbstractModel):
48392
48743
  obj._deserialize(item)
48393
48744
  self._Voices.append(obj)
48394
48745
  self._TotalCount = params.get("TotalCount")
48746
+ if params.get("VoiceSlot") is not None:
48747
+ self._VoiceSlot = VoiceSlotInfo()
48748
+ self._VoiceSlot._deserialize(params.get("VoiceSlot"))
48395
48749
  self._RequestId = params.get("RequestId")
48396
48750
 
48397
48751
 
@@ -48899,11 +49253,13 @@ class DesignVoiceAsyncRequest(AbstractModel):
48899
49253
  :type Prompt: str
48900
49254
  :param _SubAppId: <p>点播应用 ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</p>
48901
49255
  :type SubAppId: str
49256
+ :param _ModelName: <p>模型名,不填默认为MiniMax模型。</p> 枚举值: <ul><li>MiniMax</li><li>ElevenLabs</li></ul>
49257
+ :type ModelName: str
48902
49258
  :param _VoiceSettings: <p>音色设置</p>
48903
49259
  :type VoiceSettings: :class:`tencentcloud.vod.v20180717.models.VoiceSettings`
48904
49260
  :param _PreviewText: <p>试听合成文本,最大 500 字符</p>
48905
49261
  :type PreviewText: str
48906
- :param _ExtParam: <p>扩展参数,json字符串</p>
49262
+ :param _ExtParam: <p><strong>ExtParam</strong> JSON 字符串字段,用于指定各模型的高级设计参数。</p><hr><h3 id="ElevenLabs">ElevenLabs</h3><ul><li>model_id(string):TTV 模型,可选 eleven_multilingual_ttv_v2(默认)、eleven_ttv_v3</li><li>voice_name(string):音色名称,用于设计完成后正式创建音色</li><li>labels(map&lt;string,string&gt;):音色标签,最多 16 项,键值各不超过 256 字节</li><li>auto_generate_text(boolean):是否自动生成与描述匹配的试听文本,默认 false</li><li>loudness(float):音量,取值范围 [-1, 1],默认 0.5</li><li>seed(integer):采样种子,取值范围 [0, 2147483647]</li><li>guidance_scale(float):提示词遵循程度,取值范围 [0, 100],默认 5</li><li>quality(float):输出质量,取值范围 [-1, 1],越高质量越好但多样性越低</li><li>should_enhance(boolean):是否用 AI 扩写音色描述,默认 false</li><li>reference_audio_base64(string):参考音频 base64,仅 eleven_ttv_v3 支持</li><li>prompt_strength(float):提示词与参考音频权重,取值范围 [0, 1],仅 eleven_ttv_v3 支持</li><li>audio_setting.format(string):音频格式,可选 mp3、opus、alaw、pcm</li><li>audio_setting.sample_rate(integer):采样率,与 format 组合受限</li><li>audio_setting.bitrate(integer):比特率,需与 format、sample_rate 匹配</li></ul><hr>
48907
49263
  :type ExtParam: str
48908
49264
  :param _SessionContext: <p>标识来源上下文,用于透传用户请求信息,在回调和任务流状态变更回调将返回该字段值,最长 1000 个字符。</p>
48909
49265
  :type SessionContext: str
@@ -48912,6 +49268,7 @@ class DesignVoiceAsyncRequest(AbstractModel):
48912
49268
  """
48913
49269
  self._Prompt = None
48914
49270
  self._SubAppId = None
49271
+ self._ModelName = None
48915
49272
  self._VoiceSettings = None
48916
49273
  self._PreviewText = None
48917
49274
  self._ExtParam = None
@@ -48940,6 +49297,17 @@ class DesignVoiceAsyncRequest(AbstractModel):
48940
49297
  def SubAppId(self, SubAppId):
48941
49298
  self._SubAppId = SubAppId
48942
49299
 
49300
+ @property
49301
+ def ModelName(self):
49302
+ r"""<p>模型名,不填默认为MiniMax模型。</p> 枚举值: <ul><li>MiniMax</li><li>ElevenLabs</li></ul>
49303
+ :rtype: str
49304
+ """
49305
+ return self._ModelName
49306
+
49307
+ @ModelName.setter
49308
+ def ModelName(self, ModelName):
49309
+ self._ModelName = ModelName
49310
+
48943
49311
  @property
48944
49312
  def VoiceSettings(self):
48945
49313
  r"""<p>音色设置</p>
@@ -48964,7 +49332,7 @@ class DesignVoiceAsyncRequest(AbstractModel):
48964
49332
 
48965
49333
  @property
48966
49334
  def ExtParam(self):
48967
- r"""<p>扩展参数,json字符串</p>
49335
+ r"""<p><strong>ExtParam</strong> JSON 字符串字段,用于指定各模型的高级设计参数。</p><hr><h3 id="ElevenLabs">ElevenLabs</h3><ul><li>model_id(string):TTV 模型,可选 eleven_multilingual_ttv_v2(默认)、eleven_ttv_v3</li><li>voice_name(string):音色名称,用于设计完成后正式创建音色</li><li>labels(map&lt;string,string&gt;):音色标签,最多 16 项,键值各不超过 256 字节</li><li>auto_generate_text(boolean):是否自动生成与描述匹配的试听文本,默认 false</li><li>loudness(float):音量,取值范围 [-1, 1],默认 0.5</li><li>seed(integer):采样种子,取值范围 [0, 2147483647]</li><li>guidance_scale(float):提示词遵循程度,取值范围 [0, 100],默认 5</li><li>quality(float):输出质量,取值范围 [-1, 1],越高质量越好但多样性越低</li><li>should_enhance(boolean):是否用 AI 扩写音色描述,默认 false</li><li>reference_audio_base64(string):参考音频 base64,仅 eleven_ttv_v3 支持</li><li>prompt_strength(float):提示词与参考音频权重,取值范围 [0, 1],仅 eleven_ttv_v3 支持</li><li>audio_setting.format(string):音频格式,可选 mp3、opus、alaw、pcm</li><li>audio_setting.sample_rate(integer):采样率,与 format 组合受限</li><li>audio_setting.bitrate(integer):比特率,需与 format、sample_rate 匹配</li></ul><hr>
48968
49336
  :rtype: str
48969
49337
  """
48970
49338
  return self._ExtParam
@@ -48999,6 +49367,7 @@ class DesignVoiceAsyncRequest(AbstractModel):
48999
49367
  def _deserialize(self, params):
49000
49368
  self._Prompt = params.get("Prompt")
49001
49369
  self._SubAppId = params.get("SubAppId")
49370
+ self._ModelName = params.get("ModelName")
49002
49371
  if params.get("VoiceSettings") is not None:
49003
49372
  self._VoiceSettings = VoiceSettings()
49004
49373
  self._VoiceSettings._deserialize(params.get("VoiceSettings"))
@@ -71442,11 +71811,23 @@ class ModifyAigcQuotaRequest(AbstractModel):
71442
71811
  :type QuotaLimit: int
71443
71812
  :param _ApiToken: <p>仅当QuotaType=Text时有效,用于选择需要进行配额限制ApiToken</p>
71444
71813
  :type ApiToken: str
71814
+ :param _QuotaPeriod: <p>配额重置周期。</p><p>枚举值:</p><ul><li>Day: 每天重置。</li><li>Month: 每月指定日期重置。</li><li>Total: 永不重置,QuotaLimit参数即为总额度。</li></ul>
71815
+ :type QuotaPeriod: str
71816
+ :param _ResetDay: <p>每月配额的重置日期,仅QuotaPeriod=Month时有效。</p><p>如果当月无所选日期时,顺延至次月 1 日 00:00 重置。</p>
71817
+ :type ResetDay: int
71818
+ :param _ModelQuotaSwitch: <p>是否开启按单个模型设置配额</p><p>枚举值:</p><ul><li>ON: 打开</li><li>OFF: 关闭</li></ul>
71819
+ :type ModelQuotaSwitch: str
71820
+ :param _ModelQuotas: <p>按单个模型设置的配额,仅ModelQuotaSwitch=ON时有效。</p>
71821
+ :type ModelQuotas: list of AigcModelQuota
71445
71822
  """
71446
71823
  self._SubAppId = None
71447
71824
  self._QuotaType = None
71448
71825
  self._QuotaLimit = None
71449
71826
  self._ApiToken = None
71827
+ self._QuotaPeriod = None
71828
+ self._ResetDay = None
71829
+ self._ModelQuotaSwitch = None
71830
+ self._ModelQuotas = None
71450
71831
 
71451
71832
  @property
71452
71833
  def SubAppId(self):
@@ -71492,12 +71873,65 @@ class ModifyAigcQuotaRequest(AbstractModel):
71492
71873
  def ApiToken(self, ApiToken):
71493
71874
  self._ApiToken = ApiToken
71494
71875
 
71876
+ @property
71877
+ def QuotaPeriod(self):
71878
+ r"""<p>配额重置周期。</p><p>枚举值:</p><ul><li>Day: 每天重置。</li><li>Month: 每月指定日期重置。</li><li>Total: 永不重置,QuotaLimit参数即为总额度。</li></ul>
71879
+ :rtype: str
71880
+ """
71881
+ return self._QuotaPeriod
71882
+
71883
+ @QuotaPeriod.setter
71884
+ def QuotaPeriod(self, QuotaPeriod):
71885
+ self._QuotaPeriod = QuotaPeriod
71886
+
71887
+ @property
71888
+ def ResetDay(self):
71889
+ r"""<p>每月配额的重置日期,仅QuotaPeriod=Month时有效。</p><p>如果当月无所选日期时,顺延至次月 1 日 00:00 重置。</p>
71890
+ :rtype: int
71891
+ """
71892
+ return self._ResetDay
71893
+
71894
+ @ResetDay.setter
71895
+ def ResetDay(self, ResetDay):
71896
+ self._ResetDay = ResetDay
71897
+
71898
+ @property
71899
+ def ModelQuotaSwitch(self):
71900
+ r"""<p>是否开启按单个模型设置配额</p><p>枚举值:</p><ul><li>ON: 打开</li><li>OFF: 关闭</li></ul>
71901
+ :rtype: str
71902
+ """
71903
+ return self._ModelQuotaSwitch
71904
+
71905
+ @ModelQuotaSwitch.setter
71906
+ def ModelQuotaSwitch(self, ModelQuotaSwitch):
71907
+ self._ModelQuotaSwitch = ModelQuotaSwitch
71908
+
71909
+ @property
71910
+ def ModelQuotas(self):
71911
+ r"""<p>按单个模型设置的配额,仅ModelQuotaSwitch=ON时有效。</p>
71912
+ :rtype: list of AigcModelQuota
71913
+ """
71914
+ return self._ModelQuotas
71915
+
71916
+ @ModelQuotas.setter
71917
+ def ModelQuotas(self, ModelQuotas):
71918
+ self._ModelQuotas = ModelQuotas
71919
+
71495
71920
 
71496
71921
  def _deserialize(self, params):
71497
71922
  self._SubAppId = params.get("SubAppId")
71498
71923
  self._QuotaType = params.get("QuotaType")
71499
71924
  self._QuotaLimit = params.get("QuotaLimit")
71500
71925
  self._ApiToken = params.get("ApiToken")
71926
+ self._QuotaPeriod = params.get("QuotaPeriod")
71927
+ self._ResetDay = params.get("ResetDay")
71928
+ self._ModelQuotaSwitch = params.get("ModelQuotaSwitch")
71929
+ if params.get("ModelQuotas") is not None:
71930
+ self._ModelQuotas = []
71931
+ for item in params.get("ModelQuotas"):
71932
+ obj = AigcModelQuota()
71933
+ obj._deserialize(item)
71934
+ self._ModelQuotas.append(obj)
71501
71935
  memeber_set = set(params.keys())
71502
71936
  for name, value in vars(self).items():
71503
71937
  property_name = name[1:]
@@ -93846,7 +94280,7 @@ class SceneAigcVideoOutputConfig(AbstractModel):
93846
94280
  :type AspectRatio: str
93847
94281
  :param _Duration: <p>生成视频时长。</p><ul><li>当使用生商品图场景时,可选值4、6、8秒。</li><li>当使用角色场景时,可选值为4到15秒。</li></ul>
93848
94282
  :type Duration: float
93849
- :param _Resolution: <p>分辨率。仅当角色场景时有效。取值如下:</p><ul><li>当 Model 是 character_scene_standard 时,支持 480p、720p、1080p、4K;</li><li>当 Model 是 character_scene_mini 时,支持 480p、720p;</li><li>当 Model 是 character_scene_fast 时,支持 720p。</li></ul>
94283
+ :param _Resolution: <p>分辨率。仅当角色场景时有效。取值如下:</p><ul><li>当 Model 是 character_scene_standard 时,支持 480P、720P、1080P、4K;</li><li>当 Model 是 character_scene_mini 时,支持 480P、720P;</li><li>当 Model 是 character_scene_fast 时,支持 720P。</li></ul>
93850
94284
  :type Resolution: str
93851
94285
  """
93852
94286
  self._StorageMode = None
@@ -93925,7 +94359,7 @@ class SceneAigcVideoOutputConfig(AbstractModel):
93925
94359
 
93926
94360
  @property
93927
94361
  def Resolution(self):
93928
- r"""<p>分辨率。仅当角色场景时有效。取值如下:</p><ul><li>当 Model 是 character_scene_standard 时,支持 480p、720p、1080p、4K;</li><li>当 Model 是 character_scene_mini 时,支持 480p、720p;</li><li>当 Model 是 character_scene_fast 时,支持 720p。</li></ul>
94362
+ r"""<p>分辨率。仅当角色场景时有效。取值如下:</p><ul><li>当 Model 是 character_scene_standard 时,支持 480P、720P、1080P、4K;</li><li>当 Model 是 character_scene_mini 时,支持 480P、720P;</li><li>当 Model 是 character_scene_fast 时,支持 720P。</li></ul>
93929
94363
  :rtype: str
93930
94364
  """
93931
94365
  return self._Resolution
@@ -100323,11 +100757,15 @@ class TextToSpeechAsyncRequest(AbstractModel):
100323
100757
  :type Text: str
100324
100758
  :param _VoiceId: <p>音色ID</p>
100325
100759
  :type VoiceId: str
100760
+ :param _ModelName: <p>模型系列,区分大小写,默认 MiniMax。</p><p>枚举值:</p><ul><li>MiniMax</li><li>ElevenLabs</li></ul>
100761
+ :type ModelName: str
100762
+ :param _ModelVersion: <p>模型版本,不填时使用该模型系列的默认版本。</p><p>各模型支持版本:</p><ul><li><p>MiniMax:minimax-speech-2.8-hd(默认)、minimax-speech-2.8-turbo、minimax-speech-2.6-hd、minimax-speech-2.6-turbo、minimax-speech-02-hd、minimax-speech-02-turbo</p></li><li><p>ElevenLabs:custom-model-ll-v3(默认)、custom-model-ll-mlv2、custom-model-ll-fv2.5、custom-model-ll-fv2、custom-model-ll-v4、custom-model-ll-v4tb</p></li></ul>
100763
+ :type ModelVersion: str
100326
100764
  :param _SubAppId: <p>点播应用 ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</p>
100327
100765
  :type SubAppId: str
100328
100766
  :param _LanguageBoost: <p>语言增强,如 "zh" "en" "auto",默认 "auto"</p>
100329
100767
  :type LanguageBoost: str
100330
- :param _ExtParam: <p>文本合成语音(异步)拓展参数。ExtParam 支持的字段:</p><ul><li>model (string):合成模型,可选 minimax-speech-2.8-hd、minimax-speech-2.8-turbo、minimax-speech-2.6-hd、minimax-speech-2.6-turbo、minimax-speech-02-hd、minimax-speech-02-turbo;默认 minimax-speech-2.8-hd。</li><li>text_lang (string):文本语言,如 zh / en;与入参 LanguageBoost 同义,同时传入时以 ExtParam 为准。</li><li>audio_setting (object):音频输出与音色微调参数(注意:异步接口的语速、音量、音调、情绪均在 audio_setting 下,与同步接口的 voice_setting 不同),可选字段:<ul><li>speed (float):语速,[0.5, 2.0],默认 1.0。</li><li>vol (float):音量,(0, 10],默认 1.0。</li><li>pitch (int):音调,[-12, 12],默认 0。</li><li>emotion (string):情绪,可选 happy / sad / angry / fearful / disgusted / surprised / calm / fluent / whisper。</li><li>sample_rate (int):采样率,可选 8000 / 16000 / 22050 / 24000 / 32000 / 44100,默认 16000。</li><li>format (string):音频格式,可选 mp3 / wav,默认 wav。</li><li>duration (float):目标时长(秒)。</li><li>cut_silence (bool):是否裁剪静音段。</li></ul></li></ul>
100768
+ :param _ExtParam: <p><strong>ExtParam</strong> 是 JSON 字符串字段,用于指定各模型的高级合成参数。字段名中的 . 表示嵌套对象,如 req_params.audio_params.speech_rate,需按层级组成本地 JSON 对象后整体转义传入。未列出的字段不生效。</p><hr><h3 id="MiniMax">MiniMax</h3><ul><li>model(string):合成模型,可选 minimax-speech-2.8-hd、minimax-speech-2.8-turbo、minimax-speech-2.6-hd、minimax-speech-2.6-turbo、minimax-speech-02-hd、minimax-speech-02-turbo,默认 minimax-speech-2.8-hd</li><li>voice_setting.speed(float):语速,取值范围 [0.5, 2.0],默认 1.0</li><li>voice_setting.vol(float):音量,取值范围 (0, 10],默认 1.0</li><li>voice_setting.pitch(integer):音调,取值范围 [-12, 12],默认 0</li><li>voice_setting.emotion(string):情绪,可选 happy、sad、angry、fearful、disgusted、surprised、calm、fluent、whisper</li><li>audio_setting.format(string):音频格式,可选 mp3、wav,默认 wav</li><li>audio_setting.sample_rate(integer):采样率,可选 8000、16000、22050、24000、32000、44100,默认 16000</li><li>audio_setting.duration(float):目标时长,单位秒</li><li>audio_setting.cut_silence(boolean):是否裁剪静音段</li></ul><hr><h3 id="ElevenLabs">ElevenLabs</h3><ul><li>language_code(string):语言代码(ISO 639-1),用于强制语种与文本归一化</li><li>previous_text(string):上一段文本(衔接上下文)</li><li>next_text(string):下一段文本</li><li>seed(integer):确定性采样种子,范围 [0, 4294967295]</li><li>apply_text_normalization(string):文本规范化,可选 auto、on、off</li><li>apply_language_text_normalization(boolean):是否启用语种相关的文本规范化</li><li>voice_settings.stability(float):稳定性,默认 0.5</li><li>voice_settings.similarity_boost(float):音色相似度,默认 0.75</li><li>voice_settings.style(float):风格夸张度,默认 0</li><li>voice_settings.use_speaker_boost(boolean):是否增强音色相似度,默认 true</li><li>voice_settings.speed(float):语速,取值范围 [0.5, 2.0],默认 1.0</li><li>audio_setting.format(string):音频格式,可选 mp3、opus、alaw、pcm</li><li>audio_setting.sample_rate(integer):采样率,需与 format 匹配</li><li>audio_setting.bitrate(integer):比特率,需与 format、sample_rate 匹配</li></ul><hr>
100331
100769
  :type ExtParam: str
100332
100770
  :param _Output: <p>输出相关参数</p><p>可以指定输出形式等。默认输出音频url。</p>
100333
100771
  :type Output: :class:`tencentcloud.vod.v20180717.models.TextToSpeechAsyncOutputOption`
@@ -100338,6 +100776,8 @@ class TextToSpeechAsyncRequest(AbstractModel):
100338
100776
  """
100339
100777
  self._Text = None
100340
100778
  self._VoiceId = None
100779
+ self._ModelName = None
100780
+ self._ModelVersion = None
100341
100781
  self._SubAppId = None
100342
100782
  self._LanguageBoost = None
100343
100783
  self._ExtParam = None
@@ -100367,6 +100807,28 @@ class TextToSpeechAsyncRequest(AbstractModel):
100367
100807
  def VoiceId(self, VoiceId):
100368
100808
  self._VoiceId = VoiceId
100369
100809
 
100810
+ @property
100811
+ def ModelName(self):
100812
+ r"""<p>模型系列,区分大小写,默认 MiniMax。</p><p>枚举值:</p><ul><li>MiniMax</li><li>ElevenLabs</li></ul>
100813
+ :rtype: str
100814
+ """
100815
+ return self._ModelName
100816
+
100817
+ @ModelName.setter
100818
+ def ModelName(self, ModelName):
100819
+ self._ModelName = ModelName
100820
+
100821
+ @property
100822
+ def ModelVersion(self):
100823
+ r"""<p>模型版本,不填时使用该模型系列的默认版本。</p><p>各模型支持版本:</p><ul><li><p>MiniMax:minimax-speech-2.8-hd(默认)、minimax-speech-2.8-turbo、minimax-speech-2.6-hd、minimax-speech-2.6-turbo、minimax-speech-02-hd、minimax-speech-02-turbo</p></li><li><p>ElevenLabs:custom-model-ll-v3(默认)、custom-model-ll-mlv2、custom-model-ll-fv2.5、custom-model-ll-fv2、custom-model-ll-v4、custom-model-ll-v4tb</p></li></ul>
100824
+ :rtype: str
100825
+ """
100826
+ return self._ModelVersion
100827
+
100828
+ @ModelVersion.setter
100829
+ def ModelVersion(self, ModelVersion):
100830
+ self._ModelVersion = ModelVersion
100831
+
100370
100832
  @property
100371
100833
  def SubAppId(self):
100372
100834
  r"""<p>点播应用 ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</p>
@@ -100391,7 +100853,7 @@ class TextToSpeechAsyncRequest(AbstractModel):
100391
100853
 
100392
100854
  @property
100393
100855
  def ExtParam(self):
100394
- r"""<p>文本合成语音(异步)拓展参数。ExtParam 支持的字段:</p><ul><li>model (string):合成模型,可选 minimax-speech-2.8-hd、minimax-speech-2.8-turbo、minimax-speech-2.6-hd、minimax-speech-2.6-turbo、minimax-speech-02-hd、minimax-speech-02-turbo;默认 minimax-speech-2.8-hd。</li><li>text_lang (string):文本语言,如 zh / en;与入参 LanguageBoost 同义,同时传入时以 ExtParam 为准。</li><li>audio_setting (object):音频输出与音色微调参数(注意:异步接口的语速、音量、音调、情绪均在 audio_setting 下,与同步接口的 voice_setting 不同),可选字段:<ul><li>speed (float):语速,[0.5, 2.0],默认 1.0。</li><li>vol (float):音量,(0, 10],默认 1.0。</li><li>pitch (int):音调,[-12, 12],默认 0。</li><li>emotion (string):情绪,可选 happy / sad / angry / fearful / disgusted / surprised / calm / fluent / whisper。</li><li>sample_rate (int):采样率,可选 8000 / 16000 / 22050 / 24000 / 32000 / 44100,默认 16000。</li><li>format (string):音频格式,可选 mp3 / wav,默认 wav。</li><li>duration (float):目标时长(秒)。</li><li>cut_silence (bool):是否裁剪静音段。</li></ul></li></ul>
100856
+ r"""<p><strong>ExtParam</strong> 是 JSON 字符串字段,用于指定各模型的高级合成参数。字段名中的 . 表示嵌套对象,如 req_params.audio_params.speech_rate,需按层级组成本地 JSON 对象后整体转义传入。未列出的字段不生效。</p><hr><h3 id="MiniMax">MiniMax</h3><ul><li>model(string):合成模型,可选 minimax-speech-2.8-hd、minimax-speech-2.8-turbo、minimax-speech-2.6-hd、minimax-speech-2.6-turbo、minimax-speech-02-hd、minimax-speech-02-turbo,默认 minimax-speech-2.8-hd</li><li>voice_setting.speed(float):语速,取值范围 [0.5, 2.0],默认 1.0</li><li>voice_setting.vol(float):音量,取值范围 (0, 10],默认 1.0</li><li>voice_setting.pitch(integer):音调,取值范围 [-12, 12],默认 0</li><li>voice_setting.emotion(string):情绪,可选 happy、sad、angry、fearful、disgusted、surprised、calm、fluent、whisper</li><li>audio_setting.format(string):音频格式,可选 mp3、wav,默认 wav</li><li>audio_setting.sample_rate(integer):采样率,可选 8000、16000、22050、24000、32000、44100,默认 16000</li><li>audio_setting.duration(float):目标时长,单位秒</li><li>audio_setting.cut_silence(boolean):是否裁剪静音段</li></ul><hr><h3 id="ElevenLabs">ElevenLabs</h3><ul><li>language_code(string):语言代码(ISO 639-1),用于强制语种与文本归一化</li><li>previous_text(string):上一段文本(衔接上下文)</li><li>next_text(string):下一段文本</li><li>seed(integer):确定性采样种子,范围 [0, 4294967295]</li><li>apply_text_normalization(string):文本规范化,可选 auto、on、off</li><li>apply_language_text_normalization(boolean):是否启用语种相关的文本规范化</li><li>voice_settings.stability(float):稳定性,默认 0.5</li><li>voice_settings.similarity_boost(float):音色相似度,默认 0.75</li><li>voice_settings.style(float):风格夸张度,默认 0</li><li>voice_settings.use_speaker_boost(boolean):是否增强音色相似度,默认 true</li><li>voice_settings.speed(float):语速,取值范围 [0.5, 2.0],默认 1.0</li><li>audio_setting.format(string):音频格式,可选 mp3、opus、alaw、pcm</li><li>audio_setting.sample_rate(integer):采样率,需与 format 匹配</li><li>audio_setting.bitrate(integer):比特率,需与 format、sample_rate 匹配</li></ul><hr>
100395
100857
  :rtype: str
100396
100858
  """
100397
100859
  return self._ExtParam
@@ -100437,6 +100899,8 @@ class TextToSpeechAsyncRequest(AbstractModel):
100437
100899
  def _deserialize(self, params):
100438
100900
  self._Text = params.get("Text")
100439
100901
  self._VoiceId = params.get("VoiceId")
100902
+ self._ModelName = params.get("ModelName")
100903
+ self._ModelVersion = params.get("ModelVersion")
100440
100904
  self._SubAppId = params.get("SubAppId")
100441
100905
  self._LanguageBoost = params.get("LanguageBoost")
100442
100906
  self._ExtParam = params.get("ExtParam")
@@ -100720,17 +101184,23 @@ class TextToSpeechSyncRequest(AbstractModel):
100720
101184
  :type Text: str
100721
101185
  :param _VoiceId: <p>音色Id,指定音色合成时填写,支持系统音色和设计、克隆音色。</p>
100722
101186
  :type VoiceId: str
101187
+ :param _ModelName: <p>模型系列,区分大小写,默认 MiniMax。</p><p>枚举值:</p><ul><li>MiniMax</li><li>ElevenLabs</li></ul>
101188
+ :type ModelName: str
101189
+ :param _ModelVersion: <p>模型版本,不填时使用该模型系列的默认版本。</p><p>各模型支持版本:</p><ul><li><p>MiniMax:minimax-speech-2.8-hd(默认)、minimax-speech-2.8-turbo、minimax-speech-2.6-hd、minimax-speech-2.6-turbo、minimax-speech-02-hd、minimax-speech-02-turbo</p></li><li><p>ElevenLabs:custom-model-ll-v3(默认)、custom-model-ll-mlv2、custom-model-ll-fv2.5、custom-model-ll-fv2、custom-model-ll-v4、custom-model-ll-v4tb</p></li></ul>
101190
+ :type ModelVersion: str
100723
101191
  :param _SubAppId: <p>点播应用 ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</p>
100724
101192
  :type SubAppId: str
100725
101193
  :param _LanguageBoost: <p>语言增强,如 "zh" "en" "auto",默认 "auto"</p>
100726
101194
  :type LanguageBoost: str
100727
101195
  :param _Output: <p>输出相关参数</p><p>可以指定输出形式等。默认输出音频URL。</p>
100728
101196
  :type Output: :class:`tencentcloud.vod.v20180717.models.TextToSpeechSyncOutputOption`
100729
- :param _ExtParam: <p>同步语音合成拓展参数。<code>ExtParam</code> 支持的字段:</p><ul> <li><code>model</code> (string):合成模型,可选 <code>minimax-speech-2.8-hd</code>、<code>minimax-speech-2.8-turbo</code>、<code>minimax-speech-2.6-hd</code>、<code>minimax-speech-2.6-turbo</code>、<code>minimax-speech-02-hd</code>、<code>minimax-speech-02-turbo</code>;默认 <code>minimax-speech-2.8-hd</code>。</li> <li><code>voice_setting</code> (object):音色微调,可选字段: <ul> <li><code>speed</code> (float):语速,<code>[0.5, 2.0]</code>,默认 <code>1.0</code>。</li> <li><code>vol</code> (float):音量,<code>(0, 10]</code>,默认 <code>1.0</code>。</li> <li><code>pitch</code> (int):音调,<code>[-12, 12]</code>,默认 <code>0</code>。</li> <li><code>emotion</code> (string):情绪,可选 <code>happy</code> / <code>sad</code> / <code>angry</code> / <code>fearful</code> / <code>disgusted</code> / <code>surprised</code> / <code>calm</code> / <code>fluent</code> / <code>whisper</code>。</li> </ul> </li> <li><code>audio_setting</code> (object):音频输出参数,可选字段: <ul> <li><code>sample_rate</code> (int):采样率,可选 <code>8000</code> / <code>16000</code> / <code>22050</code> / <code>24000</code> / <code>32000</code> / <code>44100</code>,默认 <code>16000</code>。</li> <li><code>format</code> (string):音频格式,可选 <code>mp3</code> / <code>wav</code>,默认 <code>wav</code>。</li> <li><code>duration</code> (float):目标时长(秒)。</li> <li><code>cut_silence</code> (bool):是否裁剪静音段。</li> </ul> </li></ul>
101197
+ :param _ExtParam: <p><strong>ExtParam</strong> 是 JSON 字符串字段,用于指定各模型的高级合成参数。字段名中的 . 表示嵌套对象,如 req_params.audio_params.speech_rate,需按层级组成本地 JSON 对象后整体转义传入。未列出的字段不生效。</p><hr><h3 id="MiniMax">MiniMax</h3><ul><li>model(string):合成模型,可选 minimax-speech-2.8-hd、minimax-speech-2.8-turbo、minimax-speech-2.6-hd、minimax-speech-2.6-turbo、minimax-speech-02-hd、minimax-speech-02-turbo,默认 minimax-speech-2.8-hd</li><li>voice_setting.speed(float):语速,取值范围 [0.5, 2.0],默认 1.0</li><li>voice_setting.vol(float):音量,取值范围 (0, 10],默认 1.0</li><li>voice_setting.pitch(integer):音调,取值范围 [-12, 12],默认 0</li><li>voice_setting.emotion(string):情绪,可选 happy、sad、angry、fearful、disgusted、surprised、calm、fluent、whisper</li><li>audio_setting.format(string):音频格式,可选 mp3、wav,默认 wav</li><li>audio_setting.sample_rate(integer):采样率,可选 8000、16000、22050、24000、32000、44100,默认 16000</li><li>audio_setting.duration(float):目标时长,单位秒</li><li>audio_setting.cut_silence(boolean):是否裁剪静音段</li></ul><hr><h3 id="ElevenLabs">ElevenLabs</h3><ul><li>language_code(string):语言代码(ISO 639-1),用于强制语种与文本归一化</li><li>previous_text(string):上一段文本(衔接上下文)</li><li>next_text(string):下一段文本</li><li>seed(integer):确定性采样种子,范围 [0, 4294967295]</li><li>apply_text_normalization(string):文本规范化,可选 auto、on、off</li><li>apply_language_text_normalization(boolean):是否启用语种相关的文本规范化</li><li>voice_settings.stability(float):稳定性,默认 0.5</li><li>voice_settings.similarity_boost(float):音色相似度,默认 0.75</li><li>voice_settings.style(float):风格夸张度,默认 0</li><li>voice_settings.use_speaker_boost(boolean):是否增强音色相似度,默认 true</li><li>voice_settings.speed(float):语速,取值范围 [0.5, 2.0],默认 1.0</li><li>audio_setting.format(string):音频格式,可选 mp3、opus、alaw、pcm</li><li>audio_setting.sample_rate(integer):采样率,需与 format 匹配</li><li>audio_setting.bitrate(integer):比特率,需与 format、sample_rate 匹配</li></ul><hr>
100730
101198
  :type ExtParam: str
100731
101199
  """
100732
101200
  self._Text = None
100733
101201
  self._VoiceId = None
101202
+ self._ModelName = None
101203
+ self._ModelVersion = None
100734
101204
  self._SubAppId = None
100735
101205
  self._LanguageBoost = None
100736
101206
  self._Output = None
@@ -100758,6 +101228,28 @@ class TextToSpeechSyncRequest(AbstractModel):
100758
101228
  def VoiceId(self, VoiceId):
100759
101229
  self._VoiceId = VoiceId
100760
101230
 
101231
+ @property
101232
+ def ModelName(self):
101233
+ r"""<p>模型系列,区分大小写,默认 MiniMax。</p><p>枚举值:</p><ul><li>MiniMax</li><li>ElevenLabs</li></ul>
101234
+ :rtype: str
101235
+ """
101236
+ return self._ModelName
101237
+
101238
+ @ModelName.setter
101239
+ def ModelName(self, ModelName):
101240
+ self._ModelName = ModelName
101241
+
101242
+ @property
101243
+ def ModelVersion(self):
101244
+ r"""<p>模型版本,不填时使用该模型系列的默认版本。</p><p>各模型支持版本:</p><ul><li><p>MiniMax:minimax-speech-2.8-hd(默认)、minimax-speech-2.8-turbo、minimax-speech-2.6-hd、minimax-speech-2.6-turbo、minimax-speech-02-hd、minimax-speech-02-turbo</p></li><li><p>ElevenLabs:custom-model-ll-v3(默认)、custom-model-ll-mlv2、custom-model-ll-fv2.5、custom-model-ll-fv2、custom-model-ll-v4、custom-model-ll-v4tb</p></li></ul>
101245
+ :rtype: str
101246
+ """
101247
+ return self._ModelVersion
101248
+
101249
+ @ModelVersion.setter
101250
+ def ModelVersion(self, ModelVersion):
101251
+ self._ModelVersion = ModelVersion
101252
+
100761
101253
  @property
100762
101254
  def SubAppId(self):
100763
101255
  r"""<p>点播应用 ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</p>
@@ -100793,7 +101285,7 @@ class TextToSpeechSyncRequest(AbstractModel):
100793
101285
 
100794
101286
  @property
100795
101287
  def ExtParam(self):
100796
- r"""<p>同步语音合成拓展参数。<code>ExtParam</code> 支持的字段:</p><ul> <li><code>model</code> (string):合成模型,可选 <code>minimax-speech-2.8-hd</code>、<code>minimax-speech-2.8-turbo</code>、<code>minimax-speech-2.6-hd</code>、<code>minimax-speech-2.6-turbo</code>、<code>minimax-speech-02-hd</code>、<code>minimax-speech-02-turbo</code>;默认 <code>minimax-speech-2.8-hd</code>。</li> <li><code>voice_setting</code> (object):音色微调,可选字段: <ul> <li><code>speed</code> (float):语速,<code>[0.5, 2.0]</code>,默认 <code>1.0</code>。</li> <li><code>vol</code> (float):音量,<code>(0, 10]</code>,默认 <code>1.0</code>。</li> <li><code>pitch</code> (int):音调,<code>[-12, 12]</code>,默认 <code>0</code>。</li> <li><code>emotion</code> (string):情绪,可选 <code>happy</code> / <code>sad</code> / <code>angry</code> / <code>fearful</code> / <code>disgusted</code> / <code>surprised</code> / <code>calm</code> / <code>fluent</code> / <code>whisper</code>。</li> </ul> </li> <li><code>audio_setting</code> (object):音频输出参数,可选字段: <ul> <li><code>sample_rate</code> (int):采样率,可选 <code>8000</code> / <code>16000</code> / <code>22050</code> / <code>24000</code> / <code>32000</code> / <code>44100</code>,默认 <code>16000</code>。</li> <li><code>format</code> (string):音频格式,可选 <code>mp3</code> / <code>wav</code>,默认 <code>wav</code>。</li> <li><code>duration</code> (float):目标时长(秒)。</li> <li><code>cut_silence</code> (bool):是否裁剪静音段。</li> </ul> </li></ul>
101288
+ r"""<p><strong>ExtParam</strong> 是 JSON 字符串字段,用于指定各模型的高级合成参数。字段名中的 . 表示嵌套对象,如 req_params.audio_params.speech_rate,需按层级组成本地 JSON 对象后整体转义传入。未列出的字段不生效。</p><hr><h3 id="MiniMax">MiniMax</h3><ul><li>model(string):合成模型,可选 minimax-speech-2.8-hd、minimax-speech-2.8-turbo、minimax-speech-2.6-hd、minimax-speech-2.6-turbo、minimax-speech-02-hd、minimax-speech-02-turbo,默认 minimax-speech-2.8-hd</li><li>voice_setting.speed(float):语速,取值范围 [0.5, 2.0],默认 1.0</li><li>voice_setting.vol(float):音量,取值范围 (0, 10],默认 1.0</li><li>voice_setting.pitch(integer):音调,取值范围 [-12, 12],默认 0</li><li>voice_setting.emotion(string):情绪,可选 happy、sad、angry、fearful、disgusted、surprised、calm、fluent、whisper</li><li>audio_setting.format(string):音频格式,可选 mp3、wav,默认 wav</li><li>audio_setting.sample_rate(integer):采样率,可选 8000、16000、22050、24000、32000、44100,默认 16000</li><li>audio_setting.duration(float):目标时长,单位秒</li><li>audio_setting.cut_silence(boolean):是否裁剪静音段</li></ul><hr><h3 id="ElevenLabs">ElevenLabs</h3><ul><li>language_code(string):语言代码(ISO 639-1),用于强制语种与文本归一化</li><li>previous_text(string):上一段文本(衔接上下文)</li><li>next_text(string):下一段文本</li><li>seed(integer):确定性采样种子,范围 [0, 4294967295]</li><li>apply_text_normalization(string):文本规范化,可选 auto、on、off</li><li>apply_language_text_normalization(boolean):是否启用语种相关的文本规范化</li><li>voice_settings.stability(float):稳定性,默认 0.5</li><li>voice_settings.similarity_boost(float):音色相似度,默认 0.75</li><li>voice_settings.style(float):风格夸张度,默认 0</li><li>voice_settings.use_speaker_boost(boolean):是否增强音色相似度,默认 true</li><li>voice_settings.speed(float):语速,取值范围 [0.5, 2.0],默认 1.0</li><li>audio_setting.format(string):音频格式,可选 mp3、opus、alaw、pcm</li><li>audio_setting.sample_rate(integer):采样率,需与 format 匹配</li><li>audio_setting.bitrate(integer):比特率,需与 format、sample_rate 匹配</li></ul><hr>
100797
101289
  :rtype: str
100798
101290
  """
100799
101291
  return self._ExtParam
@@ -100806,6 +101298,8 @@ class TextToSpeechSyncRequest(AbstractModel):
100806
101298
  def _deserialize(self, params):
100807
101299
  self._Text = params.get("Text")
100808
101300
  self._VoiceId = params.get("VoiceId")
101301
+ self._ModelName = params.get("ModelName")
101302
+ self._ModelVersion = params.get("ModelVersion")
100809
101303
  self._SubAppId = params.get("SubAppId")
100810
101304
  self._LanguageBoost = params.get("LanguageBoost")
100811
101305
  if params.get("Output") is not None:
@@ -102340,6 +102834,8 @@ class UpdateVoiceRequest(AbstractModel):
102340
102834
  :type VoiceId: str
102341
102835
  :param _VoiceFields: <p>更新音色字段</p>
102342
102836
  :type VoiceFields: :class:`tencentcloud.vod.v20180717.models.VoiceUpdateFields`
102837
+ :param _ModelName: <p>模型名,不填默认为MiniMax模型。</p> 枚举值: <ul><li>MiniMax </li><li>ElevenLabs</li></ul>
102838
+ :type ModelName: str
102343
102839
  :param _SubAppId: <p>点播应用 ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</p>
102344
102840
  :type SubAppId: str
102345
102841
  :param _ExtParam: <p>扩展参数,json字符串</p>
@@ -102347,6 +102843,7 @@ class UpdateVoiceRequest(AbstractModel):
102347
102843
  """
102348
102844
  self._VoiceId = None
102349
102845
  self._VoiceFields = None
102846
+ self._ModelName = None
102350
102847
  self._SubAppId = None
102351
102848
  self._ExtParam = None
102352
102849
 
@@ -102372,6 +102869,17 @@ class UpdateVoiceRequest(AbstractModel):
102372
102869
  def VoiceFields(self, VoiceFields):
102373
102870
  self._VoiceFields = VoiceFields
102374
102871
 
102872
+ @property
102873
+ def ModelName(self):
102874
+ r"""<p>模型名,不填默认为MiniMax模型。</p> 枚举值: <ul><li>MiniMax </li><li>ElevenLabs</li></ul>
102875
+ :rtype: str
102876
+ """
102877
+ return self._ModelName
102878
+
102879
+ @ModelName.setter
102880
+ def ModelName(self, ModelName):
102881
+ self._ModelName = ModelName
102882
+
102375
102883
  @property
102376
102884
  def SubAppId(self):
102377
102885
  r"""<p>点播应用 ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</p>
@@ -102400,6 +102908,7 @@ class UpdateVoiceRequest(AbstractModel):
102400
102908
  if params.get("VoiceFields") is not None:
102401
102909
  self._VoiceFields = VoiceUpdateFields()
102402
102910
  self._VoiceFields._deserialize(params.get("VoiceFields"))
102911
+ self._ModelName = params.get("ModelName")
102403
102912
  self._SubAppId = params.get("SubAppId")
102404
102913
  self._ExtParam = params.get("ExtParam")
102405
102914
  memeber_set = set(params.keys())
@@ -103783,10 +104292,13 @@ class VideoDepthEstimationOutputConfig(AbstractModel):
103783
104292
  :param _ExpireTime: <p>输出媒资过期时间,使用 <a href="https://cloud.tencent.com/document/product/266/11732#I">ISO 日期格式</a>,仅 StorageMode 为 Permanent 时生效。不传表示永不过期。</p>
103784
104293
  注意:此字段可能返回 null,表示取不到有效值。
103785
104294
  :type ExpireTime: str
104295
+ :param _KeepAudio: <p>是否保留原视频音频,默认不保留原视频音频。</p><p>枚举值:</p><ul><li>ON: 保留音频</li><li>OFF: 不保留音频</li></ul>
104296
+ :type KeepAudio: str
103786
104297
  """
103787
104298
  self._StorageMode = None
103788
104299
  self._MediaName = None
103789
104300
  self._ExpireTime = None
104301
+ self._KeepAudio = None
103790
104302
 
103791
104303
  @property
103792
104304
  def StorageMode(self):
@@ -103824,11 +104336,23 @@ class VideoDepthEstimationOutputConfig(AbstractModel):
103824
104336
  def ExpireTime(self, ExpireTime):
103825
104337
  self._ExpireTime = ExpireTime
103826
104338
 
104339
+ @property
104340
+ def KeepAudio(self):
104341
+ r"""<p>是否保留原视频音频,默认不保留原视频音频。</p><p>枚举值:</p><ul><li>ON: 保留音频</li><li>OFF: 不保留音频</li></ul>
104342
+ :rtype: str
104343
+ """
104344
+ return self._KeepAudio
104345
+
104346
+ @KeepAudio.setter
104347
+ def KeepAudio(self, KeepAudio):
104348
+ self._KeepAudio = KeepAudio
104349
+
103827
104350
 
103828
104351
  def _deserialize(self, params):
103829
104352
  self._StorageMode = params.get("StorageMode")
103830
104353
  self._MediaName = params.get("MediaName")
103831
104354
  self._ExpireTime = params.get("ExpireTime")
104355
+ self._KeepAudio = params.get("KeepAudio")
103832
104356
  memeber_set = set(params.keys())
103833
104357
  for name, value in vars(self).items():
103834
104358
  property_name = name[1:]
@@ -105953,6 +106477,72 @@ class VoiceSettings(AbstractModel):
105953
106477
 
105954
106478
 
105955
106479
 
106480
+ class VoiceSlotInfo(AbstractModel):
106481
+ r"""音色配额
106482
+
106483
+ """
106484
+
106485
+ def __init__(self):
106486
+ r"""
106487
+ :param _Limit: <p>音色限制数量</p>
106488
+ :type Limit: int
106489
+ :param _Remaining: <p>音色限制剩余数</p>
106490
+ :type Remaining: int
106491
+ :param _Used: <p>音色限制已用数</p>
106492
+ :type Used: int
106493
+ """
106494
+ self._Limit = None
106495
+ self._Remaining = None
106496
+ self._Used = None
106497
+
106498
+ @property
106499
+ def Limit(self):
106500
+ r"""<p>音色限制数量</p>
106501
+ :rtype: int
106502
+ """
106503
+ return self._Limit
106504
+
106505
+ @Limit.setter
106506
+ def Limit(self, Limit):
106507
+ self._Limit = Limit
106508
+
106509
+ @property
106510
+ def Remaining(self):
106511
+ r"""<p>音色限制剩余数</p>
106512
+ :rtype: int
106513
+ """
106514
+ return self._Remaining
106515
+
106516
+ @Remaining.setter
106517
+ def Remaining(self, Remaining):
106518
+ self._Remaining = Remaining
106519
+
106520
+ @property
106521
+ def Used(self):
106522
+ r"""<p>音色限制已用数</p>
106523
+ :rtype: int
106524
+ """
106525
+ return self._Used
106526
+
106527
+ @Used.setter
106528
+ def Used(self, Used):
106529
+ self._Used = Used
106530
+
106531
+
106532
+ def _deserialize(self, params):
106533
+ self._Limit = params.get("Limit")
106534
+ self._Remaining = params.get("Remaining")
106535
+ self._Used = params.get("Used")
106536
+ memeber_set = set(params.keys())
106537
+ for name, value in vars(self).items():
106538
+ property_name = name[1:]
106539
+ if property_name in memeber_set:
106540
+ memeber_set.remove(property_name)
106541
+ if len(memeber_set) > 0:
106542
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
106543
+
106544
+
106545
+
105956
106546
  class VoiceUpdateFields(AbstractModel):
105957
106547
  r"""音色更新字段
105958
106548
 
@@ -5774,7 +5774,7 @@ class VodClient(AbstractClient):
5774
5774
 
5775
5775
 
5776
5776
  def TextToSpeechAsync(self, request):
5777
- r"""发起语音合成任务,将文本合成为语音,面向长文本场景(最大 200000 字符),支持指定音色及语速、音量、音调、采样率、输出格式等合成参数。语音合成为异步任务,完成后产出音频结果。
5777
+ r"""发起语音合成任务,将文本合成为语音,面向长文本场景(最大 200000 字符),支持指定音色及语速、音量、音调、采样率、输出格式等合成参数。语音合成为异步任务,完成后产出音频结果,可通过 DescribeTaskDetail 查询。
5778
5778
 
5779
5779
  :param request: Request instance for TextToSpeechAsync.
5780
5780
  :type request: :class:`tencentcloud.vod.v20180717.models.TextToSpeechAsyncRequest`
@@ -4608,7 +4608,7 @@ class VodClient(AbstractClient):
4608
4608
  opts: Dict = None,
4609
4609
  ) -> models.TextToSpeechAsyncResponse:
4610
4610
  """
4611
- 发起语音合成任务,将文本合成为语音,面向长文本场景(最大 200000 字符),支持指定音色及语速、音量、音调、采样率、输出格式等合成参数。语音合成为异步任务,完成后产出音频结果。
4611
+ 发起语音合成任务,将文本合成为语音,面向长文本场景(最大 200000 字符),支持指定音色及语速、音量、音调、采样率、输出格式等合成参数。语音合成为异步任务,完成后产出音频结果,可通过 DescribeTaskDetail 查询。
4612
4612
  """
4613
4613
 
4614
4614
  kwargs = {}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-vod
3
- Version: 3.1.196
3
+ Version: 3.1.203
4
4
  Summary: Tencent Cloud Vod 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.196
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.203
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.203
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.196