tencentcloud-sdk-python-vod 3.1.52__tar.gz → 3.1.54__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tencentcloud_sdk_python_vod-3.1.52 → tencentcloud_sdk_python_vod-3.1.54}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_vod-3.1.52 → tencentcloud_sdk_python_vod-3.1.54}/setup.py +1 -1
- {tencentcloud_sdk_python_vod-3.1.52 → tencentcloud_sdk_python_vod-3.1.54}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_vod-3.1.52 → tencentcloud_sdk_python_vod-3.1.54}/tencentcloud/vod/v20180717/models.py +398 -0
- {tencentcloud_sdk_python_vod-3.1.52 → tencentcloud_sdk_python_vod-3.1.54}/tencentcloud/vod/v20180717/vod_client.py +46 -0
- {tencentcloud_sdk_python_vod-3.1.52 → tencentcloud_sdk_python_vod-3.1.54}/tencentcloud/vod/v20180717/vod_client_async.py +36 -0
- {tencentcloud_sdk_python_vod-3.1.52 → tencentcloud_sdk_python_vod-3.1.54}/tencentcloud_sdk_python_vod.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_vod-3.1.54/tencentcloud_sdk_python_vod.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_vod-3.1.52/tencentcloud_sdk_python_vod.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_vod-3.1.52 → tencentcloud_sdk_python_vod-3.1.54}/README.rst +0 -0
- {tencentcloud_sdk_python_vod-3.1.52 → tencentcloud_sdk_python_vod-3.1.54}/setup.cfg +0 -0
- {tencentcloud_sdk_python_vod-3.1.52 → tencentcloud_sdk_python_vod-3.1.54}/tencentcloud/vod/__init__.py +0 -0
- {tencentcloud_sdk_python_vod-3.1.52 → tencentcloud_sdk_python_vod-3.1.54}/tencentcloud/vod/v20180717/__init__.py +0 -0
- {tencentcloud_sdk_python_vod-3.1.52 → tencentcloud_sdk_python_vod-3.1.54}/tencentcloud/vod/v20180717/errorcodes.py +0 -0
- {tencentcloud_sdk_python_vod-3.1.52 → tencentcloud_sdk_python_vod-3.1.54}/tencentcloud/vod/v20240718/__init__.py +0 -0
- {tencentcloud_sdk_python_vod-3.1.52 → tencentcloud_sdk_python_vod-3.1.54}/tencentcloud/vod/v20240718/errorcodes.py +0 -0
- {tencentcloud_sdk_python_vod-3.1.52 → tencentcloud_sdk_python_vod-3.1.54}/tencentcloud/vod/v20240718/models.py +0 -0
- {tencentcloud_sdk_python_vod-3.1.52 → tencentcloud_sdk_python_vod-3.1.54}/tencentcloud/vod/v20240718/vod_client.py +0 -0
- {tencentcloud_sdk_python_vod-3.1.52 → tencentcloud_sdk_python_vod-3.1.54}/tencentcloud/vod/v20240718/vod_client_async.py +0 -0
- {tencentcloud_sdk_python_vod-3.1.52 → tencentcloud_sdk_python_vod-3.1.54}/tencentcloud_sdk_python_vod.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_vod-3.1.52 → tencentcloud_sdk_python_vod-3.1.54}/tencentcloud_sdk_python_vod.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_vod-3.1.52 → tencentcloud_sdk_python_vod-3.1.54}/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.
|
|
3
|
+
Version: 3.1.54
|
|
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.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.54
|
|
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.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.54,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Vod SDK for Python',
|
|
@@ -19926,6 +19926,235 @@ class CreateAigcAdvancedCustomElementOutput(AbstractModel):
|
|
|
19926
19926
|
|
|
19927
19927
|
|
|
19928
19928
|
|
|
19929
|
+
class CreateAigcAdvancedCustomElementRequest(AbstractModel):
|
|
19930
|
+
r"""CreateAigcAdvancedCustomElement请求参数结构体
|
|
19931
|
+
|
|
19932
|
+
"""
|
|
19933
|
+
|
|
19934
|
+
def __init__(self):
|
|
19935
|
+
r"""
|
|
19936
|
+
:param _SubAppId: <p><b>点播<a href="https://cloud.tencent.com/document/product/266/14574">应用</a> ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</b></p>
|
|
19937
|
+
:type SubAppId: int
|
|
19938
|
+
:param _ElementName: <p>主体名称,不能超过20个字符。</p>
|
|
19939
|
+
:type ElementName: str
|
|
19940
|
+
:param _ElementDescription: <p>主体描述,不能超过100个字符。</p>
|
|
19941
|
+
:type ElementDescription: str
|
|
19942
|
+
:param _ReferenceType: <p>主体参考方式。通过视频定制的主体和通过图片定制的主体的可用范围不同。</p><p>枚举值:</p><ul><li>video_refer: 视频角色主体,此时将参考element_video_list定义主体外表。</li><li>image_refer: 多图主体,此时将参考element_image_list定义主体外表。</li></ul>
|
|
19943
|
+
:type ReferenceType: str
|
|
19944
|
+
:param _ElementVoiceId: <p>主体音色,可绑定音色库中已有音色。</p><ul><li>当前参数为空时,当前主体不绑定音色。</li><li>仅视频定制的主体支持绑定音色。</li></ul>
|
|
19945
|
+
:type ElementVoiceId: str
|
|
19946
|
+
:param _ElementVideoList: <p>主体参考视频,可通过视频设定主体及其细节。</p><ul><li>可上传有声视频,有声视频包含人声则触发音色定制(定制+入音色库+与主体绑定)</li><li>参考视频时当前参数必填,参考图片时当前参数无效</li><li>用key:value承载,如下:<br><pre><code>{ "refer_videos":[ { "video_url":"video_url_1" } ]}</code></pre>● 视频格式仅支持MP4/MOV<br>● 仅支持时长介于3s~8s之间、宽高比例需为16:9或9:16的1080P视频<br>● 至多仅支持上传1段视频,视频大小不超过200MB<br>● video_url参数值不得为空</li></ul>
|
|
19947
|
+
:type ElementVideoList: str
|
|
19948
|
+
:param _ElementImageList: <p>主体参考图,可通过多张图片设定主体及其细节。</p><ul><li>包括正面参考图和其他角度或特写参考图,其中:<ul><li>至少包括1张正面参考图,由frontal_image参数定义。</li><li>需包括1~3张其他参考图,需与正面参考图有差异,由image_url参数定义。</li></ul></li><li>用key:value承载,如下:<br><pre><code>{ "frontal_image":"image_url_0", "refer_images":[ { "image_url":"image_url_1" }, { "image_url":"image_url_2" }, { "image_url":"image_url_3" } ]}</code></pre></li></ul>
|
|
19949
|
+
:type ElementImageList: str
|
|
19950
|
+
:param _TagList: <p>为主体配置标签,一个主体可以配置多个标签。</p><ul><li>用key:value承载,其中具体如下:</li></ul><p><pre><code>[ { "tag_id": "o_101" }, { "tag_id": "o_102" }]</code></pre></p>
|
|
19951
|
+
:type TagList: str
|
|
19952
|
+
:param _SessionId: <p>用于去重的识别码,如果三天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。</p>
|
|
19953
|
+
:type SessionId: str
|
|
19954
|
+
:param _SessionContext: <p>来源上下文,用于透传用户请求信息,任务完成回调将返回该字段值,最长 1000 个字符。</p>
|
|
19955
|
+
:type SessionContext: str
|
|
19956
|
+
:param _TasksPriority: <p>任务的优先级,数值越大优先级越高,取值范围是 -10 到 10,不填代表 0。</p>
|
|
19957
|
+
:type TasksPriority: int
|
|
19958
|
+
"""
|
|
19959
|
+
self._SubAppId = None
|
|
19960
|
+
self._ElementName = None
|
|
19961
|
+
self._ElementDescription = None
|
|
19962
|
+
self._ReferenceType = None
|
|
19963
|
+
self._ElementVoiceId = None
|
|
19964
|
+
self._ElementVideoList = None
|
|
19965
|
+
self._ElementImageList = None
|
|
19966
|
+
self._TagList = None
|
|
19967
|
+
self._SessionId = None
|
|
19968
|
+
self._SessionContext = None
|
|
19969
|
+
self._TasksPriority = None
|
|
19970
|
+
|
|
19971
|
+
@property
|
|
19972
|
+
def SubAppId(self):
|
|
19973
|
+
r"""<p><b>点播<a href="https://cloud.tencent.com/document/product/266/14574">应用</a> ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</b></p>
|
|
19974
|
+
:rtype: int
|
|
19975
|
+
"""
|
|
19976
|
+
return self._SubAppId
|
|
19977
|
+
|
|
19978
|
+
@SubAppId.setter
|
|
19979
|
+
def SubAppId(self, SubAppId):
|
|
19980
|
+
self._SubAppId = SubAppId
|
|
19981
|
+
|
|
19982
|
+
@property
|
|
19983
|
+
def ElementName(self):
|
|
19984
|
+
r"""<p>主体名称,不能超过20个字符。</p>
|
|
19985
|
+
:rtype: str
|
|
19986
|
+
"""
|
|
19987
|
+
return self._ElementName
|
|
19988
|
+
|
|
19989
|
+
@ElementName.setter
|
|
19990
|
+
def ElementName(self, ElementName):
|
|
19991
|
+
self._ElementName = ElementName
|
|
19992
|
+
|
|
19993
|
+
@property
|
|
19994
|
+
def ElementDescription(self):
|
|
19995
|
+
r"""<p>主体描述,不能超过100个字符。</p>
|
|
19996
|
+
:rtype: str
|
|
19997
|
+
"""
|
|
19998
|
+
return self._ElementDescription
|
|
19999
|
+
|
|
20000
|
+
@ElementDescription.setter
|
|
20001
|
+
def ElementDescription(self, ElementDescription):
|
|
20002
|
+
self._ElementDescription = ElementDescription
|
|
20003
|
+
|
|
20004
|
+
@property
|
|
20005
|
+
def ReferenceType(self):
|
|
20006
|
+
r"""<p>主体参考方式。通过视频定制的主体和通过图片定制的主体的可用范围不同。</p><p>枚举值:</p><ul><li>video_refer: 视频角色主体,此时将参考element_video_list定义主体外表。</li><li>image_refer: 多图主体,此时将参考element_image_list定义主体外表。</li></ul>
|
|
20007
|
+
:rtype: str
|
|
20008
|
+
"""
|
|
20009
|
+
return self._ReferenceType
|
|
20010
|
+
|
|
20011
|
+
@ReferenceType.setter
|
|
20012
|
+
def ReferenceType(self, ReferenceType):
|
|
20013
|
+
self._ReferenceType = ReferenceType
|
|
20014
|
+
|
|
20015
|
+
@property
|
|
20016
|
+
def ElementVoiceId(self):
|
|
20017
|
+
r"""<p>主体音色,可绑定音色库中已有音色。</p><ul><li>当前参数为空时,当前主体不绑定音色。</li><li>仅视频定制的主体支持绑定音色。</li></ul>
|
|
20018
|
+
:rtype: str
|
|
20019
|
+
"""
|
|
20020
|
+
return self._ElementVoiceId
|
|
20021
|
+
|
|
20022
|
+
@ElementVoiceId.setter
|
|
20023
|
+
def ElementVoiceId(self, ElementVoiceId):
|
|
20024
|
+
self._ElementVoiceId = ElementVoiceId
|
|
20025
|
+
|
|
20026
|
+
@property
|
|
20027
|
+
def ElementVideoList(self):
|
|
20028
|
+
r"""<p>主体参考视频,可通过视频设定主体及其细节。</p><ul><li>可上传有声视频,有声视频包含人声则触发音色定制(定制+入音色库+与主体绑定)</li><li>参考视频时当前参数必填,参考图片时当前参数无效</li><li>用key:value承载,如下:<br><pre><code>{ "refer_videos":[ { "video_url":"video_url_1" } ]}</code></pre>● 视频格式仅支持MP4/MOV<br>● 仅支持时长介于3s~8s之间、宽高比例需为16:9或9:16的1080P视频<br>● 至多仅支持上传1段视频,视频大小不超过200MB<br>● video_url参数值不得为空</li></ul>
|
|
20029
|
+
:rtype: str
|
|
20030
|
+
"""
|
|
20031
|
+
return self._ElementVideoList
|
|
20032
|
+
|
|
20033
|
+
@ElementVideoList.setter
|
|
20034
|
+
def ElementVideoList(self, ElementVideoList):
|
|
20035
|
+
self._ElementVideoList = ElementVideoList
|
|
20036
|
+
|
|
20037
|
+
@property
|
|
20038
|
+
def ElementImageList(self):
|
|
20039
|
+
r"""<p>主体参考图,可通过多张图片设定主体及其细节。</p><ul><li>包括正面参考图和其他角度或特写参考图,其中:<ul><li>至少包括1张正面参考图,由frontal_image参数定义。</li><li>需包括1~3张其他参考图,需与正面参考图有差异,由image_url参数定义。</li></ul></li><li>用key:value承载,如下:<br><pre><code>{ "frontal_image":"image_url_0", "refer_images":[ { "image_url":"image_url_1" }, { "image_url":"image_url_2" }, { "image_url":"image_url_3" } ]}</code></pre></li></ul>
|
|
20040
|
+
:rtype: str
|
|
20041
|
+
"""
|
|
20042
|
+
return self._ElementImageList
|
|
20043
|
+
|
|
20044
|
+
@ElementImageList.setter
|
|
20045
|
+
def ElementImageList(self, ElementImageList):
|
|
20046
|
+
self._ElementImageList = ElementImageList
|
|
20047
|
+
|
|
20048
|
+
@property
|
|
20049
|
+
def TagList(self):
|
|
20050
|
+
r"""<p>为主体配置标签,一个主体可以配置多个标签。</p><ul><li>用key:value承载,其中具体如下:</li></ul><p><pre><code>[ { "tag_id": "o_101" }, { "tag_id": "o_102" }]</code></pre></p>
|
|
20051
|
+
:rtype: str
|
|
20052
|
+
"""
|
|
20053
|
+
return self._TagList
|
|
20054
|
+
|
|
20055
|
+
@TagList.setter
|
|
20056
|
+
def TagList(self, TagList):
|
|
20057
|
+
self._TagList = TagList
|
|
20058
|
+
|
|
20059
|
+
@property
|
|
20060
|
+
def SessionId(self):
|
|
20061
|
+
r"""<p>用于去重的识别码,如果三天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。</p>
|
|
20062
|
+
:rtype: str
|
|
20063
|
+
"""
|
|
20064
|
+
return self._SessionId
|
|
20065
|
+
|
|
20066
|
+
@SessionId.setter
|
|
20067
|
+
def SessionId(self, SessionId):
|
|
20068
|
+
self._SessionId = SessionId
|
|
20069
|
+
|
|
20070
|
+
@property
|
|
20071
|
+
def SessionContext(self):
|
|
20072
|
+
r"""<p>来源上下文,用于透传用户请求信息,任务完成回调将返回该字段值,最长 1000 个字符。</p>
|
|
20073
|
+
:rtype: str
|
|
20074
|
+
"""
|
|
20075
|
+
return self._SessionContext
|
|
20076
|
+
|
|
20077
|
+
@SessionContext.setter
|
|
20078
|
+
def SessionContext(self, SessionContext):
|
|
20079
|
+
self._SessionContext = SessionContext
|
|
20080
|
+
|
|
20081
|
+
@property
|
|
20082
|
+
def TasksPriority(self):
|
|
20083
|
+
r"""<p>任务的优先级,数值越大优先级越高,取值范围是 -10 到 10,不填代表 0。</p>
|
|
20084
|
+
:rtype: int
|
|
20085
|
+
"""
|
|
20086
|
+
return self._TasksPriority
|
|
20087
|
+
|
|
20088
|
+
@TasksPriority.setter
|
|
20089
|
+
def TasksPriority(self, TasksPriority):
|
|
20090
|
+
self._TasksPriority = TasksPriority
|
|
20091
|
+
|
|
20092
|
+
|
|
20093
|
+
def _deserialize(self, params):
|
|
20094
|
+
self._SubAppId = params.get("SubAppId")
|
|
20095
|
+
self._ElementName = params.get("ElementName")
|
|
20096
|
+
self._ElementDescription = params.get("ElementDescription")
|
|
20097
|
+
self._ReferenceType = params.get("ReferenceType")
|
|
20098
|
+
self._ElementVoiceId = params.get("ElementVoiceId")
|
|
20099
|
+
self._ElementVideoList = params.get("ElementVideoList")
|
|
20100
|
+
self._ElementImageList = params.get("ElementImageList")
|
|
20101
|
+
self._TagList = params.get("TagList")
|
|
20102
|
+
self._SessionId = params.get("SessionId")
|
|
20103
|
+
self._SessionContext = params.get("SessionContext")
|
|
20104
|
+
self._TasksPriority = params.get("TasksPriority")
|
|
20105
|
+
memeber_set = set(params.keys())
|
|
20106
|
+
for name, value in vars(self).items():
|
|
20107
|
+
property_name = name[1:]
|
|
20108
|
+
if property_name in memeber_set:
|
|
20109
|
+
memeber_set.remove(property_name)
|
|
20110
|
+
if len(memeber_set) > 0:
|
|
20111
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
20112
|
+
|
|
20113
|
+
|
|
20114
|
+
|
|
20115
|
+
class CreateAigcAdvancedCustomElementResponse(AbstractModel):
|
|
20116
|
+
r"""CreateAigcAdvancedCustomElement返回参数结构体
|
|
20117
|
+
|
|
20118
|
+
"""
|
|
20119
|
+
|
|
20120
|
+
def __init__(self):
|
|
20121
|
+
r"""
|
|
20122
|
+
:param _TaskId: <p>任务 ID。</p>
|
|
20123
|
+
:type TaskId: str
|
|
20124
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
20125
|
+
:type RequestId: str
|
|
20126
|
+
"""
|
|
20127
|
+
self._TaskId = None
|
|
20128
|
+
self._RequestId = None
|
|
20129
|
+
|
|
20130
|
+
@property
|
|
20131
|
+
def TaskId(self):
|
|
20132
|
+
r"""<p>任务 ID。</p>
|
|
20133
|
+
:rtype: str
|
|
20134
|
+
"""
|
|
20135
|
+
return self._TaskId
|
|
20136
|
+
|
|
20137
|
+
@TaskId.setter
|
|
20138
|
+
def TaskId(self, TaskId):
|
|
20139
|
+
self._TaskId = TaskId
|
|
20140
|
+
|
|
20141
|
+
@property
|
|
20142
|
+
def RequestId(self):
|
|
20143
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
20144
|
+
:rtype: str
|
|
20145
|
+
"""
|
|
20146
|
+
return self._RequestId
|
|
20147
|
+
|
|
20148
|
+
@RequestId.setter
|
|
20149
|
+
def RequestId(self, RequestId):
|
|
20150
|
+
self._RequestId = RequestId
|
|
20151
|
+
|
|
20152
|
+
|
|
20153
|
+
def _deserialize(self, params):
|
|
20154
|
+
self._TaskId = params.get("TaskId")
|
|
20155
|
+
self._RequestId = params.get("RequestId")
|
|
20156
|
+
|
|
20157
|
+
|
|
19929
20158
|
class CreateAigcAdvancedCustomElementTask(AbstractModel):
|
|
19930
20159
|
r"""创建自定义主体任务信息。
|
|
19931
20160
|
|
|
@@ -20426,6 +20655,175 @@ class CreateAigcCustomVoiceOutput(AbstractModel):
|
|
|
20426
20655
|
|
|
20427
20656
|
|
|
20428
20657
|
|
|
20658
|
+
class CreateAigcCustomVoiceRequest(AbstractModel):
|
|
20659
|
+
r"""CreateAigcCustomVoice请求参数结构体
|
|
20660
|
+
|
|
20661
|
+
"""
|
|
20662
|
+
|
|
20663
|
+
def __init__(self):
|
|
20664
|
+
r"""
|
|
20665
|
+
:param _SubAppId: <p><b>点播<a href="https://cloud.tencent.com/document/product/266/14574">应用</a> ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</b></p>
|
|
20666
|
+
:type SubAppId: int
|
|
20667
|
+
:param _VoiceName: <p>音色名称,文本内容最大长度 20 个字符</p>
|
|
20668
|
+
:type VoiceName: str
|
|
20669
|
+
:param _VoiceUrl: <p>音色数据文件获取链接,支持 .mp3 / .wav / .mp4 / .mov 格式的音视频文件。音频中人声需干净无杂音,有且只能有一种人声,时长不短于 5 秒且不长于 30 秒。</p>
|
|
20670
|
+
:type VoiceUrl: str
|
|
20671
|
+
:param _VideoId: <p>历史作品 ID,可通过引用历史作品提供音频素材。</p>
|
|
20672
|
+
:type VideoId: str
|
|
20673
|
+
:param _SessionId: <p>用于去重的识别码,如果三天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。</p>
|
|
20674
|
+
:type SessionId: str
|
|
20675
|
+
:param _SessionContext: <p>来源上下文,用于透传用户请求信息,任务完成回调将返回该字段值,最长 1000 个字符。</p>
|
|
20676
|
+
:type SessionContext: str
|
|
20677
|
+
:param _TasksPriority: <p>任务的优先级,数值越大优先级越高,取值范围是 -10 到 10,不填代表 0。</p>
|
|
20678
|
+
:type TasksPriority: int
|
|
20679
|
+
"""
|
|
20680
|
+
self._SubAppId = None
|
|
20681
|
+
self._VoiceName = None
|
|
20682
|
+
self._VoiceUrl = None
|
|
20683
|
+
self._VideoId = None
|
|
20684
|
+
self._SessionId = None
|
|
20685
|
+
self._SessionContext = None
|
|
20686
|
+
self._TasksPriority = None
|
|
20687
|
+
|
|
20688
|
+
@property
|
|
20689
|
+
def SubAppId(self):
|
|
20690
|
+
r"""<p><b>点播<a href="https://cloud.tencent.com/document/product/266/14574">应用</a> ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</b></p>
|
|
20691
|
+
:rtype: int
|
|
20692
|
+
"""
|
|
20693
|
+
return self._SubAppId
|
|
20694
|
+
|
|
20695
|
+
@SubAppId.setter
|
|
20696
|
+
def SubAppId(self, SubAppId):
|
|
20697
|
+
self._SubAppId = SubAppId
|
|
20698
|
+
|
|
20699
|
+
@property
|
|
20700
|
+
def VoiceName(self):
|
|
20701
|
+
r"""<p>音色名称,文本内容最大长度 20 个字符</p>
|
|
20702
|
+
:rtype: str
|
|
20703
|
+
"""
|
|
20704
|
+
return self._VoiceName
|
|
20705
|
+
|
|
20706
|
+
@VoiceName.setter
|
|
20707
|
+
def VoiceName(self, VoiceName):
|
|
20708
|
+
self._VoiceName = VoiceName
|
|
20709
|
+
|
|
20710
|
+
@property
|
|
20711
|
+
def VoiceUrl(self):
|
|
20712
|
+
r"""<p>音色数据文件获取链接,支持 .mp3 / .wav / .mp4 / .mov 格式的音视频文件。音频中人声需干净无杂音,有且只能有一种人声,时长不短于 5 秒且不长于 30 秒。</p>
|
|
20713
|
+
:rtype: str
|
|
20714
|
+
"""
|
|
20715
|
+
return self._VoiceUrl
|
|
20716
|
+
|
|
20717
|
+
@VoiceUrl.setter
|
|
20718
|
+
def VoiceUrl(self, VoiceUrl):
|
|
20719
|
+
self._VoiceUrl = VoiceUrl
|
|
20720
|
+
|
|
20721
|
+
@property
|
|
20722
|
+
def VideoId(self):
|
|
20723
|
+
r"""<p>历史作品 ID,可通过引用历史作品提供音频素材。</p>
|
|
20724
|
+
:rtype: str
|
|
20725
|
+
"""
|
|
20726
|
+
return self._VideoId
|
|
20727
|
+
|
|
20728
|
+
@VideoId.setter
|
|
20729
|
+
def VideoId(self, VideoId):
|
|
20730
|
+
self._VideoId = VideoId
|
|
20731
|
+
|
|
20732
|
+
@property
|
|
20733
|
+
def SessionId(self):
|
|
20734
|
+
r"""<p>用于去重的识别码,如果三天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。</p>
|
|
20735
|
+
:rtype: str
|
|
20736
|
+
"""
|
|
20737
|
+
return self._SessionId
|
|
20738
|
+
|
|
20739
|
+
@SessionId.setter
|
|
20740
|
+
def SessionId(self, SessionId):
|
|
20741
|
+
self._SessionId = SessionId
|
|
20742
|
+
|
|
20743
|
+
@property
|
|
20744
|
+
def SessionContext(self):
|
|
20745
|
+
r"""<p>来源上下文,用于透传用户请求信息,任务完成回调将返回该字段值,最长 1000 个字符。</p>
|
|
20746
|
+
:rtype: str
|
|
20747
|
+
"""
|
|
20748
|
+
return self._SessionContext
|
|
20749
|
+
|
|
20750
|
+
@SessionContext.setter
|
|
20751
|
+
def SessionContext(self, SessionContext):
|
|
20752
|
+
self._SessionContext = SessionContext
|
|
20753
|
+
|
|
20754
|
+
@property
|
|
20755
|
+
def TasksPriority(self):
|
|
20756
|
+
r"""<p>任务的优先级,数值越大优先级越高,取值范围是 -10 到 10,不填代表 0。</p>
|
|
20757
|
+
:rtype: int
|
|
20758
|
+
"""
|
|
20759
|
+
return self._TasksPriority
|
|
20760
|
+
|
|
20761
|
+
@TasksPriority.setter
|
|
20762
|
+
def TasksPriority(self, TasksPriority):
|
|
20763
|
+
self._TasksPriority = TasksPriority
|
|
20764
|
+
|
|
20765
|
+
|
|
20766
|
+
def _deserialize(self, params):
|
|
20767
|
+
self._SubAppId = params.get("SubAppId")
|
|
20768
|
+
self._VoiceName = params.get("VoiceName")
|
|
20769
|
+
self._VoiceUrl = params.get("VoiceUrl")
|
|
20770
|
+
self._VideoId = params.get("VideoId")
|
|
20771
|
+
self._SessionId = params.get("SessionId")
|
|
20772
|
+
self._SessionContext = params.get("SessionContext")
|
|
20773
|
+
self._TasksPriority = params.get("TasksPriority")
|
|
20774
|
+
memeber_set = set(params.keys())
|
|
20775
|
+
for name, value in vars(self).items():
|
|
20776
|
+
property_name = name[1:]
|
|
20777
|
+
if property_name in memeber_set:
|
|
20778
|
+
memeber_set.remove(property_name)
|
|
20779
|
+
if len(memeber_set) > 0:
|
|
20780
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
20781
|
+
|
|
20782
|
+
|
|
20783
|
+
|
|
20784
|
+
class CreateAigcCustomVoiceResponse(AbstractModel):
|
|
20785
|
+
r"""CreateAigcCustomVoice返回参数结构体
|
|
20786
|
+
|
|
20787
|
+
"""
|
|
20788
|
+
|
|
20789
|
+
def __init__(self):
|
|
20790
|
+
r"""
|
|
20791
|
+
:param _TaskId: <p>任务 ID。</p>
|
|
20792
|
+
:type TaskId: str
|
|
20793
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
20794
|
+
:type RequestId: str
|
|
20795
|
+
"""
|
|
20796
|
+
self._TaskId = None
|
|
20797
|
+
self._RequestId = None
|
|
20798
|
+
|
|
20799
|
+
@property
|
|
20800
|
+
def TaskId(self):
|
|
20801
|
+
r"""<p>任务 ID。</p>
|
|
20802
|
+
:rtype: str
|
|
20803
|
+
"""
|
|
20804
|
+
return self._TaskId
|
|
20805
|
+
|
|
20806
|
+
@TaskId.setter
|
|
20807
|
+
def TaskId(self, TaskId):
|
|
20808
|
+
self._TaskId = TaskId
|
|
20809
|
+
|
|
20810
|
+
@property
|
|
20811
|
+
def RequestId(self):
|
|
20812
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
20813
|
+
:rtype: str
|
|
20814
|
+
"""
|
|
20815
|
+
return self._RequestId
|
|
20816
|
+
|
|
20817
|
+
@RequestId.setter
|
|
20818
|
+
def RequestId(self, RequestId):
|
|
20819
|
+
self._RequestId = RequestId
|
|
20820
|
+
|
|
20821
|
+
|
|
20822
|
+
def _deserialize(self, params):
|
|
20823
|
+
self._TaskId = params.get("TaskId")
|
|
20824
|
+
self._RequestId = params.get("RequestId")
|
|
20825
|
+
|
|
20826
|
+
|
|
20429
20827
|
class CreateAigcCustomVoiceTask(AbstractModel):
|
|
20430
20828
|
r"""创建自定义音色任务信息。
|
|
20431
20829
|
|
|
@@ -225,6 +225,29 @@ class VodClient(AbstractClient):
|
|
|
225
225
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
226
226
|
|
|
227
227
|
|
|
228
|
+
def CreateAigcAdvancedCustomElement(self, request):
|
|
229
|
+
r"""该接口用于创建 AIGC 高级自定义主体。
|
|
230
|
+
|
|
231
|
+
:param request: Request instance for CreateAigcAdvancedCustomElement.
|
|
232
|
+
:type request: :class:`tencentcloud.vod.v20180717.models.CreateAigcAdvancedCustomElementRequest`
|
|
233
|
+
:rtype: :class:`tencentcloud.vod.v20180717.models.CreateAigcAdvancedCustomElementResponse`
|
|
234
|
+
|
|
235
|
+
"""
|
|
236
|
+
try:
|
|
237
|
+
params = request._serialize()
|
|
238
|
+
headers = request.headers
|
|
239
|
+
body = self.call("CreateAigcAdvancedCustomElement", params, headers=headers)
|
|
240
|
+
response = json.loads(body)
|
|
241
|
+
model = models.CreateAigcAdvancedCustomElementResponse()
|
|
242
|
+
model._deserialize(response["Response"])
|
|
243
|
+
return model
|
|
244
|
+
except Exception as e:
|
|
245
|
+
if isinstance(e, TencentCloudSDKException):
|
|
246
|
+
raise
|
|
247
|
+
else:
|
|
248
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
249
|
+
|
|
250
|
+
|
|
228
251
|
def CreateAigcApiToken(self, request):
|
|
229
252
|
r"""创建AIGC调用API的Token。创建后数据同步有延时,约30秒后可查询或删除。
|
|
230
253
|
|
|
@@ -271,6 +294,29 @@ class VodClient(AbstractClient):
|
|
|
271
294
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
272
295
|
|
|
273
296
|
|
|
297
|
+
def CreateAigcCustomVoice(self, request):
|
|
298
|
+
r"""该接口用于创建 AIGC 自定义音色。
|
|
299
|
+
|
|
300
|
+
:param request: Request instance for CreateAigcCustomVoice.
|
|
301
|
+
:type request: :class:`tencentcloud.vod.v20180717.models.CreateAigcCustomVoiceRequest`
|
|
302
|
+
:rtype: :class:`tencentcloud.vod.v20180717.models.CreateAigcCustomVoiceResponse`
|
|
303
|
+
|
|
304
|
+
"""
|
|
305
|
+
try:
|
|
306
|
+
params = request._serialize()
|
|
307
|
+
headers = request.headers
|
|
308
|
+
body = self.call("CreateAigcCustomVoice", params, headers=headers)
|
|
309
|
+
response = json.loads(body)
|
|
310
|
+
model = models.CreateAigcCustomVoiceResponse()
|
|
311
|
+
model._deserialize(response["Response"])
|
|
312
|
+
return model
|
|
313
|
+
except Exception as e:
|
|
314
|
+
if isinstance(e, TencentCloudSDKException):
|
|
315
|
+
raise
|
|
316
|
+
else:
|
|
317
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
318
|
+
|
|
319
|
+
|
|
274
320
|
def CreateAigcImageTask(self, request):
|
|
275
321
|
r"""该接口用于[生成 AIGC 图片](https://cloud.tencent.com/document/product/266/124473)。<b>接口处于内测阶段,如需使用请[联系我们](https://cloud.tencent.com/online-service?from=sales_sales&source=PRESALE),接口调用会产生实际费用,</b>请参考点播 [AIGC 生图片计费文档](https://cloud.tencent.com/document/product/266/95125#9c4dc6ff-4b3f-4b25-bf2d-393889dfb9ac)。该功能结算模式为[后付费](https://cloud.tencent.com/document/product/266/2838),日结客户当天使用将在第二天出账,月结客户将在次月1日统一出上月使用费用。
|
|
276
322
|
|
|
@@ -184,6 +184,24 @@ class VodClient(AbstractClient):
|
|
|
184
184
|
|
|
185
185
|
return await self.call_and_deserialize(**kwargs)
|
|
186
186
|
|
|
187
|
+
async def CreateAigcAdvancedCustomElement(
|
|
188
|
+
self,
|
|
189
|
+
request: models.CreateAigcAdvancedCustomElementRequest,
|
|
190
|
+
opts: Dict = None,
|
|
191
|
+
) -> models.CreateAigcAdvancedCustomElementResponse:
|
|
192
|
+
"""
|
|
193
|
+
该接口用于创建 AIGC 高级自定义主体。
|
|
194
|
+
"""
|
|
195
|
+
|
|
196
|
+
kwargs = {}
|
|
197
|
+
kwargs["action"] = "CreateAigcAdvancedCustomElement"
|
|
198
|
+
kwargs["params"] = request._serialize()
|
|
199
|
+
kwargs["resp_cls"] = models.CreateAigcAdvancedCustomElementResponse
|
|
200
|
+
kwargs["headers"] = request.headers
|
|
201
|
+
kwargs["opts"] = opts or {}
|
|
202
|
+
|
|
203
|
+
return await self.call_and_deserialize(**kwargs)
|
|
204
|
+
|
|
187
205
|
async def CreateAigcApiToken(
|
|
188
206
|
self,
|
|
189
207
|
request: models.CreateAigcApiTokenRequest,
|
|
@@ -220,6 +238,24 @@ class VodClient(AbstractClient):
|
|
|
220
238
|
|
|
221
239
|
return await self.call_and_deserialize(**kwargs)
|
|
222
240
|
|
|
241
|
+
async def CreateAigcCustomVoice(
|
|
242
|
+
self,
|
|
243
|
+
request: models.CreateAigcCustomVoiceRequest,
|
|
244
|
+
opts: Dict = None,
|
|
245
|
+
) -> models.CreateAigcCustomVoiceResponse:
|
|
246
|
+
"""
|
|
247
|
+
该接口用于创建 AIGC 自定义音色。
|
|
248
|
+
"""
|
|
249
|
+
|
|
250
|
+
kwargs = {}
|
|
251
|
+
kwargs["action"] = "CreateAigcCustomVoice"
|
|
252
|
+
kwargs["params"] = request._serialize()
|
|
253
|
+
kwargs["resp_cls"] = models.CreateAigcCustomVoiceResponse
|
|
254
|
+
kwargs["headers"] = request.headers
|
|
255
|
+
kwargs["opts"] = opts or {}
|
|
256
|
+
|
|
257
|
+
return await self.call_and_deserialize(**kwargs)
|
|
258
|
+
|
|
223
259
|
async def CreateAigcImageTask(
|
|
224
260
|
self,
|
|
225
261
|
request: models.CreateAigcImageTaskRequest,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-vod
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.54
|
|
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.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.54
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.54
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.52
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|