tencentcloud-sdk-ams 3.0.872 → 3.0.873
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 +194 -11
- 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: d90c7c346718bb8c5f01b90bdce570309423356a
|
4
|
+
data.tar.gz: 4dc4f300a4cc8f86ed3c05b71c01a976770c30fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1f7535a8f10486817e1666151fe47e75a0b8b7fa8f9922219d1a05257efb0008940c0474af2b103a550019eb22c85183f79883c9c997235bf137f0d74e6c865
|
7
|
+
data.tar.gz: 2a653326ab8900bfa96989a42eae13359e2d84d37db2b39bd551db4bb1993c436bdce984ca73ca49ca8fc840b942011a42ede0a34f827fadc5b88ad91e019b28
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.873
|
data/lib/v20201229/models.rb
CHANGED
@@ -35,7 +35,7 @@ module TencentCloud
|
|
35
35
|
# @param Text: 该字段用于返回音频文件经ASR识别后的文本信息。最长可识别**5小时**的音频文件,若超出时长限制,接口将会报错。
|
36
36
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
37
37
|
# @type Text: String
|
38
|
-
# @param Url:
|
38
|
+
# @param Url: 该字段用于返回审核结果的访问链接(URL)。<br>备注:链接默认有效期为12小时。如果您需要更长时效的链接,请使用[COS预签名](https://cloud.tencent.com/document/product/1265/104001)功能更新签名时效。
|
39
39
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
40
40
|
# @type Url: String
|
41
41
|
# @param Duration: 该字段用于返回音频文件的时长,单位为毫秒。
|
@@ -54,10 +54,16 @@ module TencentCloud
|
|
54
54
|
# @param RecognitionResults: 识别类标签结果信息列表
|
55
55
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
56
56
|
# @type RecognitionResults: Array
|
57
|
+
# @param SpeakerResults: 说话人结果
|
58
|
+
# @type SpeakerResults: Array
|
59
|
+
# @param LabelResults: 歌曲识别结果
|
60
|
+
# @type LabelResults: Array
|
61
|
+
# @param TravelResults: 出行结果
|
62
|
+
# @type TravelResults: Array
|
57
63
|
|
58
|
-
attr_accessor :HitFlag, :Label, :Suggestion, :Score, :Text, :Url, :Duration, :Extra, :TextResults, :MoanResults, :LanguageResults, :SubLabel, :RecognitionResults
|
64
|
+
attr_accessor :HitFlag, :Label, :Suggestion, :Score, :Text, :Url, :Duration, :Extra, :TextResults, :MoanResults, :LanguageResults, :SubLabel, :RecognitionResults, :SpeakerResults, :LabelResults, :TravelResults
|
59
65
|
|
60
|
-
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)
|
66
|
+
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)
|
61
67
|
@HitFlag = hitflag
|
62
68
|
@Label = label
|
63
69
|
@Suggestion = suggestion
|
@@ -71,6 +77,9 @@ module TencentCloud
|
|
71
77
|
@LanguageResults = languageresults
|
72
78
|
@SubLabel = sublabel
|
73
79
|
@RecognitionResults = recognitionresults
|
80
|
+
@SpeakerResults = speakerresults
|
81
|
+
@LabelResults = labelresults
|
82
|
+
@TravelResults = travelresults
|
74
83
|
end
|
75
84
|
|
76
85
|
def deserialize(params)
|
@@ -115,6 +124,30 @@ module TencentCloud
|
|
115
124
|
@RecognitionResults << recognitionresult_tmp
|
116
125
|
end
|
117
126
|
end
|
127
|
+
unless params['SpeakerResults'].nil?
|
128
|
+
@SpeakerResults = []
|
129
|
+
params['SpeakerResults'].each do |i|
|
130
|
+
speakerresults_tmp = SpeakerResults.new
|
131
|
+
speakerresults_tmp.deserialize(i)
|
132
|
+
@SpeakerResults << speakerresults_tmp
|
133
|
+
end
|
134
|
+
end
|
135
|
+
unless params['LabelResults'].nil?
|
136
|
+
@LabelResults = []
|
137
|
+
params['LabelResults'].each do |i|
|
138
|
+
labelresults_tmp = LabelResults.new
|
139
|
+
labelresults_tmp.deserialize(i)
|
140
|
+
@LabelResults << labelresults_tmp
|
141
|
+
end
|
142
|
+
end
|
143
|
+
unless params['TravelResults'].nil?
|
144
|
+
@TravelResults = []
|
145
|
+
params['TravelResults'].each do |i|
|
146
|
+
travelresults_tmp = TravelResults.new
|
147
|
+
travelresults_tmp.deserialize(i)
|
148
|
+
@TravelResults << travelresults_tmp
|
149
|
+
end
|
150
|
+
end
|
118
151
|
end
|
119
152
|
end
|
120
153
|
|
@@ -175,6 +208,9 @@ module TencentCloud
|
|
175
208
|
# @type Suggestion: String
|
176
209
|
|
177
210
|
attr_accessor :Label, :Score, :StartTime, :EndTime, :SubLabelCode, :SubLabel, :Suggestion
|
211
|
+
extend Gem::Deprecate
|
212
|
+
deprecate :SubLabelCode, :none, 2024, 7
|
213
|
+
deprecate :SubLabelCode=, :none, 2024, 7
|
178
214
|
|
179
215
|
def initialize(label=nil, score=nil, starttime=nil, endtime=nil, sublabelcode=nil, sublabel=nil, suggestion=nil)
|
180
216
|
@Label = label
|
@@ -289,12 +325,16 @@ module TencentCloud
|
|
289
325
|
# @param Result: 该字段用于返回音频片段的具体审核结果,详细内容敬请参考AudioResult数据结构的描述。
|
290
326
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
291
327
|
# @type Result: :class:`Tencentcloud::Ams.v20201229.models.AudioResult`
|
328
|
+
# @param CreatedAt: 创建时间
|
329
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
330
|
+
# @type CreatedAt: String
|
292
331
|
|
293
|
-
attr_accessor :OffsetTime, :Result
|
332
|
+
attr_accessor :OffsetTime, :Result, :CreatedAt
|
294
333
|
|
295
|
-
def initialize(offsettime=nil, result=nil)
|
334
|
+
def initialize(offsettime=nil, result=nil, createdat=nil)
|
296
335
|
@OffsetTime = offsettime
|
297
336
|
@Result = result
|
337
|
+
@CreatedAt = createdat
|
298
338
|
end
|
299
339
|
|
300
340
|
def deserialize(params)
|
@@ -303,6 +343,7 @@ module TencentCloud
|
|
303
343
|
@Result = AudioResult.new
|
304
344
|
@Result.deserialize(params['Result'])
|
305
345
|
end
|
346
|
+
@CreatedAt = params['CreatedAt']
|
306
347
|
end
|
307
348
|
end
|
308
349
|
|
@@ -532,9 +573,9 @@ module TencentCloud
|
|
532
573
|
# @type BizType: String
|
533
574
|
# @param Type: 该字段表示输入的音频审核类型,取值为:**AUDIO**(点播音频)和 **LIVE_AUDIO**(直播音频),默认值为AUDIO。
|
534
575
|
# @type Type: String
|
535
|
-
# @param Seed:
|
576
|
+
# @param Seed: 验证签名参数,具体可以参考[验签说明](https://cloud.tencent.com/document/product/1219/104000#42dd87d2-580f-46cf-a953-639a787d1eda)。
|
536
577
|
# @type Seed: String
|
537
|
-
# @param CallbackUrl:
|
578
|
+
# @param CallbackUrl: 接收审核信息回调地址。如果设置了该字段,在审核过程中发现违规音频片段结果将发送至该接口。更多详情请参阅[回调配置说明](https://cloud.tencent.com/document/product/1219/104000)。
|
538
579
|
# @type CallbackUrl: String
|
539
580
|
# @param User: 该字段表示待检测对象对应的用户相关信息,若填入则可甄别相应违规风险用户
|
540
581
|
# @type User: :class:`Tencentcloud::Ams.v20201229.models.User`
|
@@ -670,12 +711,15 @@ module TencentCloud
|
|
670
711
|
# @param Label: 该字段用于返回检测结果所对应的标签。如果未命中恶意,返回Normal,如果命中恶意,则返回Labels中优先级最高的标签
|
671
712
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
672
713
|
# @type Label: String
|
714
|
+
# @param MediaInfo: 媒体信息
|
715
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
716
|
+
# @type MediaInfo: :class:`Tencentcloud::Ams.v20201229.models.MediaInfo`
|
673
717
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
674
718
|
# @type RequestId: String
|
675
719
|
|
676
|
-
attr_accessor :TaskId, :DataId, :BizType, :Name, :Status, :Type, :Suggestion, :Labels, :InputInfo, :AudioText, :AudioSegments, :ErrorType, :ErrorDescription, :CreatedAt, :UpdatedAt, :Label, :RequestId
|
720
|
+
attr_accessor :TaskId, :DataId, :BizType, :Name, :Status, :Type, :Suggestion, :Labels, :InputInfo, :AudioText, :AudioSegments, :ErrorType, :ErrorDescription, :CreatedAt, :UpdatedAt, :Label, :MediaInfo, :RequestId
|
677
721
|
|
678
|
-
def initialize(taskid=nil, dataid=nil, biztype=nil, name=nil, status=nil, type=nil, suggestion=nil, labels=nil, inputinfo=nil, audiotext=nil, audiosegments=nil, errortype=nil, errordescription=nil, createdat=nil, updatedat=nil, label=nil, requestid=nil)
|
722
|
+
def initialize(taskid=nil, dataid=nil, biztype=nil, name=nil, status=nil, type=nil, suggestion=nil, labels=nil, inputinfo=nil, audiotext=nil, audiosegments=nil, errortype=nil, errordescription=nil, createdat=nil, updatedat=nil, label=nil, mediainfo=nil, requestid=nil)
|
679
723
|
@TaskId = taskid
|
680
724
|
@DataId = dataid
|
681
725
|
@BizType = biztype
|
@@ -692,6 +736,7 @@ module TencentCloud
|
|
692
736
|
@CreatedAt = createdat
|
693
737
|
@UpdatedAt = updatedat
|
694
738
|
@Label = label
|
739
|
+
@MediaInfo = mediainfo
|
695
740
|
@RequestId = requestid
|
696
741
|
end
|
697
742
|
|
@@ -729,6 +774,10 @@ module TencentCloud
|
|
729
774
|
@CreatedAt = params['CreatedAt']
|
730
775
|
@UpdatedAt = params['UpdatedAt']
|
731
776
|
@Label = params['Label']
|
777
|
+
unless params['MediaInfo'].nil?
|
778
|
+
@MediaInfo = MediaInfo.new
|
779
|
+
@MediaInfo.deserialize(params['MediaInfo'])
|
780
|
+
end
|
732
781
|
@RequestId = params['RequestId']
|
733
782
|
end
|
734
783
|
end
|
@@ -836,6 +885,53 @@ module TencentCloud
|
|
836
885
|
end
|
837
886
|
end
|
838
887
|
|
888
|
+
# 歌曲识别结果
|
889
|
+
class LabelResults < TencentCloud::Common::AbstractModel
|
890
|
+
# @param Scene: 场景
|
891
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
892
|
+
# @type Scene: String
|
893
|
+
# @param Suggestion: 建议
|
894
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
895
|
+
# @type Suggestion: Integer
|
896
|
+
# @param Label: 标签
|
897
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
898
|
+
# @type Label: String
|
899
|
+
# @param Name: 名称:歌曲名,语种名,说话人名 等
|
900
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
901
|
+
# @type Name: String
|
902
|
+
# @param Score: 得分
|
903
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
904
|
+
# @type Score: Integer
|
905
|
+
# @param StartTime: 开始时间
|
906
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
907
|
+
# @type StartTime: Float
|
908
|
+
# @param EndTime: 结束时间
|
909
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
910
|
+
# @type EndTime: Float
|
911
|
+
|
912
|
+
attr_accessor :Scene, :Suggestion, :Label, :Name, :Score, :StartTime, :EndTime
|
913
|
+
|
914
|
+
def initialize(scene=nil, suggestion=nil, label=nil, name=nil, score=nil, starttime=nil, endtime=nil)
|
915
|
+
@Scene = scene
|
916
|
+
@Suggestion = suggestion
|
917
|
+
@Label = label
|
918
|
+
@Name = name
|
919
|
+
@Score = score
|
920
|
+
@StartTime = starttime
|
921
|
+
@EndTime = endtime
|
922
|
+
end
|
923
|
+
|
924
|
+
def deserialize(params)
|
925
|
+
@Scene = params['Scene']
|
926
|
+
@Suggestion = params['Suggestion']
|
927
|
+
@Label = params['Label']
|
928
|
+
@Name = params['Name']
|
929
|
+
@Score = params['Score']
|
930
|
+
@StartTime = params['StartTime']
|
931
|
+
@EndTime = params['EndTime']
|
932
|
+
end
|
933
|
+
end
|
934
|
+
|
839
935
|
# 媒体类型
|
840
936
|
class MediaInfo < TencentCloud::Common::AbstractModel
|
841
937
|
# @param Codecs: 该字段用于返回传入的媒体文件的编码格式,如wav、mp3、aac、flac、amr、3gp、 m4a、wma、ogg、ape等。
|
@@ -938,6 +1034,38 @@ module TencentCloud
|
|
938
1034
|
end
|
939
1035
|
end
|
940
1036
|
|
1037
|
+
# 说话人结果
|
1038
|
+
class SpeakerResults < TencentCloud::Common::AbstractModel
|
1039
|
+
# @param Label: 标签
|
1040
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1041
|
+
# @type Label: String
|
1042
|
+
# @param Score: 得分
|
1043
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1044
|
+
# @type Score: Integer
|
1045
|
+
# @param StartTime: 开始时间
|
1046
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1047
|
+
# @type StartTime: Float
|
1048
|
+
# @param EndTime: 结束时间
|
1049
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1050
|
+
# @type EndTime: String
|
1051
|
+
|
1052
|
+
attr_accessor :Label, :Score, :StartTime, :EndTime
|
1053
|
+
|
1054
|
+
def initialize(label=nil, score=nil, starttime=nil, endtime=nil)
|
1055
|
+
@Label = label
|
1056
|
+
@Score = score
|
1057
|
+
@StartTime = starttime
|
1058
|
+
@EndTime = endtime
|
1059
|
+
end
|
1060
|
+
|
1061
|
+
def deserialize(params)
|
1062
|
+
@Label = params['Label']
|
1063
|
+
@Score = params['Score']
|
1064
|
+
@StartTime = params['StartTime']
|
1065
|
+
@EndTime = params['EndTime']
|
1066
|
+
end
|
1067
|
+
end
|
1068
|
+
|
941
1069
|
# 用于表示数据存储的相关信息
|
942
1070
|
class StorageInfo < TencentCloud::Common::AbstractModel
|
943
1071
|
# @param Type: 该字段表示文件访问类型,取值为**URL**(资源链接)和**COS** (腾讯云对象存储);该字段应当与传入的访问类型相对应,可用于强校验并方便系统快速识别访问地址;若不传入此参数,则默认值为URL,此时系统将自动判定访问地址类型。
|
@@ -1032,10 +1160,13 @@ module TencentCloud
|
|
1032
1160
|
# @param UpdatedAt: 该字段用于返回被查询任务最后更新时间,格式采用 ISO 8601标准。
|
1033
1161
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
1034
1162
|
# @type UpdatedAt: String
|
1163
|
+
# @param InputInfo: 任务信息
|
1164
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1165
|
+
# @type InputInfo: :class:`Tencentcloud::Ams.v20201229.models.InputInfo`
|
1035
1166
|
|
1036
|
-
attr_accessor :DataId, :TaskId, :Status, :Name, :BizType, :Type, :Suggestion, :MediaInfo, :Labels, :CreatedAt, :UpdatedAt
|
1167
|
+
attr_accessor :DataId, :TaskId, :Status, :Name, :BizType, :Type, :Suggestion, :MediaInfo, :Labels, :CreatedAt, :UpdatedAt, :InputInfo
|
1037
1168
|
|
1038
|
-
def initialize(dataid=nil, taskid=nil, status=nil, name=nil, biztype=nil, type=nil, suggestion=nil, mediainfo=nil, labels=nil, createdat=nil, updatedat=nil)
|
1169
|
+
def initialize(dataid=nil, taskid=nil, status=nil, name=nil, biztype=nil, type=nil, suggestion=nil, mediainfo=nil, labels=nil, createdat=nil, updatedat=nil, inputinfo=nil)
|
1039
1170
|
@DataId = dataid
|
1040
1171
|
@TaskId = taskid
|
1041
1172
|
@Status = status
|
@@ -1047,6 +1178,7 @@ module TencentCloud
|
|
1047
1178
|
@Labels = labels
|
1048
1179
|
@CreatedAt = createdat
|
1049
1180
|
@UpdatedAt = updatedat
|
1181
|
+
@InputInfo = inputinfo
|
1050
1182
|
end
|
1051
1183
|
|
1052
1184
|
def deserialize(params)
|
@@ -1071,6 +1203,10 @@ module TencentCloud
|
|
1071
1203
|
end
|
1072
1204
|
@CreatedAt = params['CreatedAt']
|
1073
1205
|
@UpdatedAt = params['UpdatedAt']
|
1206
|
+
unless params['InputInfo'].nil?
|
1207
|
+
@InputInfo = InputInfo.new
|
1208
|
+
@InputInfo.deserialize(params['InputInfo'])
|
1209
|
+
end
|
1074
1210
|
end
|
1075
1211
|
end
|
1076
1212
|
|
@@ -1254,6 +1390,53 @@ module TencentCloud
|
|
1254
1390
|
end
|
1255
1391
|
end
|
1256
1392
|
|
1393
|
+
# 出行结果
|
1394
|
+
class TravelResults < TencentCloud::Common::AbstractModel
|
1395
|
+
# @param Label: 一级标签
|
1396
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1397
|
+
# @type Label: String
|
1398
|
+
# @param SubLabel: 二级标签
|
1399
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1400
|
+
# @type SubLabel: String
|
1401
|
+
# @param RiskLevel: 风险等级
|
1402
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1403
|
+
# @type RiskLevel: String
|
1404
|
+
# @param AudioRole: 出行音频角色
|
1405
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1406
|
+
# @type AudioRole: String
|
1407
|
+
# @param AudioText: 出行语音文本
|
1408
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1409
|
+
# @type AudioText: String
|
1410
|
+
# @param StartTime: 开始时间
|
1411
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1412
|
+
# @type StartTime: Float
|
1413
|
+
# @param EndTime: 结束时间
|
1414
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1415
|
+
# @type EndTime: Float
|
1416
|
+
|
1417
|
+
attr_accessor :Label, :SubLabel, :RiskLevel, :AudioRole, :AudioText, :StartTime, :EndTime
|
1418
|
+
|
1419
|
+
def initialize(label=nil, sublabel=nil, risklevel=nil, audiorole=nil, audiotext=nil, starttime=nil, endtime=nil)
|
1420
|
+
@Label = label
|
1421
|
+
@SubLabel = sublabel
|
1422
|
+
@RiskLevel = risklevel
|
1423
|
+
@AudioRole = audiorole
|
1424
|
+
@AudioText = audiotext
|
1425
|
+
@StartTime = starttime
|
1426
|
+
@EndTime = endtime
|
1427
|
+
end
|
1428
|
+
|
1429
|
+
def deserialize(params)
|
1430
|
+
@Label = params['Label']
|
1431
|
+
@SubLabel = params['SubLabel']
|
1432
|
+
@RiskLevel = params['RiskLevel']
|
1433
|
+
@AudioRole = params['AudioRole']
|
1434
|
+
@AudioText = params['AudioText']
|
1435
|
+
@StartTime = params['StartTime']
|
1436
|
+
@EndTime = params['EndTime']
|
1437
|
+
end
|
1438
|
+
end
|
1439
|
+
|
1257
1440
|
# User结果
|
1258
1441
|
class User < TencentCloud::Common::AbstractModel
|
1259
1442
|
# @param Level: 用户等级,默认0 未知 1 低 2 中 3 高
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-ams
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.873
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|