tencentcloud-sdk-asr 3.0.1179 → 3.0.1184

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20190614/models.rb +41 -3
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 081a75541335e0863d2746f45309878db8e89298
4
- data.tar.gz: 37076a6da3dc5dc65e39b5e251cf5d7b02471251
3
+ metadata.gz: 182a61e43aa111f27e93c531075aea02d2fe06d8
4
+ data.tar.gz: 474059e7f927a31724cc8e0f5ae4326f24ddd43d
5
5
  SHA512:
6
- metadata.gz: 2cf4c3f853458d52a95ce7c53c60d1f1b5747d57535add6f198eee10abdb110497d3a6cb50e15e8c289fcb54e07f0116f7f3225a5240d2b64e8797ee2a8fb03f
7
- data.tar.gz: 91719b55a4e8e074239f556c115eacba1d001aa9c16634854db0533a0b0c9c6adfcfb58238b2c15d1eecc2a1472cc986bb691a671df0318d2296cdc0cf6d6cef
6
+ metadata.gz: 977cb2d4e3566d45340174af95a0e92cc394c069c7cc72f3da5657c61d87bacabfa7f43bf3c1182ff1f3a3d21b677263d0332817c26d288548248f643fa92cb0
7
+ data.tar.gz: 2cac0703665a4af4c1c47ffe38ac0ad3f1075eb8cdbdcaa6fdbafb5d19964b480e68288635be41409a3da3fa8eba83f6669412dd98be27d1d90a991ca4f02ac3
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1179
1
+ 3.0.1184
@@ -433,6 +433,7 @@ module TencentCloud
433
433
  # @param SpeakerDiarization: 是否开启说话人分离
434
434
  # 0:不开启;
435
435
  # 1:开启(仅支持以下引擎:8k_zh/8k_zh_large/16k_zh/16k_ms/16k_en/16k_id/16k_zh_large/16k_zh_dialect/16k_zh_en,且ChannelNum=1时可用);
436
+ # 3: 开启角色分离,需配合SpeakerRoles参数使用(增值服务,仅支持16k_zh_en引擎,可支持传入声纹对录音文件内的说话人进行角色认证)
436
437
  # 默认值为 0
437
438
 
438
439
  # 注意:
@@ -537,13 +538,21 @@ module TencentCloud
537
538
  # 注意:
538
539
  # 1. 本功能配置完成后,预计在10分钟后生效
539
540
  # @type ReplaceTextId: String
540
-
541
- attr_accessor :EngineModelType, :ChannelNum, :ResTextFormat, :SourceType, :Data, :DataLen, :Url, :CallbackUrl, :SpeakerDiarization, :SpeakerNumber, :HotwordId, :ReinforceHotword, :CustomizationId, :EmotionRecognition, :EmotionalEnergy, :ConvertNumMode, :FilterDirty, :FilterPunc, :FilterModal, :SentenceMaxLength, :Extra, :HotwordList, :KeyWordLibIdList, :ReplaceTextId
541
+ # @param SpeakerRoles: 开启角色分离能力
542
+ # 配合SpeakerDiarization: 3 使用,ASR增值服务,可传入一组声纹信息进行角色认证,仅支持16k_zh_en引擎。
543
+ # 需传入SpeakerRoleInfo数据组,确定说话人的角色信息,涉及RoleAudioUrl和RoleName两个参数。
544
+ # RoleAudioUrl:需要认证角色的声纹音频地址,建议30s内的纯净人声,最长不能超过45s。
545
+ # RoleName:需要认证角色的名称,若匹配成功,会替换话者分离中的SpeakerID。
546
+ # 示例:
547
+ # "{\"EngineModelType\":\"16k_zh_en\",\"ChannelNum\":1,\"ResTextFormat\":1,\"SourceType\":0,\"Url\":\"需要进行ASR识别的音频链接\",\"SpeakerDiarization\":3,\"SpeakerRoles\":[{\"RoleAudioUrl\":\"需要认证角色的声纹音频地址\",\"RoleName\":\"需要认证角色的名称\"}]}"
548
+ # @type SpeakerRoles: Array
549
+
550
+ attr_accessor :EngineModelType, :ChannelNum, :ResTextFormat, :SourceType, :Data, :DataLen, :Url, :CallbackUrl, :SpeakerDiarization, :SpeakerNumber, :HotwordId, :ReinforceHotword, :CustomizationId, :EmotionRecognition, :EmotionalEnergy, :ConvertNumMode, :FilterDirty, :FilterPunc, :FilterModal, :SentenceMaxLength, :Extra, :HotwordList, :KeyWordLibIdList, :ReplaceTextId, :SpeakerRoles
542
551
  extend Gem::Deprecate
