lib/v20201229/models.rb in tencentcloud-sdk-vm-1.0.328 vs lib/v20201229/models.rb in tencentcloud-sdk-vm-1.0.329
- old
+ new
@@ -54,14 +54,17 @@
# 注意:此字段可能返回 null,表示取不到有效值。
# @type LanguageResults: Array
# @param SubLabel: 该字段用于返回当前标签(Lable)下的二级标签。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SubLabel: String
+ # @param RecognitionResults: 识别类标签结果信息列表
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type RecognitionResults: Array
- attr_accessor :HitFlag, :Label, :Suggestion, :Score, :Text, :Url, :Duration, :Extra, :TextResults, :MoanResults, :LanguageResults, :SubLabel
+ attr_accessor :HitFlag, :Label, :Suggestion, :Score, :Text, :Url, :Duration, :Extra, :TextResults, :MoanResults, :LanguageResults, :SubLabel, :RecognitionResults
- def initialize(hitflag=nil, label=nil, suggestion=nil, score=nil, text=nil, url=nil, duration=nil, extra=nil, textresults=nil, moanresults=nil, languageresults=nil, sublabel=nil)
+ def initialize(hitflag=nil, label=nil, suggestion=nil, score=nil, text=nil, url=nil, duration=nil, extra=nil, textresults=nil, moanresults=nil, languageresults=nil, sublabel=nil, recognitionresults=nil)
@HitFlag = hitflag
@Label = label
@Suggestion = suggestion
@Score = score
@Text = text
@@ -70,10 +73,11 @@
@Extra = extra
@TextResults = textresults
@MoanResults = moanresults
@LanguageResults = languageresults
@SubLabel = sublabel
+ @RecognitionResults = recognitionresults
end
def deserialize(params)
@HitFlag = params['HitFlag']
@Label = params['Label']
@@ -106,10 +110,18 @@
audioresultdetaillanguageresult_tmp.deserialize(i)
@LanguageResults << audioresultdetaillanguageresult_tmp
end
end
@SubLabel = params['SubLabel']
+ unless params['RecognitionResults'].nil?
+ @RecognitionResults = []
+ params['RecognitionResults'].each do |i|
+ recognitionresult_tmp = RecognitionResult.new
+ recognitionresult_tmp.deserialize(i)
+ @RecognitionResults << recognitionresult_tmp
+ end
+ end
end
end
# 音频语言种类检测结果
class AudioResultDetailLanguageResult < TencentCloud::Common::AbstractModel
@@ -904,10 +916,39 @@
def deserialize(params)
@Duration = params['Duration']
end
end
+ # 识别类标签结果信息
+ class RecognitionResult < TencentCloud::Common::AbstractModel
+ # @param Label: 可能的取值有:Teenager 、Gender
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type Label: String
+ # @param Tags: 识别标签列表
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type Tags: Array
+
+ attr_accessor :Label, :Tags
+
+ def initialize(label=nil, tags=nil)
+ @Label = label
+ @Tags = tags
+ end
+
+ def deserialize(params)
+ @Label = params['Label']
+ unless params['Tags'].nil?
+ @Tags = []
+ params['Tags'].each do |i|
+ tag_tmp = Tag.new
+ tag_tmp.deserialize(i)
+ @Tags << tag_tmp
+ end
+ end
+ end
+ end
+
# 数据存储信息
class StorageInfo < TencentCloud::Common::AbstractModel
# @param Type: 该字段表示文件访问类型,取值为**URL**(资源链接)和**COS** (腾讯云对象存储);该字段应当与传入的访问类型相对应,可用于强校验并方便系统快速识别访问地址;若不传入此参数,则默认值为URL,此时系统将自动判定访问地址类型。
# @type Type: String
# @param Url: 该字段表示文件访问的链接地址,格式为标准URL格式。<br> 备注:当Type为URL时此字段不为空,该参数与BucketInfo参数须传入其中之一
@@ -928,9 +969,43 @@
@Url = params['Url']
unless params['BucketInfo'].nil?
@BucketInfo = BucketInfo.new
@BucketInfo.deserialize(params['BucketInfo'])
end
+ end
+ end
+
+ # 音频切片识别标签
+ class Tag < TencentCloud::Common::AbstractModel
+ # @param Name: 根据Label字段确定具体名称:
+ # 当Label 为Teenager 时 Name可能取值有:Teenager
+ # 当Label 为Gender 时 Name可能取值有:Male 、Female
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type Name: String
+ # @param Score: 置信分:0~100,数值越大表示置信度越高
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type Score: Integer
+ # @param StartTime: 识别开始偏移时间,单位:毫秒
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type StartTime: Float
+ # @param EndTime: 识别结束偏移时间,单位:毫秒
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type EndTime: Float
+
+ attr_accessor :Name, :Score, :StartTime, :EndTime
+
+ def initialize(name=nil, score=nil, starttime=nil, endtime=nil)
+ @Name = name
+ @Score = score
+ @StartTime = starttime
+ @EndTime = endtime
+ end
+
+ def deserialize(params)
+ @Name = params['Name']
+ @Score = params['Score']
+ @StartTime = params['StartTime']
+ @EndTime = params['EndTime']
end
end
# 任务数据
class TaskData < TencentCloud::Common::AbstractModel