tencentcloud-sdk-asr 3.0.458 → 3.0.460

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20190614/models.rb +32 -6
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 40a6dc6010097e3fa45bc7f33c548baf91188851
4
- data.tar.gz: 9bf63d922c53c6a7b5f4591005b65ddd3c69dd92
3
+ metadata.gz: 1e93d5817168d135258590a4eee6e4bb1b711afd
4
+ data.tar.gz: c4581b77bfd67a14d68f77f03103b92bb518759e
5
5
  SHA512:
6
- metadata.gz: b8413f31da592be4d77981c675f6d4d5ff0b2e4c237758a188cce0c28d0e03b1fd90e081b0bbfc594c4b9b23126cd1801f58e08b74fd998a0677569ee84bed65
7
- data.tar.gz: 74009750f1bcc296a5c9bb04fbf6db78bdd6abe844f50bfd280e005b86a746579d342c1d6070535bbe37ec289872105be8cecb2c1806c648f86e187493763018
6
+ metadata.gz: 4f737b57cf02904bf75a8a7701b4ca2ddd3ef55a6355735f26522d0b28cd8801d479cbeb305ac2ff60882c2b52748e10a302d59850d3b7720c0fa2a12cf1cae2
7
+ data.tar.gz: 902cdccddde1411398899dec1636e5f776594c2b131776603c5b0a2a6e21003729364a26547780740229dfddbaa70abd038fbbd0fdfd39919928160ed015010f
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.458
1
+ 3.0.460
@@ -296,6 +296,8 @@ module TencentCloud
296
296
  # • 16k_en_edu 英文教育;
297
297
  # • 16k_zh_medical 医疗;
298
298
  # • 16k_th 泰语;
299
+ # • 16k_zh-PY 中英粤;
300
+ # • 16k_zh_dialect:多方言,支持23种方言(上海话、四川话、武汉话、贵阳话、昆明话、西安话、郑州话、太原话、兰州话、银川话、西宁话、南京话、合肥话、南昌话、长沙话、苏州话、杭州话、济南话、天津话、石家庄话、黑龙江话、吉林话、辽宁话);
299
301
  # @type EngineModelType: String
300
302
  # @param ChannelNum: 识别声道数。1:单声道(非电话场景,直接选择单声道即可,忽略音频声道数);2:双声道(仅支持8k_zh电话场景,双声道应分别对应通话双方)。注意:双声道的电话音频已物理分离说话人,无需再开启说话人分离功能。
301
303
  # @type ChannelNum: Integer
@@ -331,10 +333,14 @@ module TencentCloud
331
333
  # @type FilterPunc: Integer
332
334
  # @param FilterModal: 是否过滤语气词(目前支持中文普通话引擎)。0:不过滤语气词;1:部分过滤;2:严格过滤 。默认值为 0。
333
335
  # @type FilterModal: Integer
336
+ # @param EmotionalEnergy: 情绪能量值,取值为音量分贝值/10。取值范围:[1,10]。值越高情绪越强烈。0:不开启,1:开启
337
+ # @type EmotionalEnergy: Integer
338
+ # @param ReinforceHotword: 热词增强功能。1:开启后(仅支持8k_zh,16k_zh),将开启同音替换功能,同音字、词在热词中配置。举例:热词配置“蜜制”并开启增强功能后,与“蜜制”同拼音(mizhi)的“秘制”、“蜜汁”的识别结果会被强制替换成“蜜制”。因此建议客户根据自己的实际情况开启该功能。
339
+ # @type ReinforceHotword: Integer
334
340
 
335
- attr_accessor :EngineModelType, :ChannelNum, :ResTextFormat, :SourceType, :SpeakerDiarization, :SpeakerNumber, :CallbackUrl, :Url, :Data, :DataLen, :ConvertNumMode, :FilterDirty, :HotwordId, :CustomizationId, :Extra, :FilterPunc, :FilterModal
341
+ attr_accessor :EngineModelType, :ChannelNum, :ResTextFormat, :SourceType, :SpeakerDiarization, :SpeakerNumber, :CallbackUrl, :Url, :Data, :DataLen, :ConvertNumMode, :FilterDirty, :HotwordId, :CustomizationId, :Extra, :FilterPunc, :FilterModal, :EmotionalEnergy, :ReinforceHotword
336
342
 
