tencentcloud-sdk-python-tts 3.0.1425__tar.gz → 3.0.1459__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 (16) hide show
  1. {tencentcloud-sdk-python-tts-3.0.1425 → tencentcloud-sdk-python-tts-3.0.1459}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-tts-3.0.1425 → tencentcloud-sdk-python-tts-3.0.1459}/setup.py +1 -1
  3. {tencentcloud-sdk-python-tts-3.0.1425 → tencentcloud-sdk-python-tts-3.0.1459}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-tts-3.0.1425 → tencentcloud-sdk-python-tts-3.0.1459}/tencentcloud/tts/v20190823/models.py +62 -64
  5. {tencentcloud-sdk-python-tts-3.0.1425 → tencentcloud-sdk-python-tts-3.0.1459}/tencentcloud/tts/v20190823/tts_client.py +4 -3
  6. {tencentcloud-sdk-python-tts-3.0.1425 → tencentcloud-sdk-python-tts-3.0.1459}/tencentcloud_sdk_python_tts.egg-info/PKG-INFO +1 -1
  7. tencentcloud-sdk-python-tts-3.0.1459/tencentcloud_sdk_python_tts.egg-info/requires.txt +1 -0
  8. tencentcloud-sdk-python-tts-3.0.1425/tencentcloud_sdk_python_tts.egg-info/requires.txt +0 -1
  9. {tencentcloud-sdk-python-tts-3.0.1425 → tencentcloud-sdk-python-tts-3.0.1459}/README.rst +0 -0
  10. {tencentcloud-sdk-python-tts-3.0.1425 → tencentcloud-sdk-python-tts-3.0.1459}/setup.cfg +0 -0
  11. {tencentcloud-sdk-python-tts-3.0.1425 → tencentcloud-sdk-python-tts-3.0.1459}/tencentcloud/tts/__init__.py +0 -0
  12. {tencentcloud-sdk-python-tts-3.0.1425 → tencentcloud-sdk-python-tts-3.0.1459}/tencentcloud/tts/v20190823/__init__.py +0 -0
  13. {tencentcloud-sdk-python-tts-3.0.1425 → tencentcloud-sdk-python-tts-3.0.1459}/tencentcloud/tts/v20190823/errorcodes.py +0 -0
  14. {tencentcloud-sdk-python-tts-3.0.1425 → tencentcloud-sdk-python-tts-3.0.1459}/tencentcloud_sdk_python_tts.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-tts-3.0.1425 → tencentcloud-sdk-python-tts-3.0.1459}/tencentcloud_sdk_python_tts.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-tts-3.0.1425 → tencentcloud-sdk-python-tts-3.0.1459}/tencentcloud_sdk_python_tts.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-tts
3
- Version: 3.0.1425
3
+ Version: 3.0.1459
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
@@ -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.1425,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.0.1459,<4.0.0"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Tts SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1425'
17
+ __version__ = '3.0.1459'
@@ -19,7 +19,7 @@ from tencentcloud.common.abstract_model import AbstractModel
19
19
 
20
20
 
21
21
  class CreateTtsTaskRequest(AbstractModel):
22
- """CreateTtsTask请求参数结构体
22
+ r"""CreateTtsTask请求参数结构体
23
23
 
