tencentcloud-sdk-asr 3.0.800 → 3.0.801
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 +1 -1
- data/lib/v20190614/models.rb +22 -14
- 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: e22fd811b86283d291ea4a9e26409ffe8c77bda7
|
4
|
+
data.tar.gz: 39cd43faf6dc57442500c5740c3823bc1330b126
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 927f39814d4e2de0a84433ea31b60ba1a88d0b6a6f934da0c6ec1414450a280b2c1aee6a623d028c02e15957f089e488756b4cde2438242bcf5fe31f8a0a2bfe
|
7
|
+
data.tar.gz: 7c6d44c71e3c0442de19343c6a68f88c6c3ddf4361f32da100d52707e385dddbd527d6b4f2ae6a1208f6b25679e302ff07678b31f4e488f6146441b5ac7e9497
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.801
|
data/lib/v20190614/client.rb
CHANGED
@@ -58,7 +58,7 @@ module TencentCloud
|
|
58
58
|
# <br>• 每个热词表最多可添加1000个词,每个词最长10个汉字或30个英文字符,不能超出限制。
|
59
59
|
# <br>• 热词表可以通过数组或者本地文件形式上传。
|
60
60
|
# <br>• 本地文件必须为UTF-8编码格式,每行仅添加一个热词且不能包含标点和特殊字符。
|
61
|
-
# <br>• 热词权重取值范围为[1,11]
|
61
|
+
# <br>• 热词权重取值范围为[1,11]之间的整数或者100,权重越大代表该词被识别出来的概率越大。
|
62
62
|
# <br>• 注意: 热词权重设置为11时,当前热词将升级为超级热词,建议仅将重要且必须生效的热词设置到11,设置过多权重为11的热词将影响整体字准率。
|
63
63
|
|
64
64
|
# @param request: Request instance for CreateAsrVocab.
|
data/lib/v20190614/models.rb
CHANGED
@@ -99,8 +99,10 @@ module TencentCloud
|
|
99
99
|
# @type Name: String
|
100
100
|
# @param Description: 热词表描述,长度在0-1000之间
|
101
101
|
# @type Description: String
|
102
|
-
# @param WordWeights: 词权重数组,包含全部的热词和对应的权重。每个热词的长度不大于10个汉字或30个英文字符,权重为[1,11]
|
103
|
-
# 注意:
|
102
|
+
# @param WordWeights: 词权重数组,包含全部的热词和对应的权重。每个热词的长度不大于10个汉字或30个英文字符,权重为[1,11]之间整数或者100,数组长度不大于1000
|
103
|
+
# 注意:
|
104
|
+
# - 热词权重设置为11时,当前热词将升级为超级热词,建议仅将重要且必须生效的热词设置到11,设置过多权重为11的热词将影响整体字准率。
|
105
|
+
# - 热词权重设置为100时,当前热词开启热词增强同音替换功能(仅支持8k_zh,16k_zh),举例:热词配置“蜜制|100”时,与“蜜制”同拼音(mizhi)的“秘制”的识别结果会被强制替换成“蜜制”。因此建议客户根据自己的实际情况开启该功能。建议仅将重要且必须生效的热词设置到100,设置过多权重为100的热词将影响整体字准率。
|
104
106
|
# @type WordWeights: Array
|
105
107
|
# @param WordWeightStr: 词权重文件(纯文本文件)的二进制base64编码,以行分隔,每行的格式为word|weight,即以英文符号|为分割,左边为词,右边为权重,如:你好|5。
|
106
108
|
# 当用户传此参数(参数长度大于0),即以此参数解析词权重,WordWeights会被忽略
|
@@ -254,8 +256,8 @@ module TencentCloud
|
|
254
256
|
|
255
257
|
attr_accessor :ModelName, :TextUrl, :ModelType, :TagInfos
|
256
258
|
extend Gem::Deprecate
|
257
|
-
deprecate :TagInfos, :none, 2024,
|
258
|
-
deprecate :TagInfos=, :none, 2024,
|
259
|
+
deprecate :TagInfos, :none, 2024, 4
|
260
|
+
deprecate :TagInfos=, :none, 2024, 4
|
259
261
|
|
260
262
|
def initialize(modelname=nil, texturl=nil, modeltype=nil, taginfos=nil)
|
261
263
|
@ModelName = modelname
|
@@ -452,6 +454,9 @@ module TencentCloud
|
|
452
454
|
# @type Extra: String
|
453
455
|
|
454
456
|
attr_accessor :EngineModelType, :ChannelNum, :ResTextFormat, :SourceType, :Data, :DataLen, :Url, :CallbackUrl, :SpeakerDiarization, :SpeakerNumber, :HotwordId, :ReinforceHotword, :CustomizationId, :EmotionRecognition, :EmotionalEnergy, :ConvertNumMode, :FilterDirty, :FilterPunc, :FilterModal, :SentenceMaxLength, :Extra
|
457
|
+
extend Gem::Deprecate
|
458
|
+
deprecate :ReinforceHotword, :none, 2024, 4
|
459
|
+
deprecate :ReinforceHotword=, :none, 2024, 4
|
455
460
|
|
456
461
|
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)
|
457
462
|
@EngineModelType = enginemodeltype
|
@@ -872,8 +877,8 @@ module TencentCloud
|
|
872
877
|
|
873
878
|
attr_accessor :TagInfos, :Limit, :Offset
|
874
879
|
extend Gem::Deprecate
|
875
|
-
deprecate :TagInfos, :none, 2024,
|
876
|
-
deprecate :TagInfos=, :none, 2024,
|
880
|
+
deprecate :TagInfos, :none, 2024, 4
|
881
|
+
deprecate :TagInfos=, :none, 2024, 4
|
877
882
|
|
878
883
|
def initialize(taginfos=nil, limit=nil, offset=nil)
|
879
884
|
@TagInfos = taginfos
|
@@ -1257,7 +1262,7 @@ module TencentCloud
|
|
1257
1262
|
# @param ReinforceHotword: 热词增强功能。1:开启后(仅支持8k_zh,16k_zh),将开启同音替换功能,同音字、词在热词中配置。举例:热词配置“蜜制”并开启增强功能后,与“蜜制”同拼音(mizhi)的“秘制”的识别结果会被强制替换成“蜜制”。因此建议客户根据自己的实际情况开启该功能。
|
1258
1263
|
# @type ReinforceHotword: Integer
|
1259
1264
|
# @param HotwordList: 临时热词表:该参数用于提升识别准确率。
|
1260
|
-
# 单个热词限制:"热词|权重",单个热词不超过30个字符(最多10个汉字),权重1-11,如:“腾讯云|5” 或 “ASR|11”;
|
1265
|
+
# 单个热词限制:"热词|权重",单个热词不超过30个字符(最多10个汉字),权重1-11或者100,如:“腾讯云|5” 或 “ASR|11”;
|
1261
1266
|
# 临时热词表限制:多个热词用英文逗号分割,最多支持128个热词,如:“腾讯云|10,语音识别|5,ASR|11”;
|
1262
1267
|
# 参数 hotword_list(热词表) 与 hotword_id(临时热词表) 区别:
|
1263
1268
|
# hotword_id:热词表。需要先在控制台或接口创建热词表,获得对应hotword_id传入参数来使用热词功能;
|
@@ -1265,18 +1270,21 @@ module TencentCloud
|
|
1265
1270
|
# 注意:
|
1266
1271
|
# • 如果同时传入了 hotword_id 和 hotword_list,会优先使用 hotword_list;
|
1267
1272
|
# • 热词权重设置为11时,当前热词将升级为超级热词,建议仅将重要且必须生效的热词设置到11,设置过多权重为11的热词将影响整体字准率。
|
1273
|
+
# • 热词权重设置为100时,当前热词开启热词增强同音替换功能(仅支持8k_zh,16k_zh),举例:热词配置“蜜制|100”时,与“蜜制”同拼音(mizhi)的“秘制”的识别结果会被强制替换成“蜜制”。因此建议客户根据自己的实际情况开启该功能。建议仅将重要且必须生效的热词设置到100,设置过多权重为100的热词将影响整体字准率。
|
1268
1274
|
# @type HotwordList: String
|
1269
1275
|
# @param InputSampleRate: 支持pcm格式的8k音频在与引擎采样率不匹配的情况下升采样到16k后识别,能有效提升识别准确率。仅支持:8000。如:传入 8000 ,则pcm音频采样率为8k,当引擎选用16k_zh, 那么该8k采样率的pcm音频可以在16k_zh引擎下正常识别。 注:此参数仅适用于pcm格式音频,不传入值将维持默认状态,即默认调用的引擎采样率等于pcm音频采样率。
|
1270
1276
|
# @type InputSampleRate: Integer
|
1271
1277
|
|
1272
1278
|
attr_accessor :EngSerViceType, :SourceType, :VoiceFormat, :ProjectId, :SubServiceType, :Url, :UsrAudioKey, :Data, :DataLen, :WordInfo, :FilterDirty, :FilterModal, :FilterPunc, :ConvertNumMode, :HotwordId, :CustomizationId, :ReinforceHotword, :HotwordList, :InputSampleRate
|
1273
1279
|
extend Gem::Deprecate
|
1274
|
-
deprecate :ProjectId, :none, 2024,
|
1275
|
-
deprecate :ProjectId=, :none, 2024,
|
1276
|
-
deprecate :SubServiceType, :none, 2024,
|
1277
|
-
deprecate :SubServiceType=, :none, 2024,
|
1278
|
-
deprecate :UsrAudioKey, :none, 2024,
|
1279
|
-
deprecate :UsrAudioKey=, :none, 2024,
|
1280
|
+
deprecate :ProjectId, :none, 2024, 4
|
1281
|
+
deprecate :ProjectId=, :none, 2024, 4
|
1282
|
+
deprecate :SubServiceType, :none, 2024, 4
|
1283
|
+
deprecate :SubServiceType=, :none, 2024, 4
|
1284
|
+
deprecate :UsrAudioKey, :none, 2024, 4
|
1285
|
+
deprecate :UsrAudioKey=, :none, 2024, 4
|
1286
|
+
deprecate :ReinforceHotword, :none, 2024, 4
|
1287
|
+
deprecate :ReinforceHotword=, :none, 2024, 4
|
1280
1288
|
|
1281
1289
|
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, inputsamplerate=nil)
|
1282
1290
|
@EngSerViceType = engservicetype
|
@@ -1526,7 +1534,7 @@ module TencentCloud
|
|
1526
1534
|
# @type VocabId: String
|
1527
1535
|
# @param Name: 热词表名称,长度在1-255之间
|
1528
1536
|
# @type Name: String
|
1529
|
-
# @param WordWeights: 词权重数组,包含全部的热词和对应的权重。每个热词的长度不大于10个汉字或30个英文字符,权重为[1,11]
|
1537
|
+
# @param WordWeights: 词权重数组,包含全部的热词和对应的权重。每个热词的长度不大于10个汉字或30个英文字符,权重为[1,11]之间整数或100,数组长度不大于1000
|
1530
1538
|
# @type WordWeights: Array
|
1531
1539
|
# @param WordWeightStr: 词权重文件(纯文本文件)的二进制base64编码,以行分隔,每行的格式为word|weight,即以英文符号|为分割,左边为词,右边为权重,如:你好|5。
|
1532
1540
|
# 当用户传此参数(参数长度大于0),即以此参数解析词权重,WordWeights会被忽略
|
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.801
|
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-04-
|
11
|
+
date: 2024-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|