337
- def initialize(enginemodeltype=nil, channelnum=nil, restextformat=nil, sourcetype=nil, speakerdiarization=nil, speakernumber=nil, callbackurl=nil, url=nil, data=nil, datalen=nil, convertnummode=nil, filterdirty=nil, hotwordid=nil, customizationid=nil, extra=nil, filterpunc=nil, filtermodal=nil)
343
+ def initialize(enginemodeltype=nil, channelnum=nil, restextformat=nil, sourcetype=nil, speakerdiarization=nil, speakernumber=nil, callbackurl=nil, url=nil, data=nil, datalen=nil, convertnummode=nil, filterdirty=nil, hotwordid=nil, customizationid=nil, extra=nil, filterpunc=nil, filtermodal=nil, emotionalenergy=nil, reinforcehotword=nil)
338
344
  @EngineModelType = enginemodeltype
339
345
  @ChannelNum = channelnum
340
346
  @ResTextFormat = restextformat
@@ -352,6 +358,8 @@ module TencentCloud
352
358
  @Extra = extra
353
359
  @FilterPunc = filterpunc
354
360
  @FilterModal = filtermodal
361
+ @EmotionalEnergy = emotionalenergy
362
+ @ReinforceHotword = reinforcehotword
355
363
  end
356
364
 
357
365
  def deserialize(params)
@@ -372,6 +380,8 @@ module TencentCloud
372
380
  @Extra = params['Extra']
373
381
  @FilterPunc = params['FilterPunc']
374
382
  @FilterModal = params['FilterModal']
383
+ @EmotionalEnergy = params['EmotionalEnergy']
384
+ @ReinforceHotword = params['ReinforceHotword']
375
385
  end
376
386
  end
377
387
 
@@ -966,10 +976,16 @@ module TencentCloud
966
976
  # @param SpeakerId: 声道或说话人 Id(请求中如果设置了 speaker_diarization或者ChannelNum为双声道,可区分说话人或声道)
967
977
  # 注意:此字段可能返回 null,表示取不到有效值。
968
978
  # @type SpeakerId: Integer
979
+ # @param EmotionalEnergy: 情绪能量值,取值为音量分贝值/10。取值范围:[1,10]。值越高情绪越强烈。
980
+ # 注意:此字段可能返回 null,表示取不到有效值。
981
+ # @type EmotionalEnergy: Float
982
+ # @param SilenceTime: 本句与上一句之间的静音时长
983
+ # 注意:此字段可能返回 null,表示取不到有效值。
984
+ # @type SilenceTime: Integer
969
985
 
970
- attr_accessor :FinalSentence, :SliceSentence, :StartMs, :EndMs, :WordsNum, :Words, :SpeechSpeed, :SpeakerId
986
+ attr_accessor :FinalSentence, :SliceSentence, :StartMs, :EndMs, :WordsNum, :Words, :SpeechSpeed, :SpeakerId, :EmotionalEnergy, :SilenceTime
971
987
 
972
- def initialize(finalsentence=nil, slicesentence=nil, startms=nil, endms=nil, wordsnum=nil, words=nil, speechspeed=nil, speakerid=nil)
988
+ def initialize(finalsentence=nil, slicesentence=nil, startms=nil, endms=nil, wordsnum=nil, words=nil, speechspeed=nil, speakerid=nil, emotionalenergy=nil, silencetime=nil)
973
989
  @FinalSentence = finalsentence
974
990
  @SliceSentence = slicesentence
975
991
  @StartMs = startms
@@ -978,6 +994,8 @@ module TencentCloud
978
994
  @Words = words
979
995
  @SpeechSpeed = speechspeed
980
996
  @SpeakerId = speakerid
997
+ @EmotionalEnergy = emotionalenergy
998
+ @SilenceTime = silencetime
981
999
  end
982
1000
 
983
1001
  def deserialize(params)
@@ -996,6 +1014,8 @@ module TencentCloud
996
1014
  end
997
1015
  @SpeechSpeed = params['SpeechSpeed']
998
1016
  @SpeakerId = params['SpeakerId']