24
24
  """
25
25
 
@@ -71,7 +71,7 @@ class CreateTtsTaskRequest(AbstractModel):
71
71
 
72
72
  @property
73
73
  def Text(self):
74
- """合成语音的源文本,按UTF-8编码统一计算,最多支持10万字符
74
+ r"""合成语音的源文本,按UTF-8编码统一计算,最多支持10万字符
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
- """音量大小,范围[-10,10],对应音量大小。默认为0,代表正常音量,值越大音量越高。
85
+ r"""音量大小,范围[-10,10],对应音量大小。默认为0,代表正常音量,值越大音量越高。
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
- """语速,范围:[-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"""语速,范围:[-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)
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
- """项目id,用户自定义,默认为0。
107
+ r"""项目id,用户自定义,默认为0。
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
- """模型类型,1-默认模型。
118
+ r"""模型类型,1-默认模型。
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
- """音色 ID,包括标准音色与精品音色,精品音色拟真度更高,价格不同于标准音色,请参见[购买指南](https://cloud.tencent.com/document/product/1073/34112)。完整的音色 ID 列表请参见[音色列表](https://cloud.tencent.com/document/product/1073/92668)。
129
+ r"""音色 ID,包括标准音色与精品音色,精品音色拟真度更高,价格不同于标准音色,请参见[购买指南](https://cloud.tencent.com/document/product/1073/34112)。完整的音色 ID 列表请参见[音色列表](https://cloud.tencent.com/document/product/1073/92668)。
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
- """主语言类型:<li>1-中文(默认)</li><li>2-英文</li><li>3-日文</li>
140
+ r"""主语言类型:<li>1-中文(默认)</li><li>2-英文</li><li>3-日文</li>
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
- """音频采样率:<li>16000:16k(默认)</li><li>8000:8k</li>
151
+ r"""音频采样率:<li>16000:16k(默认)</li><li>8000:8k</li>
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
- """返回音频格式,可取值:mp3(默认),wav,pcm
162
+ r"""返回音频格式,可取值:mp3(默认),wav,pcm
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
- """回调 URL,用户自行搭建的用于接收识别结果的服务URL。如果用户使用轮询方式获取识别结果,则无需提交该参数。[回调说明](https://cloud.tencent.com/document/product/1073/55746)
173
+ r"""回调 URL,用户自行搭建的用于接收识别结果的服务URL。如果用户使用轮询方式获取识别结果,则无需提交该参数。[回调说明](https://cloud.tencent.com/document/product/1073/55746)
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
- """是否开启时间戳功能,默认为false。
184
+ r"""是否开启时间戳功能,默认为false。
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
- """旁白与对白文本解析,分别合成相应风格(仅适用于旁对白音色10510000、100510000),默认 false
195
+ r"""旁白与对白文本解析,分别合成相应风格(仅适用于旁对白音色10510000、100510000),默认 false
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
- """控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)、sajiao(撒娇)、disgusted(厌恶)、amaze(震惊)、peaceful(平静)、exciting(兴奋)、aojiao(傲娇)、jieshuo(解说)
206
+ r"""控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)、sajiao(撒娇)、disgusted(厌恶)、amaze(震惊)、peaceful(平静)、exciting(兴奋)、aojiao(傲娇)、jieshuo(解说)
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
- """控制合成音频情感程度,取值范围为[50,200],默认为100;只有EmotionCategory不为空时生效。
217
+ r"""控制合成音频情感程度,取值范围为[50,200],默认为100;只有EmotionCategory不为空时生效。
218
218
  :rtype: int
219
219
  """
220
220
  return self._EmotionIntensity
@@ -250,7 +250,7 @@ class CreateTtsTaskRequest(AbstractModel):
250
250
 
251
251
 
252
252
  class CreateTtsTaskRespData(AbstractModel):
253
- """异步合成请求的返回数据
253
+ r"""异步合成请求的返回数据
254
254
 
255
255
  """
256
256
 
@@ -263,7 +263,7 @@ class CreateTtsTaskRespData(AbstractModel):
263
263
 
264
264
  @property
265
265
  def TaskId(self):
266
- """任务ID,可通过此ID在轮询接口获取合成状态与结果。注意:TaskId数据类型为string
266
+ r"""任务ID,可通过此ID在轮询接口获取合成状态与结果。注意:TaskId数据类型为string
267
267
  :rtype: str
268
268
  """
269
269
  return self._TaskId
@@ -286,7 +286,7 @@ class CreateTtsTaskRespData(AbstractModel):
286
286
 
287
287
 
288
288
  class CreateTtsTaskResponse(AbstractModel):
289
- """CreateTtsTask返回参数结构体
289
+ r"""CreateTtsTask返回参数结构体
290
290
 
291
291
  """
292
292
 
@@ -302,7 +302,7 @@ class CreateTtsTaskResponse(AbstractModel):
302
302
 
303
303
  @property
304
304
  def Data(self):
305
- """任务 id
305
+ r"""任务 id
306
306
  :rtype: :class:`tencentcloud.tts.v20190823.models.CreateTtsTaskRespData`
307
307
  """
308
308
  return self._Data
@@ -313,7 +313,7 @@ class CreateTtsTaskResponse(AbstractModel):
313
313
 
314
314
  @property
315
315
  def RequestId(self):
316
- """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
316
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
317
317
  :rtype: str
318
318
  """
319
319
  return self._RequestId
@@ -331,7 +331,7 @@ class CreateTtsTaskResponse(AbstractModel):
331
331
 
332
332
 
333
333
  class DescribeTtsTaskStatusRequest(AbstractModel):
334
- """DescribeTtsTaskStatus请求参数结构体
334
+ r"""DescribeTtsTaskStatus请求参数结构体
335
335
 
336
336
  """
337
337
 
@@ -344,7 +344,7 @@ class DescribeTtsTaskStatusRequest(AbstractModel):
344
344
 
345
345
  @property
346
346
  def TaskId(self):
347
- """任务id
347
+ r"""任务id
348
348
  :rtype: str
349
349
  """
350
350
  return self._TaskId
@@ -367,7 +367,7 @@ class DescribeTtsTaskStatusRequest(AbstractModel):
367
367
 
368
368
 
369
369
  class DescribeTtsTaskStatusRespData(AbstractModel):
370
- """获取异步合成结果的返回参数
370
+ r"""获取异步合成结果的返回参数
371
371
 
372
372
  """
373
373
 
@@ -395,7 +395,7 @@ class DescribeTtsTaskStatusRespData(AbstractModel):
395
395
 
396
396
  @property
397
397
  def TaskId(self):
398
- """任务标识。
398
+ r"""任务标识。
399
399
  :rtype: str
400
400
  """
401
401
  return self._TaskId
@@ -406,7 +406,7 @@ class DescribeTtsTaskStatusRespData(AbstractModel):
406
406
 
407
407
  @property
408
408
  def Status(self):
409
- """任务状态码,0:任务等待,1:任务执行中,2:任务成功,3:任务失败。
409
+ r"""任务状态码,0:任务等待,1:任务执行中,2:任务成功,3:任务失败。
410
410
  :rtype: int
411
411
  """
412
412
  return self._Status
@@ -417,7 +417,7 @@ class DescribeTtsTaskStatusRespData(AbstractModel):
417
417
 
418
418
  @property
419
419
  def StatusStr(self):
420
- """任务状态,waiting:任务等待,doing:任务执行中,success:任务成功,failed:任务失败。
420
+ r"""任务状态,waiting:任务等待,doing:任务执行中,success:任务成功,failed:任务失败。
421
421
  :rtype: str
422
422
  """
423
423
  return self._StatusStr
@@ -428,7 +428,7 @@ class DescribeTtsTaskStatusRespData(AbstractModel):
428
428
 
429
429
  @property
430
430
  def ResultUrl(self):
431
- """合成音频COS地址(链接有效期1天)。
431
+ r"""合成音频COS地址(链接有效期1天)。
432
432
  :rtype: str
433
433
  """
434
434
  return self._ResultUrl
@@ -439,7 +439,7 @@ class DescribeTtsTaskStatusRespData(AbstractModel):
439
439
 
440
440
  @property
441
441
  def Subtitles(self):
442
- """时间戳信息,若未开启时间戳,则返回空数组。
442
+ r"""时间戳信息,若未开启时间戳,则返回空数组。
443
443
  :rtype: list of Subtitle
444
444
  """
445
445
  return self._Subtitles
@@ -450,7 +450,7 @@ class DescribeTtsTaskStatusRespData(AbstractModel):
450
450
 
451
451
  @property
452
452
  def ErrorMsg(self):
453
- """失败原因说明。
453
+ r"""失败原因说明。
454
454
  :rtype: str
455
455
  """
456
456
  return self._ErrorMsg
@@ -483,7 +483,7 @@ class DescribeTtsTaskStatusRespData(AbstractModel):
483
483
 
484
484
 
485
485
  class DescribeTtsTaskStatusResponse(AbstractModel):
486
- """DescribeTtsTaskStatus返回参数结构体
486
+ r"""DescribeTtsTaskStatus返回参数结构体
487
487
 
488
488
  """
489
489
 
@@ -499,7 +499,7 @@ class DescribeTtsTaskStatusResponse(AbstractModel):
499
499
 
500
500
  @property
501
501
  def Data(self):
502
- """任务状态返回
502
+ r"""任务状态返回
503
503
  :rtype: :class:`tencentcloud.tts.v20190823.models.DescribeTtsTaskStatusRespData`
504
504
  """
505
505
  return self._Data
@@ -510,7 +510,7 @@ class DescribeTtsTaskStatusResponse(AbstractModel):
510
510
 
511
511
  @property
512
512
  def RequestId(self):
513
- """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
513
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
514
514
  :rtype: str
515
515
  """
516
516
  return self._RequestId
@@ -528,7 +528,7 @@ class DescribeTtsTaskStatusResponse(AbstractModel):
528
528
 
529
529
 
530
530
  class Subtitle(AbstractModel):
531
- """时间戳信息。
531
+ r"""时间戳信息。
532
532
 
533
533
  """
534
534
 
@@ -557,7 +557,7 @@ class Subtitle(AbstractModel):
557
557
 
558
558
  @property
559
559
  def Text(self):
560
- """⽂本信息。
560
+ r"""⽂本信息。
561
561
  :rtype: str
562
562
  """
563
563
  return self._Text
@@ -568,7 +568,7 @@ class Subtitle(AbstractModel):
568
568
 
569
569
  @property
570
570
  def BeginTime(self):
571
- """⽂本对应tts语⾳开始时间戳,单位ms。
571
+ r"""⽂本对应tts语⾳开始时间戳,单位ms。
572
572
  :rtype: int
573
573
  """
574
574
  return self._BeginTime
@@ -579,7 +579,7 @@ class Subtitle(AbstractModel):
579
579
 
580
580
  @property
581
581
  def EndTime(self):
582
- """⽂本对应tts语⾳结束时间戳,单位ms。
582
+ r"""⽂本对应tts语⾳结束时间戳,单位ms。
583
583
  :rtype: int
584
584
  """
585
585
  return self._EndTime
@@ -590,7 +590,7 @@ class Subtitle(AbstractModel):
590
590
 
591
591
  @property
592
592
  def BeginIndex(self):
593
- """该文本在时间戳数组中的开始位置,从0开始。
593
+ r"""该文本在时间戳数组中的开始位置,从0开始。
594
594
  :rtype: int
595
595
  """
596
596
  return self._BeginIndex
@@ -601,7 +601,7 @@ class Subtitle(AbstractModel):
601
601
 
602
602
  @property
603
603
  def EndIndex(self):
604
- """该文本在时间戳数组中的结束位置,从0开始。
604
+ r"""该文本在时间戳数组中的结束位置,从0开始。
605
605
  :rtype: int
606
606
  """
607
607
  return self._EndIndex
@@ -612,7 +612,7 @@ class Subtitle(AbstractModel):
612
612
 
613
613
  @property
614
614
  def Phoneme(self):
615
- """该字的音素。
615
+ r"""该字的音素。
616
616
  注意:此字段可能返回 null,表示取不到有效值。
617
617
  :rtype: str
618
618
  """
@@ -641,7 +641,7 @@ class Subtitle(AbstractModel):
641
641
 
642
642
 
643
643
  class TextToVoiceRequest(AbstractModel):
644
- """TextToVoice请求参数结构体
644
+ r"""TextToVoice请求参数结构体
645
645
 
646
646
  """
647
647
 
@@ -660,10 +660,9 @@ class TextToVoiceRequest(AbstractModel):
660
660
  :type ProjectId: int
661
661
  :param _ModelType: 模型类型,1-默认模型。
662
662
  :type ModelType: int
663
- :param _VoiceType: 音色 ID,包括标准音色、精品音色、大模型音色与基础版复刻音色。不同音色价格有差异,详情请参见[购买指南](https://cloud.tencent.com/document/product/1073/34112)。完整的音色 ID 列表请参见[音色列表](https://cloud.tencent.com/document/product/1073/92668)。
664
-
663
+ :param _VoiceType: 音色 ID,包括标准音色、精品音色、大模型音色与基础版复刻音色。不同音色价格有差异,详情请参见[购买指南](https://cloud.tencent.com/document/product/1073/34112)。完整的音色 ID 列表请参见[音色列表](https://cloud.tencent.com/document/product/1073/92668)。<br>若使用一句话版声音复刻,请填入固定值“200000000”。
665
664
  :type VoiceType: int
666
- :param _FastVoiceType: 一句话版声音复刻音色ID,使用一句话版声音复刻音色时需填写。【已废弃】
665
+ :param _FastVoiceType: 一句话版声音复刻音色ID,使用一句话版声音复刻音色时需填写。
667
666
  :type FastVoiceType: str
668
667
  :param _PrimaryLanguage: 主语言类型:<li>1-中文(默认)</li><li>2-英文</li><li>3-日文</li>
669
668
  :type PrimaryLanguage: int
@@ -702,7 +701,7 @@ class TextToVoiceRequest(AbstractModel):
702
701
 
703
702
  @property
704
703
  def Text(self):
705
- """合成语音的源文本,按UTF-8编码统一计算。
704
+ r"""合成语音的源文本,按UTF-8编码统一计算。
706
705
  中文最大支持150个汉字(全角标点符号算一个汉字);英文最大支持500个字母(半角标点符号算一个字母)。
707
706
  :rtype: str
708
707
  """
@@ -714,7 +713,7 @@ class TextToVoiceRequest(AbstractModel):
714
713
 
715
714
  @property
716
715
  def SessionId(self):
717
- """一次请求对应一个SessionId,会原样返回,建议传入类似于uuid的字符串防止重复。
716
+ r"""一次请求对应一个SessionId,会原样返回,建议传入类似于uuid的字符串防止重复。
718
717
  :rtype: str
719
718
  """
720
719
  return self._SessionId
@@ -725,7 +724,7 @@ class TextToVoiceRequest(AbstractModel):
725
724
 
726
725
  @property
727
726
  def Volume(self):
728
- """音量大小,范围[-10,10],对应音量大小。默认为0,代表正常音量,值越大音量越高。
727
+ r"""音量大小,范围[-10,10],对应音量大小。默认为0,代表正常音量,值越大音量越高。
729
728
  :rtype: float
730
729
  """
731
730
  return self._Volume
@@ -736,7 +735,7 @@ class TextToVoiceRequest(AbstractModel):
736
735
 
737
736
  @property
738
737
  def Speed(self):
739
- """语速,范围:[-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)
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)
740
739
  :rtype: float
741
740
  """
742
741
  return self._Speed
@@ -747,7 +746,7 @@ class TextToVoiceRequest(AbstractModel):
747
746
 
748
747
  @property
749
748
  def ProjectId(self):
750
- """项目id,用户自定义,默认为0。
749
+ r"""项目id,用户自定义,默认为0。
751
750
  :rtype: int
752
751
  """
753
752
  return self._ProjectId
@@ -758,7 +757,7 @@ class TextToVoiceRequest(AbstractModel):
758
757
 
759
758
  @property
760
759
  def ModelType(self):
761
- """模型类型,1-默认模型。
760
+ r"""模型类型,1-默认模型。
762
761
  :rtype: int
763
762
  """
764
763
  return self._ModelType
@@ -769,8 +768,7 @@ class TextToVoiceRequest(AbstractModel):
769
768
 
770
769
  @property
771
770
  def VoiceType(self):
772
- """音色 ID,包括标准音色、精品音色、大模型音色与基础版复刻音色。不同音色价格有差异,详情请参见[购买指南](https://cloud.tencent.com/document/product/1073/34112)。完整的音色 ID 列表请参见[音色列表](https://cloud.tencent.com/document/product/1073/92668)。
773
-
771
+ r"""音色 ID,包括标准音色、精品音色、大模型音色与基础版复刻音色。不同音色价格有差异,详情请参见[购买指南](https://cloud.tencent.com/document/product/1073/34112)。完整的音色 ID 列表请参见[音色列表](https://cloud.tencent.com/document/product/1073/92668)。<br>若使用一句话版声音复刻,请填入固定值“200000000”。
774
772
  :rtype: int
775
773
  """
776
774
  return self._VoiceType
@@ -781,7 +779,7 @@ class TextToVoiceRequest(AbstractModel):
781
779
 
782
780
  @property
783
781
  def FastVoiceType(self):
784
- """一句话版声音复刻音色ID,使用一句话版声音复刻音色时需填写。【已废弃】
782
+ r"""一句话版声音复刻音色ID,使用一句话版声音复刻音色时需填写。
785
783
  :rtype: str
786
784
  """
787
785
  return self._FastVoiceType
@@ -792,7 +790,7 @@ class TextToVoiceRequest(AbstractModel):
792
790
 
793
791
  @property
794
792
  def PrimaryLanguage(self):
795
- """主语言类型:<li>1-中文(默认)</li><li>2-英文</li><li>3-日文</li>
793
+ r"""主语言类型:<li>1-中文(默认)</li><li>2-英文</li><li>3-日文</li>
796
794
  :rtype: int
797
795
  """
798
796
  return self._PrimaryLanguage
@@ -803,7 +801,7 @@ class TextToVoiceRequest(AbstractModel):
803
801
 
804
802
  @property
805
803
  def SampleRate(self):
806
- """音频采样率:
804
+ r"""音频采样率:
807
805
  <li>24000:24k(部分音色支持,请参见[音色列表](https://cloud.tencent.com/document/product/1073/92668))</li>
808
806
  <li>16000:16k(默认)</li>
809
807
  <li>8000:8k</li>
@@ -817,7 +815,7 @@ class TextToVoiceRequest(AbstractModel):
817
815
 
818
816
  @property
819
817
  def Codec(self):
820
- """返回音频格式,可取值:wav(默认),mp3,pcm
818
+ r"""返回音频格式,可取值:wav(默认),mp3,pcm
821
819
  :rtype: str
822
820
  """
823
821
  return self._Codec
@@ -828,7 +826,7 @@ class TextToVoiceRequest(AbstractModel):
828
826
 
829
827
  @property
830
828
  def EnableSubtitle(self):
831
- """是否开启时间戳功能,默认为false。
829
+ r"""是否开启时间戳功能,默认为false。
832
830
  :rtype: bool
833
831
  """
834
832
  return self._EnableSubtitle
@@ -839,7 +837,7 @@ class TextToVoiceRequest(AbstractModel):
839
837
 
840
838
  @property
841
839
  def SegmentRate(self):
842
- """断句敏感阈值,默认值为:0,取值范围:[0,1,2]。该值越大越不容易断句,模型会更倾向于仅按照标点符号断句。此参数建议不要随意调整,可能会影响合成效果。
840
+ r"""断句敏感阈值,默认值为:0,取值范围:[0,1,2]。该值越大越不容易断句,模型会更倾向于仅按照标点符号断句。此参数建议不要随意调整,可能会影响合成效果。
843
841
  :rtype: int
844
842
  """
845
843
  return self._SegmentRate
@@ -850,7 +848,7 @@ class TextToVoiceRequest(AbstractModel):
850
848
 
851
849
  @property
852
850
  def EmotionCategory(self):
853
- """控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)、sajiao(撒娇)、disgusted(厌恶)、amaze(震惊)、peaceful(平静)、exciting(兴奋)、aojiao(傲娇)、jieshuo(解说)
851
+ r"""控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)、sajiao(撒娇)、disgusted(厌恶)、amaze(震惊)、peaceful(平静)、exciting(兴奋)、aojiao(傲娇)、jieshuo(解说)
854
852
  示例值:neutral
855
853
  :rtype: str
856
854
  """
@@ -862,7 +860,7 @@ class TextToVoiceRequest(AbstractModel):
862
860
 
863
861
  @property
864
862
  def EmotionIntensity(self):
865
- """控制合成音频情感程度,取值范围为[50,200],默认为100;只有EmotionCategory不为空时生效;
863
+ r"""控制合成音频情感程度,取值范围为[50,200],默认为100;只有EmotionCategory不为空时生效;
866
864
  :rtype: int
867
865
  """
868
866
  return self._EmotionIntensity
@@ -899,7 +897,7 @@ class TextToVoiceRequest(AbstractModel):
899
897
 
900
898
 
901
899
  class TextToVoiceResponse(AbstractModel):
902
- """TextToVoice返回参数结构体
900
+ r"""TextToVoice返回参数结构体
903
901
 
904
902
  """
905
903
 
@@ -921,7 +919,7 @@ class TextToVoiceResponse(AbstractModel):
921
919
 
922
920
  @property
923
921
  def Audio(self):
924
- """base64编码的wav/mp3音频数据
922
+ r"""base64编码的wav/mp3音频数据
925
923
  :rtype: str
926
924
  """
927
925
  return self._Audio
@@ -932,7 +930,7 @@ class TextToVoiceResponse(AbstractModel):
932
930
 
933
931
  @property
934
932
  def SessionId(self):
935
- """一次请求对应一个SessionId
933
+ r"""一次请求对应一个SessionId
936
934
  :rtype: str
937
935
  """
938
936
  return self._SessionId
@@ -943,7 +941,7 @@ class TextToVoiceResponse(AbstractModel):
943
941
 
944
942
  @property
945
943
  def Subtitles(self):
946
- """时间戳信息,若未开启时间戳,则返回空数组。
944
+ r"""时间戳信息,若未开启时间戳,则返回空数组。
947
945
  :rtype: list of Subtitle
948
946
  """
949
947
  return self._Subtitles
@@ -954,7 +952,7 @@ class TextToVoiceResponse(AbstractModel):
954
952
 
955
953
  @property
956
954
  def RequestId(self):
957
- """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
955
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
958
956
  :rtype: str
959
957
  """
960
958
  return self._RequestId
@@ -27,7 +27,7 @@ class TtsClient(AbstractClient):
27
27
 
28
28
 
29
29
  def CreateTtsTask(self, request):
30
- """本接口服务对10万字符以内的文本进行语音合成,异步返回音频结果。满足一次性合成较长文本的客户需求,如阅读播报、新闻媒体等场景。
30
+ r"""本接口服务对10万字符以内的文本进行语音合成,异步返回音频结果。满足一次性合成较长文本的客户需求,如阅读播报、新闻媒体等场景。
31
31
 
32
32
  <li>支持音频格式:mp3,wav,pcm</li>
33
33
  <li>支持音频采样率:16000 Hz, 8000 Hz</li>
@@ -67,7 +67,7 @@ class TtsClient(AbstractClient):
67
67
 
68
68
 
69
69
  def DescribeTtsTaskStatus(self, request):
70
- """在调用长文本语音合成请求接口后,有回调和轮询两种方式获取识别结果。
70
+ r"""在调用长文本语音合成请求接口后,有回调和轮询两种方式获取识别结果。
71
71
 
72
72
  <li>当采用回调方式时,合成完毕后会将结果通过 POST 请求的形式通知到用户在请求时填写的回调 URL,具体请参见 长文本语音合成结果查询 。</li>
73
73
  <li>当采用轮询方式时,需要主动提交任务ID来轮询识别结果,共有任务成功、等待、执行中和失败四种结果,具体信息请参见下文说明。</li>
@@ -93,13 +93,14 @@ class TtsClient(AbstractClient):
93
93
 
94
94
 
95
95
  def TextToVoice(self, request):
96
- """腾讯云语音合成技术(TTS)可以将任意文本转化为语音,实现让机器和应用张口说话。
96
+ r"""腾讯云语音合成技术(TTS)可以将任意文本转化为语音,实现让机器和应用张口说话。
97
97
  腾讯TTS技术可以应用到很多场景,比如,移动APP语音播报新闻;智能设备语音提醒;依靠网上现有节目或少量录音,快速合成明星语音,降低邀约成本;支持车载导航语音合成的个性化语音播报。
98
98
  基础合成支持 SSML,语法详见 [SSML 标记语言](https://cloud.tencent.com/document/product/1073/49575)。
99
99
  默认接口请求频率限制:
100
100
  精品音色和标准音色:默认20并发
101
101
  大模型音色:默认20并发
102
102
  超自然大模型音色:暂不支持
103
+ 一句话复刻音色:默认10并发
103
104
 
104
105
  :param request: Request instance for TextToVoice.
105
106
  :type request: :class:`tencentcloud.tts.v20190823.models.TextToVoiceRequest`
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-tts
3
- Version: 3.0.1425
3
+ Version: 3.0.1459
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
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.0.1459
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.0.1425