tencentcloud-sdk-python-tts 3.0.1255__tar.gz → 3.0.1288__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.1255 → tencentcloud-sdk-python-tts-3.0.1288}/PKG-INFO +3 -3
- {tencentcloud-sdk-python-tts-3.0.1255 → tencentcloud-sdk-python-tts-3.0.1288}/setup.cfg +0 -1
- {tencentcloud-sdk-python-tts-3.0.1255 → tencentcloud-sdk-python-tts-3.0.1288}/setup.py +1 -1
- {tencentcloud-sdk-python-tts-3.0.1255 → tencentcloud-sdk-python-tts-3.0.1288}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-tts-3.0.1255 → tencentcloud-sdk-python-tts-3.0.1288}/tencentcloud/tts/v20190823/models.py +161 -1
- {tencentcloud-sdk-python-tts-3.0.1255 → tencentcloud-sdk-python-tts-3.0.1288}/tencentcloud/tts/v20190823/tts_client.py +1 -1
- {tencentcloud-sdk-python-tts-3.0.1255 → tencentcloud-sdk-python-tts-3.0.1288}/tencentcloud_sdk_python_tts.egg-info/PKG-INFO +3 -3
- tencentcloud-sdk-python-tts-3.0.1288/tencentcloud_sdk_python_tts.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-tts-3.0.1255/tencentcloud_sdk_python_tts.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-tts-3.0.1255 → tencentcloud-sdk-python-tts-3.0.1288}/README.rst +0 -0
- {tencentcloud-sdk-python-tts-3.0.1255 → tencentcloud-sdk-python-tts-3.0.1288}/tencentcloud/tts/__init__.py +0 -0
- {tencentcloud-sdk-python-tts-3.0.1255 → tencentcloud-sdk-python-tts-3.0.1288}/tencentcloud/tts/v20190823/__init__.py +0 -0
- {tencentcloud-sdk-python-tts-3.0.1255 → tencentcloud-sdk-python-tts-3.0.1288}/tencentcloud/tts/v20190823/errorcodes.py +0 -0
- {tencentcloud-sdk-python-tts-3.0.1255 → tencentcloud-sdk-python-tts-3.0.1288}/tencentcloud_sdk_python_tts.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-tts-3.0.1255 → tencentcloud-sdk-python-tts-3.0.1288}/tencentcloud_sdk_python_tts.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-tts-3.0.1255 → tencentcloud-sdk-python-tts-3.0.1288}/tencentcloud_sdk_python_tts.egg-info/top_level.txt +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
Metadata-Version: 1.
|
|
1
|
+
Metadata-Version: 1.2
|
|
2
2
|
Name: tencentcloud-sdk-python-tts
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.1288
|
|
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
|
|
7
|
-
|
|
7
|
+
Maintainer-email: tencentcloudapi@tencent.com
|
|
8
8
|
License: Apache License 2.0
|
|
9
9
|
Description: ============================
|
|
10
10
|
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.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1288"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Tts SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -71,6 +71,9 @@ class CreateTtsTaskRequest(AbstractModel):
|
|
|
71
71
|
|
|
72
72
|
@property
|
|
73
73
|
def Text(self):
|
|
74
|
+
"""合成语音的源文本,按UTF-8编码统一计算,最多支持10万字符
|
|
75
|
+
:rtype: str
|
|
76
|
+
"""
|
|
74
77
|
return self._Text
|
|
75
78
|
|
|
76
79
|
@Text.setter
|
|
@@ -79,6 +82,9 @@ class CreateTtsTaskRequest(AbstractModel):
|
|
|
79
82
|
|
|
80
83
|
@property
|
|
81
84
|
def Volume(self):
|
|
85
|
+
"""音量大小,范围[-10,10],对应音量大小。默认为0,代表正常音量,值越大音量越高。
|
|
86
|
+
:rtype: float
|
|
87
|
+
"""
|
|
82
88
|
return self._Volume
|
|
83
89
|
|
|
84
90
|
@Volume.setter
|
|
@@ -87,6 +93,9 @@ class CreateTtsTaskRequest(AbstractModel):
|
|
|
87
93
|
|
|
88
94
|
@property
|
|
89
95
|
def Speed(self):
|
|
96
|
+
"""语速,范围:[-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)
|
|
97
|
+
:rtype: float
|
|
98
|
+
"""
|
|
90
99
|
return self._Speed
|
|
91
100
|
|
|
92
101
|
@Speed.setter
|
|
@@ -95,6 +104,9 @@ class CreateTtsTaskRequest(AbstractModel):
|
|
|
95
104
|
|
|
96
105
|
@property
|
|
97
106
|
def ProjectId(self):
|
|
107
|
+
"""项目id,用户自定义,默认为0。
|
|
108
|
+
:rtype: int
|
|
109
|
+
"""
|
|
98
110
|
return self._ProjectId
|
|
99
111
|
|
|
100
112
|
@ProjectId.setter
|
|
@@ -103,6 +115,9 @@ class CreateTtsTaskRequest(AbstractModel):
|
|
|
103
115
|
|
|
104
116
|
@property
|
|
105
117
|
def ModelType(self):
|
|
118
|
+
"""模型类型,1-默认模型。
|
|
119
|
+
:rtype: int
|
|
120
|
+
"""
|
|
106
121
|
return self._ModelType
|
|
107
122
|
|
|
108
123
|
@ModelType.setter
|
|
@@ -111,6 +126,9 @@ class CreateTtsTaskRequest(AbstractModel):
|
|
|
111
126
|
|
|
112
127
|
@property
|
|
113
128
|
def VoiceType(self):
|
|
129
|
+
"""音色 ID,包括标准音色与精品音色,精品音色拟真度更高,价格不同于标准音色,请参见[购买指南](https://cloud.tencent.com/document/product/1073/34112)。完整的音色 ID 列表请参见[音色列表](https://cloud.tencent.com/document/product/1073/92668)。
|
|
130
|
+
:rtype: int
|
|
131
|
+
"""
|
|
114
132
|
return self._VoiceType
|
|
115
133
|
|
|
116
134
|
@VoiceType.setter
|
|
@@ -119,6 +137,9 @@ class CreateTtsTaskRequest(AbstractModel):
|
|
|
119
137
|
|
|
120
138
|
@property
|
|
121
139
|
def PrimaryLanguage(self):
|
|
140
|
+
"""主语言类型:<li>1-中文(默认)</li><li>2-英文</li><li>3-日文</li>
|
|
141
|
+
:rtype: int
|
|
142
|
+
"""
|
|
122
143
|
return self._PrimaryLanguage
|
|
123
144
|
|
|
124
145
|
@PrimaryLanguage.setter
|
|
@@ -127,6 +148,9 @@ class CreateTtsTaskRequest(AbstractModel):
|
|
|
127
148
|
|
|
128
149
|
@property
|
|
129
150
|
def SampleRate(self):
|
|
151
|
+
"""音频采样率:<li>16000:16k(默认)</li><li>8000:8k</li>
|
|
152
|
+
:rtype: int
|
|
153
|
+
"""
|
|
130
154
|
return self._SampleRate
|
|
131
155
|
|
|
132
156
|
@SampleRate.setter
|
|
@@ -135,6 +159,9 @@ class CreateTtsTaskRequest(AbstractModel):
|
|
|
135
159
|
|
|
136
160
|
@property
|
|
137
161
|
def Codec(self):
|
|
162
|
+
"""返回音频格式,可取值:mp3(默认),wav,pcm
|
|
163
|
+
:rtype: str
|
|
164
|
+
"""
|
|
138
165
|
return self._Codec
|
|
139
166
|
|
|
140
167
|
@Codec.setter
|
|
@@ -143,6 +170,9 @@ class CreateTtsTaskRequest(AbstractModel):
|
|
|
143
170
|
|
|
144
171
|
@property
|
|
145
172
|
def CallbackUrl(self):
|
|
173
|
+
"""回调 URL,用户自行搭建的用于接收识别结果的服务URL。如果用户使用轮询方式获取识别结果,则无需提交该参数。[回调说明](https://cloud.tencent.com/document/product/1073/55746)
|
|
174
|
+
:rtype: str
|
|
175
|
+
"""
|
|
146
176
|
return self._CallbackUrl
|
|
147
177
|
|
|
148
178
|
@CallbackUrl.setter
|
|
@@ -151,6 +181,9 @@ class CreateTtsTaskRequest(AbstractModel):
|
|
|
151
181
|
|
|
152
182
|
@property
|
|
153
183
|
def EnableSubtitle(self):
|
|
184
|
+
"""是否开启时间戳功能,默认为false。
|
|
185
|
+
:rtype: bool
|
|
186
|
+
"""
|
|
154
187
|
return self._EnableSubtitle
|
|
155
188
|
|
|
156
189
|
@EnableSubtitle.setter
|
|
@@ -159,6 +192,9 @@ class CreateTtsTaskRequest(AbstractModel):
|
|
|
159
192
|
|
|
160
193
|
@property
|
|
161
194
|
def VoiceoverDialogueSplit(self):
|
|
195
|
+
"""旁白与对白文本解析,分别合成相应风格(仅适用于旁对白音色10510000、100510000),默认 false
|
|
196
|
+
:rtype: bool
|
|
197
|
+
"""
|
|
162
198
|
return self._VoiceoverDialogueSplit
|
|
163
199
|
|
|
164
200
|
@VoiceoverDialogueSplit.setter
|
|
@@ -167,6 +203,9 @@ class CreateTtsTaskRequest(AbstractModel):
|
|
|
167
203
|
|
|
168
204
|
@property
|
|
169
205
|
def EmotionCategory(self):
|
|
206
|
+
"""控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)、sajiao(撒娇)、disgusted(厌恶)、amaze(震惊)、peaceful(平静)、exciting(兴奋)、aojiao(傲娇)、jieshuo(解说)
|
|
207
|
+
:rtype: str
|
|
208
|
+
"""
|
|
170
209
|
return self._EmotionCategory
|
|
171
210
|
|
|
172
211
|
@EmotionCategory.setter
|
|
@@ -175,6 +214,9 @@ class CreateTtsTaskRequest(AbstractModel):
|
|
|
175
214
|
|
|
176
215
|
@property
|
|
177
216
|
def EmotionIntensity(self):
|
|
217
|
+
"""控制合成音频情感程度,取值范围为[50,200],默认为100;只有EmotionCategory不为空时生效。
|
|
218
|
+
:rtype: int
|
|
219
|
+
"""
|
|
178
220
|
return self._EmotionIntensity
|
|
179
221
|
|
|
180
222
|
@EmotionIntensity.setter
|
|
@@ -221,6 +263,9 @@ class CreateTtsTaskRespData(AbstractModel):
|
|
|
221
263
|
|
|
222
264
|
@property
|
|
223
265
|
def TaskId(self):
|
|
266
|
+
"""任务ID,可通过此ID在轮询接口获取合成状态与结果。注意:TaskId数据类型为string
|
|
267
|
+
:rtype: str
|
|
268
|
+
"""
|
|
224
269
|
return self._TaskId
|
|
225
270
|
|
|
226
271
|
@TaskId.setter
|
|
@@ -257,6 +302,9 @@ class CreateTtsTaskResponse(AbstractModel):
|
|
|
257
302
|
|
|
258
303
|
@property
|
|
259
304
|
def Data(self):
|
|
305
|
+
"""任务 id
|
|
306
|
+
:rtype: :class:`tencentcloud.tts.v20190823.models.CreateTtsTaskRespData`
|
|
307
|
+
"""
|
|
260
308
|
return self._Data
|
|
261
309
|
|
|
262
310
|
@Data.setter
|
|
@@ -265,6 +313,9 @@ class CreateTtsTaskResponse(AbstractModel):
|
|
|
265
313
|
|
|
266
314
|
@property
|
|
267
315
|
def RequestId(self):
|
|
316
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
317
|
+
:rtype: str
|
|
318
|
+
"""
|
|
268
319
|
return self._RequestId
|
|
269
320
|
|
|
270
321
|
@RequestId.setter
|
|
@@ -293,6 +344,9 @@ class DescribeTtsTaskStatusRequest(AbstractModel):
|
|
|
293
344
|
|
|
294
345
|
@property
|
|
295
346
|
def TaskId(self):
|
|
347
|
+
"""任务id
|
|
348
|
+
:rtype: str
|
|
349
|
+
"""
|
|
296
350
|
return self._TaskId
|
|
297
351
|
|
|
298
352
|
@TaskId.setter
|
|
@@ -341,6 +395,9 @@ class DescribeTtsTaskStatusRespData(AbstractModel):
|
|
|
341
395
|
|
|
342
396
|
@property
|
|
343
397
|
def TaskId(self):
|
|
398
|
+
"""任务标识。
|
|
399
|
+
:rtype: str
|
|
400
|
+
"""
|
|
344
401
|
return self._TaskId
|
|
345
402
|
|
|
346
403
|
@TaskId.setter
|
|
@@ -349,6 +406,9 @@ class DescribeTtsTaskStatusRespData(AbstractModel):
|
|
|
349
406
|
|
|
350
407
|
@property
|
|
351
408
|
def Status(self):
|
|
409
|
+
"""任务状态码,0:任务等待,1:任务执行中,2:任务成功,3:任务失败。
|
|
410
|
+
:rtype: int
|
|
411
|
+
"""
|
|
352
412
|
return self._Status
|
|
353
413
|
|
|
354
414
|
@Status.setter
|
|
@@ -357,6 +417,9 @@ class DescribeTtsTaskStatusRespData(AbstractModel):
|
|
|
357
417
|
|
|
358
418
|
@property
|
|
359
419
|
def StatusStr(self):
|
|
420
|
+
"""任务状态,waiting:任务等待,doing:任务执行中,success:任务成功,failed:任务失败。
|
|
421
|
+
:rtype: str
|
|
422
|
+
"""
|
|
360
423
|
return self._StatusStr
|
|
361
424
|
|
|
362
425
|
@StatusStr.setter
|
|
@@ -365,6 +428,9 @@ class DescribeTtsTaskStatusRespData(AbstractModel):
|
|
|
365
428
|
|
|
366
429
|
@property
|
|
367
430
|
def ResultUrl(self):
|
|
431
|
+
"""合成音频COS地址(链接有效期1天)。
|
|
432
|
+
:rtype: str
|
|
433
|
+
"""
|
|
368
434
|
return self._ResultUrl
|
|
369
435
|
|
|
370
436
|
@ResultUrl.setter
|
|
@@ -373,6 +439,9 @@ class DescribeTtsTaskStatusRespData(AbstractModel):
|
|
|
373
439
|
|
|
374
440
|
@property
|
|
375
441
|
def Subtitles(self):
|
|
442
|
+
"""时间戳信息,若未开启时间戳,则返回空数组。
|
|
443
|
+
:rtype: list of Subtitle
|
|
444
|
+
"""
|
|
376
445
|
return self._Subtitles
|
|
377
446
|
|
|
378
447
|
@Subtitles.setter
|
|
@@ -381,6 +450,9 @@ class DescribeTtsTaskStatusRespData(AbstractModel):
|
|
|
381
450
|
|
|
382
451
|
@property
|
|
383
452
|
def ErrorMsg(self):
|
|
453
|
+
"""失败原因说明。
|
|
454
|
+
:rtype: str
|
|
455
|
+
"""
|
|
384
456
|
return self._ErrorMsg
|
|
385
457
|
|
|
386
458
|
@ErrorMsg.setter
|
|
@@ -427,6 +499,9 @@ class DescribeTtsTaskStatusResponse(AbstractModel):
|
|
|
427
499
|
|
|
428
500
|
@property
|
|
429
501
|
def Data(self):
|
|
502
|
+
"""任务状态返回
|
|
503
|
+
:rtype: :class:`tencentcloud.tts.v20190823.models.DescribeTtsTaskStatusRespData`
|
|
504
|
+
"""
|
|
430
505
|
return self._Data
|
|
431
506
|
|
|
432
507
|
@Data.setter
|
|
@@ -435,6 +510,9 @@ class DescribeTtsTaskStatusResponse(AbstractModel):
|
|
|
435
510
|
|
|
436
511
|
@property
|
|
437
512
|
def RequestId(self):
|
|
513
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
514
|
+
:rtype: str
|
|
515
|
+
"""
|
|
438
516
|
return self._RequestId
|
|
439
517
|
|
|
440
518
|
@RequestId.setter
|
|
@@ -479,6 +557,9 @@ class Subtitle(AbstractModel):
|
|
|
479
557
|
|
|
480
558
|
@property
|
|
481
559
|
def Text(self):
|
|
560
|
+
"""⽂本信息。
|
|
561
|
+
:rtype: str
|
|
562
|
+
"""
|
|
482
563
|
return self._Text
|
|
483
564
|
|
|
484
565
|
@Text.setter
|
|
@@ -487,6 +568,9 @@ class Subtitle(AbstractModel):
|
|
|
487
568
|
|
|
488
569
|
@property
|
|
489
570
|
def BeginTime(self):
|
|
571
|
+
"""⽂本对应tts语⾳开始时间戳,单位ms。
|
|
572
|
+
:rtype: int
|
|
573
|
+
"""
|
|
490
574
|
return self._BeginTime
|
|
491
575
|
|
|
492
576
|
@BeginTime.setter
|
|
@@ -495,6 +579,9 @@ class Subtitle(AbstractModel):
|
|
|
495
579
|
|
|
496
580
|
@property
|
|
497
581
|
def EndTime(self):
|
|
582
|
+
"""⽂本对应tts语⾳结束时间戳,单位ms。
|
|
583
|
+
:rtype: int
|
|
584
|
+
"""
|
|
498
585
|
return self._EndTime
|
|
499
586
|
|
|
500
587
|
@EndTime.setter
|
|
@@ -503,6 +590,9 @@ class Subtitle(AbstractModel):
|
|
|
503
590
|
|
|
504
591
|
@property
|
|
505
592
|
def BeginIndex(self):
|
|
593
|
+
"""该文本在时间戳数组中的开始位置,从0开始。
|
|
594
|
+
:rtype: int
|
|
595
|
+
"""
|
|
506
596
|
return self._BeginIndex
|
|
507
597
|
|
|
508
598
|
@BeginIndex.setter
|
|
@@ -511,6 +601,9 @@ class Subtitle(AbstractModel):
|
|
|
511
601
|
|
|
512
602
|
@property
|
|
513
603
|
def EndIndex(self):
|
|
604
|
+
"""该文本在时间戳数组中的结束位置,从0开始。
|
|
605
|
+
:rtype: int
|
|
606
|
+
"""
|
|
514
607
|
return self._EndIndex
|
|
515
608
|
|
|
516
609
|
@EndIndex.setter
|
|
@@ -519,6 +612,10 @@ class Subtitle(AbstractModel):
|
|
|
519
612
|
|
|
520
613
|
@property
|
|
521
614
|
def Phoneme(self):
|
|
615
|
+
"""该字的音素。
|
|
616
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
617
|
+
:rtype: str
|
|
618
|
+
"""
|
|
522
619
|
return self._Phoneme
|
|
523
620
|
|
|
524
621
|
@Phoneme.setter
|
|
@@ -584,7 +681,7 @@ class TextToVoiceRequest(AbstractModel):
|
|
|
584
681
|
:type EmotionCategory: str
|
|
585
682
|
:param _EmotionIntensity: 控制合成音频情感程度,取值范围为[50,200],默认为100;只有EmotionCategory不为空时生效;
|
|
586
683
|
:type EmotionIntensity: int
|
|
587
|
-
:param _FastVoiceType: 一句话版声音复刻音色ID
|
|
684
|
+
:param _FastVoiceType: 一句话版声音复刻音色ID,使用一句话版声音复刻音色时需填写。【已废弃】
|
|
588
685
|
:type FastVoiceType: str
|
|
589
686
|
"""
|
|
590
687
|
self._Text = None
|
|
@@ -605,6 +702,10 @@ class TextToVoiceRequest(AbstractModel):
|
|
|
605
702
|
|
|
606
703
|
@property
|
|
607
704
|
def Text(self):
|
|
705
|
+
"""合成语音的源文本,按UTF-8编码统一计算。
|
|
706
|
+
中文最大支持150个汉字(全角标点符号算一个汉字);英文最大支持500个字母(半角标点符号算一个字母)。
|
|
707
|
+
:rtype: str
|
|
708
|
+
"""
|
|
608
709
|
return self._Text
|
|
609
710
|
|
|
610
711
|
@Text.setter
|
|
@@ -613,6 +714,9 @@ class TextToVoiceRequest(AbstractModel):
|
|
|
613
714
|
|
|
614
715
|
@property
|
|
615
716
|
def SessionId(self):
|
|
717
|
+
"""一次请求对应一个SessionId,会原样返回,建议传入类似于uuid的字符串防止重复。
|
|
718
|
+
:rtype: str
|
|
719
|
+
"""
|
|
616
720
|
return self._SessionId
|
|
617
721
|
|
|
618
722
|
@SessionId.setter
|
|
@@ -621,6 +725,9 @@ class TextToVoiceRequest(AbstractModel):
|
|
|
621
725
|
|
|
622
726
|
@property
|
|
623
727
|
def Volume(self):
|
|
728
|
+
"""音量大小,范围[-10,10],对应音量大小。默认为0,代表正常音量,值越大音量越高。
|
|
729
|
+
:rtype: float
|
|
730
|
+
"""
|
|
624
731
|
return self._Volume
|
|
625
732
|
|
|
626
733
|
@Volume.setter
|
|
@@ -629,6 +736,9 @@ class TextToVoiceRequest(AbstractModel):
|
|
|
629
736
|
|
|
630
737
|
@property
|
|
631
738
|
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)
|
|
740
|
+
:rtype: float
|
|
741
|
+
"""
|
|
632
742
|
return self._Speed
|
|
633
743
|
|
|
634
744
|
@Speed.setter
|
|
@@ -637,6 +747,9 @@ class TextToVoiceRequest(AbstractModel):
|
|
|
637
747
|
|
|
638
748
|
@property
|
|
639
749
|
def ProjectId(self):
|
|
750
|
+
"""项目id,用户自定义,默认为0。
|
|
751
|
+
:rtype: int
|
|
752
|
+
"""
|
|
640
753
|
return self._ProjectId
|
|
641
754
|
|
|
642
755
|
@ProjectId.setter
|
|
@@ -645,6 +758,9 @@ class TextToVoiceRequest(AbstractModel):
|
|
|
645
758
|
|
|
646
759
|
@property
|
|
647
760
|
def ModelType(self):
|
|
761
|
+
"""模型类型,1-默认模型。
|
|
762
|
+
:rtype: int
|
|
763
|
+
"""
|
|
648
764
|
return self._ModelType
|
|
649
765
|
|
|
650
766
|
@ModelType.setter
|
|
@@ -653,6 +769,10 @@ class TextToVoiceRequest(AbstractModel):
|
|
|
653
769
|
|
|
654
770
|
@property
|
|
655
771
|
def VoiceType(self):
|
|
772
|
+
"""音色 ID,包括标准音色与精品音色,精品音色拟真度更高,价格不同于标准音色,请参见[购买指南](https://cloud.tencent.com/document/product/1073/34112)。完整的音色 ID 列表请参见[音色列表](https://cloud.tencent.com/document/product/1073/92668)。
|
|
773
|
+
若使用一句话版声音复刻,请填入固定值“200000000”
|
|
774
|
+
:rtype: int
|
|
775
|
+
"""
|
|
656
776
|
return self._VoiceType
|
|
657
777
|
|
|
658
778
|
@VoiceType.setter
|
|
@@ -661,6 +781,9 @@ class TextToVoiceRequest(AbstractModel):
|
|
|
661
781
|
|
|
662
782
|
@property
|
|
663
783
|
def PrimaryLanguage(self):
|
|
784
|
+
"""主语言类型:<li>1-中文(默认)</li><li>2-英文</li><li>3-日文</li>
|
|
785
|
+
:rtype: int
|
|
786
|
+
"""
|
|
664
787
|
return self._PrimaryLanguage
|
|
665
788
|
|
|
666
789
|
@PrimaryLanguage.setter
|
|
@@ -669,6 +792,12 @@ class TextToVoiceRequest(AbstractModel):
|
|
|
669
792
|
|
|
670
793
|
@property
|
|
671
794
|
def SampleRate(self):
|
|
795
|
+
"""音频采样率:
|
|
796
|
+
<li>24000:24k(部分音色支持,请参见[音色列表](https://cloud.tencent.com/document/product/1073/92668))</li>
|
|
797
|
+
<li>16000:16k(默认)</li>
|
|
798
|
+
<li>8000:8k</li>
|
|
799
|
+
:rtype: int
|
|
800
|
+
"""
|
|
672
801
|
return self._SampleRate
|
|
673
802
|
|
|
674
803
|
@SampleRate.setter
|
|
@@ -677,6 +806,9 @@ class TextToVoiceRequest(AbstractModel):
|
|
|
677
806
|
|
|
678
807
|
@property
|
|
679
808
|
def Codec(self):
|
|
809
|
+
"""返回音频格式,可取值:wav(默认),mp3,pcm
|
|
810
|
+
:rtype: str
|
|
811
|
+
"""
|
|
680
812
|
return self._Codec
|
|
681
813
|
|
|
682
814
|
@Codec.setter
|
|
@@ -685,6 +817,9 @@ class TextToVoiceRequest(AbstractModel):
|
|
|
685
817
|
|
|
686
818
|
@property
|
|
687
819
|
def EnableSubtitle(self):
|
|
820
|
+
"""是否开启时间戳功能,默认为false。
|
|
821
|
+
:rtype: bool
|
|
822
|
+
"""
|
|
688
823
|
return self._EnableSubtitle
|
|
689
824
|
|
|
690
825
|
@EnableSubtitle.setter
|
|
@@ -693,6 +828,9 @@ class TextToVoiceRequest(AbstractModel):
|
|
|
693
828
|
|
|
694
829
|
@property
|
|
695
830
|
def SegmentRate(self):
|
|
831
|
+
"""断句敏感阈值,默认值为:0,取值范围:[0,1,2]。该值越大越不容易断句,模型会更倾向于仅按照标点符号断句。此参数建议不要随意调整,可能会影响合成效果。
|
|
832
|
+
:rtype: int
|
|
833
|
+
"""
|
|
696
834
|
return self._SegmentRate
|
|
697
835
|
|
|
698
836
|
@SegmentRate.setter
|
|
@@ -701,6 +839,10 @@ class TextToVoiceRequest(AbstractModel):
|
|
|
701
839
|
|
|
702
840
|
@property
|
|
703
841
|
def EmotionCategory(self):
|
|
842
|
+
"""控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)、sajiao(撒娇)、disgusted(厌恶)、amaze(震惊)、peaceful(平静)、exciting(兴奋)、aojiao(傲娇)、jieshuo(解说)
|
|
843
|
+
示例值:neutral
|
|
844
|
+
:rtype: str
|
|
845
|
+
"""
|
|
704
846
|
return self._EmotionCategory
|
|
705
847
|
|
|
706
848
|
@EmotionCategory.setter
|
|
@@ -709,6 +851,9 @@ class TextToVoiceRequest(AbstractModel):
|
|
|
709
851
|
|
|
710
852
|
@property
|
|
711
853
|
def EmotionIntensity(self):
|
|
854
|
+
"""控制合成音频情感程度,取值范围为[50,200],默认为100;只有EmotionCategory不为空时生效;
|
|
855
|
+
:rtype: int
|
|
856
|
+
"""
|
|
712
857
|
return self._EmotionIntensity
|
|
713
858
|
|
|
714
859
|
@EmotionIntensity.setter
|
|
@@ -717,6 +862,9 @@ class TextToVoiceRequest(AbstractModel):
|
|
|
717
862
|
|
|
718
863
|
@property
|
|
719
864
|
def FastVoiceType(self):
|
|
865
|
+
"""一句话版声音复刻音色ID,使用一句话版声音复刻音色时需填写。【已废弃】
|
|
866
|
+
:rtype: str
|
|
867
|
+
"""
|
|
720
868
|
return self._FastVoiceType
|
|
721
869
|
|
|
722
870
|
@FastVoiceType.setter
|
|
@@ -773,6 +921,9 @@ class TextToVoiceResponse(AbstractModel):
|
|
|
773
921
|
|
|
774
922
|
@property
|
|
775
923
|
def Audio(self):
|
|
924
|
+
"""base64编码的wav/mp3音频数据
|
|
925
|
+
:rtype: str
|
|
926
|
+
"""
|
|
776
927
|
return self._Audio
|
|
777
928
|
|
|
778
929
|
@Audio.setter
|
|
@@ -781,6 +932,9 @@ class TextToVoiceResponse(AbstractModel):
|
|
|
781
932
|
|
|
782
933
|
@property
|
|
783
934
|
def SessionId(self):
|
|
935
|
+
"""一次请求对应一个SessionId
|
|
936
|
+
:rtype: str
|
|
937
|
+
"""
|
|
784
938
|
return self._SessionId
|
|
785
939
|
|
|
786
940
|
@SessionId.setter
|
|
@@ -789,6 +943,9 @@ class TextToVoiceResponse(AbstractModel):
|
|
|
789
943
|
|
|
790
944
|
@property
|
|
791
945
|
def Subtitles(self):
|
|
946
|
+
"""时间戳信息,若未开启时间戳,则返回空数组。
|
|
947
|
+
:rtype: list of Subtitle
|
|
948
|
+
"""
|
|
792
949
|
return self._Subtitles
|
|
793
950
|
|
|
794
951
|
@Subtitles.setter
|
|
@@ -797,6 +954,9 @@ class TextToVoiceResponse(AbstractModel):
|
|
|
797
954
|
|
|
798
955
|
@property
|
|
799
956
|
def RequestId(self):
|
|
957
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
958
|
+
:rtype: str
|
|
959
|
+
"""
|
|
800
960
|
return self._RequestId
|
|
801
961
|
|
|
802
962
|
@RequestId.setter
|
|
@@ -99,7 +99,7 @@ class TtsClient(AbstractClient):
|
|
|
99
99
|
默认接口请求频率限制:
|
|
100
100
|
精品音色和标准音色:20次/秒
|
|
101
101
|
大模型音色:10次/秒
|
|
102
|
-
|
|
102
|
+
一句话复刻音色:暂不支持
|
|
103
103
|
|
|
104
104
|
:param request: Request instance for TextToVoice.
|
|
105
105
|
:type request: :class:`tencentcloud.tts.v20190823.models.TextToVoiceRequest`
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
Metadata-Version: 1.
|
|
1
|
+
Metadata-Version: 1.2
|
|
2
2
|
Name: tencentcloud-sdk-python-tts
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.1288
|
|
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
|
|
7
|
-
|
|
7
|
+
Maintainer-email: tencentcloudapi@tencent.com
|
|
8
8
|
License: Apache License 2.0
|
|
9
9
|
Description: ============================
|
|
10
10
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1288
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1255
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|