tencentcloud-sdk-python-tts 3.0.942__tar.gz → 3.0.965__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.942 → tencentcloud-sdk-python-tts-3.0.965}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-tts-3.0.942 → tencentcloud-sdk-python-tts-3.0.965}/setup.py +1 -0
- {tencentcloud-sdk-python-tts-3.0.942 → tencentcloud-sdk-python-tts-3.0.965}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-tts-3.0.942 → tencentcloud-sdk-python-tts-3.0.965}/tencentcloud/tts/v20190823/errorcodes.py +1 -1
- {tencentcloud-sdk-python-tts-3.0.942 → tencentcloud-sdk-python-tts-3.0.965}/tencentcloud/tts/v20190823/models.py +34 -5
- {tencentcloud-sdk-python-tts-3.0.942 → tencentcloud-sdk-python-tts-3.0.965}/tencentcloud/tts/v20190823/tts_client.py +0 -1
- {tencentcloud-sdk-python-tts-3.0.942 → tencentcloud-sdk-python-tts-3.0.965}/tencentcloud_sdk_python_tts.egg-info/PKG-INFO +1 -1
- {tencentcloud-sdk-python-tts-3.0.942 → tencentcloud-sdk-python-tts-3.0.965}/tencentcloud_sdk_python_tts.egg-info/SOURCES.txt +1 -0
- tencentcloud-sdk-python-tts-3.0.965/tencentcloud_sdk_python_tts.egg-info/requires.txt +1 -0
- {tencentcloud-sdk-python-tts-3.0.942 → tencentcloud-sdk-python-tts-3.0.965}/README.rst +0 -0
- {tencentcloud-sdk-python-tts-3.0.942 → tencentcloud-sdk-python-tts-3.0.965}/setup.cfg +0 -0
- {tencentcloud-sdk-python-tts-3.0.942 → tencentcloud-sdk-python-tts-3.0.965}/tencentcloud/tts/__init__.py +0 -0
- {tencentcloud-sdk-python-tts-3.0.942 → tencentcloud-sdk-python-tts-3.0.965}/tencentcloud/tts/v20190823/__init__.py +0 -0
- {tencentcloud-sdk-python-tts-3.0.942 → tencentcloud-sdk-python-tts-3.0.965}/tencentcloud_sdk_python_tts.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-tts-3.0.942 → tencentcloud-sdk-python-tts-3.0.965}/tencentcloud_sdk_python_tts.egg-info/top_level.txt +0 -0
|
@@ -8,6 +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.965"],
|
|
11
12
|
version=tencentcloud.__version__,
|
|
12
13
|
description='Tencent Cloud Tts SDK for Python',
|
|
13
14
|
long_description=open('README.rst').read(),
|
|
@@ -134,7 +134,7 @@ UNSUPPORTEDOPERATION_FORBIDDENUSE = 'UnsupportedOperation.ForbiddenUse'
|
|
|
134
134
|
# 没有余额。
|
|
135
135
|
UNSUPPORTEDOPERATION_NOBANLANCE = 'UnsupportedOperation.NoBanlance'
|
|
136
136
|
|
|
137
|
-
#
|
|
137
|
+
# 免费资源包已用尽,请购买资源包或开通后付费。
|
|
138
138
|
UNSUPPORTEDOPERATION_NOFREEACCOUNT = 'UnsupportedOperation.NoFreeAccount'
|
|
139
139
|
|
|
140
140
|
# 资源包余量已用尽。
|
|
@@ -37,7 +37,7 @@ class CreateTtsTaskRequest(AbstractModel):
|
|
|
37
37
|
:type ProjectId: 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
|
-
:param _PrimaryLanguage: 主语言类型:<li>1-中文(默认)</li><li>2-英文</li>
|
|
40
|
+
:param _PrimaryLanguage: 主语言类型:<li>1-中文(默认)</li><li>2-英文</li><li>3-日文</li>
|
|
41
41
|
:type PrimaryLanguage: int
|
|
42
42
|
:param _SampleRate: 音频采样率:<li>16000:16k(默认)</li><li>8000:8k</li>
|
|
43
43
|
:type SampleRate: int
|
|
@@ -45,7 +45,9 @@ class CreateTtsTaskRequest(AbstractModel):
|
|
|
45
45
|
:type Codec: str
|
|
46
46
|
:param _CallbackUrl: 回调 URL,用户自行搭建的用于接收识别结果的服务URL。如果用户使用轮询方式获取识别结果,则无需提交该参数。[回调说明](https://cloud.tencent.com/document/product/1073/55746)
|
|
47
47
|
:type CallbackUrl: str
|
|
48
|
-
:param
|
|
48
|
+
:param _EnableSubtitle: 是否开启时间戳功能,默认为false。
|
|
49
|
+
:type EnableSubtitle: bool
|
|
50
|
+
:param _VoiceoverDialogueSplit: 旁白与对白文本解析,分别合成相应风格(仅适用于旁对白音色10510000、100510000),默认 false
|
|
49
51
|
:type VoiceoverDialogueSplit: bool
|
|
50
52
|
"""
|
|
51
53
|
self._Text = None
|
|
@@ -58,6 +60,7 @@ class CreateTtsTaskRequest(AbstractModel):
|
|
|
58
60
|
self._SampleRate = None
|
|
59
61
|
self._Codec = None
|
|
60
62
|
self._CallbackUrl = None
|
|
63
|
+
self._EnableSubtitle = None
|
|
61
64
|
self._VoiceoverDialogueSplit = None
|
|
62
65
|
|
|
63
66
|
@property
|
|
@@ -140,6 +143,14 @@ class CreateTtsTaskRequest(AbstractModel):
|
|
|
140
143
|
def CallbackUrl(self, CallbackUrl):
|
|
141
144
|
self._CallbackUrl = CallbackUrl
|
|
142
145
|
|
|
146
|
+
@property
|
|
147
|
+
def EnableSubtitle(self):
|
|
148
|
+
return self._EnableSubtitle
|
|
149
|
+
|
|
150
|
+
@EnableSubtitle.setter
|
|
151
|
+
def EnableSubtitle(self, EnableSubtitle):
|
|
152
|
+
self._EnableSubtitle = EnableSubtitle
|
|
153
|
+
|
|
143
154
|
@property
|
|
144
155
|
def VoiceoverDialogueSplit(self):
|
|
145
156
|
return self._VoiceoverDialogueSplit
|
|
@@ -160,6 +171,7 @@ class CreateTtsTaskRequest(AbstractModel):
|
|
|
160
171
|
self._SampleRate = params.get("SampleRate")
|
|
161
172
|
self._Codec = params.get("Codec")
|
|
162
173
|
self._CallbackUrl = params.get("CallbackUrl")
|
|
174
|
+
self._EnableSubtitle = params.get("EnableSubtitle")
|
|
163
175
|
self._VoiceoverDialogueSplit = params.get("VoiceoverDialogueSplit")
|
|
164
176
|
memeber_set = set(params.keys())
|
|
165
177
|
for name, value in vars(self).items():
|
|
@@ -291,6 +303,8 @@ class DescribeTtsTaskStatusRespData(AbstractModel):
|
|
|
291
303
|
:type StatusStr: str
|
|
292
304
|
:param _ResultUrl: 合成音频COS地址(链接有效期1天)。
|
|
293
305
|
:type ResultUrl: str
|
|
306
|
+
:param _Subtitles: 时间戳信息,若未开启时间戳,则返回空数组。
|
|
307
|
+
:type Subtitles: list of Subtitle
|
|
294
308
|
:param _ErrorMsg: 失败原因说明。
|
|
295
309
|
:type ErrorMsg: str
|
|
296
310
|
"""
|
|
@@ -298,6 +312,7 @@ class DescribeTtsTaskStatusRespData(AbstractModel):
|
|
|
298
312
|
self._Status = None
|
|
299
313
|
self._StatusStr = None
|
|
300
314
|
self._ResultUrl = None
|
|
315
|
+
self._Subtitles = None
|
|
301
316
|
self._ErrorMsg = None
|
|
302
317
|
|
|
303
318
|
@property
|
|
@@ -332,6 +347,14 @@ class DescribeTtsTaskStatusRespData(AbstractModel):
|
|
|
332
347
|
def ResultUrl(self, ResultUrl):
|
|
333
348
|
self._ResultUrl = ResultUrl
|
|
334
349
|
|
|
350
|
+
@property
|
|
351
|
+
def Subtitles(self):
|
|
352
|
+
return self._Subtitles
|
|
353
|
+
|
|
354
|
+
@Subtitles.setter
|
|
355
|
+
def Subtitles(self, Subtitles):
|
|
356
|
+
self._Subtitles = Subtitles
|
|
357
|
+
|
|
335
358
|
@property
|
|
336
359
|
def ErrorMsg(self):
|
|
337
360
|
return self._ErrorMsg
|
|
@@ -346,6 +369,12 @@ class DescribeTtsTaskStatusRespData(AbstractModel):
|
|
|
346
369
|
self._Status = params.get("Status")
|
|
347
370
|
self._StatusStr = params.get("StatusStr")
|
|
348
371
|
self._ResultUrl = params.get("ResultUrl")
|
|
372
|
+
if params.get("Subtitles") is not None:
|
|
373
|
+
self._Subtitles = []
|
|
374
|
+
for item in params.get("Subtitles"):
|
|
375
|
+
obj = Subtitle()
|
|
376
|
+
obj._deserialize(item)
|
|
377
|
+
self._Subtitles.append(obj)
|
|
349
378
|
self._ErrorMsg = params.get("ErrorMsg")
|
|
350
379
|
memeber_set = set(params.keys())
|
|
351
380
|
for name, value in vars(self).items():
|
|
@@ -502,7 +531,7 @@ class TextToVoiceRequest(AbstractModel):
|
|
|
502
531
|
:type Text: str
|
|
503
532
|
:param _SessionId: 一次请求对应一个SessionId,会原样返回,建议传入类似于uuid的字符串防止重复。
|
|
504
533
|
:type SessionId: str
|
|
505
|
-
:param _Volume:
|
|
534
|
+
:param _Volume: 音量大小,范围[0,10],对应音量大小。默认为0,代表正常音量,值越大音量越高。
|
|
506
535
|
:type Volume: float
|
|
507
536
|
: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.1 1.8等。<br>参数值与实际语速转换,可参考[代码示例](https://sdk-1300466766.cos.ap-shanghai.myqcloud.com/sample/speed_sample.tar.gz)
|
|
508
537
|
:type Speed: float
|
|
@@ -512,7 +541,7 @@ class TextToVoiceRequest(AbstractModel):
|
|
|
512
541
|
:type ModelType: int
|
|
513
542
|
:param _VoiceType: 音色 ID,包括标准音色与精品音色,精品音色拟真度更高,价格不同于标准音色,请参见[购买指南](https://cloud.tencent.com/document/product/1073/34112)。完整的音色 ID 列表请参见[音色列表](https://cloud.tencent.com/document/product/1073/92668)。
|
|
514
543
|
:type VoiceType: int
|
|
515
|
-
:param _PrimaryLanguage: 主语言类型:<li>1-中文(默认)</li><li>2-英文</li>
|
|
544
|
+
:param _PrimaryLanguage: 主语言类型:<li>1-中文(默认)</li><li>2-英文</li><li>3-日文</li>
|
|
516
545
|
:type PrimaryLanguage: int
|
|
517
546
|
:param _SampleRate: 音频采样率:
|
|
518
547
|
<li>24000:24k(部分音色支持,请参见[音色列表](https://cloud.tencent.com/document/product/1073/92668))</li>
|
|
@@ -525,7 +554,7 @@ class TextToVoiceRequest(AbstractModel):
|
|
|
525
554
|
:type EnableSubtitle: bool
|
|
526
555
|
:param _SegmentRate: 断句敏感阈值,默认值为:0,取值范围:[0,1,2]。该值越大越不容易断句,模型会更倾向于仅按照标点符号断句。此参数建议不要随意调整,可能会影响合成效果。
|
|
527
556
|
:type SegmentRate: int
|
|
528
|
-
:param _EmotionCategory: 控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)、撒娇(sajiao)、厌恶(disgusted)、震惊(amaze)、平静(peaceful)、兴奋(exciting)
|
|
557
|
+
:param _EmotionCategory: 控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)、撒娇(sajiao)、厌恶(disgusted)、震惊(amaze)、平静(peaceful)、兴奋(exciting)、傲娇(aojiao)、解说(jieshuo)
|
|
529
558
|
:type EmotionCategory: str
|
|
530
559
|
:param _EmotionIntensity: 控制合成音频情感程度,取值范围为[50,200],默认为100;只有EmotionCategory不为空时生效;
|
|
531
560
|
:type EmotionIntensity: int
|
|
@@ -95,7 +95,6 @@ class TtsClient(AbstractClient):
|
|
|
95
95
|
def TextToVoice(self, request):
|
|
96
96
|
"""腾讯云语音合成技术(TTS)可以将任意文本转化为语音,实现让机器和应用张口说话。
|
|
97
97
|
腾讯TTS技术可以应用到很多场景,比如,移动APP语音播报新闻;智能设备语音提醒;依靠网上现有节目或少量录音,快速合成明星语音,降低邀约成本;支持车载导航语音合成的个性化语音播报。
|
|
98
|
-
内测期间免费使用。
|
|
99
98
|
基础合成支持 SSML,语法详见 [SSML 标记语言](https://cloud.tencent.com/document/product/1073/49575)。
|
|
100
99
|
默认接口请求频率限制:20次/秒。
|
|
101
100
|
|
|
@@ -10,4 +10,5 @@ tencentcloud/tts/v20190823/tts_client.py
|
|
|
10
10
|
tencentcloud_sdk_python_tts.egg-info/PKG-INFO
|
|
11
11
|
tencentcloud_sdk_python_tts.egg-info/SOURCES.txt
|
|
12
12
|
tencentcloud_sdk_python_tts.egg-info/dependency_links.txt
|
|
13
|
+
tencentcloud_sdk_python_tts.egg-info/requires.txt
|
|
13
14
|
tencentcloud_sdk_python_tts.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.965
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|