tencentcloud-sdk-python-tts 3.1.19__tar.gz → 3.1.65__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_tts-3.1.19 → tencentcloud_sdk_python_tts-3.1.65}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_tts-3.1.19 → tencentcloud_sdk_python_tts-3.1.65}/setup.py +1 -1
  3. {tencentcloud_sdk_python_tts-3.1.19 → tencentcloud_sdk_python_tts-3.1.65}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_tts-3.1.19 → tencentcloud_sdk_python_tts-3.1.65}/tencentcloud/tts/v20190823/models.py +66 -76
  5. {tencentcloud_sdk_python_tts-3.1.19 → tencentcloud_sdk_python_tts-3.1.65}/tencentcloud_sdk_python_tts.egg-info/PKG-INFO +2 -2
  6. tencentcloud_sdk_python_tts-3.1.65/tencentcloud_sdk_python_tts.egg-info/requires.txt +1 -0
  7. tencentcloud_sdk_python_tts-3.1.19/tencentcloud_sdk_python_tts.egg-info/requires.txt +0 -1
  8. {tencentcloud_sdk_python_tts-3.1.19 → tencentcloud_sdk_python_tts-3.1.65}/README.rst +0 -0
  9. {tencentcloud_sdk_python_tts-3.1.19 → tencentcloud_sdk_python_tts-3.1.65}/setup.cfg +0 -0
  10. {tencentcloud_sdk_python_tts-3.1.19 → tencentcloud_sdk_python_tts-3.1.65}/tencentcloud/tts/__init__.py +0 -0
  11. {tencentcloud_sdk_python_tts-3.1.19 → tencentcloud_sdk_python_tts-3.1.65}/tencentcloud/tts/v20190823/__init__.py +0 -0
  12. {tencentcloud_sdk_python_tts-3.1.19 → tencentcloud_sdk_python_tts-3.1.65}/tencentcloud/tts/v20190823/errorcodes.py +0 -0
  13. {tencentcloud_sdk_python_tts-3.1.19 → tencentcloud_sdk_python_tts-3.1.65}/tencentcloud/tts/v20190823/tts_client.py +0 -0
  14. {tencentcloud_sdk_python_tts-3.1.19 → tencentcloud_sdk_python_tts-3.1.65}/tencentcloud/tts/v20190823/tts_client_async.py +0 -0
  15. {tencentcloud_sdk_python_tts-3.1.19 → tencentcloud_sdk_python_tts-3.1.65}/tencentcloud_sdk_python_tts.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_tts-3.1.19 → tencentcloud_sdk_python_tts-3.1.65}/tencentcloud_sdk_python_tts.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_tts-3.1.19 → tencentcloud_sdk_python_tts-3.1.65}/tencentcloud_sdk_python_tts.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-tts
3
- Version: 3.1.19
3
+ Version: 3.1.65
4
4
  Summary: Tencent Cloud Tts 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.19
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.65
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-tts',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.19,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.65,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Tts SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.19'
17
+ __version__ = '3.1.65'
@@ -25,33 +25,33 @@ class CreateTtsTaskRequest(AbstractModel):
25
25
 
26
26
  def __init__(self):
