tencentcloud-sdk-ams 3.0.1169 → 3.0.1184
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 +39 -4
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5e77a1467f01f2a277022ebfdee0f614c03b0dba
|
|
4
|
+
data.tar.gz: 974de6f7585db2c3835c02417c51678873b18910
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3e545235b9be0bace518d617246c2e7e373931be895282bcd31c83b0a99a21cfee05e99f03c98aa7ef9b6da1385042ea2d3a016a06fa18f9d9b8eceec693b2bd
|
|
7
|
+
data.tar.gz: da025f0c4c806311936ffb804fe38c5dd52cbf2f71bd6e07532a668e5f75636ec719d8ee6a02e2b4fb571e33f63a6c882b35c3f827cc16f1408adf843ad610aa
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1184
|
data/lib/v20201229/models.rb
CHANGED
|
@@ -58,10 +58,12 @@ module TencentCloud
|
|
|
58
58
|
# @type SubTagCode: String
|
|
59
59
|
# @param HitType: 审核检测类型
|
|
60
60
|
# @type HitType: String
|
|
61
|
+
# @param Sentences: ASR句子的起止时间
|
|
62
|
+
# @type Sentences: Array
|
|
61
63
|
|
|
62
|
-
attr_accessor :HitFlag, :Label, :Suggestion, :Score, :Text, :Url, :Duration, :Extra, :TextResults, :MoanResults, :LanguageResults, :SubLabel, :RecognitionResults, :SpeakerResults, :LabelResults, :TravelResults, :SubTag, :SubTagCode, :HitType
|
|
64
|
+
attr_accessor :HitFlag, :Label, :Suggestion, :Score, :Text, :Url, :Duration, :Extra, :TextResults, :MoanResults, :LanguageResults, :SubLabel, :RecognitionResults, :SpeakerResults, :LabelResults, :TravelResults, :SubTag, :SubTagCode, :HitType, :Sentences
|
|
63
65
|
|
|
64
|
-
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, hittype=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, subtag=nil, subtagcode=nil, hittype=nil, sentences=nil)
|
|
65
67
|
@HitFlag = hitflag
|
|
66
68
|
@Label = label
|
|
67
69
|
@Suggestion = suggestion
|
|
@@ -81,6 +83,7 @@ module TencentCloud
|
|
|
81
83
|
@SubTag = subtag
|
|
82
84
|
@SubTagCode = subtagcode
|
|
83
85
|
@HitType = hittype
|
|
86
|
+
@Sentences = sentences
|
|
84
87
|
end
|
|
85
88
|
|
|
86
89
|
def deserialize(params)
|
|
@@ -152,6 +155,14 @@ module TencentCloud
|
|
|
152
155
|
@SubTag = params['SubTag']
|
|
153
156
|
@SubTagCode = params['SubTagCode']
|
|
154
157
|
@HitType = params['HitType']
|
|
158
|
+
unless params['Sentences'].nil?
|
|
159
|
+
@Sentences = []
|
|
160
|
+
params['Sentences'].each do |i|
|
|
161
|
+
sentence_tmp = Sentence.new
|
|
162
|
+
sentence_tmp.deserialize(i)
|
|
163
|
+
@Sentences << sentence_tmp
|
|
164
|
+
end
|
|
165
|
+
end
|
|
155
166
|
end
|
|
156
167
|
end
|
|
157
168
|
|
|
@@ -206,8 +217,8 @@ module TencentCloud
|
|
|
206
217
|
|
|
207
218
|
attr_accessor :Label, :Score, :StartTime, :EndTime, :SubLabelCode, :SubLabel, :Suggestion
|
|
208
219
|
extend Gem::Deprecate
|
|
209
|
-
deprecate :SubLabelCode, :none, 2025,
|
|
210
|
-
deprecate :SubLabelCode=, :none, 2025,
|
|
220
|
+
deprecate :SubLabelCode, :none, 2025, 12
|
|
221
|
+
deprecate :SubLabelCode=, :none, 2025, 12
|
|
211
222
|
|
|
212
223
|
def initialize(label=nil, score=nil, starttime=nil, endtime=nil, sublabelcode=nil, sublabel=nil, suggestion=nil)
|
|
213
224
|
@Label = label
|
|
@@ -1054,6 +1065,30 @@ module TencentCloud
|
|
|
1054
1065
|
end
|
|
1055
1066
|
end
|
|
1056
1067
|
|
|
1068
|
+
# ASR识别结果在音频中的起止时间
|
|
1069
|
+
class Sentence < TencentCloud::Common::AbstractModel
|
|
1070
|
+
# @param Text: ASR句子
|
|
1071
|
+
# @type Text: String
|
|
1072
|
+
# @param StartTime: 起始时间
|
|
1073
|
+
# @type StartTime: String
|
|
1074
|
+
# @param EndTime: 结束时间
|
|
1075
|
+
# @type EndTime: String
|
|
1076
|
+
|
|
1077
|
+
attr_accessor :Text, :StartTime, :EndTime
|
|
1078
|
+
|
|
1079
|
+
def initialize(text=nil, starttime=nil, endtime=nil)
|
|
1080
|
+
@Text = text
|
|
1081
|
+
@StartTime = starttime
|
|
1082
|
+
@EndTime = endtime
|
|
1083
|
+
end
|
|
1084
|
+
|
|
1085
|
+
def deserialize(params)
|
|
1086
|
+
@Text = params['Text']
|
|
1087
|
+
@StartTime = params['StartTime']
|
|
1088
|
+
@EndTime = params['EndTime']
|
|
1089
|
+
end
|
|
1090
|
+
end
|
|
1091
|
+
|
|
1057
1092
|
# 说话人结果
|
|
1058
1093
|
class SpeakerResults < TencentCloud::Common::AbstractModel
|
|
1059
1094
|
# @param Label: 标签
|
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.1184
|
|
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-
|
|
11
|
+
date: 2025-12-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|
|
@@ -34,10 +34,10 @@ extensions: []
|
|
|
34
34
|
extra_rdoc_files: []
|
|
35
35
|
files:
|
|
36
36
|
- lib/tencentcloud-sdk-ams.rb
|
|
37
|
-
- lib/v20201229/client.rb
|
|
38
37
|
- lib/v20201229/models.rb
|
|
39
|
-
- lib/
|
|
38
|
+
- lib/v20201229/client.rb
|
|
40
39
|
- lib/v20200608/models.rb
|
|
40
|
+
- lib/v20200608/client.rb
|
|
41
41
|
- lib/VERSION
|
|
42
42
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
|
43
43
|
licenses:
|