543
552
  deprecate :ReinforceHotword, :none, 2025, 12
544
553
  deprecate :ReinforceHotword=, :none, 2025, 12
545
554
 
546
- def initialize(enginemodeltype=nil, channelnum=nil, restextformat=nil, sourcetype=nil, data=nil, datalen=nil, url=nil, callbackurl=nil, speakerdiarization=nil, speakernumber=nil, hotwordid=nil, reinforcehotword=nil, customizationid=nil, emotionrecognition=nil, emotionalenergy=nil, convertnummode=nil, filterdirty=nil, filterpunc=nil, filtermodal=nil, sentencemaxlength=nil, extra=nil, hotwordlist=nil, keywordlibidlist=nil, replacetextid=nil)
555
+ def initialize(enginemodeltype=nil, channelnum=nil, restextformat=nil, sourcetype=nil, data=nil, datalen=nil, url=nil, callbackurl=nil, speakerdiarization=nil, speakernumber=nil, hotwordid=nil, reinforcehotword=nil, customizationid=nil, emotionrecognition=nil, emotionalenergy=nil, convertnummode=nil, filterdirty=nil, filterpunc=nil, filtermodal=nil, sentencemaxlength=nil, extra=nil, hotwordlist=nil, keywordlibidlist=nil, replacetextid=nil, speakerroles=nil)
547
556
  @EngineModelType = enginemodeltype
548
557
  @ChannelNum = channelnum
549
558
  @ResTextFormat = restextformat
@@ -568,6 +577,7 @@ module TencentCloud
568
577
  @HotwordList = hotwordlist
569
578
  @KeyWordLibIdList = keywordlibidlist
570
579
  @ReplaceTextId = replacetextid
580
+ @SpeakerRoles = speakerroles
571
581
  end
572
582
 
573
583
  def deserialize(params)
@@ -595,6 +605,14 @@ module TencentCloud
595
605
  @HotwordList = params['HotwordList']
596
606
  @KeyWordLibIdList = params['KeyWordLibIdList']
597
607
  @ReplaceTextId = params['ReplaceTextId']
608
+ unless params['SpeakerRoles'].nil?
609
+ @SpeakerRoles = []
610
+ params['SpeakerRoles'].each do |i|
611
+ speakerroleinfo_tmp = SpeakerRoleInfo.new
612
+ speakerroleinfo_tmp.deserialize(i)
613
+ @SpeakerRoles << speakerroleinfo_tmp
614
+ end
615
+ end
598
616
  end
599
617
  end
600
618
 
@@ -1824,6 +1842,26 @@ module TencentCloud
1824
1842
  end
1825
1843
  end
1826
1844
 
1845
+ # 说话人注册角色声纹信息
1846
+ class SpeakerRoleInfo < TencentCloud::Common::AbstractModel
1847
+ # @param RoleAudioUrl: 音频url地址,建议不超过30秒,最大45秒
1848
+ # @type RoleAudioUrl: String
1849
+ # @param RoleName: 不超过30字节
1850
+ # @type RoleName: String
1851
+
1852
+ attr_accessor :RoleAudioUrl, :RoleName
1853
+
1854
+ def initialize(roleaudiourl=nil, rolename=nil)
1855
+ @RoleAudioUrl = roleaudiourl
1856
+ @RoleName = rolename
1857
+ end
1858
+
1859
+ def deserialize(params)
1860
+ @RoleAudioUrl = params['RoleAudioUrl']
1861
+ @RoleName = params['RoleName']
1862
+ end
1863
+ end
1864
+
1827
1865
  # [录音文件识别](https://cloud.tencent.com/document/product/1093/37823#3.-.E8.BE.93.E5.87.BA.E5.8F.82.E6.95.B0)、[实时语音异步识别](https://cloud.tencent.com/document/product/1093/52061#3.-.E8.BE.93.E5.87.BA.E5.8F.82.E6.95.B0)请求的返回数据
1828
1866
  class Task < TencentCloud::Common::AbstractModel
1829
1867
  # @param TaskId: 任务ID,可通过此ID在轮询接口获取识别状态与结果。TaskId数据类型为**uint64**。
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.1179
4
+ version: 3.0.1184
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-12-09 00:00:00.000000000 Z
11
+ date: 2025-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common