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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20190614/models.rb +15 -5
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 255aaa7e6e13b4bbd7fb8d08894ef86cbeaee782
4
- data.tar.gz: c774fbdc5d96d4fbb9b10e310fdf2498e0430134
3
+ metadata.gz: 43b8d2c96f2a46fe0eeb81edc1f87b81e1f45faa
4
+ data.tar.gz: e8c095a7cb4cac2e223ab9b40096483679ac98f9
5
5
  SHA512:
6
- metadata.gz: 2c7956da960860684c259a32820c12da7b9c5323208e33bea0ec783589b5f8de9b18016960247500ae685f40083f20b8a574cbdbb1b4c29bfb26c20fd997c622
7
- data.tar.gz: c38eab17b5903adc63bbd0202e6ee02daa721ee69a6ec088a6c85aedc35f46eb23ff0f55990ec815641247ad7de820cd17b29a8b2eaffe5c408613aaf98b0364
6
+ metadata.gz: 54c996b820aad63f07f8f9dcabbef17cc5e21ea3a2e22c541ef6760d9601d0f0a98356a393522905b39b83155d4234402e72ee12922826df3df4aa470e36bf73
7
+ data.tar.gz: 1dc85f70aebb0aebcadd684e6f6236c4c253cf027b52ace266b40dfeb4e4dfd2b91f055fad8eb588bc319c4e2bae2074e768f7a19815609b8f721e5ab21910c6
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.504
1
+ 3.0.506
@@ -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.504
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-08 00:00:00.000000000 Z
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