27
27
  r"""
28
- :param _Text: 合成语音的源文本,按UTF-8编码统一计算,最多支持10万字符
28
+ :param _Text: <p>合成语音的源文本,按UTF-8编码统一计算,最多支持10万字符</p>
29
29
  :type Text: str
30
- :param _Volume: 音量大小,范围[-10,10],对应音量大小。默认为0,代表正常音量,值越大音量越高。
30
+ :param _Volume: <p>音量大小,范围[-10,10],对应音量大小。默认为0,代表正常音量,值越大音量越高。</p>
31
31
  :type Volume: float
32
- :param _Speed: 语速,范围:[-2,6],分别对应不同语速:<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><li>6代表2.5倍</li>如果需要更细化的语速,可以保留小数点后 2 位,例如0.5/1.25/2.81等。<br>参数值与实际语速转换,可参考[代码示例](https://sdk-1300466766.cos.ap-shanghai.myqcloud.com/sample/speed_sample.tar.gz)
32
+ :param _Speed: <p>语速,范围:[-2,6],分别对应不同语速:<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><li>6代表2.5倍</li>如果需要更细化的语速,可以保留小数点后 2 位,例如0.5/1.25/2.81等。<br>参数值与实际语速转换,可参考<a href="https://sdk-1300466766.cos.ap-shanghai.myqcloud.com/sample/speed_sample.tar.gz">代码示例</a></p>
33
33
  :type Speed: float
34
- :param _ProjectId: 项目id,用户自定义,默认为0。
34
+ :param _ProjectId: <p>项目id,用户自定义,默认为0。</p>
35
35
  :type ProjectId: int
36
- :param _ModelType: 模型类型,1-默认模型。
36
+ :param _ModelType: <p>模型类型,1-默认模型。</p>
37
37
  :type ModelType: int
38
- :param _VoiceType: 音色 ID,价格请参见[购买指南](https://cloud.tencent.com/document/product/1073/34112)。完整的音色 ID 列表请参见[音色列表](https://cloud.tencent.com/document/product/1073/92668)。
38
+ :param _VoiceType: <p>音色 ID,价格请参见<a href="https://cloud.tencent.com/document/product/1073/34112">购买指南</a>。完整的音色 ID 列表请参见<a href="https://cloud.tencent.com/document/product/1073/92668">音色列表</a>。</p>
39
39
  :type VoiceType: int
40
- :param _PrimaryLanguage: 主语言类型:<li>1-中文(默认)</li><li>2-英文</li>
40
+ :param _PrimaryLanguage: <p>主语言类型:<li>1-中文(默认)</li><li>2-英文</li></p>
41
41
  :type PrimaryLanguage: int
42
- :param _SampleRate: 音频采样率:<li>16000:16k(默认)</li><li>8000:8k</li>
42
+ :param _SampleRate: <p>音频采样率:<li>16000:16k(默认)</li><li>8000:8k</li></p>
43
43
  :type SampleRate: int
44
- :param _Codec: 返回音频格式,可取值:mp3(默认),wav,pcm
44
+ :param _Codec: <p>返回音频格式,可取值:mp3(默认),wav,pcm</p>
45
45
  :type Codec: str
46
- :param _CallbackUrl: 回调 URL,用户自行搭建的用于接收识别结果的服务URL。如果用户使用轮询方式获取识别结果,则无需提交该参数。[回调说明](https://cloud.tencent.com/document/product/1073/55746)
46
+ :param _CallbackUrl: <p>回调 URL,用户自行搭建的用于接收识别结果的服务URL。如果用户使用轮询方式获取识别结果,则无需提交该参数。<a href="https://cloud.tencent.com/document/product/1073/55746">回调说明</a></p>
47
47
  :type CallbackUrl: str
48
- :param _EnableSubtitle: 是否开启时间戳功能,默认为false。
48
+ :param _EnableSubtitle: <p>是否开启时间戳功能,默认为false。</p>
49
49
  :type EnableSubtitle: bool
50
- :param _VoiceoverDialogueSplit: 旁白与对白文本解析,分别合成相应风格(仅适用于旁对白音色10510000、100510000),默认 false
50
+ :param _VoiceoverDialogueSplit: <p>旁白与对白文本解析,分别合成相应风格(仅适用于旁对白音色10510000、100510000),默认 false</p>
51
51
  :type VoiceoverDialogueSplit: bool
52
- :param _EmotionCategory: 控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)、sajiao(撒娇)、disgusted(厌恶)、amaze(震惊)、peaceful(平静)、exciting(兴奋)、aojiao(傲娇)、jieshuo(解说)
52
+ :param _EmotionCategory: <p>控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)、sajiao(撒娇)、disgusted(厌恶)、amaze(震惊)、peaceful(平静)、exciting(兴奋)、aojiao(傲娇)、jieshuo(解说)</p>
53
53
  :type EmotionCategory: str
54
- :param _EmotionIntensity: 控制合成音频情感程度,取值范围为[50,200],默认为100;只有EmotionCategory不为空时生效。
54
+ :param _EmotionIntensity: <p>控制合成音频情感程度,取值范围为[50,200],默认为100;只有EmotionCategory不为空时生效。</p>
55
55
  :type EmotionIntensity: int
56
56
  """
57
57
  self._Text = None
@@ -71,7 +71,7 @@ class CreateTtsTaskRequest(AbstractModel):
71
71
 
72
72
  @property
73
73
  def Text(self):
