tencentcloud-sdk-vm 3.0.1008 → 3.0.1009
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20201229/models.rb +240 -44
- data/lib/v20210922/models.rb +271 -44
- 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: f7499d44925122a5d9e04a9118dd02586ad697a0
|
4
|
+
data.tar.gz: 42e03dfc0138b2fdbe4e9f1d76df61e91f1f99ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3badefa961b3b4c3e54cffe8dea6820f08045158035fe261f8f41bf697e309037887f69fe93def44faf922b1150b59470d3c2d4240b5aa7312d3e7f6f4a65fe5
|
7
|
+
data.tar.gz: 31327f16b49b0058fdd2bb5872ea4e731817e87fd59bfa6181074eed26afadb87bdc3e69f1a8849aafca17340cd69c086aff014f42d60a438c2b5c5f919149fa
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1009
|
data/lib/v20201229/models.rb
CHANGED
@@ -17,52 +17,89 @@
|
|
17
17
|
module TencentCloud
|
18
18
|
module Vm
|
19
19
|
module V20201229
|
20
|
+
# 敏感歌曲
|
21
|
+
class AudioLabelResult < TencentCloud::Common::AbstractModel
|
22
|
+
# @param Scene: 场景
|
23
|
+
# @type Scene: String
|
24
|
+
# @param Suggestion: 建议
|
25
|
+
# @type Suggestion: Integer
|
26
|
+
# @param Label: 标签
|
27
|
+
# @type Label: String
|
28
|
+
# @param Name: 歌曲名等
|
29
|
+
# @type Name: String
|
30
|
+
# @param Score: 分数
|
31
|
+
# @type Score: Integer
|
32
|
+
# @param StartTime: 开始时间
|
33
|
+
# @type StartTime: Float
|
34
|
+
# @param EndTime: 结束时间
|
35
|
+
# @type EndTime: Float
|
36
|
+
|
37
|
+
attr_accessor :Scene, :Suggestion, :Label, :Name, :Score, :StartTime, :EndTime
|
38
|
+
|
39
|
+
def initialize(scene=nil, suggestion=nil, label=nil, name=nil, score=nil, starttime=nil, endtime=nil)
|
40
|
+
@Scene = scene
|
41
|
+
@Suggestion = suggestion
|
42
|
+
@Label = label
|
43
|
+
@Name = name
|
44
|
+
@Score = score
|
45
|
+
@StartTime = starttime
|
46
|
+
@EndTime = endtime
|
47
|
+
end
|
48
|
+
|
49
|
+
def deserialize(params)
|
50
|
+
@Scene = params['Scene']
|
51
|
+
@Suggestion = params['Suggestion']
|
52
|
+
@Label = params['Label']
|
53
|
+
@Name = params['Name']
|
54
|
+
@Score = params['Score']
|
55
|
+
@StartTime = params['StartTime']
|
56
|
+
@EndTime = params['EndTime']
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
20
60
|
# 音频审核输出参数
|
21
61
|
class AudioResult < TencentCloud::Common::AbstractModel
|
22
62
|
# @param HitFlag: 该字段用于返回审核内容是否命中审核模型;取值:0(**未命中**)、1(**命中**)。
|
23
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
24
63
|
# @type HitFlag: Integer
|
25
64
|
# @param Label: 该字段用于返回检测结果所对应的恶意标签。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告,**Custom**:自定义违规;以及其他令人反感、不安全或不适宜的内容类型。
|
26
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
27
65
|
# @type Label: String
|
28
66
|
# @param Suggestion: 该字段用于返回后续操作建议。当您获取到判定结果后,返回值表示具体的后续建议操作。<br>
|
29
67
|
# 返回值:**Block**:建议屏蔽,**Review** :建议人工复审,**Pass**:建议通过
|
30
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
31
68
|
# @type Suggestion: String
|
32
69
|
# @param Score: 该字段用于返回当前标签下的置信度,取值范围:0(**置信度最低**)-100(**置信度最高** ),越高代表文本越有可能属于当前返回的标签;如:*色情 99*,则表明该文本非常有可能属于色情内容。
|
33
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
34
70
|
# @type Score: Integer
|
35
71
|
# @param Text: 该字段用于返回音频文件经ASR识别后的文本信息。最长可识别**5小时**的音频文件,若超出时长限制,接口将会报错。
|
36
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
37
72
|
# @type Text: String
|
38
73
|
# @param Url: 该字段用于返回审核结果的访问链接(URL)。<br>备注:链接默认有效期为12小时。如果您需要更长时效的链接,请使用[COS预签名](https://cloud.tencent.com/document/product/1265/104001)功能更新签名时效。
|
39
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
40
74
|
# @type Url: String
|
41
75
|
# @param Duration: 该字段用于返回音频文件的时长,单位为毫秒。
|
42
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
43
76
|
# @type Duration: String
|
44
77
|
# @param Extra: 该字段用于返回输入参数中的额外附加信息(Extra),如未配置则默认返回值为空。<br>备注:不同客户或Biztype下返回信息不同,如需配置该字段请提交工单咨询或联系售后专员处理。
|
45
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
46
78
|
# @type Extra: String
|
47
79
|
# @param TextResults: 该字段用于返回音频文件经ASR识别后产生的文本的详细审核结果。具体结果内容请参见AudioResultDetailLanguageResult数据结构的细节描述。
|
48
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
49
80
|
# @type TextResults: Array
|
50
81
|
# @param MoanResults: 该字段用于返回音频文件呻吟检测的详细审核结果。具体结果内容请参见AudioResultDetailMoanResult数据结构的细节描述。
|
51
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
52
82
|
# @type MoanResults: Array
|
53
83
|
# @param LanguageResults: 该字段用于返回音频小语种检测的详细审核结果。具体结果内容请参见AudioResultDetailLanguageResult数据结构的细节描述。
|
54
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
55
84
|
# @type LanguageResults: Array
|
56
85
|
# @param SubLabel: 该字段用于返回当前标签(Lable)下的二级标签。
|
57
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
58
86
|
# @type SubLabel: String
|
59
87
|
# @param RecognitionResults: 识别类标签结果信息列表
|
60
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
61
88
|
# @type RecognitionResults: Array
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
89
|
+
# @param SpeakerResults: 该字段用于返回音频文件说话人检测的详细审核结果。
|
90
|
+
# @type SpeakerResults: Array
|
91
|
+
# @param LabelResults: 该字段用于返回音频文件歌曲检测的详细审核结果。
|
92
|
+
# @type LabelResults: Array
|
93
|
+
# @param TravelResults: 该字段用于返回音频文件出行检测的详细审核结果。
|
94
|
+
# @type TravelResults: Array
|
95
|
+
# @param SubTag: 三级标签
|
96
|
+
# @type SubTag: String
|
97
|
+
# @param SubTagCode: 三级标签码
|
98
|
+
# @type SubTagCode: String
|
99
|
+
|
100
|
+
attr_accessor :HitFlag, :Label, :Suggestion, :Score, :Text, :Url, :Duration, :Extra, :TextResults, :MoanResults, :LanguageResults, :SubLabel, :RecognitionResults, :SpeakerResults, :LabelResults, :TravelResults, :SubTag, :SubTagCode
|
101
|
+
|
102
|
+
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, speakerresults=nil, labelresults=nil, travelresults=nil, subtag=nil, subtagcode=nil)
|
66
103
|
@HitFlag = hitflag
|
67
104
|
@Label = label
|
68
105
|
@Suggestion = suggestion
|
@@ -76,6 +113,11 @@ module TencentCloud
|
|
76
113
|
@LanguageResults = languageresults
|
77
114
|
@SubLabel = sublabel
|
78
115
|
@RecognitionResults = recognitionresults
|
116
|
+
@SpeakerResults = speakerresults
|
117
|
+
@LabelResults = labelresults
|
118
|
+
@TravelResults = travelresults
|
119
|
+
@SubTag = subtag
|
120
|
+
@SubTagCode = subtagcode
|
79
121
|
end
|
80
122
|
|
81
123
|
def deserialize(params)
|
@@ -120,6 +162,32 @@ module TencentCloud
|
|
120
162
|
@RecognitionResults << recognitionresult_tmp
|
121
163
|
end
|
122
164
|
end
|
165
|
+
unless params['SpeakerResults'].nil?
|
166
|
+
@SpeakerResults = []
|
167
|
+
params['SpeakerResults'].each do |i|
|
168
|
+
speakerresult_tmp = SpeakerResult.new
|
169
|
+
speakerresult_tmp.deserialize(i)
|
170
|
+
@SpeakerResults << speakerresult_tmp
|
171
|
+
end
|
172
|
+
end
|
173
|
+
unless params['LabelResults'].nil?
|
174
|
+
@LabelResults = []
|
175
|
+
params['LabelResults'].each do |i|
|
176
|
+
audiolabelresult_tmp = AudioLabelResult.new
|
177
|
+
audiolabelresult_tmp.deserialize(i)
|
178
|
+
@LabelResults << audiolabelresult_tmp
|
179
|
+
end
|
180
|
+
end
|
181
|
+
unless params['TravelResults'].nil?
|
182
|
+
@TravelResults = []
|
183
|
+
params['TravelResults'].each do |i|
|
184
|
+
travelresult_tmp = TravelResult.new
|
185
|
+
travelresult_tmp.deserialize(i)
|
186
|
+
@TravelResults << travelresult_tmp
|
187
|
+
end
|
188
|
+
end
|
189
|
+
@SubTag = params['SubTag']
|
190
|
+
@SubTagCode = params['SubTagCode']
|
123
191
|
end
|
124
192
|
end
|
125
193
|
|
@@ -205,34 +273,28 @@ module TencentCloud
|
|
205
273
|
# 音频ASR文本审核结果
|
206
274
|
class AudioResultDetailTextResult < TencentCloud::Common::AbstractModel
|
207
275
|
# @param Label: 该字段用于返回检测结果所对应的恶意标签。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告,**Custom**:自定义违规;以及其他令人反感、不安全或不适宜的内容类型。
|
208
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
209
276
|
# @type Label: String
|
210
277
|
# @param Keywords: 该字段用于返回ASR识别出的文本内容命中的关键词信息,用于标注内容违规的具体原因(如:加我微信)。该参数可能会有多个返回值,代表命中的多个关键词;若返回值为空,Score不为空,则代表识别结果所对应的恶意标签(Label)来自于语义模型判断的返回值。
|
211
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
212
278
|
# @type Keywords: Array
|
213
279
|
# @param LibId: 该字段**仅当Label为Custom:自定义关键词时该参数有效**,用于返回自定义库的ID,以方便自定义库管理和配置。
|
214
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
215
280
|
# @type LibId: String
|
216
281
|
# @param LibName: 该字段**仅当Label为Custom:自定义关键词时该参数有效**,用于返回自定义库的名称,以方便自定义库管理和配置。
|
217
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
218
282
|
# @type LibName: String
|
219
283
|
# @param Score: 该字段用于返回当前标签下的置信度,取值范围:0(**置信度最低**)-100(**置信度最高**),越高代表文本越有可能属于当前返回的标签;如:*色情 99*,则表明该文本非常有可能属于色情内容。
|
220
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
221
284
|
# @type Score: Integer
|
222
285
|
# @param Suggestion: 该字段用于返回后续操作建议。当您获取到判定结果后,返回值表示具体的后续建议操作。<br>
|
223
286
|
# 返回值:**Block**:建议屏蔽,**Review** :建议人工复审,**Pass**:建议通过
|
224
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
225
287
|
# @type Suggestion: String
|
226
288
|
# @param LibType: 该字段用于返回自定义关键词对应的词库类型,取值为**1**(黑白库)和**2**(自定义关键词库),若未配置自定义关键词库,则默认值为1(黑白库匹配)。
|
227
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
228
289
|
# @type LibType: Integer
|
229
290
|
# @param SubLabel: 该字段用于返回当前标签(Lable)下的二级标签。
|
230
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
231
291
|
# @type SubLabel: String
|
292
|
+
# @param HitInfos: 该字段用于返回命中的关键词信息
|
293
|
+
# @type HitInfos: Array
|
232
294
|
|
233
|
-
attr_accessor :Label, :Keywords, :LibId, :LibName, :Score, :Suggestion, :LibType, :SubLabel
|
295
|
+
attr_accessor :Label, :Keywords, :LibId, :LibName, :Score, :Suggestion, :LibType, :SubLabel, :HitInfos
|
234
296
|
|
235
|
-
def initialize(label=nil, keywords=nil, libid=nil, libname=nil, score=nil, suggestion=nil, libtype=nil, sublabel=nil)
|
297
|
+
def initialize(label=nil, keywords=nil, libid=nil, libname=nil, score=nil, suggestion=nil, libtype=nil, sublabel=nil, hitinfos=nil)
|
236
298
|
@Label = label
|
237
299
|
@Keywords = keywords
|
238
300
|
@LibId = libid
|
@@ -241,6 +303,7 @@ module TencentCloud
|
|
241
303
|
@Suggestion = suggestion
|
242
304
|
@LibType = libtype
|
243
305
|
@SubLabel = sublabel
|
306
|
+
@HitInfos = hitinfos
|
244
307
|
end
|
245
308
|
|
246
309
|
def deserialize(params)
|
@@ -252,23 +315,32 @@ module TencentCloud
|
|
252
315
|
@Suggestion = params['Suggestion']
|
253
316
|
@LibType = params['LibType']
|
254
317
|
@SubLabel = params['SubLabel']
|
318
|
+
unless params['HitInfos'].nil?
|
319
|
+
@HitInfos = []
|
320
|
+
params['HitInfos'].each do |i|
|
321
|
+
hitinfo_tmp = HitInfo.new
|
322
|
+
hitinfo_tmp.deserialize(i)
|
323
|
+
@HitInfos << hitinfo_tmp
|
324
|
+
end
|
325
|
+
end
|
255
326
|
end
|
256
327
|
end
|
257
328
|
|
258
329
|
# 用于返回音频片段的审核结果
|
259
330
|
class AudioSegments < TencentCloud::Common::AbstractModel
|
260
331
|
# @param OffsetTime: 该字段用于返回音频片段的开始时间,单位为秒。对于点播文件,该参数代表对应音频相对于完整音轨的偏移时间,如0(代表不偏移),5(音轨开始后5秒),10(音轨开始后10秒);对于直播文件,该参数则返回对应音频片段开始时的Unix时间戳,如:1594650717。
|
261
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
262
332
|
# @type OffsetTime: String
|
263
333
|
# @param Result: 该字段用于返回音频片段的具体审核结果,详细内容敬请参考AudioResult数据结构的描述。
|
264
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
265
334
|
# @type Result: :class:`Tencentcloud::Vm.v20201229.models.AudioResult`
|
335
|
+
# @param CreatedAt: 创建时间
|
336
|
+
# @type CreatedAt: String
|
266
337
|
|
267
|
-
attr_accessor :OffsetTime, :Result
|
338
|
+
attr_accessor :OffsetTime, :Result, :CreatedAt
|
268
339
|
|
269
|
-
def initialize(offsettime=nil, result=nil)
|
340
|
+
def initialize(offsettime=nil, result=nil, createdat=nil)
|
270
341
|
@OffsetTime = offsettime
|
271
342
|
@Result = result
|
343
|
+
@CreatedAt = createdat
|
272
344
|
end
|
273
345
|
|
274
346
|
def deserialize(params)
|
@@ -277,6 +349,7 @@ module TencentCloud
|
|
277
349
|
@Result = AudioResult.new
|
278
350
|
@Result.deserialize(params['Result'])
|
279
351
|
end
|
352
|
+
@CreatedAt = params['CreatedAt']
|
280
353
|
end
|
281
354
|
end
|
282
355
|
|
@@ -663,6 +736,41 @@ module TencentCloud
|
|
663
736
|
end
|
664
737
|
end
|
665
738
|
|
739
|
+
# 文本关键词命中信息
|
740
|
+
class HitInfo < TencentCloud::Common::AbstractModel
|
741
|
+
# @param Type: 关键词
|
742
|
+
# @type Type: String
|
743
|
+
# @param Keyword: 命中关键词
|
744
|
+
# @type Keyword: String
|
745
|
+
# @param LibName: 命中的自定义词库名
|
746
|
+
# @type LibName: String
|
747
|
+
# @param Positions: 关键词位置信息
|
748
|
+
# @type Positions: Array
|
749
|
+
|
750
|
+
attr_accessor :Type, :Keyword, :LibName, :Positions
|
751
|
+
|
752
|
+
def initialize(type=nil, keyword=nil, libname=nil, positions=nil)
|
753
|
+
@Type = type
|
754
|
+
@Keyword = keyword
|
755
|
+
@LibName = libname
|
756
|
+
@Positions = positions
|
757
|
+
end
|
758
|
+
|
759
|
+
def deserialize(params)
|
760
|
+
@Type = params['Type']
|
761
|
+
@Keyword = params['Keyword']
|
762
|
+
@LibName = params['LibName']
|
763
|
+
unless params['Positions'].nil?
|
764
|
+
@Positions = []
|
765
|
+
params['Positions'].each do |i|
|
766
|
+
textposition_tmp = TextPosition.new
|
767
|
+
textposition_tmp.deserialize(i)
|
768
|
+
@Positions << textposition_tmp
|
769
|
+
end
|
770
|
+
end
|
771
|
+
end
|
772
|
+
end
|
773
|
+
|
666
774
|
# Result结果详情
|
667
775
|
class ImageResult < TencentCloud::Common::AbstractModel
|
668
776
|
# @param HitFlag: 该参数用于标识审核内容是否命中恶意标签,取值:0(**未命中**)和1(**命中**)。
|
@@ -803,43 +911,34 @@ module TencentCloud
|
|
803
911
|
# 具体场景下的图片识别结果
|
804
912
|
class ImageResultsResultDetail < TencentCloud::Common::AbstractModel
|
805
913
|
# @param Name: 该字段用于返回调用视频审核接口时传入的TaskInput参数中的任务名称,方便任务的识别与管理。
|
806
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
807
914
|
# @type Name: String
|
808
915
|
# @param Text: 该字段用于返回图片OCR文本识别的检测结果,识别**上限在5000字节内**。
|
809
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
810
916
|
# @type Text: String
|
811
917
|
# @param Location: 该字段用于返回图像审核子结果的详细位置信息,如坐标、大小、旋转角度等。详细返回内容敬请参考ImageResultsResultDetailLocation数据结构的描述。
|
812
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
813
918
|
# @type Location: :class:`Tencentcloud::Vm.v20201229.models.ImageResultsResultDetailLocation`
|
814
919
|
# @param Label: 该字段用于返回检测结果所对应的恶意标签。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告,**Custom**:自定义违规;以及其他令人反感、不安全或不适宜的内容类型。
|
815
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
816
920
|
# @type Label: String
|
817
921
|
# @param LibId: 该字段**仅当Label为Custom:自定义关键词时该参数有效**,用于返回自定义库的ID,以方便自定义库管理和配置。
|
818
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
819
922
|
# @type LibId: String
|
820
923
|
# @param LibName: 该字段**仅当Label为Custom:自定义关键词时该参数有效**,用于返回自定义库的名称,以方便自定义库管理和配置。
|
821
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
822
924
|
# @type LibName: String
|
823
925
|
# @param Keywords: 该字段用于返回检测文本命中的关键词信息,用于标注文本违规的具体原因(如:*加我微信*)。该参数可能会有多个返回值,代表命中的多个关键词;如返回值为空且Score不为空,则代表识别结果所对应的恶意标签(Label)是来自于语义模型判断的返回值。
|
824
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
825
926
|
# @type Keywords: Array
|
826
927
|
# @param Suggestion: 该字段用于返回后续操作建议。当您获取到判定结果后,返回值表示具体的后续建议操作。<br>
|
827
928
|
# 返回值:**Block**:建议屏蔽,**Review** :建议人工复审,**Pass**:建议通过
|
828
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
829
929
|
# @type Suggestion: String
|
830
930
|
# @param Score: 该字段用于返回当前标签下的置信度,取值范围:0(**置信度最低**)-100(**置信度最高** ),越高代表文本越有可能属于当前返回的标签;如:*色情 99*,则表明该文本非常有可能属于色情内容。
|
831
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
832
931
|
# @type Score: Integer
|
833
932
|
# @param SubLabelCode: 该字段用于返回恶意标签下对应的子标签的检测结果,如:*Porn-SexBehavior*等子标签。
|
834
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
835
933
|
# @type SubLabelCode: String
|
836
934
|
# @param SubLabel: 该字段用于返回恶意标签下对应的子标签的检测结果,如:*Porn-SexBehavior*等子标签。
|
837
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
838
935
|
# @type SubLabel: String
|
936
|
+
# @param OcrHitInfos: 该字段用于返回OCR命中的关键词信息。
|
937
|
+
# @type OcrHitInfos: Array
|
839
938
|
|
840
|
-
attr_accessor :Name, :Text, :Location, :Label, :LibId, :LibName, :Keywords, :Suggestion, :Score, :SubLabelCode, :SubLabel
|
939
|
+
attr_accessor :Name, :Text, :Location, :Label, :LibId, :LibName, :Keywords, :Suggestion, :Score, :SubLabelCode, :SubLabel, :OcrHitInfos
|
841
940
|
|
842
|
-
def initialize(name=nil, text=nil, location=nil, label=nil, libid=nil, libname=nil, keywords=nil, suggestion=nil, score=nil, sublabelcode=nil, sublabel=nil)
|
941
|
+
def initialize(name=nil, text=nil, location=nil, label=nil, libid=nil, libname=nil, keywords=nil, suggestion=nil, score=nil, sublabelcode=nil, sublabel=nil, ocrhitinfos=nil)
|
843
942
|
@Name = name
|
844
943
|
@Text = text
|
845
944
|
@Location = location
|
@@ -851,6 +950,7 @@ module TencentCloud
|
|
851
950
|
@Score = score
|
852
951
|
@SubLabelCode = sublabelcode
|
853
952
|
@SubLabel = sublabel
|
953
|
+
@OcrHitInfos = ocrhitinfos
|
854
954
|
end
|
855
955
|
|
856
956
|
def deserialize(params)
|
@@ -868,6 +968,14 @@ module TencentCloud
|
|
868
968
|
@Score = params['Score']
|
869
969
|
@SubLabelCode = params['SubLabelCode']
|
870
970
|
@SubLabel = params['SubLabel']
|
971
|
+
unless params['OcrHitInfos'].nil?
|
972
|
+
@OcrHitInfos = []
|
973
|
+
params['OcrHitInfos'].each do |i|
|
974
|
+
hitinfo_tmp = HitInfo.new
|
975
|
+
hitinfo_tmp.deserialize(i)
|
976
|
+
@OcrHitInfos << hitinfo_tmp
|
977
|
+
end
|
978
|
+
end
|
871
979
|
end
|
872
980
|
end
|
873
981
|
|
@@ -1072,6 +1180,34 @@ module TencentCloud
|
|
1072
1180
|
end
|
1073
1181
|
end
|
1074
1182
|
|
1183
|
+
# 说话人结果
|
1184
|
+
class SpeakerResult < TencentCloud::Common::AbstractModel
|
1185
|
+
# @param Label: 标签
|
1186
|
+
# @type Label: String
|
1187
|
+
# @param Score: 分数
|
1188
|
+
# @type Score: Integer
|
1189
|
+
# @param StartTime: 开始时间
|
1190
|
+
# @type StartTime: Float
|
1191
|
+
# @param EndTime: 结束时间
|
1192
|
+
# @type EndTime: Float
|
1193
|
+
|
1194
|
+
attr_accessor :Label, :Score, :StartTime, :EndTime
|
1195
|
+
|
1196
|
+
def initialize(label=nil, score=nil, starttime=nil, endtime=nil)
|
1197
|
+
@Label = label
|
1198
|
+
@Score = score
|
1199
|
+
@StartTime = starttime
|
1200
|
+
@EndTime = endtime
|
1201
|
+
end
|
1202
|
+
|
1203
|
+
def deserialize(params)
|
1204
|
+
@Label = params['Label']
|
1205
|
+
@Score = params['Score']
|
1206
|
+
@StartTime = params['StartTime']
|
1207
|
+
@EndTime = params['EndTime']
|
1208
|
+
end
|
1209
|
+
end
|
1210
|
+
|
1075
1211
|
# 数据存储信息
|
1076
1212
|
class StorageInfo < TencentCloud::Common::AbstractModel
|
1077
1213
|
# @param Type: 该字段表示文件访问类型,取值为**URL**(资源链接)和**COS** (腾讯云对象存储);该字段应当与传入的访问类型相对应,可用于强校验并方便系统快速识别访问地址;若不传入此参数,则默认值为URL,此时系统将自动判定访问地址类型。
|
@@ -1335,6 +1471,66 @@ module TencentCloud
|
|
1335
1471
|
end
|
1336
1472
|
end
|
1337
1473
|
|
1474
|
+
# 文本关键词命中位置信息
|
1475
|
+
class TextPosition < TencentCloud::Common::AbstractModel
|
1476
|
+
# @param Start: 关键词在文本中的起始位置
|
1477
|
+
# @type Start: Integer
|
1478
|
+
# @param End: 关键词在文本中的结束位置
|
1479
|
+
# @type End: Integer
|
1480
|
+
|
1481
|
+
attr_accessor :Start, :End
|
1482
|
+
|
1483
|
+
def initialize(start=nil, _end=nil)
|
1484
|
+
@Start = start
|
1485
|
+
@End = _end
|
1486
|
+
end
|
1487
|
+
|
1488
|
+
def deserialize(params)
|
1489
|
+
@Start = params['Start']
|
1490
|
+
@End = params['End']
|
1491
|
+
end
|
1492
|
+
end
|
1493
|
+
|
1494
|
+
# 出行结果
|
1495
|
+
class TravelResult < TencentCloud::Common::AbstractModel
|
1496
|
+
# @param Label: 一级标签
|
1497
|
+
# @type Label: String
|
1498
|
+
# @param SubLabel: 二级标签
|
1499
|
+
# @type SubLabel: String
|
1500
|
+
# @param RiskLevel: 风险等级
|
1501
|
+
# @type RiskLevel: String
|
1502
|
+
# @param AudioRole: 音频角色
|
1503
|
+
# @type AudioRole: String
|
1504
|
+
# @param AudioText: 音频语音文本
|
1505
|
+
# @type AudioText: String
|
1506
|
+
# @param StartTime: 开始时间
|
1507
|
+
# @type StartTime: Float
|
1508
|
+
# @param EndTime: 结束时间
|
1509
|
+
# @type EndTime: Float
|
1510
|
+
|
1511
|
+
attr_accessor :Label, :SubLabel, :RiskLevel, :AudioRole, :AudioText, :StartTime, :EndTime
|
1512
|
+
|
1513
|
+
def initialize(label=nil, sublabel=nil, risklevel=nil, audiorole=nil, audiotext=nil, starttime=nil, endtime=nil)
|
1514
|
+
@Label = label
|
1515
|
+
@SubLabel = sublabel
|
1516
|
+
@RiskLevel = risklevel
|
1517
|
+
@AudioRole = audiorole
|
1518
|
+
@AudioText = audiotext
|
1519
|
+
@StartTime = starttime
|
1520
|
+
@EndTime = endtime
|
1521
|
+
end
|
1522
|
+
|
1523
|
+
def deserialize(params)
|
1524
|
+
@Label = params['Label']
|
1525
|
+
@SubLabel = params['SubLabel']
|
1526
|
+
@RiskLevel = params['RiskLevel']
|
1527
|
+
@AudioRole = params['AudioRole']
|
1528
|
+
@AudioText = params['AudioText']
|
1529
|
+
@StartTime = params['StartTime']
|
1530
|
+
@EndTime = params['EndTime']
|
1531
|
+
end
|
1532
|
+
end
|
1533
|
+
|
1338
1534
|
end
|
1339
1535
|
end
|
1340
1536
|
end
|
data/lib/v20210922/models.rb
CHANGED
@@ -20,49 +20,46 @@ module TencentCloud
|
|
20
20
|
# 音频输出参数
|
21
21
|
class AudioResult < TencentCloud::Common::AbstractModel
|
22
22
|
# @param HitFlag: 该字段用于返回审核内容是否命中审核模型;取值:0(**未命中**)、1(**命中**)。
|
23
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
24
23
|
# @type HitFlag: Integer
|
25
24
|
# @param Label: 该字段用于返回检测结果所对应的恶意标签。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告,**Custom**:自定义违规;以及其他令人反感、不安全或不适宜的内容类型。
|
26
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
27
25
|
# @type Label: String
|
28
26
|
# @param Suggestion: 该字段用于返回后续操作建议。当您获取到判定结果后,返回值表示具体的后续建议操作。<br>
|
29
27
|
# 返回值:**Block**:建议屏蔽,**Review** :建议人工复审,**Pass**:建议通过
|
30
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
31
28
|
# @type Suggestion: String
|
32
29
|
# @param Score: 该字段用于返回当前标签下的置信度,取值范围:0(**置信度最低**)-100(**置信度最高** ),越高代表文本越有可能属于当前返回的标签;如:*色情 99*,则表明该文本非常有可能属于色情内容。
|
33
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
34
30
|
# @type Score: Integer
|
35
31
|
# @param Text: 该字段用于返回音频文件经ASR识别后的文本信息。最长可识别**5小时**的音频文件,若超出时长限制,接口将会报错。
|
36
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
37
32
|
# @type Text: String
|
38
33
|
# @param Url: 该字段用于返回审核结果的访问链接(URL)。<br>备注:链接默认有效期为12小时。如果您需要更长时效的链接,请使用[COS预签名](https://cloud.tencent.com/document/product/1265/104001)功能更新签名时效。
|
39
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
40
34
|
# @type Url: String
|
41
35
|
# @param Duration: 该字段用于返回音频文件的时长,单位为毫秒。
|
42
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
43
36
|
# @type Duration: String
|
44
37
|
# @param Extra: 该字段用于返回输入参数中的额外附加信息(Extra),如未配置则默认返回值为空。<br>备注:不同客户或Biztype下返回信息不同,如需配置该字段请提交工单咨询或联系售后专员处理。
|
45
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
46
38
|
# @type Extra: String
|
47
39
|
# @param TextResults: 该字段用于返回音频文件经ASR识别后产生的文本的详细审核结果。具体结果内容请参见AudioResultDetailLanguageResult数据结构的细节描述。
|
48
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
49
40
|
# @type TextResults: Array
|
50
41
|
# @param MoanResults: 该字段用于返回音频文件呻吟检测的详细审核结果。具体结果内容请参见AudioResultDetailMoanResult数据结构的细节描述。
|
51
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
52
42
|
# @type MoanResults: Array
|
53
43
|
# @param LanguageResults: 该字段用于返回音频小语种检测的详细审核结果。具体结果内容请参见AudioResultDetailLanguageResult数据结构的细节描述。
|
54
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
55
44
|
# @type LanguageResults: Array
|
56
45
|
# @param SubLabel: 该字段用于返回当前标签(Lable)下的二级标签。
|
57
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
58
46
|
# @type SubLabel: String
|
59
47
|
# @param RecognitionResults: 识别类标签结果信息列表
|
60
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
61
48
|
# @type RecognitionResults: Array
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
49
|
+
# @param SpeakerResults: 该字段用于返回音频文件说话人检测的详细审核结果
|
50
|
+
# @type SpeakerResults: Array
|
51
|
+
# @param TravelResults: 该字段用于返回音频文件出行检测的详细审核结果
|
52
|
+
# @type TravelResults: Array
|
53
|
+
# @param SubTag: 该字段用于返回音频文件的三级标签
|
54
|
+
# @type SubTag: String
|
55
|
+
# @param SubTagCode: 该字段用于返回音频文件的三级标签码
|
56
|
+
# @type SubTagCode: String
|
57
|
+
# @param LabelResults: 该字段用于返回音频文件歌曲识别的详细审核结果
|
58
|
+
# @type LabelResults: Array
|
59
|
+
|
60
|
+
attr_accessor :HitFlag, :Label, :Suggestion, :Score, :Text, :Url, :Duration, :Extra, :TextResults, :MoanResults, :LanguageResults, :SubLabel, :RecognitionResults, :SpeakerResults, :TravelResults, :SubTag, :SubTagCode, :LabelResults
|
61
|
+
|
62
|
+
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, speakerresults=nil, travelresults=nil, subtag=nil, subtagcode=nil, labelresults=nil)
|
66
63
|
@HitFlag = hitflag
|
67
64
|
@Label = label
|
68
65
|
@Suggestion = suggestion
|
@@ -76,6 +73,11 @@ module TencentCloud
|
|
76
73
|
@LanguageResults = languageresults
|
77
74
|
@SubLabel = sublabel
|
78
75
|
@RecognitionResults = recognitionresults
|
76
|
+
@SpeakerResults = speakerresults
|
77
|
+
@TravelResults = travelresults
|
78
|
+
@SubTag = subtag
|
79
|
+
@SubTagCode = subtagcode
|
80
|
+
@LabelResults = labelresults
|
79
81
|
end
|
80
82
|
|
81
83
|
def deserialize(params)
|
@@ -120,6 +122,32 @@ module TencentCloud
|
|
120
122
|
@RecognitionResults << recognitionresult_tmp
|
121
123
|
end
|
122
124
|
end
|
125
|
+
unless params['SpeakerResults'].nil?
|
126
|
+
@SpeakerResults = []
|
127
|
+
params['SpeakerResults'].each do |i|
|
128
|
+
speakerresult_tmp = SpeakerResult.new
|
129
|
+
speakerresult_tmp.deserialize(i)
|
130
|
+
@SpeakerResults << speakerresult_tmp
|
131
|
+
end
|
132
|
+
end
|
133
|
+
unless params['TravelResults'].nil?
|
134
|
+
@TravelResults = []
|
135
|
+
params['TravelResults'].each do |i|
|
136
|
+
travelresult_tmp = TravelResult.new
|
137
|
+
travelresult_tmp.deserialize(i)
|
138
|
+
@TravelResults << travelresult_tmp
|
139
|
+
end
|
140
|
+
end
|
141
|
+
@SubTag = params['SubTag']
|
142
|
+
@SubTagCode = params['SubTagCode']
|
143
|
+
unless params['LabelResults'].nil?
|
144
|
+
@LabelResults = []
|
145
|
+
params['LabelResults'].each do |i|
|
146
|
+
labelresult_tmp = LabelResult.new
|
147
|
+
labelresult_tmp.deserialize(i)
|
148
|
+
@LabelResults << labelresult_tmp
|
149
|
+
end
|
150
|
+
end
|
123
151
|
end
|
124
152
|
end
|
125
153
|
|
@@ -204,34 +232,28 @@ module TencentCloud
|
|
204
232
|
# 音频ASR文本审核结果
|
205
233
|
class AudioResultDetailTextResult < TencentCloud::Common::AbstractModel
|
206
234
|
# @param Label: 该字段用于返回检测结果所对应的恶意标签。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告,**Custom**:自定义违规;以及其他令人反感、不安全或不适宜的内容类型。
|
207
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
208
235
|
# @type Label: String
|
209
236
|
# @param Keywords: 该字段用于返回ASR识别出的文本内容命中的关键词信息,用于标注内容违规的具体原因(如:加我微信)。该参数可能会有多个返回值,代表命中的多个关键词;若返回值为空,Score不为空,则代表识别结果所对应的恶意标签(Label)来自于语义模型判断的返回值。
|
210
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
211
237
|
# @type Keywords: Array
|
212
238
|
# @param LibId: 该字段**仅当Label为Custom:自定义关键词时该参数有效**,用于返回自定义库的ID,以方便自定义库管理和配置。
|
213
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
214
239
|
# @type LibId: String
|
215
240
|
# @param LibName: 该字段**仅当Label为Custom:自定义关键词时该参数有效**,用于返回自定义库的名称,以方便自定义库管理和配置。
|
216
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
217
241
|
# @type LibName: String
|
218
242
|
# @param Score: 该字段用于返回当前标签下的置信度,取值范围:0(**置信度最低**)-100(**置信度最高**),越高代表文本越有可能属于当前返回的标签;如:*色情 99*,则表明该文本非常有可能属于色情内容。
|
219
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
220
243
|
# @type Score: Integer
|
221
244
|
# @param LibType: 该字段用于返回自定义关键词对应的词库类型,取值为**1**(黑白库)和**2**(自定义关键词库),若未配置自定义关键词库,则默认值为1(黑白库匹配)。
|
222
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
223
245
|
# @type LibType: Integer
|
224
246
|
# @param Suggestion: 该字段用于返回后续操作建议。当您获取到判定结果后,返回值表示具体的后续建议操作。<br>
|
225
247
|
# 返回值:**Block**:建议屏蔽,**Review** :建议人工复审,**Pass**:建议通过
|
226
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
227
248
|
# @type Suggestion: String
|
228
249
|
# @param SubLabel: 该字段用于返回当前标签(Lable)下的二级标签。
|
229
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
230
250
|
# @type SubLabel: String
|
251
|
+
# @param HitInfos: 该字段用于返回命中的关键词信息
|
252
|
+
# @type HitInfos: Array
|
231
253
|
|
232
|
-
attr_accessor :Label, :Keywords, :LibId, :LibName, :Score, :LibType, :Suggestion, :SubLabel
|
254
|
+
attr_accessor :Label, :Keywords, :LibId, :LibName, :Score, :LibType, :Suggestion, :SubLabel, :HitInfos
|
233
255
|
|
234
|
-
def initialize(label=nil, keywords=nil, libid=nil, libname=nil, score=nil, libtype=nil, suggestion=nil, sublabel=nil)
|
256
|
+
def initialize(label=nil, keywords=nil, libid=nil, libname=nil, score=nil, libtype=nil, suggestion=nil, sublabel=nil, hitinfos=nil)
|
235
257
|
@Label = label
|
236
258
|
@Keywords = keywords
|
237
259
|
@LibId = libid
|
@@ -240,6 +262,7 @@ module TencentCloud
|
|
240
262
|
@LibType = libtype
|
241
263
|
@Suggestion = suggestion
|
242
264
|
@SubLabel = sublabel
|
265
|
+
@HitInfos = hitinfos
|
243
266
|
end
|
244
267
|
|
245
268
|
def deserialize(params)
|
@@ -251,6 +274,14 @@ module TencentCloud
|
|
251
274
|
@LibType = params['LibType']
|
252
275
|
@Suggestion = params['Suggestion']
|
253
276
|
@SubLabel = params['SubLabel']
|
277
|
+
unless params['HitInfos'].nil?
|
278
|
+
@HitInfos = []
|
279
|
+
params['HitInfos'].each do |i|
|
280
|
+
ocrhitinfo_tmp = OcrHitInfo.new
|
281
|
+
ocrhitinfo_tmp.deserialize(i)
|
282
|
+
@HitInfos << ocrhitinfo_tmp
|
283
|
+
end
|
284
|
+
end
|
254
285
|
end
|
255
286
|
end
|
256
287
|
|
@@ -259,17 +290,18 @@ module TencentCloud
|
|
259
290
|
# @param OffsetTime: 截帧时间。
|
260
291
|
# 点播文件:该值为相对于视频偏移时间,单位为秒,例如:0,5,10
|
261
292
|
# 直播流:该值为时间戳,例如:1594650717
|
262
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
263
293
|
# @type OffsetTime: String
|
264
294
|
# @param Result: 结果集
|
265
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
266
295
|
# @type Result: :class:`Tencentcloud::Vm.v20210922.models.AudioResult`
|
296
|
+
# @param CreatedAt: 创建时间
|
297
|
+
# @type CreatedAt: String
|
267
298
|
|
268
|
-
attr_accessor :OffsetTime, :Result
|
299
|
+
attr_accessor :OffsetTime, :Result, :CreatedAt
|
269
300
|
|
270
|
-
def initialize(offsettime=nil, result=nil)
|
301
|
+
def initialize(offsettime=nil, result=nil, createdat=nil)
|
271
302
|
@OffsetTime = offsettime
|
272
303
|
@Result = result
|
304
|
+
@CreatedAt = createdat
|
273
305
|
end
|
274
306
|
|
275
307
|
def deserialize(params)
|
@@ -278,6 +310,7 @@ module TencentCloud
|
|
278
310
|
@Result = AudioResult.new
|
279
311
|
@Result.deserialize(params['Result'])
|
280
312
|
end
|
313
|
+
@CreatedAt = params['CreatedAt']
|
281
314
|
end
|
282
315
|
end
|
283
316
|
|
@@ -680,7 +713,6 @@ module TencentCloud
|
|
680
713
|
# @param HitFlag: 违规标志
|
681
714
|
# 0 未命中
|
682
715
|
# 1 命中
|
683
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
684
716
|
# @type HitFlag: Integer
|
685
717
|
# @param Label: 命中的标签
|
686
718
|
# Porn 色情
|
@@ -690,30 +722,28 @@ module TencentCloud
|
|
690
722
|
# Abuse 谩骂
|
691
723
|
# Terror 暴恐
|
692
724
|
# Ad 广告
|
693
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
694
725
|
# @type Label: String
|
695
726
|
# @param Suggestion: 审核建议,可选值:
|
696
727
|
# Pass 通过,
|
697
728
|
# Review 建议人审,
|
698
729
|
# Block 确认违规
|
699
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
700
730
|
# @type Suggestion: String
|
701
731
|
# @param Score: 得分
|
702
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
703
732
|
# @type Score: Integer
|
704
733
|
# @param Results: 画面截帧图片结果集
|
705
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
706
734
|
# @type Results: Array
|
707
735
|
# @param Url: 该字段用于返回审核结果的访问链接(URL)。<br>备注:链接默认有效期为12小时。如果您需要更长时效的链接,请使用[COS预签名](https://cloud.tencent.com/document/product/1265/104001)功能更新签名时效。
|
708
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
709
736
|
# @type Url: String
|
710
737
|
# @param Extra: 附加字段
|
711
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
712
738
|
# @type Extra: String
|
739
|
+
# @param SubLabel: 二级标签
|
740
|
+
# @type SubLabel: String
|
741
|
+
# @param RecognitionResults: 场景结果
|
742
|
+
# @type RecognitionResults: Array
|
713
743
|
|
714
|
-
attr_accessor :HitFlag, :Label, :Suggestion, :Score, :Results, :Url, :Extra
|
744
|
+
attr_accessor :HitFlag, :Label, :Suggestion, :Score, :Results, :Url, :Extra, :SubLabel, :RecognitionResults
|
715
745
|
|
716
|
-
def initialize(hitflag=nil, label=nil, suggestion=nil, score=nil, results=nil, url=nil, extra=nil)
|
746
|
+
def initialize(hitflag=nil, label=nil, suggestion=nil, score=nil, results=nil, url=nil, extra=nil, sublabel=nil, recognitionresults=nil)
|
717
747
|
@HitFlag = hitflag
|
718
748
|
@Label = label
|
719
749
|
@Suggestion = suggestion
|
@@ -721,6 +751,8 @@ module TencentCloud
|
|
721
751
|
@Results = results
|
722
752
|
@Url = url
|
723
753
|
@Extra = extra
|
754
|
+
@SubLabel = sublabel
|
755
|
+
@RecognitionResults = recognitionresults
|
724
756
|
end
|
725
757
|
|
726
758
|
def deserialize(params)
|
@@ -738,6 +770,15 @@ module TencentCloud
|
|
738
770
|
end
|
739
771
|
@Url = params['Url']
|
740
772
|
@Extra = params['Extra']
|
773
|
+
@SubLabel = params['SubLabel']
|
774
|
+
unless params['RecognitionResults'].nil?
|
775
|
+
@RecognitionResults = []
|
776
|
+
params['RecognitionResults'].each do |i|
|
777
|
+
recognitionresult_tmp = RecognitionResult.new
|
778
|
+
recognitionresult_tmp.deserialize(i)
|
779
|
+
@RecognitionResults << recognitionresult_tmp
|
780
|
+
end
|
781
|
+
end
|
741
782
|
end
|
742
783
|
end
|
743
784
|
|
@@ -849,10 +890,14 @@ module TencentCloud
|
|
849
890
|
# @param SubLabelCode: 子标签码
|
850
891
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
851
892
|
# @type SubLabelCode: String
|
893
|
+
# @param SubLabel: 子标签
|
894
|
+
# @type SubLabel: String
|
895
|
+
# @param OcrHitInfos: Ocr文本命中信息
|
896
|
+
# @type OcrHitInfos: Array
|
852
897
|
|
853
|
-
attr_accessor :Name, :Text, :Location, :Label, :LibId, :LibName, :Keywords, :Suggestion, :Score, :SubLabelCode
|
898
|
+
attr_accessor :Name, :Text, :Location, :Label, :LibId, :LibName, :Keywords, :Suggestion, :Score, :SubLabelCode, :SubLabel, :OcrHitInfos
|
854
899
|
|
855
|
-
def initialize(name=nil, text=nil, location=nil, label=nil, libid=nil, libname=nil, keywords=nil, suggestion=nil, score=nil, sublabelcode=nil)
|
900
|
+
def initialize(name=nil, text=nil, location=nil, label=nil, libid=nil, libname=nil, keywords=nil, suggestion=nil, score=nil, sublabelcode=nil, sublabel=nil, ocrhitinfos=nil)
|
856
901
|
@Name = name
|
857
902
|
@Text = text
|
858
903
|
@Location = location
|
@@ -863,6 +908,8 @@ module TencentCloud
|
|
863
908
|
@Suggestion = suggestion
|
864
909
|
@Score = score
|
865
910
|
@SubLabelCode = sublabelcode
|
911
|
+
@SubLabel = sublabel
|
912
|
+
@OcrHitInfos = ocrhitinfos
|
866
913
|
end
|
867
914
|
|
868
915
|
def deserialize(params)
|
@@ -879,6 +926,15 @@ module TencentCloud
|
|
879
926
|
@Suggestion = params['Suggestion']
|
880
927
|
@Score = params['Score']
|
881
928
|
@SubLabelCode = params['SubLabelCode']
|
929
|
+
@SubLabel = params['SubLabel']
|
930
|
+
unless params['OcrHitInfos'].nil?
|
931
|
+
@OcrHitInfos = []
|
932
|
+
params['OcrHitInfos'].each do |i|
|
933
|
+
ocrhitinfo_tmp = OcrHitInfo.new
|
934
|
+
ocrhitinfo_tmp.deserialize(i)
|
935
|
+
@OcrHitInfos << ocrhitinfo_tmp
|
936
|
+
end
|
937
|
+
end
|
882
938
|
end
|
883
939
|
end
|
884
940
|
|
@@ -927,12 +983,18 @@ module TencentCloud
|
|
927
983
|
# @type OffsetTime: String
|
928
984
|
# @param Result: 画面截帧结果详情
|
929
985
|
# @type Result: :class:`Tencentcloud::Vm.v20210922.models.ImageResult`
|
986
|
+
# @param CreatedAt: 时间
|
987
|
+
# @type CreatedAt: String
|
988
|
+
# @param OffsetusTime: 截帧毫秒时间
|
989
|
+
# @type OffsetusTime: String
|
930
990
|
|
931
|
-
attr_accessor :OffsetTime, :Result
|
991
|
+
attr_accessor :OffsetTime, :Result, :CreatedAt, :OffsetusTime
|
932
992
|
|
933
|
-
def initialize(offsettime=nil, result=nil)
|
993
|
+
def initialize(offsettime=nil, result=nil, createdat=nil, offsetustime=nil)
|
934
994
|
@OffsetTime = offsettime
|
935
995
|
@Result = result
|
996
|
+
@CreatedAt = createdat
|
997
|
+
@OffsetusTime = offsetustime
|
936
998
|
end
|
937
999
|
|
938
1000
|
def deserialize(params)
|
@@ -941,6 +1003,8 @@ module TencentCloud
|
|
941
1003
|
@Result = ImageResult.new
|
942
1004
|
@Result.deserialize(params['Result'])
|
943
1005
|
end
|
1006
|
+
@CreatedAt = params['CreatedAt']
|
1007
|
+
@OffsetusTime = params['OffsetusTime']
|
944
1008
|
end
|
945
1009
|
end
|
946
1010
|
|
@@ -971,6 +1035,46 @@ module TencentCloud
|
|
971
1035
|
end
|
972
1036
|
end
|
973
1037
|
|
1038
|
+
# 歌曲识别结果
|
1039
|
+
class LabelResult < TencentCloud::Common::AbstractModel
|
1040
|
+
# @param Scene: 场景
|
1041
|
+
# @type Scene: String
|
1042
|
+
# @param Suggestion: 建议
|
1043
|
+
# @type Suggestion: Integer
|
1044
|
+
# @param Label: 标签
|
1045
|
+
# @type Label: String
|
1046
|
+
# @param Name: 名字
|
1047
|
+
# @type Name: String
|
1048
|
+
# @param Score: 分数
|
1049
|
+
# @type Score: Integer
|
1050
|
+
# @param StartTime: 开始时间
|
1051
|
+
# @type StartTime: Float
|
1052
|
+
# @param EndTime: 结束时间
|
1053
|
+
# @type EndTime: Float
|
1054
|
+
|
1055
|
+
attr_accessor :Scene, :Suggestion, :Label, :Name, :Score, :StartTime, :EndTime
|
1056
|
+
|
1057
|
+
def initialize(scene=nil, suggestion=nil, label=nil, name=nil, score=nil, starttime=nil, endtime=nil)
|
1058
|
+
@Scene = scene
|
1059
|
+
@Suggestion = suggestion
|
1060
|
+
@Label = label
|
1061
|
+
@Name = name
|
1062
|
+
@Score = score
|
1063
|
+
@StartTime = starttime
|
1064
|
+
@EndTime = endtime
|
1065
|
+
end
|
1066
|
+
|
1067
|
+
def deserialize(params)
|
1068
|
+
@Scene = params['Scene']
|
1069
|
+
@Suggestion = params['Suggestion']
|
1070
|
+
@Label = params['Label']
|
1071
|
+
@Name = params['Name']
|
1072
|
+
@Score = params['Score']
|
1073
|
+
@StartTime = params['StartTime']
|
1074
|
+
@EndTime = params['EndTime']
|
1075
|
+
end
|
1076
|
+
end
|
1077
|
+
|
974
1078
|
# 媒体类型
|
975
1079
|
class MediaInfo < TencentCloud::Common::AbstractModel
|
976
1080
|
# @param Codecs: 编码格式
|
@@ -1004,6 +1108,41 @@ module TencentCloud
|
|
1004
1108
|
end
|
1005
1109
|
end
|
1006
1110
|
|
1111
|
+
# Ocr命中信息
|
1112
|
+
class OcrHitInfo < TencentCloud::Common::AbstractModel
|
1113
|
+
# @param Type: 关键词
|
1114
|
+
# @type Type: String
|
1115
|
+
# @param Keyword: 关键词内容
|
1116
|
+
# @type Keyword: String
|
1117
|
+
# @param LibName: 自定义库名
|
1118
|
+
# @type LibName: String
|
1119
|
+
# @param Positions: 位置信息
|
1120
|
+
# @type Positions: Array
|
1121
|
+
|
1122
|
+
attr_accessor :Type, :Keyword, :LibName, :Positions
|
1123
|
+
|
1124
|
+
def initialize(type=nil, keyword=nil, libname=nil, positions=nil)
|
1125
|
+
@Type = type
|
1126
|
+
@Keyword = keyword
|
1127
|
+
@LibName = libname
|
1128
|
+
@Positions = positions
|
1129
|
+
end
|
1130
|
+
|
1131
|
+
def deserialize(params)
|
1132
|
+
@Type = params['Type']
|
1133
|
+
@Keyword = params['Keyword']
|
1134
|
+
@LibName = params['LibName']
|
1135
|
+
unless params['Positions'].nil?
|
1136
|
+
@Positions = []
|
1137
|
+
params['Positions'].each do |i|
|
1138
|
+
textposition_tmp = TextPosition.new
|
1139
|
+
textposition_tmp.deserialize(i)
|
1140
|
+
@Positions << textposition_tmp
|
1141
|
+
end
|
1142
|
+
end
|
1143
|
+
end
|
1144
|
+
end
|
1145
|
+
|
1007
1146
|
# 审核切片asr文本信息
|
1008
1147
|
class RcbAsr < TencentCloud::Common::AbstractModel
|
1009
1148
|
# @param Text: 该字段用于返回音频文件识别出的对应文本内容,最大支持**前1000个字符**。
|
@@ -1092,6 +1231,34 @@ module TencentCloud
|
|
1092
1231
|
end
|
1093
1232
|
end
|
1094
1233
|
|
1234
|
+
# 说话人结果
|
1235
|
+
class SpeakerResult < TencentCloud::Common::AbstractModel
|
1236
|
+
# @param Label: 标签
|
1237
|
+
# @type Label: String
|
1238
|
+
# @param Score: 分数
|
1239
|
+
# @type Score: Integer
|
1240
|
+
# @param StartTime: 开始时间
|
1241
|
+
# @type StartTime: Float
|
1242
|
+
# @param EndTime: 结束时间
|
1243
|
+
# @type EndTime: Float
|
1244
|
+
|
1245
|
+
attr_accessor :Label, :Score, :StartTime, :EndTime
|
1246
|
+
|
1247
|
+
def initialize(label=nil, score=nil, starttime=nil, endtime=nil)
|
1248
|
+
@Label = label
|
1249
|
+
@Score = score
|
1250
|
+
@StartTime = starttime
|
1251
|
+
@EndTime = endtime
|
1252
|
+
end
|
1253
|
+
|
1254
|
+
def deserialize(params)
|
1255
|
+
@Label = params['Label']
|
1256
|
+
@Score = params['Score']
|
1257
|
+
@StartTime = params['StartTime']
|
1258
|
+
@EndTime = params['EndTime']
|
1259
|
+
end
|
1260
|
+
end
|
1261
|
+
|
1095
1262
|
# 数据存储信息
|
1096
1263
|
class StorageInfo < TencentCloud::Common::AbstractModel
|
1097
1264
|
# @param Type: 类型 可选:
|
@@ -1369,6 +1536,66 @@ module TencentCloud
|
|
1369
1536
|
end
|
1370
1537
|
end
|
1371
1538
|
|
1539
|
+
# 文本关键词命中的位置信息
|
1540
|
+
class TextPosition < TencentCloud::Common::AbstractModel
|
1541
|
+
# @param Start: 命中关键词在文本中的起始位置
|
1542
|
+
# @type Start: Integer
|
1543
|
+
# @param End: 命中关键词在文本中的结束位置
|
1544
|
+
# @type End: Integer
|
1545
|
+
|
1546
|
+
attr_accessor :Start, :End
|
1547
|
+
|
1548
|
+
def initialize(start=nil, _end=nil)
|
1549
|
+
@Start = start
|
1550
|
+
@End = _end
|
1551
|
+
end
|
1552
|
+
|
1553
|
+
def deserialize(params)
|
1554
|
+
@Start = params['Start']
|
1555
|
+
@End = params['End']
|
1556
|
+
end
|
1557
|
+
end
|
1558
|
+
|
1559
|
+
# 出行结果
|
1560
|
+
class TravelResult < TencentCloud::Common::AbstractModel
|
1561
|
+
# @param Label: 一级标签
|
1562
|
+
# @type Label: String
|
1563
|
+
# @param SubLabel: 二级标签
|
1564
|
+
# @type SubLabel: String
|
1565
|
+
# @param RiskLevel: 风险等级
|
1566
|
+
# @type RiskLevel: String
|
1567
|
+
# @param AudioRole: 出行音频角色
|
1568
|
+
# @type AudioRole: String
|
1569
|
+
# @param AudioText: 出行语音文本
|
1570
|
+
# @type AudioText: String
|
1571
|
+
# @param StartTime: 开始时间
|
1572
|
+
# @type StartTime: Float
|
1573
|
+
# @param EndTime: 结束时间
|
1574
|
+
# @type EndTime: Float
|
1575
|
+
|
1576
|
+
attr_accessor :Label, :SubLabel, :RiskLevel, :AudioRole, :AudioText, :StartTime, :EndTime
|
1577
|
+
|
1578
|
+
def initialize(label=nil, sublabel=nil, risklevel=nil, audiorole=nil, audiotext=nil, starttime=nil, endtime=nil)
|
1579
|
+
@Label = label
|
1580
|
+
@SubLabel = sublabel
|
1581
|
+
@RiskLevel = risklevel
|
1582
|
+
@AudioRole = audiorole
|
1583
|
+
@AudioText = audiotext
|
1584
|
+
@StartTime = starttime
|
1585
|
+
@EndTime = endtime
|
1586
|
+
end
|
1587
|
+
|
1588
|
+
def deserialize(params)
|
1589
|
+
@Label = params['Label']
|
1590
|
+
@SubLabel = params['SubLabel']
|
1591
|
+
@RiskLevel = params['RiskLevel']
|
1592
|
+
@AudioRole = params['AudioRole']
|
1593
|
+
@AudioText = params['AudioText']
|
1594
|
+
@StartTime = params['StartTime']
|
1595
|
+
@EndTime = params['EndTime']
|
1596
|
+
end
|
1597
|
+
end
|
1598
|
+
|
1372
1599
|
# 用户信息
|
1373
1600
|
class User < TencentCloud::Common::AbstractModel
|
1374
1601
|
# @param UserId: 业务用户ID 如填写,会根据账号历史恶意情况,判定消息有害结果,特别是有利于可疑恶意情况下的辅助判断。账号可以填写微信uin、QQ号、微信openid、QQopenid、字符串等。该字段和账号类别确定唯一账号。
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-vm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1009
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-02
|
11
|
+
date: 2025-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|