tencentcloud-sdk-python-asr 3.1.112__tar.gz → 3.1.130__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_asr-3.1.112 → tencentcloud_sdk_python_asr-3.1.130}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_asr-3.1.112 → tencentcloud_sdk_python_asr-3.1.130}/setup.py +1 -1
- {tencentcloud_sdk_python_asr-3.1.112 → tencentcloud_sdk_python_asr-3.1.130}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_asr-3.1.112 → tencentcloud_sdk_python_asr-3.1.130}/tencentcloud/asr/v20190614/asr_client.py +23 -0
- {tencentcloud_sdk_python_asr-3.1.112 → tencentcloud_sdk_python_asr-3.1.130}/tencentcloud/asr/v20190614/asr_client_async.py +18 -0
- {tencentcloud_sdk_python_asr-3.1.112 → tencentcloud_sdk_python_asr-3.1.130}/tencentcloud/asr/v20190614/models.py +102 -0
- {tencentcloud_sdk_python_asr-3.1.112 → tencentcloud_sdk_python_asr-3.1.130}/tencentcloud_sdk_python_asr.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_asr-3.1.130/tencentcloud_sdk_python_asr.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_asr-3.1.112/tencentcloud_sdk_python_asr.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_asr-3.1.112 → tencentcloud_sdk_python_asr-3.1.130}/README.rst +0 -0
- {tencentcloud_sdk_python_asr-3.1.112 → tencentcloud_sdk_python_asr-3.1.130}/setup.cfg +0 -0
- {tencentcloud_sdk_python_asr-3.1.112 → tencentcloud_sdk_python_asr-3.1.130}/tencentcloud/asr/__init__.py +0 -0
- {tencentcloud_sdk_python_asr-3.1.112 → tencentcloud_sdk_python_asr-3.1.130}/tencentcloud/asr/v20190614/__init__.py +0 -0
- {tencentcloud_sdk_python_asr-3.1.112 → tencentcloud_sdk_python_asr-3.1.130}/tencentcloud/asr/v20190614/errorcodes.py +0 -0
- {tencentcloud_sdk_python_asr-3.1.112 → tencentcloud_sdk_python_asr-3.1.130}/tencentcloud_sdk_python_asr.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_asr-3.1.112 → tencentcloud_sdk_python_asr-3.1.130}/tencentcloud_sdk_python_asr.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_asr-3.1.112 → tencentcloud_sdk_python_asr-3.1.130}/tencentcloud_sdk_python_asr.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-asr
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.130
|
|
4
4
|
Summary: Tencent Cloud Asr 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.130
|
|
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-asr',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.130,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Asr SDK for Python',
|
|
@@ -738,6 +738,29 @@ class AsrClient(AbstractClient):
|
|
|
738
738
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
739
739
|
|
|
740
740
|
|
|
741
|
+
def VoicePrintGroupList(self, request):
|
|
742
|
+
r"""返回注册的说话人分组信息列表
|
|
743
|
+
|
|
744
|
+
:param request: Request instance for VoicePrintGroupList.
|
|
745
|
+
:type request: :class:`tencentcloud.asr.v20190614.models.VoicePrintGroupListRequest`
|
|
746
|
+
:rtype: :class:`tencentcloud.asr.v20190614.models.VoicePrintGroupListResponse`
|
|
747
|
+
|
|
748
|
+
"""
|
|
749
|
+
try:
|
|
750
|
+
params = request._serialize()
|
|
751
|
+
headers = request.headers
|
|
752
|
+
body = self.call("VoicePrintGroupList", params, headers=headers)
|
|
753
|
+
response = json.loads(body)
|
|
754
|
+
model = models.VoicePrintGroupListResponse()
|
|
755
|
+
model._deserialize(response["Response"])
|
|
756
|
+
return model
|
|
757
|
+
except Exception as e:
|
|
758
|
+
if isinstance(e, TencentCloudSDKException):
|
|
759
|
+
raise
|
|
760
|
+
else:
|
|
761
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
762
|
+
|
|
763
|
+
|
|
741
764
|
def VoicePrintGroupVerify(self, request):
|
|
742
765
|
r"""说话人验证1:N接口,可以通过传入一段说话人音频,并且指定已存在的groupId, 和返回topN, 接口返回groupId内所有声纹和传入音频声纹比对打分TopN的结果。
|
|
743
766
|
|
|
@@ -592,6 +592,24 @@ class AsrClient(AbstractClient):
|
|
|
592
592
|
|
|
593
593
|
return await self.call_and_deserialize(**kwargs)
|
|
594
594
|
|
|
595
|
+
async def VoicePrintGroupList(
|
|
596
|
+
self,
|
|
597
|
+
request: models.VoicePrintGroupListRequest,
|
|
598
|
+
opts: Dict = None,
|
|
599
|
+
) -> models.VoicePrintGroupListResponse:
|
|
600
|
+
"""
|
|
601
|
+
返回注册的说话人分组信息列表
|
|
602
|
+
"""
|
|
603
|
+
|
|
604
|
+
kwargs = {}
|
|
605
|
+
kwargs["action"] = "VoicePrintGroupList"
|
|
606
|
+
kwargs["params"] = request._serialize()
|
|
607
|
+
kwargs["resp_cls"] = models.VoicePrintGroupListResponse
|
|
608
|
+
kwargs["headers"] = request.headers
|
|
609
|
+
kwargs["opts"] = opts or {}
|
|
610
|
+
|
|
611
|
+
return await self.call_and_deserialize(**kwargs)
|
|
612
|
+
|
|
595
613
|
async def VoicePrintGroupVerify(
|
|
596
614
|
self,
|
|
597
615
|
request: models.VoicePrintGroupVerifyRequest,
|
|
@@ -5774,6 +5774,108 @@ class VoicePrintEnrollResponse(AbstractModel):
|
|
|
5774
5774
|
self._RequestId = params.get("RequestId")
|
|
5775
5775
|
|
|
5776
5776
|
|
|
5777
|
+
class VoicePrintGroupList(AbstractModel):
|
|
5778
|
+
r"""声纹分组名称列表
|
|
5779
|
+
|
|
5780
|
+
"""
|
|
5781
|
+
|
|
5782
|
+
def __init__(self):
|
|
5783
|
+
r"""
|
|
5784
|
+
:param _Total: <p>总数量</p>
|
|
5785
|
+
:type Total: int
|
|
5786
|
+
:param _GroupIds: <p>分组名称列表</p>
|
|
5787
|
+
:type GroupIds: list of str
|
|
5788
|
+
"""
|
|
5789
|
+
self._Total = None
|
|
5790
|
+
self._GroupIds = None
|
|
5791
|
+
|
|
5792
|
+
@property
|
|
5793
|
+
def Total(self):
|
|
5794
|
+
r"""<p>总数量</p>
|
|
5795
|
+
:rtype: int
|
|
5796
|
+
"""
|
|
5797
|
+
return self._Total
|
|
5798
|
+
|
|
5799
|
+
@Total.setter
|
|
5800
|
+
def Total(self, Total):
|
|
5801
|
+
self._Total = Total
|
|
5802
|
+
|
|
5803
|
+
@property
|
|
5804
|
+
def GroupIds(self):
|
|
5805
|
+
r"""<p>分组名称列表</p>
|
|
5806
|
+
:rtype: list of str
|
|
5807
|
+
"""
|
|
5808
|
+
return self._GroupIds
|
|
5809
|
+
|
|
5810
|
+
@GroupIds.setter
|
|
5811
|
+
def GroupIds(self, GroupIds):
|
|
5812
|
+
self._GroupIds = GroupIds
|
|
5813
|
+
|
|
5814
|
+
|
|
5815
|
+
def _deserialize(self, params):
|
|
5816
|
+
self._Total = params.get("Total")
|
|
5817
|
+
self._GroupIds = params.get("GroupIds")
|
|
5818
|
+
memeber_set = set(params.keys())
|
|
5819
|
+
for name, value in vars(self).items():
|
|
5820
|
+
property_name = name[1:]
|
|
5821
|
+
if property_name in memeber_set:
|
|
5822
|
+
memeber_set.remove(property_name)
|
|
5823
|
+
if len(memeber_set) > 0:
|
|
5824
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5825
|
+
|
|
5826
|
+
|
|
5827
|
+
|
|
5828
|
+
class VoicePrintGroupListRequest(AbstractModel):
|
|
5829
|
+
r"""VoicePrintGroupList请求参数结构体
|
|
5830
|
+
|
|
5831
|
+
"""
|
|
5832
|
+
|
|
5833
|
+
|
|
5834
|
+
class VoicePrintGroupListResponse(AbstractModel):
|
|
5835
|
+
r"""VoicePrintGroupList返回参数结构体
|
|
5836
|
+
|
|
5837
|
+
"""
|
|
5838
|
+
|
|
5839
|
+
def __init__(self):
|
|
5840
|
+
r"""
|
|
5841
|
+
:param _Data: <p>返回分组名称列表数据</p>
|
|
5842
|
+
:type Data: :class:`tencentcloud.asr.v20190614.models.VoicePrintGroupList`
|
|
5843
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5844
|
+
:type RequestId: str
|
|
5845
|
+
"""
|
|
5846
|
+
self._Data = None
|
|
5847
|
+
self._RequestId = None
|
|
5848
|
+
|
|
5849
|
+
@property
|
|
5850
|
+
def Data(self):
|
|
5851
|
+
r"""<p>返回分组名称列表数据</p>
|
|
5852
|
+
:rtype: :class:`tencentcloud.asr.v20190614.models.VoicePrintGroupList`
|
|
5853
|
+
"""
|
|
5854
|
+
return self._Data
|
|
5855
|
+
|
|
5856
|
+
@Data.setter
|
|
5857
|
+
def Data(self, Data):
|
|
5858
|
+
self._Data = Data
|
|
5859
|
+
|
|
5860
|
+
@property
|
|
5861
|
+
def RequestId(self):
|
|
5862
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5863
|
+
:rtype: str
|
|
5864
|
+
"""
|
|
5865
|
+
return self._RequestId
|
|
5866
|
+
|
|
5867
|
+
@RequestId.setter
|
|
5868
|
+
def RequestId(self, RequestId):
|
|
5869
|
+
self._RequestId = RequestId
|
|
5870
|
+
|
|
5871
|
+
|
|
5872
|
+
def _deserialize(self, params):
|
|
5873
|
+
if params.get("Data") is not None:
|
|
5874
|
+
self._Data = VoicePrintGroupList()
|
|
5875
|
+
self._Data._deserialize(params.get("Data"))
|
|
5876
|
+
self._RequestId = params.get("RequestId")
|
|
5877
|
+
|
|
5878
|
+
|
|
5777
5879
|
class VoicePrintGroupVerifyRequest(AbstractModel):
|
|
5778
5880
|
r"""VoicePrintGroupVerify请求参数结构体
|
|
5779
5881
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-asr
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.130
|
|
4
4
|
Summary: Tencent Cloud Asr 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.130
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.130
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.112
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|