tencentcloud-sdk-python-tts 3.1.42__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.
- {tencentcloud_sdk_python_tts-3.1.42 → tencentcloud_sdk_python_tts-3.1.65}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_tts-3.1.42 → tencentcloud_sdk_python_tts-3.1.65}/setup.py +1 -1
- {tencentcloud_sdk_python_tts-3.1.42 → tencentcloud_sdk_python_tts-3.1.65}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_tts-3.1.42 → tencentcloud_sdk_python_tts-3.1.65}/tencentcloud/tts/v20190823/models.py +36 -46
- {tencentcloud_sdk_python_tts-3.1.42 → tencentcloud_sdk_python_tts-3.1.65}/tencentcloud_sdk_python_tts.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_tts-3.1.65/tencentcloud_sdk_python_tts.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_tts-3.1.42/tencentcloud_sdk_python_tts.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_tts-3.1.42 → tencentcloud_sdk_python_tts-3.1.65}/README.rst +0 -0
- {tencentcloud_sdk_python_tts-3.1.42 → tencentcloud_sdk_python_tts-3.1.65}/setup.cfg +0 -0
- {tencentcloud_sdk_python_tts-3.1.42 → tencentcloud_sdk_python_tts-3.1.65}/tencentcloud/tts/__init__.py +0 -0
- {tencentcloud_sdk_python_tts-3.1.42 → tencentcloud_sdk_python_tts-3.1.65}/tencentcloud/tts/v20190823/__init__.py +0 -0
- {tencentcloud_sdk_python_tts-3.1.42 → tencentcloud_sdk_python_tts-3.1.65}/tencentcloud/tts/v20190823/errorcodes.py +0 -0
- {tencentcloud_sdk_python_tts-3.1.42 → tencentcloud_sdk_python_tts-3.1.65}/tencentcloud/tts/v20190823/tts_client.py +0 -0
- {tencentcloud_sdk_python_tts-3.1.42 → tencentcloud_sdk_python_tts-3.1.65}/tencentcloud/tts/v20190823/tts_client_async.py +0 -0
- {tencentcloud_sdk_python_tts-3.1.42 → tencentcloud_sdk_python_tts-3.1.65}/tencentcloud_sdk_python_tts.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_tts-3.1.42 → tencentcloud_sdk_python_tts-3.1.65}/tencentcloud_sdk_python_tts.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_tts-3.1.42 → 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.
|
|
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.
|
|
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.
|
|
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',
|
|
@@ -647,40 +647,35 @@ class TextToVoiceRequest(AbstractModel):
|
|
|
647
647
|
|
|
648
648
|
def __init__(self):
|
|
649
649
|
r"""
|
|
650
|
-
:param _Text:
|
|
651
|
-
中文最大支持150个汉字(全角标点符号算一个汉字);英文最大支持500个字母(半角标点符号算一个字母)。
|
|
650
|
+
:param _Text: <p>合成语音的源文本,按UTF-8编码统一计算。<br>中文最大支持150个汉字(全角标点符号算一个汉字);英文最大支持500个字母(半角标点符号算一个字母)。</p>
|
|
652
651
|
:type Text: str
|
|
653
|
-
:param _SessionId:
|
|
652
|
+
:param _SessionId: <p>一次请求对应一个SessionId,会原样返回,建议传入类似于uuid的字符串防止重复。</p>
|
|
654
653
|
:type SessionId: str
|
|
655
|
-
:param _Volume:
|
|
654
|
+
:param _Volume: <p>音量大小,范围[-10,10],对应音量大小。默认为0,代表正常音量,值越大音量越高。</p>
|
|
656
655
|
:type Volume: float
|
|
657
|
-
:param _Speed:
|
|
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:
|
|
658
|
+
:param _ProjectId: <p>项目id,用户自定义,默认为0。</p>
|
|
660
659
|
:type ProjectId: int
|
|
661
|
-
:param _ModelType:
|
|
660
|
+
:param _ModelType: <p>模型类型,1-默认模型。</p>
|
|
662
661
|
:type ModelType: int
|
|
663
|
-
:param _VoiceType:
|
|
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:
|
|
664
|
+
:param _FastVoiceType: <p>一句话版声音复刻音色ID,使用一句话版声音复刻音色时需填写。</p>
|
|
666
665
|
:type FastVoiceType: str
|
|
667
|
-
:param _PrimaryLanguage:
|
|
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:
|
|
670
|
+
:param _Codec: <p>返回音频格式,可取值:wav(默认),mp3,pcm</p>
|
|
675
671
|
:type Codec: str
|
|
676
|
-
:param _EnableSubtitle:
|
|
672
|
+
:param _EnableSubtitle: <p>是否开启时间戳功能,默认为false。部分超自然音色不支持时间戳</p>
|
|
677
673
|
:type EnableSubtitle: bool
|
|
678
|
-
:param _SegmentRate:
|
|
674
|
+
:param _SegmentRate: <p>断句敏感阈值,默认值为:0,取值范围:[0,1,2]。该值越大越不容易断句,模型会更倾向于仅按照标点符号断句。此参数建议不要随意调整,可能会影响合成效果。</p>
|
|
679
675
|
:type SegmentRate: int
|
|
680
|
-
:param _EmotionCategory:
|
|
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:
|
|
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"""
|
|
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"""
|
|
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"""
|
|
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"""
|
|
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"""
|
|
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"""
|
|
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"""
|
|
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"""
|
|
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"""
|
|
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"""
|
|
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"""
|
|
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"""
|
|
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"""
|
|
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"""
|
|
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:
|
|
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"""
|
|
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.
|
|
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.
|
|
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.42
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|