74
- r"""合成语音的源文本,按UTF-8编码统一计算,最多支持10万字符
74
+ r"""<p>合成语音的源文本,按UTF-8编码统一计算,最多支持10万字符</p>
75
75
  :rtype: str
76
76
  """
77
77
  return self._Text
@@ -82,7 +82,7 @@ class CreateTtsTaskRequest(AbstractModel):
82
82
 
83
83
  @property
84
84
  def Volume(self):
85
- r"""音量大小,范围[-10,10],对应音量大小。默认为0,代表正常音量,值越大音量越高。
85
+ r"""<p>音量大小,范围[-10,10],对应音量大小。默认为0,代表正常音量,值越大音量越高。</p>
86
86
  :rtype: float
87
87
  """
88
88
  return self._Volume
@@ -93,7 +93,7 @@ class CreateTtsTaskRequest(AbstractModel):
93
93
 
94
94
  @property
95
95
  def Speed(self):
96
- r"""语速,范围:[-2,6],分别对应不同语速:<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><li>6代表2.5倍</li>如果需要更细化的语速,可以保留小数点后 2 位,例如0.5/1.25/2.81等。<br>参数值与实际语速转换,可参考[代码示例](https://sdk-1300466766.cos.ap-shanghai.myqcloud.com/sample/speed_sample.tar.gz)
96
+ r"""<p>语速,范围:[-2,6],分别对应不同语速:<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><li>6代表2.5倍</li>如果需要更细化的语速,可以保留小数点后 2 位,例如0.5/1.25/2.81等。<br>参数值与实际语速转换,可参考<a href="https://sdk-1300466766.cos.ap-shanghai.myqcloud.com/sample/speed_sample.tar.gz">代码示例</a></p>
97
97
  :rtype: float
98
98
  """
99
99
  return self._Speed
@@ -104,7 +104,7 @@ class CreateTtsTaskRequest(AbstractModel):
104
104
 
105
105
  @property
106
106
  def ProjectId(self):
107
- r"""项目id,用户自定义,默认为0。
107
+ r"""<p>项目id,用户自定义,默认为0。</p>
108
108
  :rtype: int
109
109
  """
110
110
  return self._ProjectId
@@ -115,7 +115,7 @@ class CreateTtsTaskRequest(AbstractModel):
115
115
 
116
116
  @property
117
117
  def ModelType(self):
118
- r"""模型类型,1-默认模型。
118
+ r"""<p>模型类型,1-默认模型。</p>
119
119
  :rtype: int
