tencentcloud-sdk-asr 3.0.504 → 3.0.506
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 +15 -5
- 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: 43b8d2c96f2a46fe0eeb81edc1f87b81e1f45faa
|
4
|
+
data.tar.gz: e8c095a7cb4cac2e223ab9b40096483679ac98f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54c996b820aad63f07f8f9dcabbef17cc5e21ea3a2e22c541ef6760d9601d0f0a98356a393522905b39b83155d4234402e72ee12922826df3df4aa470e36bf73
|
7
|
+
data.tar.gz: 1dc85f70aebb0aebcadd684e6f6236c4c253cf027b52ace266b40dfeb4e4dfd2b91f055fad8eb588bc319c4e2bae2074e768f7a19815609b8f721e5ab21910c6
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.506
|
data/lib/v20190614/models.rb
CHANGED
@@ -337,12 +337,15 @@ module TencentCloud
|
|
337
337
|
# @type EmotionalEnergy: Integer
|
338
338
|
# @param ReinforceHotword: 热词增强功能。1:开启后(仅支持8k_zh,16k_zh),将开启同音替换功能,同音字、词在热词中配置。举例:热词配置“蜜制”并开启增强功能后,与“蜜制”同拼音(mizhi)的“秘制”的识别结果会被强制替换成“蜜制”。因此建议客户根据自己的实际情况开启该功能。
|
339
339
|
# @type ReinforceHotword: Integer
|
340
|
-
# @param SentenceMaxLength: 单标点最多字数,取值范围:[6,40]。默认为0
|
340
|
+
# @param SentenceMaxLength: 单标点最多字数,取值范围:[6,40]。默认为0,不开启该功能。该参数可用于字幕生成场景,控制单行字幕最大字数(设置ResTextFormat为3,解析返回的ResultDetail列表,通过结构中FinalSentence获取单个标点断句结果)。
|
341
341
|
# @type SentenceMaxLength: Integer
|
342
|
+
# @param EmotionRecognition: 情绪识别能力(目前支持16k_zh) 默认为0,不开启。 1:开启情绪识别但是不会在文本展示“情绪标签”, 2:开启情绪识别并且在文本展示“情绪标签”。(该功能需要设置ResTextFormat 大于0)
|
343
|
+
# 注意:本功能为增值服务,购买对应套餐包后,将参数设置为1或2时方可按对应方式生效,并消耗套餐包对应资源。参数设置为0时无需购买套餐包,也不会消耗对应资源。
|
344
|
+
# @type EmotionRecognition: Integer
|
342
345
|
|
343
|
-
attr_accessor :EngineModelType, :ChannelNum, :ResTextFormat, :SourceType, :SpeakerDiarization, :SpeakerNumber, :CallbackUrl, :Url, :Data, :DataLen, :ConvertNumMode, :FilterDirty, :HotwordId, :CustomizationId, :Extra, :FilterPunc, :FilterModal, :EmotionalEnergy, :ReinforceHotword, :SentenceMaxLength
|
346
|
+
attr_accessor :EngineModelType, :ChannelNum, :ResTextFormat, :SourceType, :SpeakerDiarization, :SpeakerNumber, :CallbackUrl, :Url, :Data, :DataLen, :ConvertNumMode, :FilterDirty, :HotwordId, :CustomizationId, :Extra, :FilterPunc, :FilterModal, :EmotionalEnergy, :ReinforceHotword, :SentenceMaxLength, :EmotionRecognition
|
344
347
|
|
345
|
-
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, sentencemaxlength=nil)
|
348
|
+
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, sentencemaxlength=nil, emotionrecognition=nil)
|
346
349
|
@EngineModelType = enginemodeltype
|
347
350
|
@ChannelNum = channelnum
|
348
351
|
@ResTextFormat = restextformat
|
@@ -363,6 +366,7 @@ module TencentCloud
|
|
363
366
|
@EmotionalEnergy = emotionalenergy
|
364
367
|
@ReinforceHotword = reinforcehotword
|
365
368
|
@SentenceMaxLength = sentencemaxlength
|
369
|
+
@EmotionRecognition = emotionrecognition
|
366
370
|
end
|
367
371
|
|
368
372
|
def deserialize(params)
|
@@ -386,6 +390,7 @@ module TencentCloud
|
|
386
390
|
@EmotionalEnergy = params['EmotionalEnergy']
|
387
391
|
@ReinforceHotword = params['ReinforceHotword']
|
388
392
|
@SentenceMaxLength = params['SentenceMaxLength']
|
393
|
+
@EmotionRecognition = params['EmotionRecognition']
|
389
394
|
end
|
390
395
|
end
|
391
396
|
|
@@ -986,10 +991,13 @@ module TencentCloud
|
|
986
991
|
# @param SilenceTime: 本句与上一句之间的静音时长
|
987
992
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
988
993
|
# @type SilenceTime: Integer
|
994
|
+
# @param EmotionType: 情绪类型(可能为空)
|
995
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
996
|
+
# @type EmotionType: Array
|
989
997
|
|
990
|
-
attr_accessor :FinalSentence, :SliceSentence, :StartMs, :EndMs, :WordsNum, :Words, :SpeechSpeed, :SpeakerId, :EmotionalEnergy, :SilenceTime
|
998
|
+
attr_accessor :FinalSentence, :SliceSentence, :StartMs, :EndMs, :WordsNum, :Words, :SpeechSpeed, :SpeakerId, :EmotionalEnergy, :SilenceTime, :EmotionType
|
991
999
|
|
992
|
-
def initialize(finalsentence=nil, slicesentence=nil, startms=nil, endms=nil, wordsnum=nil, words=nil, speechspeed=nil, speakerid=nil, emotionalenergy=nil, silencetime=nil)
|
1000
|
+
def initialize(finalsentence=nil, slicesentence=nil, startms=nil, endms=nil, wordsnum=nil, words=nil, speechspeed=nil, speakerid=nil, emotionalenergy=nil, silencetime=nil, emotiontype=nil)
|
993
1001
|
@FinalSentence = finalsentence
|
994
1002
|
@SliceSentence = slicesentence
|
995
1003
|
@StartMs = startms
|
@@ -1000,6 +1008,7 @@ module TencentCloud
|
|
1000
1008
|
@SpeakerId = speakerid
|
1001
1009
|
@EmotionalEnergy = emotionalenergy
|
1002
1010
|
@SilenceTime = silencetime
|
1011
|
+
@EmotionType = emotiontype
|
1003
1012
|
end
|
1004
1013
|
|
1005
1014
|
def deserialize(params)
|
@@ -1020,6 +1029,7 @@ module TencentCloud
|
|
1020
1029
|
@SpeakerId = params['SpeakerId']
|
1021
1030
|
@EmotionalEnergy = params['EmotionalEnergy']
|
1022
1031
|
@SilenceTime = params['SilenceTime']
|
1032
|
+
@EmotionType = params['EmotionType']
|
1023
1033
|
end
|
1024
1034
|
end
|
1025
1035
|
|
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.506
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-02-
|
11
|
+
date: 2023-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|