tencentcloud-sdk-vm 3.0.405 → 3.0.406
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/v20210922/models.rb +109 -32
- 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: d9405e9056e86dbcb3ebc4cfd8e20026cbceb5fa
|
4
|
+
data.tar.gz: 6603a5111ccb17b1a0570919b77361438923de98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1aa53e7d4a918ceca21cdf02bba0f141938aeef6e7aaf1ec7e01e6b3e86098e096cfc3c93c6ad3fb44fee7241a0fe7bd50ac3ded14fbc94892170239581fb3ef
|
7
|
+
data.tar.gz: ab07b9f4ec872f9251c21cf36d065ce8bce6219ff3e2e659af2bbe3cef2d73505c48a9fa4ab0ea5dfaae151ea7827d1f05cda3e63f1a4cc3a0b641650818310c
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.406
|
data/lib/v20210922/models.rb
CHANGED
@@ -19,55 +19,50 @@ module TencentCloud
|
|
19
19
|
module V20210922
|
20
20
|
# 音频输出参数
|
21
21
|
class AudioResult < TencentCloud::Common::AbstractModel
|
22
|
-
# @param HitFlag:
|
23
|
-
# 0 未命中
|
24
|
-
# 1 命中
|
22
|
+
# @param HitFlag: 该字段用于返回审核内容是否命中审核模型;取值:0(**未命中**)、1(**命中**)。
|
25
23
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
26
24
|
# @type HitFlag: Integer
|
27
|
-
# @param Label:
|
28
|
-
# Porn 色情
|
29
|
-
# Polity 政治
|
30
|
-
# Illegal 违法
|
31
|
-
# Abuse 谩骂
|
32
|
-
# Terror 暴恐
|
33
|
-
# Ad 广告
|
34
|
-
# Moan 呻吟
|
25
|
+
# @param Label: 该字段用于返回检测结果所对应的恶意标签。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告,**Custom**:自定义违规;以及其他令人反感、不安全或不适宜的内容类型。
|
35
26
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
36
27
|
# @type Label: String
|
37
|
-
# @param Suggestion:
|
38
|
-
# Pass
|
39
|
-
# Review 建议人审,
|
40
|
-
# Block 确认违规
|
28
|
+
# @param Suggestion: 该字段用于返回后续操作建议。当您获取到判定结果后,返回值表示具体的后续建议操作。<br>
|
29
|
+
# 返回值:**Block**:建议屏蔽,**Review** :建议人工复审,**Pass**:建议通过
|
41
30
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
42
31
|
# @type Suggestion: String
|
43
|
-
# @param Score:
|
32
|
+
# @param Score: 该字段用于返回当前标签下的置信度,取值范围:0(**置信度最低**)-100(**置信度最高** ),越高代表文本越有可能属于当前返回的标签;如:*色情 99*,则表明该文本非常有可能属于色情内容。
|
44
33
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
45
34
|
# @type Score: Integer
|
46
|
-
# @param Text:
|
35
|
+
# @param Text: 该字段用于返回音频文件经ASR识别后的文本信息。最长可识别**5小时**的音频文件,若超出时长限制,接口将会报错。
|
47
36
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
48
37
|
# @type Text: String
|
49
|
-
# @param Url:
|
38
|
+
# @param Url: 该字段用于返回音频片段存储的链接地址,该地址有效期为1天。
|
50
39
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
51
40
|
# @type Url: String
|
52
|
-
# @param Duration:
|
41
|
+
# @param Duration: 该字段用于返回音频文件的时长,单位为毫秒。
|
53
42
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
54
43
|
# @type Duration: String
|
55
|
-
# @param Extra:
|
44
|
+
# @param Extra: 该字段用于返回输入参数中的额外附加信息(Extra),如未配置则默认返回值为空。<br>备注:不同客户或Biztype下返回信息不同,如需配置该字段请提交工单咨询或联系售后专员处理。
|
56
45
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
57
46
|
# @type Extra: String
|
58
|
-
# @param TextResults:
|
47
|
+
# @param TextResults: 该字段用于返回音频文件经ASR识别后产生的文本的详细审核结果。具体结果内容请参见AudioResultDetailLanguageResult数据结构的细节描述。
|
59
48
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
60
49
|
# @type TextResults: Array
|
61
|
-
# @param MoanResults:
|
50
|
+
# @param MoanResults: 该字段用于返回音频文件呻吟检测的详细审核结果。具体结果内容请参见AudioResultDetailMoanResult数据结构的细节描述。
|
62
51
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
63
52
|
# @type MoanResults: Array
|
64
|
-
# @param LanguageResults:
|
53
|
+
# @param LanguageResults: 该字段用于返回音频小语种检测的详细审核结果。具体结果内容请参见AudioResultDetailLanguageResult数据结构的细节描述。
|
65
54
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
66
55
|
# @type LanguageResults: Array
|
56
|
+
# @param SubLabel: 该字段用于返回当前标签(Lable)下的二级标签。
|
57
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
58
|
+
# @type SubLabel: String
|
59
|
+
# @param RecognitionResults: 识别类标签结果信息列表
|
60
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
61
|
+
# @type RecognitionResults: Array
|
67
62
|
|
68
|
-
attr_accessor :HitFlag, :Label, :Suggestion, :Score, :Text, :Url, :Duration, :Extra, :TextResults, :MoanResults, :LanguageResults
|
63
|
+
attr_accessor :HitFlag, :Label, :Suggestion, :Score, :Text, :Url, :Duration, :Extra, :TextResults, :MoanResults, :LanguageResults, :SubLabel, :RecognitionResults
|
69
64
|
|
70
|
-
def initialize(hitflag=nil, label=nil, suggestion=nil, score=nil, text=nil, url=nil, duration=nil, extra=nil, textresults=nil, moanresults=nil, languageresults=nil)
|
65
|
+
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)
|
71
66
|
@HitFlag = hitflag
|
72
67
|
@Label = label
|
73
68
|
@Suggestion = suggestion
|
@@ -79,6 +74,8 @@ module TencentCloud
|
|
79
74
|
@TextResults = textresults
|
80
75
|
@MoanResults = moanresults
|
81
76
|
@LanguageResults = languageresults
|
77
|
+
@SubLabel = sublabel
|
78
|
+
@RecognitionResults = recognitionresults
|
82
79
|
end
|
83
80
|
|
84
81
|
def deserialize(params)
|
@@ -114,6 +111,15 @@ module TencentCloud
|
|
114
111
|
@LanguageResults << audioresultdetaillanguageresult_tmp
|
115
112
|
end
|
116
113
|
end
|
114
|
+
@SubLabel = params['SubLabel']
|
115
|
+
unless params['RecognitionResults'].nil?
|
116
|
+
@RecognitionResults = []
|
117
|
+
params['RecognitionResults'].each do |i|
|
118
|
+
recognitionresult_tmp = RecognitionResult.new
|
119
|
+
recognitionresult_tmp.deserialize(i)
|
120
|
+
@RecognitionResults << recognitionresult_tmp
|
121
|
+
end
|
122
|
+
end
|
117
123
|
end
|
118
124
|
end
|
119
125
|
|
@@ -156,26 +162,32 @@ module TencentCloud
|
|
156
162
|
|
157
163
|
# 音频呻吟审核结果
|
158
164
|
class AudioResultDetailMoanResult < TencentCloud::Common::AbstractModel
|
159
|
-
# @param Label:
|
165
|
+
# @param Label: 该字段用于返回检测结果需要检测的内容类型,此处固定为**Moan**(呻吟)以调用呻吟检测功能。
|
160
166
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
161
167
|
# @type Label: String
|
162
|
-
# @param Score:
|
168
|
+
# @param Score: 该字段用于返回呻吟检测的置信度,取值范围:0(**置信度最低**)-100(**置信度最高**),越高代表音频越有可能属于呻吟内容。
|
163
169
|
# @type Score: Integer
|
164
|
-
# @param StartTime:
|
170
|
+
# @param StartTime: 该字段用于返回对应呻吟标签的片段在音频文件内的开始时间,单位为毫秒。
|
165
171
|
# @type StartTime: Float
|
166
|
-
# @param EndTime:
|
172
|
+
# @param EndTime: 该字段用于返回对应呻吟标签的片段在音频文件内的结束时间,单位为毫秒。
|
167
173
|
# @type EndTime: Float
|
168
|
-
# @param SubLabelCode:
|
174
|
+
# @param SubLabelCode: *内测中,敬请期待*
|
169
175
|
# @type SubLabelCode: String
|
176
|
+
# @param SubLabel: 该字段用于返回当前标签(Lable)下的二级标签。
|
177
|
+
# @type SubLabel: String
|
178
|
+
# @param Suggestion: 该字段用于返回基于恶意标签的后续操作建议。当您获取到判定结果后,返回值表示系统推荐的后续操作;建议您按照业务所需,对不同违规类型与建议值进行处理。<br>返回值:**Block**:建议屏蔽,**Review** :建议人工复审,**Pass**:建议通过
|
179
|
+
# @type Suggestion: String
|
170
180
|
|
171
|
-
attr_accessor :Label, :Score, :StartTime, :EndTime, :SubLabelCode
|
181
|
+
attr_accessor :Label, :Score, :StartTime, :EndTime, :SubLabelCode, :SubLabel, :Suggestion
|
172
182
|
|
173
|
-
def initialize(label=nil, score=nil, starttime=nil, endtime=nil, sublabelcode=nil)
|
183
|
+
def initialize(label=nil, score=nil, starttime=nil, endtime=nil, sublabelcode=nil, sublabel=nil, suggestion=nil)
|
174
184
|
@Label = label
|
175
185
|
@Score = score
|
176
186
|
@StartTime = starttime
|
177
187
|
@EndTime = endtime
|
178
188
|
@SubLabelCode = sublabelcode
|
189
|
+
@SubLabel = sublabel
|
190
|
+
@Suggestion = suggestion
|
179
191
|
end
|
180
192
|
|
181
193
|
def deserialize(params)
|
@@ -184,6 +196,8 @@ module TencentCloud
|
|
184
196
|
@StartTime = params['StartTime']
|
185
197
|
@EndTime = params['EndTime']
|
186
198
|
@SubLabelCode = params['SubLabelCode']
|
199
|
+
@SubLabel = params['SubLabel']
|
200
|
+
@Suggestion = params['Suggestion']
|
187
201
|
end
|
188
202
|
end
|
189
203
|
|
@@ -948,6 +962,35 @@ module TencentCloud
|
|
948
962
|
end
|
949
963
|
end
|
950
964
|
|
965
|
+
# 识别类标签结果信息
|
966
|
+
class RecognitionResult < TencentCloud::Common::AbstractModel
|
967
|
+
# @param Label: 可能的取值有:Teenager 、Gender
|
968
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
969
|
+
# @type Label: String
|
970
|
+
# @param Tags: 识别标签列表
|
971
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
972
|
+
# @type Tags: Array
|
973
|
+
|
974
|
+
attr_accessor :Label, :Tags
|
975
|
+
|
976
|
+
def initialize(label=nil, tags=nil)
|
977
|
+
@Label = label
|
978
|
+
@Tags = tags
|
979
|
+
end
|
980
|
+
|
981
|
+
def deserialize(params)
|
982
|
+
@Label = params['Label']
|
983
|
+
unless params['Tags'].nil?
|
984
|
+
@Tags = []
|
985
|
+
params['Tags'].each do |i|
|
986
|
+
tag_tmp = Tag.new
|
987
|
+
tag_tmp.deserialize(i)
|
988
|
+
@Tags << tag_tmp
|
989
|
+
end
|
990
|
+
end
|
991
|
+
end
|
992
|
+
end
|
993
|
+
|
951
994
|
# 数据存储信息
|
952
995
|
class StorageInfo < TencentCloud::Common::AbstractModel
|
953
996
|
# @param Type: 类型 可选:
|
@@ -977,6 +1020,40 @@ module TencentCloud
|
|
977
1020
|
end
|
978
1021
|
end
|
979
1022
|
|
1023
|
+
# 音频切片识别标签
|
1024
|
+
class Tag < TencentCloud::Common::AbstractModel
|
1025
|
+
# @param Name: 根据Label字段确定具体名称:
|
1026
|
+
# 当Label 为Teenager 时 Name可能取值有:Teenager
|
1027
|
+
# 当Label 为Gender 时 Name可能取值有:Male 、Female
|
1028
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1029
|
+
# @type Name: String
|
1030
|
+
# @param Score: 置信分:0~100,数值越大表示置信度越高
|
1031
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1032
|
+
# @type Score: Integer
|
1033
|
+
# @param StartTime: 识别开始偏移时间,单位:毫秒
|
1034
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1035
|
+
# @type StartTime: Float
|
1036
|
+
# @param EndTime: 识别结束偏移时间,单位:毫秒
|
1037
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1038
|
+
# @type EndTime: Float
|
1039
|
+
|
1040
|
+
attr_accessor :Name, :Score, :StartTime, :EndTime
|
1041
|
+
|
1042
|
+
def initialize(name=nil, score=nil, starttime=nil, endtime=nil)
|
1043
|
+
@Name = name
|
1044
|
+
@Score = score
|
1045
|
+
@StartTime = starttime
|
1046
|
+
@EndTime = endtime
|
1047
|
+
end
|
1048
|
+
|
1049
|
+
def deserialize(params)
|
1050
|
+
@Name = params['Name']
|
1051
|
+
@Score = params['Score']
|
1052
|
+
@StartTime = params['StartTime']
|
1053
|
+
@EndTime = params['EndTime']
|
1054
|
+
end
|
1055
|
+
end
|
1056
|
+
|
980
1057
|
# 任务数据
|
981
1058
|
class TaskData < TencentCloud::Common::AbstractModel
|
982
1059
|
# @param TaskId: 任务ID
|
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.406
|
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-09-
|
11
|
+
date: 2022-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|