tencentcloud-sdk-python-tts 3.0.1116__tar.gz → 3.0.1121__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-tts-3.0.1116 → tencentcloud-sdk-python-tts-3.0.1121}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-tts-3.0.1116 → tencentcloud-sdk-python-tts-3.0.1121}/setup.py +1 -1
- {tencentcloud-sdk-python-tts-3.0.1116 → tencentcloud-sdk-python-tts-3.0.1121}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-tts-3.0.1116 → tencentcloud-sdk-python-tts-3.0.1121}/tencentcloud/tts/v20190823/models.py +25 -12
- {tencentcloud-sdk-python-tts-3.0.1116 → tencentcloud-sdk-python-tts-3.0.1121}/tencentcloud_sdk_python_tts.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-tts-3.0.1121/tencentcloud_sdk_python_tts.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-tts-3.0.1116/tencentcloud_sdk_python_tts.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-tts-3.0.1116 → tencentcloud-sdk-python-tts-3.0.1121}/README.rst +0 -0
- {tencentcloud-sdk-python-tts-3.0.1116 → tencentcloud-sdk-python-tts-3.0.1121}/setup.cfg +0 -0
- {tencentcloud-sdk-python-tts-3.0.1116 → tencentcloud-sdk-python-tts-3.0.1121}/tencentcloud/tts/__init__.py +0 -0
- {tencentcloud-sdk-python-tts-3.0.1116 → tencentcloud-sdk-python-tts-3.0.1121}/tencentcloud/tts/v20190823/__init__.py +0 -0
- {tencentcloud-sdk-python-tts-3.0.1116 → tencentcloud-sdk-python-tts-3.0.1121}/tencentcloud/tts/v20190823/errorcodes.py +0 -0
- {tencentcloud-sdk-python-tts-3.0.1116 → tencentcloud-sdk-python-tts-3.0.1121}/tencentcloud/tts/v20190823/tts_client.py +0 -0
- {tencentcloud-sdk-python-tts-3.0.1116 → tencentcloud-sdk-python-tts-3.0.1121}/tencentcloud_sdk_python_tts.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-tts-3.0.1116 → tencentcloud-sdk-python-tts-3.0.1121}/tencentcloud_sdk_python_tts.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-tts-3.0.1116 → tencentcloud-sdk-python-tts-3.0.1121}/tencentcloud_sdk_python_tts.egg-info/top_level.txt +0 -0
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-tts',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common==3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1121"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Tts SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -27,14 +27,14 @@ class CreateTtsTaskRequest(AbstractModel):
|
|
|
27
27
|
r"""
|
|
28
28
|
:param _Text: 合成语音的源文本,按UTF-8编码统一计算,最多支持10万字符
|
|
29
29
|
:type Text: str
|
|
30
|
-
:param _ModelType: 模型类型,1-默认模型。
|
|
31
|
-
:type ModelType: int
|
|
32
30
|
:param _Volume: 音量大小,范围:[0,10],分别对应11个等级的音量,默认为0,代表正常音量。没有静音选项。
|
|
33
31
|
:type Volume: float
|
|
34
32
|
:param _Speed: 语速,范围:[-2,2],分别对应不同语速:<li>-2代表0.6倍</li><li>-1代表0.8倍</li><li>0代表1.0倍(默认)</li><li>1代表1.2倍</li><li>2代表1.5倍</li>如果需要更细化的语速,可以保留小数点后 2 位,例如0.5/1.25/2.81等。<br>参数值与实际语速转换,可参考[代码示例](https://sdk-1300466766.cos.ap-shanghai.myqcloud.com/sample/speed_sample.tar.gz)
|
|
35
33
|
:type Speed: float
|
|
36
34
|
:param _ProjectId: 项目id,用户自定义,默认为0。
|
|
37
35
|
:type ProjectId: int
|
|
36
|
+
:param _ModelType: 模型类型,1-默认模型。
|
|
37
|
+
:type ModelType: int
|
|
38
38
|
:param _VoiceType: 音色 ID,包括标准音色与精品音色,精品音色拟真度更高,价格不同于标准音色,请参见[购买指南](https://cloud.tencent.com/document/product/1073/34112)。完整的音色 ID 列表请参见[音色列表](https://cloud.tencent.com/document/product/1073/92668)。
|
|
39
39
|
:type VoiceType: int
|
|
40
40
|
:param _PrimaryLanguage: 主语言类型:<li>1-中文(默认)</li><li>2-英文</li><li>3-日文</li>
|
|
@@ -55,10 +55,10 @@ class CreateTtsTaskRequest(AbstractModel):
|
|
|
55
55
|
:type EmotionIntensity: int
|
|
56
56
|
"""
|
|
57
57
|
self._Text = None
|
|
58
|
-
self._ModelType = None
|
|
59
58
|
self._Volume = None
|
|
60
59
|
self._Speed = None
|
|
61
60
|
self._ProjectId = None
|
|
61
|
+
self._ModelType = None
|
|
62
62
|
self._VoiceType = None
|
|
63
63
|
self._PrimaryLanguage = None
|
|
64
64
|
self._SampleRate = None
|
|
@@ -77,14 +77,6 @@ class CreateTtsTaskRequest(AbstractModel):
|
|
|
77
77
|
def Text(self, Text):
|
|
78
78
|
self._Text = Text
|
|
79
79
|
|
|
80
|
-
@property
|
|
81
|
-
def ModelType(self):
|
|
82
|
-
return self._ModelType
|
|
83
|
-
|
|
84
|
-
@ModelType.setter
|
|
85
|
-
def ModelType(self, ModelType):
|
|
86
|
-
self._ModelType = ModelType
|
|
87
|
-
|
|
88
80
|
@property
|
|
89
81
|
def Volume(self):
|
|
90
82
|
return self._Volume
|
|
@@ -109,6 +101,14 @@ class CreateTtsTaskRequest(AbstractModel):
|
|
|
109
101
|
def ProjectId(self, ProjectId):
|
|
110
102
|
self._ProjectId = ProjectId
|
|
111
103
|
|
|
104
|
+
@property
|
|
105
|
+
def ModelType(self):
|
|
106
|
+
return self._ModelType
|
|
107
|
+
|
|
108
|
+
@ModelType.setter
|
|
109
|
+
def ModelType(self, ModelType):
|
|
110
|
+
self._ModelType = ModelType
|
|
111
|
+
|
|
112
112
|
@property
|
|
113
113
|
def VoiceType(self):
|
|
114
114
|
return self._VoiceType
|
|
@@ -184,10 +184,10 @@ class CreateTtsTaskRequest(AbstractModel):
|
|
|
184
184
|
|
|
185
185
|
def _deserialize(self, params):
|
|
186
186
|
self._Text = params.get("Text")
|
|
187
|
-
self._ModelType = params.get("ModelType")
|
|
188
187
|
self._Volume = params.get("Volume")
|
|
189
188
|
self._Speed = params.get("Speed")
|
|
190
189
|
self._ProjectId = params.get("ProjectId")
|
|
190
|
+
self._ModelType = params.get("ModelType")
|
|
191
191
|
self._VoiceType = params.get("VoiceType")
|
|
192
192
|
self._PrimaryLanguage = params.get("PrimaryLanguage")
|
|
193
193
|
self._SampleRate = params.get("SampleRate")
|
|
@@ -579,9 +579,12 @@ class TextToVoiceRequest(AbstractModel):
|
|
|
579
579
|
:param _SegmentRate: 断句敏感阈值,默认值为:0,取值范围:[0,1,2]。该值越大越不容易断句,模型会更倾向于仅按照标点符号断句。此参数建议不要随意调整,可能会影响合成效果。
|
|
580
580
|
:type SegmentRate: int
|
|
581
581
|
:param _EmotionCategory: 控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)、撒娇(sajiao)、厌恶(disgusted)、震惊(amaze)、平静(peaceful)、兴奋(exciting)、傲娇(aojiao)、解说(jieshuo)
|
|
582
|
+
示例值:neutral
|
|
582
583
|
:type EmotionCategory: str
|
|
583
584
|
:param _EmotionIntensity: 控制合成音频情感程度,取值范围为[50,200],默认为100;只有EmotionCategory不为空时生效;
|
|
584
585
|
:type EmotionIntensity: int
|
|
586
|
+
:param _FastVoiceType: 一句话复刻音色id,使用一句话复刻音色时需填写。若使用一句话复刻,VoiceType请填入固定值“200000000”
|
|
587
|
+
:type FastVoiceType: str
|
|
585
588
|
"""
|
|
586
589
|
self._Text = None
|
|
587
590
|
self._SessionId = None
|
|
@@ -597,6 +600,7 @@ class TextToVoiceRequest(AbstractModel):
|
|
|
597
600
|
self._SegmentRate = None
|
|
598
601
|
self._EmotionCategory = None
|
|
599
602
|
self._EmotionIntensity = None
|
|
603
|
+
self._FastVoiceType = None
|
|
600
604
|
|
|
601
605
|
@property
|
|
602
606
|
def Text(self):
|
|
@@ -710,6 +714,14 @@ class TextToVoiceRequest(AbstractModel):
|
|
|
710
714
|
def EmotionIntensity(self, EmotionIntensity):
|
|
711
715
|
self._EmotionIntensity = EmotionIntensity
|
|
712
716
|
|
|
717
|
+
@property
|
|
718
|
+
def FastVoiceType(self):
|
|
719
|
+
return self._FastVoiceType
|
|
720
|
+
|
|
721
|
+
@FastVoiceType.setter
|
|
722
|
+
def FastVoiceType(self, FastVoiceType):
|
|
723
|
+
self._FastVoiceType = FastVoiceType
|
|
724
|
+
|
|
713
725
|
|
|
714
726
|
def _deserialize(self, params):
|
|
715
727
|
self._Text = params.get("Text")
|
|
@@ -726,6 +738,7 @@ class TextToVoiceRequest(AbstractModel):
|
|
|
726
738
|
self._SegmentRate = params.get("SegmentRate")
|
|
727
739
|
self._EmotionCategory = params.get("EmotionCategory")
|
|
728
740
|
self._EmotionIntensity = params.get("EmotionIntensity")
|
|
741
|
+
self._FastVoiceType = params.get("FastVoiceType")
|
|
729
742
|
memeber_set = set(params.keys())
|
|
730
743
|
for name, value in vars(self).items():
|
|
731
744
|
property_name = name[1:]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1121
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1116
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|