120
120
  """
121
121
  return self._ModelType
@@ -126,7 +126,7 @@ class CreateTtsTaskRequest(AbstractModel):
126
126
 
127
127
  @property
128
128
  def VoiceType(self):
129
- r"""音色 ID,价格请参见[购买指南](https://cloud.tencent.com/document/product/1073/34112)。完整的音色 ID 列表请参见[音色列表](https://cloud.tencent.com/document/product/1073/92668)。
129
+ r"""<p>音色 ID,价格请参见<a href="https://cloud.tencent.com/document/product/1073/34112">购买指南</a>。完整的音色 ID 列表请参见<a href="https://cloud.tencent.com/document/product/1073/92668">音色列表</a>。</p>
130
130
  :rtype: int
131
131
  """
132
132
  return self._VoiceType
@@ -137,7 +137,7 @@ class CreateTtsTaskRequest(AbstractModel):
137
137
 
138
138
  @property
139
139
  def PrimaryLanguage(self):
140
- r"""主语言类型:<li>1-中文(默认)</li><li>2-英文</li>
140
+ r"""<p>主语言类型:<li>1-中文(默认)</li><li>2-英文</li></p>
141
141
  :rtype: int
142
142
  """
143
143
  return self._PrimaryLanguage
@@ -148,7 +148,7 @@ class CreateTtsTaskRequest(AbstractModel):
148
148
 
149
149
  @property
150
150
  def SampleRate(self):
151
- r"""音频采样率:<li>16000:16k(默认)</li><li>8000:8k</li>
151
+ r"""<p>音频采样率:<li>16000:16k(默认)</li><li>8000:8k</li></p>
152
152
  :rtype: int
153
153
  """
154
154
  return self._SampleRate
@@ -159,7 +159,7 @@ class CreateTtsTaskRequest(AbstractModel):
159
159
 
160
160
  @property
161
161
  def Codec(self):
162
- r"""返回音频格式,可取值:mp3(默认),wav,pcm
162
+ r"""<p>返回音频格式,可取值:mp3(默认),wav,pcm</p>
163
163
  :rtype: str
164
164
  """
165
165
  return self._Codec
@@ -170,7 +170,7 @@ class CreateTtsTaskRequest(AbstractModel):
170
170
 
171
171
  @property
172
172
  def CallbackUrl(self):
173
- r"""回调 URL,用户自行搭建的用于接收识别结果的服务URL。如果用户使用轮询方式获取识别结果,则无需提交该参数。[回调说明](https://cloud.tencent.com/document/product/1073/55746)
173
+ r"""<p>回调 URL,用户自行搭建的用于接收识别结果的服务URL。如果用户使用轮询方式获取识别结果,则无需提交该参数。<a href="https://cloud.tencent.com/document/product/1073/55746">回调说明</a></p>
174
174
  :rtype: str
175
175
  """
176
176
  return self._CallbackUrl
@@ -181,7 +181,7 @@ class CreateTtsTaskRequest(AbstractModel):
181
181
 
182
182
  @property
183
183
  def EnableSubtitle(self):
184
- r"""是否开启时间戳功能,默认为false。
184
+ r"""<p>是否开启时间戳功能,默认为false。</p>
185
185
  :rtype: bool
186
186
  """
187
187
  return self._EnableSubtitle
@@ -192,7 +192,7 @@ class CreateTtsTaskRequest(AbstractModel):
192
192
 
193
193
  @property
194
194
  def VoiceoverDialogueSplit(self):
195
- r"""旁白与对白文本解析,分别合成相应风格(仅适用于旁对白音色10510000、100510000),默认 false
195
+ r"""<p>旁白与对白文本解析,分别合成相应风格(仅适用于旁对白音色10510000、100510000),默认 false</p>
196
196
  :rtype: bool
197
197
  """
198
198
  return self._VoiceoverDialogueSplit
@@ -203,7 +203,7 @@ class CreateTtsTaskRequest(AbstractModel):
203
203
 
204
204
  @property
205
205
  def EmotionCategory(self):
206
- r"""控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)、sajiao(撒娇)、disgusted(厌恶)、amaze(震惊)、peaceful(平静)、exciting(兴奋)、aojiao(傲娇)、jieshuo(解说)
206
+ r"""<p>控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)、sajiao(撒娇)、disgusted(厌恶)、amaze(震惊)、peaceful(平静)、exciting(兴奋)、aojiao(傲娇)、jieshuo(解说)</p>
207
207
  :rtype: str
208
208
  """
209
209
  return self._EmotionCategory
@@ -214,7 +214,7 @@ class CreateTtsTaskRequest(AbstractModel):
214
214
 
215
215
  @property
216
216
  def EmotionIntensity(self):
217
- r"""控制合成音频情感程度,取值范围为[50,200],默认为100;只有EmotionCategory不为空时生效。
217
+ r"""<p>控制合成音频情感程度,取值范围为[50,200],默认为100;只有EmotionCategory不为空时生效。</p>
218
218
  :rtype: int
219
219
  """
220
220
  return self._EmotionIntensity
@@ -292,7 +292,7 @@ class CreateTtsTaskResponse(AbstractModel):
292
292
 
293
293
  def __init__(self):
294
294
  r"""
295
- :param _Data: 任务 id
295
+ :param _Data: <p>任务 id</p>
296
296
  :type Data: :class:`tencentcloud.tts.v20190823.models.CreateTtsTaskRespData`
297
297
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
298
298
  :type RequestId: str
@@ -302,7 +302,7 @@ class CreateTtsTaskResponse(AbstractModel):
302
302
 
303
303
  @property
304
304
  def Data(self):
305
- r"""任务 id
305
+ r"""<p>任务 id</p>
306
306
  :rtype: :class:`tencentcloud.tts.v20190823.models.CreateTtsTaskRespData`
307
307
  """
308
308
  return self._Data
@@ -647,40 +647,35 @@ class TextToVoiceRequest(AbstractModel):
647
647
 
648
648
  def __init__(self):
649
649
  r"""
650
- :param _Text: 合成语音的源文本,按UTF-8编码统一计算。
651
- 中文最大支持150个汉字(全角标点符号算一个汉字);英文最大支持500个字母(半角标点符号算一个字母)。
650
+ :param _Text: <p>合成语音的源文本,按UTF-8编码统一计算。<br>中文最大支持150个汉字(全角标点符号算一个汉字);英文最大支持500个字母(半角标点符号算一个字母)。</p>
652
651
  :type Text: str
653
- :param _SessionId: 一次请求对应一个SessionId,会原样返回,建议传入类似于uuid的字符串防止重复。
652
+ :param _SessionId: <p>一次请求对应一个SessionId,会原样返回,建议传入类似于uuid的字符串防止重复。</p>
654
653
  :type SessionId: str
655
- :param _Volume: 音量大小,范围[-10,10],对应音量大小。默认为0,代表正常音量,值越大音量越高。
654
+ :param _Volume: <p>音量大小,范围[-10,10],对应音量大小。默认为0,代表正常音量,值越大音量越高。</p>
656
655
  :type Volume: float
657
- :param _Speed: 语速,范围:[-2,6],分别对应不同语速:<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><li>6代表2.5倍</li>如果需要更细化的语速,可以保留小数点后 2 位,例如0.5/1.25/2.81等。<br>参数值与实际语速转换,可参考[代码示例](https://sdk-1300466766.cos.ap-shanghai.myqcloud.com/sample/speed_sample.tar.gz)
656
+ :param _Speed: <p>语速,范围:[-2,6],分别对应不同语速:<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><li>6代表2.5倍</li>如果需要更细化的语速,可以保留小数点后 2 位,例如0.5/1.25/2.81等。<br>参数值与实际语速转换,可参考<a href="https://sdk-1300466766.cos.ap-shanghai.myqcloud.com/sample/speed_sample.tar.gz">代码示例</a></p>
658
657
  :type Speed: float
659
- :param _ProjectId: 项目id,用户自定义,默认为0。
658
+ :param _ProjectId: <p>项目id,用户自定义,默认为0。</p>
660
659
  :type ProjectId: int
661
- :param _ModelType: 模型类型,1-默认模型。
660
+ :param _ModelType: <p>模型类型,1-默认模型。</p>
662
661
  :type ModelType: int
663
- :param _VoiceType: 音色 ID,包括精品音色、大模型音色与基础版复刻音色。不同音色价格有差异,详情请参见[购买指南](https://cloud.tencent.com/document/product/1073/34112)。完整的音色 ID 列表请参见[音色列表](https://cloud.tencent.com/document/product/1073/92668)。<br>若使用一句话版声音复刻,请填入固定值“200000000”。
662
+ :param _VoiceType: <p>音色 ID,包括精品音色、大模型音色与基础版复刻音色。不同音色价格有差异,详情请参见<a href="https://cloud.tencent.com/document/product/1073/34112">购买指南</a>。完整的音色 ID 列表请参见<a href="https://cloud.tencent.com/document/product/1073/92668">音色列表</a>。<br>若使用一句话版声音复刻,请填入固定值“200000000”。</p>
664
663
  :type VoiceType: int
665
- :param _FastVoiceType: 一句话版声音复刻音色ID,使用一句话版声音复刻音色时需填写。
664
+ :param _FastVoiceType: <p>一句话版声音复刻音色ID,使用一句话版声音复刻音色时需填写。</p>
666
665
  :type FastVoiceType: str
667
- :param _PrimaryLanguage: 主语言类型:<li>1-中文(默认)</li><li>2-英文</li>
666
+ :param _PrimaryLanguage: <p>主语言类型:<li>1-中文(默认)</li><li>2-英文</li></p>
668
667
  :type PrimaryLanguage: int
669
- :param _SampleRate: 音频采样率:
670
- <li>24000:24k(部分音色支持,请参见[音色列表](https://cloud.tencent.com/document/product/1073/92668))</li>
671
- <li>16000:16k(默认)</li>
672
- <li>8000:8k</li>
668
+ :param _SampleRate: <p>音频采样率:</p><li>24000:24k(部分音色支持,请参见[音色列表](https://cloud.tencent.com/document/product/1073/92668))</li><li>16000:16k(默认)</li><li>8000:8k</li>
673
669
  :type SampleRate: int
674
- :param _Codec: 返回音频格式,可取值:wav(默认),mp3,pcm
670
+ :param _Codec: <p>返回音频格式,可取值:wav(默认),mp3,pcm</p>
675
671
  :type Codec: str
676
- :param _EnableSubtitle: 是否开启时间戳功能,默认为false。
672
+ :param _EnableSubtitle: <p>是否开启时间戳功能,默认为false。部分超自然音色不支持时间戳</p>
677
673
  :type EnableSubtitle: bool
678
- :param _SegmentRate: 断句敏感阈值,默认值为:0,取值范围:[0,1,2]。该值越大越不容易断句,模型会更倾向于仅按照标点符号断句。此参数建议不要随意调整,可能会影响合成效果。
674
+ :param _SegmentRate: <p>断句敏感阈值,默认值为:0,取值范围:[0,1,2]。该值越大越不容易断句,模型会更倾向于仅按照标点符号断句。此参数建议不要随意调整,可能会影响合成效果。</p>
679
675
  :type SegmentRate: int
680
- :param _EmotionCategory: 控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)、sajiao(撒娇)、disgusted(厌恶)、amaze(震惊)、peaceful(平静)、exciting(兴奋)、aojiao(傲娇)、jieshuo(解说)
681
- 示例值:neutral
676
+ :param _EmotionCategory: <p>控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)、sajiao(撒娇)、disgusted(厌恶)、amaze(震惊)、peaceful(平静)、exciting(兴奋)、aojiao(傲娇)、jieshuo(解说)<br>示例值:neutral</p>
682
677
  :type EmotionCategory: str
683
- :param _EmotionIntensity: 控制合成音频情感程度,取值范围为[50,200],默认为100;只有EmotionCategory不为空时生效;
678
+ :param _EmotionIntensity: <p>控制合成音频情感程度,取值范围为[50,200],默认为100;只有EmotionCategory不为空时生效;</p>
684
679
  :type EmotionIntensity: int
685
680
  """
686
681
  self._Text = None
@@ -701,8 +696,7 @@ class TextToVoiceRequest(AbstractModel):
701
696
 
702
697
  @property
703
698
  def Text(self):
704
- r"""合成语音的源文本,按UTF-8编码统一计算。
705
- 中文最大支持150个汉字(全角标点符号算一个汉字);英文最大支持500个字母(半角标点符号算一个字母)。
699
+ r"""<p>合成语音的源文本,按UTF-8编码统一计算。<br>中文最大支持150个汉字(全角标点符号算一个汉字);英文最大支持500个字母(半角标点符号算一个字母)。</p>
706
700
  :rtype: str
707
701
  """
708
702
  return self._Text
@@ -713,7 +707,7 @@ class TextToVoiceRequest(AbstractModel):
713
707
 
714
708
  @property
715
709
  def SessionId(self):
716
- r"""一次请求对应一个SessionId,会原样返回,建议传入类似于uuid的字符串防止重复。
710
+ r"""<p>一次请求对应一个SessionId,会原样返回,建议传入类似于uuid的字符串防止重复。</p>
717
711
  :rtype: str
718
712
  """
719
713
  return self._SessionId
@@ -724,7 +718,7 @@ class TextToVoiceRequest(AbstractModel):
724
718
 
725
719
  @property
726
720
  def Volume(self):
727
- r"""音量大小,范围[-10,10],对应音量大小。默认为0,代表正常音量,值越大音量越高。
721
+ r"""<p>音量大小,范围[-10,10],对应音量大小。默认为0,代表正常音量,值越大音量越高。</p>
728
722
  :rtype: float
729
723
  """
730
724
  return self._Volume
@@ -735,7 +729,7 @@ class TextToVoiceRequest(AbstractModel):
735
729
 
736
730
  @property
737
731
  def Speed(self):
738
- r"""语速,范围:[-2,6],分别对应不同语速:<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><li>6代表2.5倍</li>如果需要更细化的语速,可以保留小数点后 2 位,例如0.5/1.25/2.81等。<br>参数值与实际语速转换,可参考[代码示例](https://sdk-1300466766.cos.ap-shanghai.myqcloud.com/sample/speed_sample.tar.gz)
732
+ r"""<p>语速,范围:[-2,6],分别对应不同语速:<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><li>6代表2.5倍</li>如果需要更细化的语速,可以保留小数点后 2 位,例如0.5/1.25/2.81等。<br>参数值与实际语速转换,可参考<a href="https://sdk-1300466766.cos.ap-shanghai.myqcloud.com/sample/speed_sample.tar.gz">代码示例</a></p>
739
733
  :rtype: float
740
734
  """
741
735
  return self._Speed
@@ -746,7 +740,7 @@ class TextToVoiceRequest(AbstractModel):
746
740
 
747
741
  @property
748
742
  def ProjectId(self):
749
- r"""项目id,用户自定义,默认为0。
743
+ r"""<p>项目id,用户自定义,默认为0。</p>
750
744
  :rtype: int
751
745
  """
752
746
  return self._ProjectId
@@ -757,7 +751,7 @@ class TextToVoiceRequest(AbstractModel):
757
751
 
758
752
  @property
759
753
  def ModelType(self):
760
- r"""模型类型,1-默认模型。
754
+ r"""<p>模型类型,1-默认模型。</p>
761
755
  :rtype: int
762
756
  """
763
757
  return self._ModelType
@@ -768,7 +762,7 @@ class TextToVoiceRequest(AbstractModel):
768
762
 
769
763
  @property
770
764
  def VoiceType(self):
771
- r"""音色 ID,包括精品音色、大模型音色与基础版复刻音色。不同音色价格有差异,详情请参见[购买指南](https://cloud.tencent.com/document/product/1073/34112)。完整的音色 ID 列表请参见[音色列表](https://cloud.tencent.com/document/product/1073/92668)。<br>若使用一句话版声音复刻,请填入固定值“200000000”。
765
+ r"""<p>音色 ID,包括精品音色、大模型音色与基础版复刻音色。不同音色价格有差异,详情请参见<a href="https://cloud.tencent.com/document/product/1073/34112">购买指南</a>。完整的音色 ID 列表请参见<a href="https://cloud.tencent.com/document/product/1073/92668">音色列表</a>。<br>若使用一句话版声音复刻,请填入固定值“200000000”。</p>
772
766
  :rtype: int
773
767
  """
774
768
  return self._VoiceType
@@ -779,7 +773,7 @@ class TextToVoiceRequest(AbstractModel):
779
773
 
780
774
  @property
781
775
  def FastVoiceType(self):
782
- r"""一句话版声音复刻音色ID,使用一句话版声音复刻音色时需填写。
776
+ r"""<p>一句话版声音复刻音色ID,使用一句话版声音复刻音色时需填写。</p>
783
777
  :rtype: str
784
778
  """
785
779
  return self._FastVoiceType
@@ -790,7 +784,7 @@ class TextToVoiceRequest(AbstractModel):
790
784
 
791
785
  @property
792
786
  def PrimaryLanguage(self):
793
- r"""主语言类型:<li>1-中文(默认)</li><li>2-英文</li>
787
+ r"""<p>主语言类型:<li>1-中文(默认)</li><li>2-英文</li></p>
794
788
  :rtype: int
795
789
  """
796
790
  return self._PrimaryLanguage
@@ -801,10 +795,7 @@ class TextToVoiceRequest(AbstractModel):
801
795
 
802
796
  @property
803
797
  def SampleRate(self):
804
- r"""音频采样率:
805
- <li>24000:24k(部分音色支持,请参见[音色列表](https://cloud.tencent.com/document/product/1073/92668))</li>
806
- <li>16000:16k(默认)</li>
807
- <li>8000:8k</li>
798
+ r"""<p>音频采样率:</p><li>24000:24k(部分音色支持,请参见[音色列表](https://cloud.tencent.com/document/product/1073/92668))</li><li>16000:16k(默认)</li><li>8000:8k</li>
808
799
  :rtype: int
809
800
  """
810
801
  return self._SampleRate
@@ -815,7 +806,7 @@ class TextToVoiceRequest(AbstractModel):
815
806
 
816
807
  @property
817
808
  def Codec(self):
818
- r"""返回音频格式,可取值:wav(默认),mp3,pcm
809
+ r"""<p>返回音频格式,可取值:wav(默认),mp3,pcm</p>
819
810
  :rtype: str
820
811
  """
821
812
  return self._Codec
@@ -826,7 +817,7 @@ class TextToVoiceRequest(AbstractModel):
826
817
 
827
818
  @property
828
819
  def EnableSubtitle(self):
829
- r"""是否开启时间戳功能,默认为false。
820
+ r"""<p>是否开启时间戳功能,默认为false。部分超自然音色不支持时间戳</p>
830
821
  :rtype: bool
831
822
  """
832
823
  return self._EnableSubtitle
@@ -837,7 +828,7 @@ class TextToVoiceRequest(AbstractModel):
837
828
 
838
829
  @property
839
830
  def SegmentRate(self):
840
- r"""断句敏感阈值,默认值为:0,取值范围:[0,1,2]。该值越大越不容易断句,模型会更倾向于仅按照标点符号断句。此参数建议不要随意调整,可能会影响合成效果。
831
+ r"""<p>断句敏感阈值,默认值为:0,取值范围:[0,1,2]。该值越大越不容易断句,模型会更倾向于仅按照标点符号断句。此参数建议不要随意调整,可能会影响合成效果。</p>
841
832
  :rtype: int
842
833
  """
843
834
  return self._SegmentRate
@@ -848,8 +839,7 @@ class TextToVoiceRequest(AbstractModel):
848
839
 
849
840
  @property
850
841
  def EmotionCategory(self):
851
- r"""控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)、sajiao(撒娇)、disgusted(厌恶)、amaze(震惊)、peaceful(平静)、exciting(兴奋)、aojiao(傲娇)、jieshuo(解说)
852
- 示例值:neutral
842
+ r"""<p>控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)、sajiao(撒娇)、disgusted(厌恶)、amaze(震惊)、peaceful(平静)、exciting(兴奋)、aojiao(傲娇)、jieshuo(解说)<br>示例值:neutral</p>
853
843
  :rtype: str
854
844
  """
855
845
  return self._EmotionCategory
@@ -860,7 +850,7 @@ class TextToVoiceRequest(AbstractModel):
860
850
 
861
851
  @property
862
852
  def EmotionIntensity(self):
863
- r"""控制合成音频情感程度,取值范围为[50,200],默认为100;只有EmotionCategory不为空时生效;
853
+ r"""<p>控制合成音频情感程度,取值范围为[50,200],默认为100;只有EmotionCategory不为空时生效;</p>
864
854
  :rtype: int
865
855
  """
866
856
  return self._EmotionIntensity
@@ -903,11 +893,11 @@ class TextToVoiceResponse(AbstractModel):
903
893
 
904
894
  def __init__(self):
905
895
  r"""
906
- :param _Audio: base64编码的wav/mp3音频数据
896
+ :param _Audio: <p>base64编码的wav/mp3音频数据</p>
907
897
  :type Audio: str
908
- :param _SessionId: 一次请求对应一个SessionId
898
+ :param _SessionId: <p>一次请求对应一个SessionId</p>
909
899
  :type SessionId: str
910
- :param _Subtitles: 时间戳信息,若未开启时间戳,则返回空数组。
900
+ :param _Subtitles: <p>时间戳信息,若未开启时间戳,则返回空数组。</p>
911
901
  :type Subtitles: list of Subtitle
912
902
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
913
903
  :type RequestId: str
@@ -919,7 +909,7 @@ class TextToVoiceResponse(AbstractModel):
919
909
 
920
910
  @property
921
911
  def Audio(self):
922
- r"""base64编码的wav/mp3音频数据
912
+ r"""<p>base64编码的wav/mp3音频数据</p>
923
913
  :rtype: str
924
914
  """
925
915
  return self._Audio
@@ -930,7 +920,7 @@ class TextToVoiceResponse(AbstractModel):
930
920
 
931
921
  @property
932
922
  def SessionId(self):
933
- r"""一次请求对应一个SessionId
923
+ r"""<p>一次请求对应一个SessionId</p>
934
924
  :rtype: str
935
925
  """
936
926
  return self._SessionId
@@ -941,7 +931,7 @@ class TextToVoiceResponse(AbstractModel):
941
931
 
942
932
  @property
943
933
  def Subtitles(self):
944
- r"""时间戳信息,若未开启时间戳,则返回空数组。
934
+ r"""<p>时间戳信息,若未开启时间戳,则返回空数组。</p>
945
935
  :rtype: list of Subtitle
946
936
  """
947
937
  return self._Subtitles
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-tts
3
- Version: 3.1.19
3
+ Version: 3.1.65
4
4
  Summary: Tencent Cloud Tts 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.19
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.65
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.65
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.19