tencentcloud-sdk-asr 3.0.459 → 3.0.461
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/client.rb +3 -1
- data/lib/v20190614/models.rb +34 -8
- 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: 5cb9f5e8a1da04c3116a80366d18c341c5ea1924
|
4
|
+
data.tar.gz: 03444130bb95fe9c7238af9e142aa44adc3fbc18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c94197bca90603687402b85d0e0067cc202cc845d1bf1459d6682d4a3d915e29d176b4d85279d280be2747dcdecae7e65d7d6b432ccabdd333e90cb3bfc40261
|
7
|
+
data.tar.gz: 7333a4bbca39699372fe88f7f053a1dcdb5397666374fc9e30bd58dff7bfe2facfb92d1c0255a3e0bed3304d6e00c529e2eeb20cfe9167b938f6af4f572ea3ff
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.461
|
data/lib/v20190614/client.rb
CHANGED
@@ -111,7 +111,9 @@ module TencentCloud
|
|
111
111
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
112
112
|
end
|
113
113
|
|
114
|
-
#
|
114
|
+
# 用户使用该接口可以创建自学习模型,以供识别调用。
|
115
|
+
|
116
|
+
# 注意:调用该接口后,模型会自动训练。新建模型成功后,调用ModifyCustomizationState接口修改为上线状态,即可在识别请求中使用对应模型ID。
|
115
117
|
|
116
118
|
# @param request: Request instance for CreateCustomization.
|
117
119
|
# @type request: :class:`Tencentcloud::asr::V20190614::CreateCustomizationRequest`
|
data/lib/v20190614/models.rb
CHANGED
@@ -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,12 +1014,14 @@ 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
|
|
1002
1022
|
# SentenceRecognition请求参数结构体
|
1003
1023
|
class SentenceRecognitionRequest < TencentCloud::Common::AbstractModel
|
1004
|
-
# @param ProjectId: 腾讯云项目 ID
|
1024
|
+
# @param ProjectId: 腾讯云项目 ID,废弃参数,填写0即可。
|
1005
1025
|
# @type ProjectId: Integer
|
1006
1026
|
# @param SubServiceType: 子服务类型。2: 一句话识别。
|
1007
1027
|
# @type SubServiceType: Integer
|
@@ -1015,12 +1035,14 @@ 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
|
1021
1043
|
# @param VoiceFormat: 识别音频的音频格式,支持wav、pcm、ogg-opus、speex、silk、mp3、m4a、aac。
|
1022
1044
|
# @type VoiceFormat: String
|
1023
|
-
# @param UsrAudioKey:
|
1045
|
+
# @param UsrAudioKey: 废弃参数,填写任意字符串即可。
|
1024
1046
|
# @type UsrAudioKey: String
|
1025
1047
|
# @param Url: 语音的URL地址,需要公网环境浏览器可下载。当 SourceType 值为 0时须填写该字段,为 1 时不填。音频时长不能超过60s,音频文件大小不能超过3MB。
|
1026
1048
|
# @type Url: String
|
@@ -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.
|
4
|
+
version: 3.0.461
|
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-
|
11
|
+
date: 2022-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|