tencentcloud-sdk-asr 3.0.630 → 3.0.632

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f14562a047e142bceb46aa90cd3e94e52f68948b
4
- data.tar.gz: cb402d56e41eda7c99855b40681bb61c6e870954
3
+ metadata.gz: ddb02e80e49b8fbd8d59e90264682f17234b7e80
4
+ data.tar.gz: d4d930af0fe82816d985d06973a4af1618d11e7e
5
5
  SHA512:
6
- metadata.gz: a8d8e099c94c3180a1449381e32e8ab1f5c9ad91f28a930bce625e493b39ff53d057f4a7d90cc96113ecc6a1d90ac5ad75a9620294d47a9db93271845e18e0d8
7
- data.tar.gz: 5c62815f99ea12f0d5a1b9953e306829a9004f1fc716fc0165bd650d907791b2eac0685875243b74056e4de3e4eb4e4565b07fa7739585c212a74125152fd4cb
6
+ metadata.gz: 9947043ea1a864be1f640d980d53cc6869b65d6994a4524b5f58951cf3ae8d9916203651001ebc968e3a3b7ed019460c94f9091ad3e0bafeaa1858c4897f9585
7
+ data.tar.gz: 3b4a5a509c98182bf93db31a0fccece606e61005aa56b5f69b84a1d7738c45fc45c257809ef5e5da258d46ba7ac7fc097bfb11fae4945f53d0ea04f6d8ca23f4
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.630
1
+ 3.0.632
@@ -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.
@@ -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.630
4
+ version: 3.0.632
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-07 00:00:00.000000000 Z
11
+ date: 2023-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common