1017
+ @EmotionalEnergy = params['EmotionalEnergy']
1018
+ @SilenceTime = params['SilenceTime']
999
1019
  end
1000
1020
  end
1001
1021
 
@@ -1015,6 +1035,8 @@ module TencentCloud
1015
1035
  # • 16k_ca:16k 粤语;
1016
1036
  # • 16k_ja:16k 日语;
1017
1037
  # • 16k_zh_medical:16k 医疗;
1038
+ # • 16k_zh-PY 中英粤;
1039
+ # • 16k_zh_dialect:多方言,支持23种方言(上海话、四川话、武汉话、贵阳话、昆明话、西安话、郑州话、太原话、兰州话、银川话、西宁话、南京话、合肥话、南昌话、长沙话、苏州话、杭州话、济南话、天津话、石家庄话、黑龙江话、吉林话、辽宁话);
1018
1040
  # @type EngSerViceType: String
1019
1041
  # @param SourceType: 语音数据来源。0:语音 URL;1:语音数据(post body)。
1020
1042
  # @type SourceType: Integer
@@ -1042,10 +1064,12 @@ module TencentCloud
1042
1064
  # @type HotwordId: String
1043
1065
  # @param CustomizationId: 自学习模型 id。如设置了该参数,将生效对应的自学习模型。
1044
1066
  # @type CustomizationId: String
1067
+ # @param ReinforceHotword: 热词增强功能。1:开启后(仅支持8k_zh,16k_zh),将开启同音替换功能,同音字、词在热词中配置。举例:热词配置“蜜制”并开启增强功能后,与“蜜制”同拼音(mizhi)的“秘制”、“蜜汁”的识别结果会被强制替换成“蜜制”。因此建议客户根据自己的实际情况开启该功能。
1068
+ # @type ReinforceHotword: Integer
1045
1069
 
1046
- attr_accessor :ProjectId, :SubServiceType, :EngSerViceType, :SourceType, :VoiceFormat, :UsrAudioKey, :Url, :Data, :DataLen, :WordInfo, :FilterDirty, :FilterModal, :FilterPunc, :ConvertNumMode, :HotwordId, :CustomizationId
1070
+ attr_accessor :ProjectId, :SubServiceType, :EngSerViceType, :SourceType, :VoiceFormat, :UsrAudioKey, :Url, :Data, :DataLen, :WordInfo, :FilterDirty, :FilterModal, :FilterPunc, :ConvertNumMode, :HotwordId, :CustomizationId, :ReinforceHotword
1047
1071
 
1048
- def initialize(projectid=nil, subservicetype=nil, engservicetype=nil, sourcetype=nil, voiceformat=nil, usraudiokey=nil, url=nil, data=nil, datalen=nil, wordinfo=nil, filterdirty=nil, filtermodal=nil, filterpunc=nil, convertnummode=nil, hotwordid=nil, customizationid=nil)
1072
+ def initialize(projectid=nil, subservicetype=nil, engservicetype=nil, sourcetype=nil, voiceformat=nil, usraudiokey=nil, url=nil, data=nil, datalen=nil, wordinfo=nil, filterdirty=nil, filtermodal=nil, filterpunc=nil, convertnummode=nil, hotwordid=nil, customizationid=nil, reinforcehotword=nil)
1049
1073
  @ProjectId = projectid
1050
1074
  @SubServiceType = subservicetype
1051
1075
  @EngSerViceType = engservicetype
@@ -1062,6 +1086,7 @@ module TencentCloud
1062
1086
  @ConvertNumMode = convertnummode
1063
1087
  @HotwordId = hotwordid
1064
1088
  @CustomizationId = customizationid
1089
+ @ReinforceHotword = reinforcehotword
1065
1090
  end
1066
1091
 
1067
1092
  def deserialize(params)
@@ -1081,6 +1106,7 @@ module TencentCloud
1081
1106
  @ConvertNumMode = params['ConvertNumMode']
1082
1107
  @HotwordId = params['HotwordId']
1083
1108
  @CustomizationId = params['CustomizationId']
1109
+ @ReinforceHotword = params['ReinforceHotword']
1084
1110
  end
1085
1111
  end
1086
1112
 
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.458
4
+ version: 3.0.460
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-24 00:00:00.000000000 Z
11
+ date: 2022-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common