tencentcloud-sdk-asr 3.0.851 → 3.0.853
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190614/models.rb +24 -2
- 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: 251eec5fffe031eb39261a01e292892cfe01f975
|
4
|
+
data.tar.gz: 607801757b14475a13a112d673183e33ef3aeecb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63bef66f07a1f1739637002a1cd1177005a62db66c5a59a02e8531251f72f556db14905ebfb1df50d87efc0668688dc1a210319c44e05889b08f11484d08280a
|
7
|
+
data.tar.gz: 500065585c081efc951ec30b794a1049d95e9c471d9bb525fd38b94f31efe354355633009c9e1e19ae8412f574a4794903d86b5050fafddaab5526744542ebd5
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.853
|
data/lib/v20190614/models.rb
CHANGED
@@ -458,13 +458,33 @@ module TencentCloud
|
|
458
458
|
# @type SentenceMaxLength: Integer
|
459
459
|
# @param Extra: 附加参数**(该参数无意义,忽略即可)**
|
460
460
|
# @type Extra: String
|
461
|
+
# @param HotwordList: 临时热词表:该参数用于提升识别准确率。
|
462
|
+
|
463
|
+
# - 单个热词限制:"热词|权重",单个热词不超过30个字符(最多10个汉字),权重[1-11]或者100,如:“腾讯云|5” 或“ASR|11”;
|
464
|
+
|
465
|
+
# - 临时热词表限制:多个热词用英文逗号分割,最多支持128个热词,如:“腾讯云|10,语音识别|5,ASR|11”;
|
466
|
+
|
467
|
+
# - 参数 hotword_id(热词表) 与 hotword_list(临时热词表) 区别:
|
468
|
+
|
469
|
+
# - hotword_id:热词表。需要先在控制台或接口创建热词表,获得对应hotword_id传入参数来使用热词功能;
|
470
|
+
|
471
|
+
# - hotword_list:临时热词表。每次请求时直接传入临时热词表来使用热词功能,云端不保留临时热词表。适用于有极大量热词需求的用户;
|
472
|
+
|
473
|
+
# 注意:
|
461
474
|
|
462
|
-
|
475
|
+
# - 如果同时传入了 hotword_id 和 hotword_list,会优先使用 hotword_list;
|
476
|
+
|
477
|
+
# - 热词权重设置为11时,当前热词将升级为超级热词,建议仅将重要且必须生效的热词设置到11,设置过多权重为11的热词将影响整体字准率。
|
478
|
+
|
479
|
+
# - 热词权重设置为100时,当前热词开启热词增强同音替换功能(仅支持8k_zh,16k_zh),举例:热词配置“蜜制|100”时,与“蜜制”同拼音(mizhi)的“秘制”的识别结果会被强制替换成“蜜制”。因此建议客户根据自己的实际情况开启该功能。建议仅将重要且必须生效的热词设置到100,设置过多权重为100的热词将影响整体字准率。
|
480
|
+
# @type HotwordList: String
|
481
|
+
|
482
|
+
attr_accessor :EngineModelType, :ChannelNum, :ResTextFormat, :SourceType, :Data, :DataLen, :Url, :CallbackUrl, :SpeakerDiarization, :SpeakerNumber, :HotwordId, :ReinforceHotword, :CustomizationId, :EmotionRecognition, :EmotionalEnergy, :ConvertNumMode, :FilterDirty, :FilterPunc, :FilterModal, :SentenceMaxLength, :Extra, :HotwordList
|
463
483
|
extend Gem::Deprecate
|
464
484
|
deprecate :ReinforceHotword, :none, 2024, 6
|
465
485
|
deprecate :ReinforceHotword=, :none, 2024, 6
|
466
486
|
|
467
|
-
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)
|
487
|
+
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)
|
468
488
|
@EngineModelType = enginemodeltype
|
469
489
|
@ChannelNum = channelnum
|
470
490
|
@ResTextFormat = restextformat
|
@@ -486,6 +506,7 @@ module TencentCloud
|
|
486
506
|
@FilterModal = filtermodal
|
487
507
|
@SentenceMaxLength = sentencemaxlength
|
488
508
|
@Extra = extra
|
509
|
+
@HotwordList = hotwordlist
|
489
510
|
end
|
490
511
|
|
491
512
|
def deserialize(params)
|
@@ -510,6 +531,7 @@ module TencentCloud
|
|
510
531
|
@FilterModal = params['FilterModal']
|
511
532
|
@SentenceMaxLength = params['SentenceMaxLength']
|
512
533
|
@Extra = params['Extra']
|
534
|
+
@HotwordList = params['HotwordList']
|
513
535
|
end
|
514
536
|
end
|
515
537
|
|
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.853
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|