tencentcloud-sdk-asr 3.0.630 → 3.0.631
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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190614/client.rb +24 -0
- data/lib/v20190614/models.rb +51 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 098f8199f46a9d411f7bfb779ce5b4b7b822deb6
|
4
|
+
data.tar.gz: 87cf5b8f2d20b0fde46468e1663a0aca766642db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 328e3568eb3eca97f051c431fc762e93e95afd322fb6063c698791b4c13ca3320264d0172661eb5295ef08efdd5c3d0e78059671312475ff59f002f27fbabeda
|
7
|
+
data.tar.gz: 3674d941798060000d7e1511c42b6f21d01fecfaa992ec5ff9d1936a0203456ea8947d740f687bab177d8a0de5a2f7d333d45590b774c3a8f288293c403f92c2
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.631
|
data/lib/v20190614/client.rb
CHANGED
@@ -535,6 +535,30 @@ module TencentCloud
|
|
535
535
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
536
536
|
end
|
537
537
|
|
538
|
+
# 统计并返回注册的说话人id总数
|
539
|
+
|
540
|
+
# @param request: Request instance for VoicePrintCount.
|
541
|
+
# @type request: :class:`Tencentcloud::asr::V20190614::VoicePrintCountRequest`
|
542
|
+
# @rtype: :class:`Tencentcloud::asr::V20190614::VoicePrintCountResponse`
|
543
|
+
def VoicePrintCount(request)
|
544
|
+
body = send_request('VoicePrintCount', request.serialize)
|
545
|
+
response = JSON.parse(body)
|
546
|
+
if response['Response'].key?('Error') == false
|
547
|
+
model = VoicePrintCountResponse.new
|
548
|
+
model.deserialize(response['Response'])
|
549
|
+
model
|
550
|
+
else
|
551
|
+
code = response['Response']['Error']['Code']
|
552
|
+
message = response['Response']['Error']['Message']
|
553
|
+
reqid = response['Response']['RequestId']
|
554
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
555
|
+
end
|
556
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
557
|
+
raise e
|
558
|
+
rescue StandardError => e
|
559
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
560
|
+
end
|
561
|
+
|
538
562
|
# 本接口用于以删除已经注册的说话人信息(删除之后,原有的说话人ID和说话人音频数据都会失效)
|
539
563
|
|
540
564
|
# @param request: Request instance for VoicePrintDelete.
|
data/lib/v20190614/models.rb
CHANGED
@@ -1547,6 +1547,57 @@ module TencentCloud
|
|
1547
1547
|
end
|
1548
1548
|
end
|
1549
1549
|
|
1550
|
+
# 统计返回注册数量结构
|
1551
|
+
class VoicePrintCountData < TencentCloud::Common::AbstractModel
|
1552
|
+
# @param Total: 总数
|
1553
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1554
|
+
# @type Total: Integer
|
1555
|
+
|
1556
|
+
attr_accessor :Total
|
1557
|
+
|
1558
|
+
def initialize(total=nil)
|
1559
|
+
@Total = total
|
1560
|
+
end
|
1561
|
+
|
1562
|
+
def deserialize(params)
|
1563
|
+
@Total = params['Total']
|
1564
|
+
end
|
1565
|
+
end
|
1566
|
+
|
1567
|
+
# VoicePrintCount请求参数结构体
|
1568
|
+
class VoicePrintCountRequest < TencentCloud::Common::AbstractModel
|
1569
|
+
|
1570
|
+
|
1571
|
+
def initialize()
|
1572
|
+
end
|
1573
|
+
|
1574
|
+
def deserialize(params)
|
1575
|
+
end
|
1576
|
+
end
|
1577
|
+
|
1578
|
+
# VoicePrintCount返回参数结构体
|
1579
|
+
class VoicePrintCountResponse < TencentCloud::Common::AbstractModel
|
1580
|
+
# @param Data: 统计数据
|
1581
|
+
# @type Data: :class:`Tencentcloud::Asr.v20190614.models.VoicePrintCountData`
|
1582
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1583
|
+
# @type RequestId: String
|
1584
|
+
|
1585
|
+
attr_accessor :Data, :RequestId
|
1586
|
+
|
1587
|
+
def initialize(data=nil, requestid=nil)
|
1588
|
+
@Data = data
|
1589
|
+
@RequestId = requestid
|
1590
|
+
end
|
1591
|
+
|
1592
|
+
def deserialize(params)
|
1593
|
+
unless params['Data'].nil?
|
1594
|
+
@Data = VoicePrintCountData.new
|
1595
|
+
@Data.deserialize(params['Data'])
|
1596
|
+
end
|
1597
|
+
@RequestId = params['RequestId']
|
1598
|
+
end
|
1599
|
+
end
|
1600
|
+
|
1550
1601
|
# VoicePrintDelete请求参数结构体
|
1551
1602
|
class VoicePrintDeleteRequest < TencentCloud::Common::AbstractModel
|
1552
1603
|
# @param VoicePrintId: 说话人id,说话人唯一标识
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-asr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.631
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|