tencentcloud-sdk-python-tts 3.0.952__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.952 → tencentcloud-sdk-python-tts-3.0.965}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-tts-3.0.952 → tencentcloud-sdk-python-tts-3.0.965}/setup.py +1 -1
- {tencentcloud-sdk-python-tts-3.0.952 → tencentcloud-sdk-python-tts-3.0.965}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-tts-3.0.952 → tencentcloud-sdk-python-tts-3.0.965}/tencentcloud/tts/v20190823/errorcodes.py +1 -1
- {tencentcloud-sdk-python-tts-3.0.952 → tencentcloud-sdk-python-tts-3.0.965}/tencentcloud/tts/v20190823/models.py +29 -0
- {tencentcloud-sdk-python-tts-3.0.952 → tencentcloud-sdk-python-tts-3.0.965}/tencentcloud/tts/v20190823/tts_client.py +0 -1
- {tencentcloud-sdk-python-tts-3.0.952 → tencentcloud-sdk-python-tts-3.0.965}/tencentcloud_sdk_python_tts.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-tts-3.0.965/tencentcloud_sdk_python_tts.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-tts-3.0.952/tencentcloud_sdk_python_tts.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-tts-3.0.952 → tencentcloud-sdk-python-tts-3.0.965}/README.rst +0 -0
- {tencentcloud-sdk-python-tts-3.0.952 → tencentcloud-sdk-python-tts-3.0.965}/setup.cfg +0 -0
- {tencentcloud-sdk-python-tts-3.0.952 → tencentcloud-sdk-python-tts-3.0.965}/tencentcloud/tts/__init__.py +0 -0
- {tencentcloud-sdk-python-tts-3.0.952 → tencentcloud-sdk-python-tts-3.0.965}/tencentcloud/tts/v20190823/__init__.py +0 -0
- {tencentcloud-sdk-python-tts-3.0.952 → tencentcloud-sdk-python-tts-3.0.965}/tencentcloud_sdk_python_tts.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-tts-3.0.952 → tencentcloud-sdk-python-tts-3.0.965}/tencentcloud_sdk_python_tts.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-tts-3.0.952 → tencentcloud-sdk-python-tts-3.0.965}/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.965"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Tts SDK for Python',
|
|
14
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
|
# 资源包余量已用尽。
|
|
@@ -45,6 +45,8 @@ 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 _EnableSubtitle: 是否开启时间戳功能,默认为false。
|
|
49
|
+
:type EnableSubtitle: bool
|
|
48
50
|
:param _VoiceoverDialogueSplit: 旁白与对白文本解析,分别合成相应风格(仅适用于旁对白音色10510000、100510000),默认 false
|
|
49
51
|
:type VoiceoverDialogueSplit: bool
|
|
50
52
|
"""
|
|
@@ -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():
|
|
@@ -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
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.965
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.952
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|