tencentcloud-sdk-asr 3.0.605 → 3.0.606
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 +102 -0
- data/lib/v20190614/models.rb +254 -9
- 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: ee405e838de574f6701f69011a70a07508bdf56e
|
4
|
+
data.tar.gz: de5e2e42b77db892fecd3ce261103802f191eb6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab9e5553ae79af57cc49f6d74bc27cf12ea23d9ba18976524921ea9aabf518ddd79409723d8e4082540e41554f65187bd0eb4c1ee1a70d9e6815c1c85307825e
|
7
|
+
data.tar.gz: b496cc1004615f2d60569e35ed49023e972e1a89d09a5dd40f3cd897f97cf06c1fbdd6cf5cef6efec3315776f7acd38517ac329944405c4edf84d286e75c4530
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.606
|
data/lib/v20190614/client.rb
CHANGED
@@ -535,6 +535,108 @@ 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 VoicePrintDelete.
|
541
|
+
# @type request: :class:`Tencentcloud::asr::V20190614::VoicePrintDeleteRequest`
|
542
|
+
# @rtype: :class:`Tencentcloud::asr::V20190614::VoicePrintDeleteResponse`
|
543
|
+
def VoicePrintDelete(request)
|
544
|
+
body = send_request('VoicePrintDelete', request.serialize)
|
545
|
+
response = JSON.parse(body)
|
546
|
+
if response['Response'].key?('Error') == false
|
547
|
+
model = VoicePrintDeleteResponse.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
|
+
|
562
|
+
# 说话人注册接口用于注册一个指定音频,生成一个唯一的说话人id,后续可通过说话人验证接口验证其它音频和已有的说话人ID匹配度,注册时可指定说话人昵称,方便标识说话人ID, 说话人昵称可重复配置。
|
563
|
+
# (注: 一个appid最多可以注册1000个说话人ID,一个说话人ID仅支持一条音频注册,后续可通过更新接口进行更新)
|
564
|
+
|
565
|
+
# 使用须知
|
566
|
+
# 支持的输入格式:编码文件(PCM, WAV)、16 bit采样位数、单声道(mono)。
|
567
|
+
|
568
|
+
# 支持的音频采样率:16000 Hz。
|
569
|
+
|
570
|
+
# @param request: Request instance for VoicePrintEnroll.
|
571
|
+
# @type request: :class:`Tencentcloud::asr::V20190614::VoicePrintEnrollRequest`
|
572
|
+
# @rtype: :class:`Tencentcloud::asr::V20190614::VoicePrintEnrollResponse`
|
573
|
+
def VoicePrintEnroll(request)
|
574
|
+
body = send_request('VoicePrintEnroll', request.serialize)
|
575
|
+
response = JSON.parse(body)
|
576
|
+
if response['Response'].key?('Error') == false
|
577
|
+
model = VoicePrintEnrollResponse.new
|
578
|
+
model.deserialize(response['Response'])
|
579
|
+
model
|
580
|
+
else
|
581
|
+
code = response['Response']['Error']['Code']
|
582
|
+
message = response['Response']['Error']['Message']
|
583
|
+
reqid = response['Response']['RequestId']
|
584
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
585
|
+
end
|
586
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
587
|
+
raise e
|
588
|
+
rescue StandardError => e
|
589
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
590
|
+
end
|
591
|
+
|
592
|
+
# 本接口用于更新和覆盖已注册的音频数据和说话人昵称,更新后原有的音频数据将失效。
|
593
|
+
|
594
|
+
# @param request: Request instance for VoicePrintUpdate.
|
595
|
+
# @type request: :class:`Tencentcloud::asr::V20190614::VoicePrintUpdateRequest`
|
596
|
+
# @rtype: :class:`Tencentcloud::asr::V20190614::VoicePrintUpdateResponse`
|
597
|
+
def VoicePrintUpdate(request)
|
598
|
+
body = send_request('VoicePrintUpdate', request.serialize)
|
599
|
+
response = JSON.parse(body)
|
600
|
+
if response['Response'].key?('Error') == false
|
601
|
+
model = VoicePrintUpdateResponse.new
|
602
|
+
model.deserialize(response['Response'])
|
603
|
+
model
|
604
|
+
else
|
605
|
+
code = response['Response']['Error']['Code']
|
606
|
+
message = response['Response']['Error']['Message']
|
607
|
+
reqid = response['Response']['RequestId']
|
608
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
609
|
+
end
|
610
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
611
|
+
raise e
|
612
|
+
rescue StandardError => e
|
613
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
614
|
+
end
|
615
|
+
|
616
|
+
# 本接口用于校验传入音频与已注册音频的匹配程度,通过指定说话人ID(VoicePrintId)和一段音频进行音频和说话人的匹配度判断
|
617
|
+
|
618
|
+
# @param request: Request instance for VoicePrintVerify.
|
619
|
+
# @type request: :class:`Tencentcloud::asr::V20190614::VoicePrintVerifyRequest`
|
620
|
+
# @rtype: :class:`Tencentcloud::asr::V20190614::VoicePrintVerifyResponse`
|
621
|
+
def VoicePrintVerify(request)
|
622
|
+
body = send_request('VoicePrintVerify', request.serialize)
|
623
|
+
response = JSON.parse(body)
|
624
|
+
if response['Response'].key?('Error') == false
|
625
|
+
model = VoicePrintVerifyResponse.new
|
626
|
+
model.deserialize(response['Response'])
|
627
|
+
model
|
628
|
+
else
|
629
|
+
code = response['Response']['Error']['Code']
|
630
|
+
message = response['Response']['Error']['Message']
|
631
|
+
reqid = response['Response']['RequestId']
|
632
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
633
|
+
end
|
634
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
635
|
+
raise e
|
636
|
+
rescue StandardError => e
|
637
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
638
|
+
end
|
639
|
+
|
538
640
|
|
539
641
|
end
|
540
642
|
end
|
data/lib/v20190614/models.rb
CHANGED
@@ -154,7 +154,7 @@ module TencentCloud
|
|
154
154
|
# @param EngineType: 引擎模型类型。
|
155
155
|
# • 16k_zh:中文普通话通用;
|
156
156
|
# • 16k_en:英语;
|
157
|
-
# •
|
157
|
+
# • 16k_yue:粤语;
|
158
158
|
# • 16k_id:印度尼西亚语;
|
159
159
|
# • 16k_fil:菲律宾语;
|
160
160
|
# • 16k_th:泰语;
|
@@ -296,7 +296,7 @@ module TencentCloud
|
|
296
296
|
# • 16k_zh-PY:中英粤;
|
297
297
|
# • 16k_zh_medical:中文医疗;
|
298
298
|
# • 16k_en:英语;
|
299
|
-
# •
|
299
|
+
# • 16k_yue:粤语;
|
300
300
|
# • 16k_ja:日语;
|
301
301
|
# • 16k_ko:韩语;
|
302
302
|
# • 16k_vi:越南语;
|
@@ -310,7 +310,7 @@ module TencentCloud
|
|
310
310
|
# @type EngineModelType: String
|
311
311
|
# @param ChannelNum: 识别声道数。1:单声道(非电话场景,直接选择单声道即可,忽略音频声道数);2:双声道(仅支持8k_zh电话场景,双声道应分别对应通话双方)。注意:双声道的电话音频已物理分离说话人,无需再开启说话人分离功能。
|
312
312
|
# @type ChannelNum: Integer
|
313
|
-
# @param ResTextFormat: 识别结果返回形式。0: 识别结果文本(含分段时间戳); 1:词级别粒度的[详细识别结果](https://cloud.tencent.com/document/api/1093/37824#SentenceDetail)(不含标点,含语速值);2:词级别粒度的详细识别结果(包含标点、语速值);3: 标点符号分段,包含每段时间戳,特别适用于字幕场景(包含词级时间、标点、语速值)。
|
313
|
+
# @param ResTextFormat: 识别结果返回形式。0: 识别结果文本(含分段时间戳); 1:词级别粒度的[详细识别结果](https://cloud.tencent.com/document/api/1093/37824#SentenceDetail)(不含标点,含语速值);2:词级别粒度的详细识别结果(包含标点、语速值);3: 标点符号分段,包含每段时间戳,特别适用于字幕场景(包含词级时间、标点、语速值)。4:【付费功能】将对ASR结果按照语义分段,并展示词级别粒度的详细识别结果(注意:如果开启后付费,将[自动计费](https://cloud.tencent.com/document/product/1093/35686))
|
314
314
|
# @type ResTextFormat: Integer
|
315
315
|
# @param SourceType: 语音数据来源。0:语音 URL;1:语音数据(post body)。
|
316
316
|
# @type SourceType: Integer
|
@@ -1149,12 +1149,12 @@ module TencentCloud
|
|
1149
1149
|
|
1150
1150
|
attr_accessor :EngSerViceType, :SourceType, :VoiceFormat, :ProjectId, :SubServiceType, :Url, :UsrAudioKey, :Data, :DataLen, :WordInfo, :FilterDirty, :FilterModal, :FilterPunc, :ConvertNumMode, :HotwordId, :CustomizationId, :ReinforceHotword, :HotwordList
|
1151
1151
|
extend Gem::Deprecate
|
1152
|
-
deprecate :ProjectId, :none, 2023,
|
1153
|
-
deprecate :ProjectId=, :none, 2023,
|
1154
|
-
deprecate :SubServiceType, :none, 2023,
|
1155
|
-
deprecate :SubServiceType=, :none, 2023,
|
1156
|
-
deprecate :UsrAudioKey, :none, 2023,
|
1157
|
-
deprecate :UsrAudioKey=, :none, 2023,
|
1152
|
+
deprecate :ProjectId, :none, 2023, 7
|
1153
|
+
deprecate :ProjectId=, :none, 2023, 7
|
1154
|
+
deprecate :SubServiceType, :none, 2023, 7
|
1155
|
+
deprecate :SubServiceType=, :none, 2023, 7
|
1156
|
+
deprecate :UsrAudioKey, :none, 2023, 7
|
1157
|
+
deprecate :UsrAudioKey=, :none, 2023, 7
|
1158
1158
|
|
1159
1159
|
def initialize(engservicetype=nil, sourcetype=nil, voiceformat=nil, projectid=nil, subservicetype=nil, url=nil, usraudiokey=nil, data=nil, datalen=nil, wordinfo=nil, filterdirty=nil, filtermodal=nil, filterpunc=nil, convertnummode=nil, hotwordid=nil, customizationid=nil, reinforcehotword=nil, hotwordlist=nil)
|
1160
1160
|
@EngSerViceType = engservicetype
|
@@ -1508,6 +1508,251 @@ module TencentCloud
|
|
1508
1508
|
end
|
1509
1509
|
end
|
1510
1510
|
|
1511
|
+
# 说话人基础数据,包括说话人id和说话人昵称
|
1512
|
+
class VoicePrintBaseData < TencentCloud::Common::AbstractModel
|
1513
|
+
# @param VoicePrintId: 说话人id
|
1514
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1515
|
+
# @type VoicePrintId: String
|
1516
|
+
# @param SpeakerNick: 说话人昵称
|
1517
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1518
|
+
# @type SpeakerNick: String
|
1519
|
+
|
1520
|
+
attr_accessor :VoicePrintId, :SpeakerNick
|
1521
|
+
|
1522
|
+
def initialize(voiceprintid=nil, speakernick=nil)
|
1523
|
+
@VoicePrintId = voiceprintid
|
1524
|
+
@SpeakerNick = speakernick
|
1525
|
+
end
|
1526
|
+
|
1527
|
+
def deserialize(params)
|
1528
|
+
@VoicePrintId = params['VoicePrintId']
|
1529
|
+
@SpeakerNick = params['SpeakerNick']
|
1530
|
+
end
|
1531
|
+
end
|
1532
|
+
|
1533
|
+
# VoicePrintDelete请求参数结构体
|
1534
|
+
class VoicePrintDeleteRequest < TencentCloud::Common::AbstractModel
|
1535
|
+
# @param VoicePrintId: 说话人id,说话人唯一标识
|
1536
|
+
# @type VoicePrintId: String
|
1537
|
+
|
1538
|
+
attr_accessor :VoicePrintId
|
1539
|
+
|
1540
|
+
def initialize(voiceprintid=nil)
|
1541
|
+
@VoicePrintId = voiceprintid
|
1542
|
+
end
|
1543
|
+
|
1544
|
+
def deserialize(params)
|
1545
|
+
@VoicePrintId = params['VoicePrintId']
|
1546
|
+
end
|
1547
|
+
end
|
1548
|
+
|
1549
|
+
# VoicePrintDelete返回参数结构体
|
1550
|
+
class VoicePrintDeleteResponse < TencentCloud::Common::AbstractModel
|
1551
|
+
# @param Data: 说话人基本信息
|
1552
|
+
# @type Data: :class:`Tencentcloud::Asr.v20190614.models.VoicePrintBaseData`
|
1553
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1554
|
+
# @type RequestId: String
|
1555
|
+
|
1556
|
+
attr_accessor :Data, :RequestId
|
1557
|
+
|
1558
|
+
def initialize(data=nil, requestid=nil)
|
1559
|
+
@Data = data
|
1560
|
+
@RequestId = requestid
|
1561
|
+
end
|
1562
|
+
|
1563
|
+
def deserialize(params)
|
1564
|
+
unless params['Data'].nil?
|
1565
|
+
@Data = VoicePrintBaseData.new
|
1566
|
+
@Data.deserialize(params['Data'])
|
1567
|
+
end
|
1568
|
+
@RequestId = params['RequestId']
|
1569
|
+
end
|
1570
|
+
end
|
1571
|
+
|
1572
|
+
# VoicePrintEnroll请求参数结构体
|
1573
|
+
class VoicePrintEnrollRequest < TencentCloud::Common::AbstractModel
|
1574
|
+
# @param VoiceFormat: 音频格式 0: pcm, 1: wav
|
1575
|
+
# @type VoiceFormat: Integer
|
1576
|
+
# @param SampleRate: 音频采样率,目前支持16000,单位:Hz,必填
|
1577
|
+
# @type SampleRate: Integer
|
1578
|
+
# @param Data: 音频数据, base64 编码, 音频时长不能超过30s,数据大小不超过2M
|
1579
|
+
# @type Data: String
|
1580
|
+
# @param SpeakerNick: 说话人昵称 不超过32字节
|
1581
|
+
# @type SpeakerNick: String
|
1582
|
+
|
1583
|
+
attr_accessor :VoiceFormat, :SampleRate, :Data, :SpeakerNick
|
1584
|
+
|
1585
|
+
def initialize(voiceformat=nil, samplerate=nil, data=nil, speakernick=nil)
|
1586
|
+
@VoiceFormat = voiceformat
|
1587
|
+
@SampleRate = samplerate
|
1588
|
+
@Data = data
|
1589
|
+
@SpeakerNick = speakernick
|
1590
|
+
end
|
1591
|
+
|
1592
|
+
def deserialize(params)
|
1593
|
+
@VoiceFormat = params['VoiceFormat']
|
1594
|
+
@SampleRate = params['SampleRate']
|
1595
|
+
@Data = params['Data']
|
1596
|
+
@SpeakerNick = params['SpeakerNick']
|
1597
|
+
end
|
1598
|
+
end
|
1599
|
+
|
1600
|
+
# VoicePrintEnroll返回参数结构体
|
1601
|
+
class VoicePrintEnrollResponse < TencentCloud::Common::AbstractModel
|
1602
|
+
# @param Data: 说话人基本数据
|
1603
|
+
# @type Data: :class:`Tencentcloud::Asr.v20190614.models.VoicePrintBaseData`
|
1604
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1605
|
+
# @type RequestId: String
|
1606
|
+
|
1607
|
+
attr_accessor :Data, :RequestId
|
1608
|
+
|
1609
|
+
def initialize(data=nil, requestid=nil)
|
1610
|
+
@Data = data
|
1611
|
+
@RequestId = requestid
|
1612
|
+
end
|
1613
|
+
|
1614
|
+
def deserialize(params)
|
1615
|
+
unless params['Data'].nil?
|
1616
|
+
@Data = VoicePrintBaseData.new
|
1617
|
+
@Data.deserialize(params['Data'])
|
1618
|
+
end
|
1619
|
+
@RequestId = params['RequestId']
|
1620
|
+
end
|
1621
|
+
end
|
1622
|
+
|
1623
|
+
# VoicePrintUpdate请求参数结构体
|
1624
|
+
class VoicePrintUpdateRequest < TencentCloud::Common::AbstractModel
|
1625
|
+
# @param VoiceFormat: 音频格式 0: pcm, 1: wav
|
1626
|
+
# @type VoiceFormat: Integer
|
1627
|
+
# @param SampleRate: 音频采样率 目前仅支持16000 单位Hz
|
1628
|
+
# @type SampleRate: Integer
|
1629
|
+
# @param VoicePrintId: 说话人id, 说话人唯一标识
|
1630
|
+
# @type VoicePrintId: String
|
1631
|
+
# @param Data: 音频数据, base64 编码, 音频时长不能超过30s,数据大小不超过2M
|
1632
|
+
# @type Data: String
|
1633
|
+
# @param SpeakerNick: 说话人昵称 不超过32字节
|
1634
|
+
# @type SpeakerNick: String
|
1635
|
+
|
1636
|
+
attr_accessor :VoiceFormat, :SampleRate, :VoicePrintId, :Data, :SpeakerNick
|
1637
|
+
|
1638
|
+
def initialize(voiceformat=nil, samplerate=nil, voiceprintid=nil, data=nil, speakernick=nil)
|
1639
|
+
@VoiceFormat = voiceformat
|
1640
|
+
@SampleRate = samplerate
|
1641
|
+
@VoicePrintId = voiceprintid
|
1642
|
+
@Data = data
|
1643
|
+
@SpeakerNick = speakernick
|
1644
|
+
end
|
1645
|
+
|
1646
|
+
def deserialize(params)
|
1647
|
+
@VoiceFormat = params['VoiceFormat']
|
1648
|
+
@SampleRate = params['SampleRate']
|
1649
|
+
@VoicePrintId = params['VoicePrintId']
|
1650
|
+
@Data = params['Data']
|
1651
|
+
@SpeakerNick = params['SpeakerNick']
|
1652
|
+
end
|
1653
|
+
end
|
1654
|
+
|
1655
|
+
# VoicePrintUpdate返回参数结构体
|
1656
|
+
class VoicePrintUpdateResponse < TencentCloud::Common::AbstractModel
|
1657
|
+
# @param Data: 说话人基础数据
|
1658
|
+
# @type Data: :class:`Tencentcloud::Asr.v20190614.models.VoicePrintBaseData`
|
1659
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1660
|
+
# @type RequestId: String
|
1661
|
+
|
1662
|
+
attr_accessor :Data, :RequestId
|
1663
|
+
|
1664
|
+
def initialize(data=nil, requestid=nil)
|
1665
|
+
@Data = data
|
1666
|
+
@RequestId = requestid
|
1667
|
+
end
|
1668
|
+
|
1669
|
+
def deserialize(params)
|
1670
|
+
unless params['Data'].nil?
|
1671
|
+
@Data = VoicePrintBaseData.new
|
1672
|
+
@Data.deserialize(params['Data'])
|
1673
|
+
end
|
1674
|
+
@RequestId = params['RequestId']
|
1675
|
+
end
|
1676
|
+
end
|
1677
|
+
|
1678
|
+
# 说话人验证数据
|
1679
|
+
class VoicePrintVerifyData < TencentCloud::Common::AbstractModel
|
1680
|
+
# @param VoicePrintId: 说话人id
|
1681
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1682
|
+
# @type VoicePrintId: String
|
1683
|
+
# @param Score: 匹配度 取值范围(0.0 - 100.0)
|
1684
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1685
|
+
# @type Score: String
|
1686
|
+
# @param Decision: 验证结果 0: 未通过 1: 通过
|
1687
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1688
|
+
# @type Decision: Integer
|
1689
|
+
|
1690
|
+
attr_accessor :VoicePrintId, :Score, :Decision
|
1691
|
+
|
1692
|
+
def initialize(voiceprintid=nil, score=nil, decision=nil)
|
1693
|
+
@VoicePrintId = voiceprintid
|
1694
|
+
@Score = score
|
1695
|
+
@Decision = decision
|
1696
|
+
end
|
1697
|
+
|
1698
|
+
def deserialize(params)
|
1699
|
+
@VoicePrintId = params['VoicePrintId']
|
1700
|
+
@Score = params['Score']
|
1701
|
+
@Decision = params['Decision']
|
1702
|
+
end
|
1703
|
+
end
|
1704
|
+
|
1705
|
+
# VoicePrintVerify请求参数结构体
|
1706
|
+
class VoicePrintVerifyRequest < TencentCloud::Common::AbstractModel
|
1707
|
+
# @param VoiceFormat: 音频格式 0: pcm, 1: wav
|
1708
|
+
# @type VoiceFormat: Integer
|
1709
|
+
# @param SampleRate: 音频采样率,目前支持16000,单位:Hz,必填
|
1710
|
+
# @type SampleRate: Integer
|
1711
|
+
# @param VoicePrintId: 说话人id, 说话人唯一标识
|
1712
|
+
# @type VoicePrintId: String
|
1713
|
+
# @param Data: 音频数据, base64 编码, 音频时长不能超过30s,数据大小不超过2M
|
1714
|
+
# @type Data: String
|
1715
|
+
|
1716
|
+
attr_accessor :VoiceFormat, :SampleRate, :VoicePrintId, :Data
|
1717
|
+
|
1718
|
+
def initialize(voiceformat=nil, samplerate=nil, voiceprintid=nil, data=nil)
|
1719
|
+
@VoiceFormat = voiceformat
|
1720
|
+
@SampleRate = samplerate
|
1721
|
+
@VoicePrintId = voiceprintid
|
1722
|
+
@Data = data
|
1723
|
+
end
|
1724
|
+
|
1725
|
+
def deserialize(params)
|
1726
|
+
@VoiceFormat = params['VoiceFormat']
|
1727
|
+
@SampleRate = params['SampleRate']
|
1728
|
+
@VoicePrintId = params['VoicePrintId']
|
1729
|
+
@Data = params['Data']
|
1730
|
+
end
|
1731
|
+
end
|
1732
|
+
|
1733
|
+
# VoicePrintVerify返回参数结构体
|
1734
|
+
class VoicePrintVerifyResponse < TencentCloud::Common::AbstractModel
|
1735
|
+
# @param Data: 说话人验证数据
|
1736
|
+
# @type Data: :class:`Tencentcloud::Asr.v20190614.models.VoicePrintVerifyData`
|
1737
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1738
|
+
# @type RequestId: String
|
1739
|
+
|
1740
|
+
attr_accessor :Data, :RequestId
|
1741
|
+
|
1742
|
+
def initialize(data=nil, requestid=nil)
|
1743
|
+
@Data = data
|
1744
|
+
@RequestId = requestid
|
1745
|
+
end
|
1746
|
+
|
1747
|
+
def deserialize(params)
|
1748
|
+
unless params['Data'].nil?
|
1749
|
+
@Data = VoicePrintVerifyData.new
|
1750
|
+
@Data.deserialize(params['Data'])
|
1751
|
+
end
|
1752
|
+
@RequestId = params['RequestId']
|
1753
|
+
end
|
1754
|
+
end
|
1755
|
+
|
1511
1756
|
end
|
1512
1757
|
end
|
1513
1758
|
end
|
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.606
|
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-07-
|
11
|
+
date: 2023-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|