tencentcloud-sdk-python-ccc 3.0.1250__tar.gz → 3.0.1256__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-ccc-3.0.1250 → tencentcloud-sdk-python-ccc-3.0.1256}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-ccc-3.0.1250 → tencentcloud-sdk-python-ccc-3.0.1256}/setup.py +1 -1
- {tencentcloud-sdk-python-ccc-3.0.1250 → tencentcloud-sdk-python-ccc-3.0.1256}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-ccc-3.0.1250 → tencentcloud-sdk-python-ccc-3.0.1256}/tencentcloud/ccc/v20200210/models.py +122 -1
- {tencentcloud-sdk-python-ccc-3.0.1250 → tencentcloud-sdk-python-ccc-3.0.1256}/tencentcloud_sdk_python_ccc.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-ccc-3.0.1256/tencentcloud_sdk_python_ccc.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-ccc-3.0.1250/tencentcloud_sdk_python_ccc.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-ccc-3.0.1250 → tencentcloud-sdk-python-ccc-3.0.1256}/README.rst +0 -0
- {tencentcloud-sdk-python-ccc-3.0.1250 → tencentcloud-sdk-python-ccc-3.0.1256}/setup.cfg +0 -0
- {tencentcloud-sdk-python-ccc-3.0.1250 → tencentcloud-sdk-python-ccc-3.0.1256}/tencentcloud/ccc/__init__.py +0 -0
- {tencentcloud-sdk-python-ccc-3.0.1250 → tencentcloud-sdk-python-ccc-3.0.1256}/tencentcloud/ccc/v20200210/__init__.py +0 -0
- {tencentcloud-sdk-python-ccc-3.0.1250 → tencentcloud-sdk-python-ccc-3.0.1256}/tencentcloud/ccc/v20200210/ccc_client.py +0 -0
- {tencentcloud-sdk-python-ccc-3.0.1250 → tencentcloud-sdk-python-ccc-3.0.1256}/tencentcloud/ccc/v20200210/errorcodes.py +0 -0
- {tencentcloud-sdk-python-ccc-3.0.1250 → tencentcloud-sdk-python-ccc-3.0.1256}/tencentcloud_sdk_python_ccc.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-ccc-3.0.1250 → tencentcloud-sdk-python-ccc-3.0.1256}/tencentcloud_sdk_python_ccc.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-ccc-3.0.1250 → tencentcloud-sdk-python-ccc-3.0.1256}/tencentcloud_sdk_python_ccc.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-ccc',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common==3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1256"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Ccc SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -1509,12 +1509,16 @@ class CreateAICallRequest(AbstractModel):
|
|
|
1509
1509
|
:param _SystemPrompt: 用于设定AI座席人设、说话规则、任务等的全局提示词。
|
|
1510
1510
|
:type SystemPrompt: str
|
|
1511
1511
|
:param _LLMType: LLM类型
|
|
1512
|
+
目前有两种
|
|
1513
|
+
openai(兼容openai协议的模型)
|
|
1514
|
+
azure
|
|
1512
1515
|
:type LLMType: str
|
|
1513
1516
|
:param _Model: 模型(当前仅支持openai协议的模型)
|
|
1514
1517
|
:type Model: str
|
|
1515
1518
|
:param _APIKey: API密钥
|
|
1516
1519
|
:type APIKey: str
|
|
1517
|
-
:param _APIUrl: API URL,仅支持兼容openai协议的模型,填写url时后缀不要带/chat/completions
|
|
1520
|
+
:param _APIUrl: API URL,仅支持兼容openai协议的模型,填写url时后缀不要带/chat/completions;
|
|
1521
|
+
llmType为azure时,URL填写格式需为:https://{your-resource-name}.openai.azure.com?api-version={api-version},填写url时后缀不要带/openai/deployments/{deployment-id}/chat/completions,系统会自动帮你填充后缀
|
|
1518
1522
|
:type APIUrl: str
|
|
1519
1523
|
:param _VoiceType: 音色,目前仅支持以下音色:
|
|
1520
1524
|
汉语:
|
|
@@ -1593,6 +1597,93 @@ HoaiMy
|
|
|
1593
1597
|
:type EndFunctionEnable: bool
|
|
1594
1598
|
:param _EndFunctionDesc: EndFunctionEnable为true时生效;call_end function calling的desc,默认为 "End the call when user has to leave (like says bye) or you are instructed to do so."
|
|
1595
1599
|
:type EndFunctionDesc: str
|
|
1600
|
+
:param _NotifyDuration: 用户多久没说话提示时长,最小10秒,默认10秒
|
|
1601
|
+
:type NotifyDuration: int
|
|
1602
|
+
:param _NotifyMessage: 用户NotifyDuration没说话,ai提示的语句,默认是"抱歉,我没听清。您可以重复下吗?"
|
|
1603
|
+
:type NotifyMessage: str
|
|
1604
|
+
:param _CustomTTSConfig: 和voiceType字段需要选填一个,这里是使用自己自定义的TTS,voiceType是系统内置的一些音色
|
|
1605
|
+
|
|
1606
|
+
tencent TTS:
|
|
1607
|
+
{
|
|
1608
|
+
"TTSType": "tencent", // String TTS类型, 目前支持"tencent" 和 “minixmax”, 其他的厂商支持中
|
|
1609
|
+
"AppId": "您的应用ID", // String 必填
|
|
1610
|
+
"SecretId": "您的密钥ID", // String 必填
|
|
1611
|
+
"SecretKey": "您的密钥Key", // String 必填
|
|
1612
|
+
"VoiceType": 101001, // Integer 必填,音色 ID,包括标准音色与精品音色,精品音色拟真度更高,价格不同于标准音色,请参见语音合成计费概述。完整的音色 ID 列表请参见语音合成音色列表。
|
|
1613
|
+
"Speed": 1.25, // Integer 非必填,语速,范围:[-2,6],分别对应不同语速: -2: 代表0.6倍 -1: 代表0.8倍 0: 代表1.0倍(默认) 1: 代表1.2倍 2: 代表1.5倍 6: 代表2.5倍 如果需要更细化的语速,可以保留小数点后 2 位,例如0.5/1.25/2.81等。 参数值与实际语速转换,可参考 语速转换
|
|
1614
|
+
"Volume": 5, // Integer 非必填,音量大小,范围:[0,10],分别对应11个等级的音量,默认值为0,代表正常音量。
|
|
1615
|
+
"PrimaryLanguage": 1, // Integer 可选 主要语言 1-中文(默认) 2-英文 3-日文
|
|
1616
|
+
"FastVoiceType": "xxxx" // 可选参数, 快速声音复刻的参数
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
参考:https://cloud.tencent.com/document/product/1073/92668#55924b56-1a73-4663-a7a1-a8dd82d6e823
|
|
1620
|
+
|
|
1621
|
+
minimax TTS
|
|
1622
|
+
{
|
|
1623
|
+
"TTSType": "minimax", // String TTS类型,
|
|
1624
|
+
"Model": "speech-01-turbo",
|
|
1625
|
+
"APIUrl": "https://api.minimax.chat/v1/t2a_v2",
|
|
1626
|
+
"APIKey": "eyxxxx",
|
|
1627
|
+
"GroupId": "181000000000000",
|
|
1628
|
+
"VoiceType":"female-tianmei-jingpin",
|
|
1629
|
+
"Speed": 1.2
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
参考:https://platform.minimaxi.com/document/T2A%20V2?key=66719005a427f0c8a5701643
|
|
1633
|
+
限频参考:https://platform.minimaxi.com/document/Rate%20limits?key=66b19417290299a26b234572 可能会导致回答卡顿
|
|
1634
|
+
|
|
1635
|
+
|
|
1636
|
+
|
|
1637
|
+
volcengine TTS
|
|
1638
|
+
{
|
|
1639
|
+
"TTSType": "volcengine", // 必填:String TTS类型
|
|
1640
|
+
"AppId" : "xxxxxxxx", // 必填:String 火山引擎分配的Appid
|
|
1641
|
+
"Token" : "TY9d4sQXHxxxxxxx", // 必填: String类型 火山引擎的访问token
|
|
1642
|
+
"Speed" : 1.0, // 可选参数 语速,默认为1.0
|
|
1643
|
+
"Volume": 1.0, // 可选参数, 音量大小, 默认为1.0
|
|
1644
|
+
"Cluster" : "volcano_tts", // 可选参数,业务集群, 默认是 volcano_tts
|
|
1645
|
+
"VoiceType" : "zh_male_aojiaobazong_moon_bigtts" // 音色类型, 默认为大模型语音合成的音色。 如果使用普通语音合成,则需要填写对应的音色类型。 音色类型填写错误会导致没有声音。
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
|
|
1649
|
+
|
|
1650
|
+
火山引擎音色类型参考:
|
|
1651
|
+
https://www.volcengine.com/docs/6561/162929
|
|
1652
|
+
语音合成音色列表--语音技术-火山引擎
|
|
1653
|
+
大模型语音合成音色列表--语音技术-火山引擎
|
|
1654
|
+
|
|
1655
|
+
|
|
1656
|
+
Azure TTS
|
|
1657
|
+
{
|
|
1658
|
+
"TTSType": "azure", // 必填:String TTS类型
|
|
1659
|
+
"SubscriptionKey": "xxxxxxxx", // 必填:String 订阅的Key
|
|
1660
|
+
"Region": "chinanorth3", // 必填:String 订阅的地区
|
|
1661
|
+
"VoiceName": "zh-CN-XiaoxiaoNeural", // 必填:String 音色名必填
|
|
1662
|
+
"Language": "zh-CN", // 必填:String 合成的语言
|
|
1663
|
+
"Rate": 1 // 选填:float 语速 0.5~2 默认为 1
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1666
|
+
参考:
|
|
1667
|
+
https://docs.azure.cn/zh-cn/ai-services/speech-service/speech-synthesis-markup-voice
|
|
1668
|
+
|
|
1669
|
+
|
|
1670
|
+
自定义 TTS
|
|
1671
|
+
{
|
|
1672
|
+
"TTSType": "custom", // String 必填
|
|
1673
|
+
"APIKey": "ApiKey", // String 必填 用来鉴权
|
|
1674
|
+
"APIUrl": "http://0.0.0.0:8080/stream-audio" // String,必填,TTS API URL
|
|
1675
|
+
"AudioFormat": "wav", // String, 非必填,期望输出的音频格式,如mp3, ogg_opus,pcm,wav,默认为 wav,目前只支持pcm和wav,
|
|
1676
|
+
"SampleRate": 16000, // Integer,非必填,音频采样率,默认为16000(16k),推荐值为16000
|
|
1677
|
+
"AudioChannel": 1, // Integer,非必填,音频通道数,取值:1 或 2 默认为1
|
|
1678
|
+
}
|
|
1679
|
+
|
|
1680
|
+
|
|
1681
|
+
具体协议规范:
|
|
1682
|
+
https://doc.weixin.qq.com/doc/w3_ANQAiAbdAFwHILbJBmtSqSbV1WZ3L?scode=AJEAIQdfAAo5a1xajYANQAiAbdAFw
|
|
1683
|
+
|
|
1684
|
+
|
|
1685
|
+
|
|
1686
|
+
:type CustomTTSConfig: str
|
|
1596
1687
|
"""
|
|
1597
1688
|
self._SdkAppId = None
|
|
1598
1689
|
self._Callee = None
|
|
@@ -1611,6 +1702,9 @@ HoaiMy
|
|
|
1611
1702
|
self._InterruptSpeechDuration = None
|
|
1612
1703
|
self._EndFunctionEnable = None
|
|
1613
1704
|
self._EndFunctionDesc = None
|
|
1705
|
+
self._NotifyDuration = None
|
|
1706
|
+
self._NotifyMessage = None
|
|
1707
|
+
self._CustomTTSConfig = None
|
|
1614
1708
|
|
|
1615
1709
|
@property
|
|
1616
1710
|
def SdkAppId(self):
|
|
@@ -1748,6 +1842,30 @@ HoaiMy
|
|
|
1748
1842
|
def EndFunctionDesc(self, EndFunctionDesc):
|
|
1749
1843
|
self._EndFunctionDesc = EndFunctionDesc
|
|
1750
1844
|
|
|
1845
|
+
@property
|
|
1846
|
+
def NotifyDuration(self):
|
|
1847
|
+
return self._NotifyDuration
|
|
1848
|
+
|
|
1849
|
+
@NotifyDuration.setter
|
|
1850
|
+
def NotifyDuration(self, NotifyDuration):
|
|
1851
|
+
self._NotifyDuration = NotifyDuration
|
|
1852
|
+
|
|
1853
|
+
@property
|
|
1854
|
+
def NotifyMessage(self):
|
|
1855
|
+
return self._NotifyMessage
|
|
1856
|
+
|
|
1857
|
+
@NotifyMessage.setter
|
|
1858
|
+
def NotifyMessage(self, NotifyMessage):
|
|
1859
|
+
self._NotifyMessage = NotifyMessage
|
|
1860
|
+
|
|
1861
|
+
@property
|
|
1862
|
+
def CustomTTSConfig(self):
|
|
1863
|
+
return self._CustomTTSConfig
|
|
1864
|
+
|
|
1865
|
+
@CustomTTSConfig.setter
|
|
1866
|
+
def CustomTTSConfig(self, CustomTTSConfig):
|
|
1867
|
+
self._CustomTTSConfig = CustomTTSConfig
|
|
1868
|
+
|
|
1751
1869
|
|
|
1752
1870
|
def _deserialize(self, params):
|
|
1753
1871
|
self._SdkAppId = params.get("SdkAppId")
|
|
@@ -1767,6 +1885,9 @@ HoaiMy
|
|
|
1767
1885
|
self._InterruptSpeechDuration = params.get("InterruptSpeechDuration")
|
|
1768
1886
|
self._EndFunctionEnable = params.get("EndFunctionEnable")
|
|
1769
1887
|
self._EndFunctionDesc = params.get("EndFunctionDesc")
|
|
1888
|
+
self._NotifyDuration = params.get("NotifyDuration")
|
|
1889
|
+
self._NotifyMessage = params.get("NotifyMessage")
|
|
1890
|
+
self._CustomTTSConfig = params.get("CustomTTSConfig")
|
|
1770
1891
|
memeber_set = set(params.keys())
|
|
1771
1892
|
for name, value in vars(self).items():
|
|
1772
1893
|
property_name = name[1:]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1256
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1250
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|