tencentcloud-sdk-ams 3.0.385 → 3.0.388

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f46f7e219c82c5e6833c3689abc699756df16b05
4
- data.tar.gz: 1bce1a8e394a03f03e5ea4349558164b75d1a365
3
+ metadata.gz: 3c8aeaaf56d5334ecdb2438c9f6c577111aa3708
4
+ data.tar.gz: ba57324760f7b31ed4ce74e147f529e6b4bec484
5
5
  SHA512:
6
- metadata.gz: 301e3d516c76cbfee653777db2af5adb01eb2fbb82f9cf7ce864f0dba3cf19bef93a1d1bd7e021bf6a53a4062c1114702f944d36b53aeeb9a78bbd3495086dab
7
- data.tar.gz: 86f4030855b5e27f5f1240c70f0de8e32d95a5d79428a25d4934f532432e527a76f3ab02c08f91397304422b758c6472957e5a958a2b1687e4218c697a08d341
6
+ metadata.gz: d82069aba4d413d845e59b55ba286fff2d4f53fd4c6ec0fde35ab30bb8b15f52dcd0cfba77ffb80752792e2b6c35c3bb355eeb45431739c84a65a9e4e3c24c42
7
+ data.tar.gz: 7819decc49eaab5bf5a6b8ebddbe1b8218a75d895db0d0f75c04ac0a2c5a5ec93a9186dcc874f2b4ac58c789b1316784d7c3cebfd4b2a5b047a1b785736d2f44
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.385
1
+ 3.0.388
@@ -53,19 +53,19 @@ module TencentCloud
53
53
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
54
  end
55
55
 
56
- # 本接口(CreateAudioModerationSyncTask) 用于提交短音频内容进行智能审核任务,使用前请您登录控制台开通音频内容安全服务。
56
+ # 本接口(CreateAudioModerationSyncTask) 用于提交短音频内容进行智能审核任务,使用前请您使用腾讯云主账号登录控制台 [开通音频内容安全服务](https://console.cloud.tencent.com/cms/audio/package) 并调整好对应的业务配置。
57
57
 
58
- # 功能使用说明:
59
- # 前往“内容安全控制台-音频内容安全”开启使用音频内容安全服务,首次开通可获得10小时免费调用时长;
58
+ # ### 接口使用说明:
59
+ # - 前往“[内容安全控制台-图片内容安全](https://console.cloud.tencent.com/cms/audio/package)”开启使用音频内容安全服务,首次开通服务的用户可免费领用试用套餐包,包含**10小时**免费调用时长,有效期为1个月。
60
+ # - 该接口为收费接口,计费方式敬请参见 [腾讯云音频内容安全定价](https://cloud.tencent.com/product/ams/pricing)。
60
61
 
61
- # 接口限制:
62
- # - 音频文件大小支持:文件 < 5M;
63
- # - 音频文件时长小于60s,超过60s音频调用则报错;
64
- # - 音频码率类型支持:8Kbps - 16Kbps
65
- # - 音频文件支持格式:wav、mp3;
62
+ # ### 接口调用说明:
63
+ # - 音频文件大小支持:**文件 < 5M**;
64
+ # - 音频文件**时长小于60s**,超过60s音频调用则报错;
65
+ # - 音频文件支持格式:**wav (PCM编码)** 、**mp3**、**m4a** (采样率:16kHz~48kHz,位深:16bit 小端,声道数:单声道/双声道,建议格式:**16kHz/16bit/单声道**)
66
66
  # - 接口仅限音频文件传入,视频文件传入请调用长音频异步接口;
67
- # - 接口默认QPS为10,默认接口请求频率限制20次/秒,如需要更高的并发或请求频率,请工单咨询;
68
- # - 接口超时为5s,每一次请求超过该时长会报错;
67
+ # - 接口**默认QPS为20**,如需自定义配置并发或请求频率,请工单咨询;
68
+ # - 接口**默认超时为5s**,请求如超过该时长则接口会报错。
69
69
 
70
70
  # @param request: Request instance for CreateAudioModerationSyncTask.
71
71
  # @type request: :class:`Tencentcloud::ams::V20201229::CreateAudioModerationSyncTaskRequest`
@@ -171,16 +171,19 @@ module TencentCloud
171
171
  # @param SubLabel: 该字段用于返回当前标签(Lable)下的二级标签。
172
172
  # 注意:此字段可能返回 null,表示取不到有效值。
173
173
  # @type SubLabel: String
174
+ # @param Suggestion: 该字段用于返回基于恶意标签的后续操作建议。当您获取到判定结果后,返回值表示系统推荐的后续操作;建议您按照业务所需,对不同违规类型与建议值进行处理。<br>返回值:**Block**:建议屏蔽,**Review** :建议人工复审,**Pass**:建议通过
175
+ # @type Suggestion: String
174
176
 
175
- attr_accessor :Label, :Score, :StartTime, :EndTime, :SubLabelCode, :SubLabel
177
+ attr_accessor :Label, :Score, :StartTime, :EndTime, :SubLabelCode, :SubLabel, :Suggestion
176
178
 
177
- def initialize(label=nil, score=nil, starttime=nil, endtime=nil, sublabelcode=nil, sublabel=nil)
179
+ def initialize(label=nil, score=nil, starttime=nil, endtime=nil, sublabelcode=nil, sublabel=nil, suggestion=nil)
178
180
  @Label = label
179
181
  @Score = score
180
182
  @StartTime = starttime
181
183
  @EndTime = endtime
182
184
  @SubLabelCode = sublabelcode
183
185
  @SubLabel = sublabel
186
+ @Suggestion = suggestion
184
187
  end
185
188
 
186
189
  def deserialize(params)
@@ -190,6 +193,39 @@ module TencentCloud
190
193
  @EndTime = params['EndTime']
191
194
  @SubLabelCode = params['SubLabelCode']
192
195
  @SubLabel = params['SubLabel']
196
+ @Suggestion = params['Suggestion']
197
+ end
198
+ end
199
+
200
+ # 音频说话人声纹识别返回结果
201
+ class AudioResultDetailSpeakerResult < TencentCloud::Common::AbstractModel
202
+ # @param Label: 该字段用于返回检测结果需要检测的内容类型。
203
+ # 注意:此字段可能返回 null,表示取不到有效值。
204
+ # @type Label: String
205
+ # @param Score: 该字段用于返回呻吟检测的置信度,取值范围:0(置信度最低)-100(置信度最高),越高代表音频越有可能属于说话人声纹。
206
+ # 注意:此字段可能返回 null,表示取不到有效值。
207
+ # @type Score: Integer
208
+ # @param StartTime: 该字段用于返回对应说话人的片段在音频文件内的开始时间,单位为毫秒。
209
+ # 注意:此字段可能返回 null,表示取不到有效值。
210
+ # @type StartTime: Float
211
+ # @param EndTime: 该字段用于返回对应说话人的片段在音频文件内的结束时间,单位为毫秒。
212
+ # 注意:此字段可能返回 null,表示取不到有效值。
213
+ # @type EndTime: Float
214
+
215
+ attr_accessor :Label, :Score, :StartTime, :EndTime
216
+
217
+ def initialize(label=nil, score=nil, starttime=nil, endtime=nil)
218
+ @Label = label
219
+ @Score = score
220
+ @StartTime = starttime
221
+ @EndTime = endtime
222
+ end
223
+
224
+ def deserialize(params)
225
+ @Label = params['Label']
226
+ @Score = params['Score']
227
+ @StartTime = params['StartTime']
228
+ @EndTime = params['EndTime']
193
229
  end
194
230
  end
195
231
 
@@ -333,16 +369,16 @@ module TencentCloud
333
369
  # @type BizType: String
334
370
  # @param DataId: 数据标识,可以由英文字母、数字、下划线、-、@#组成,不超过64个字符
335
371
  # @type DataId: String
336
- # @param FileFormat: 音频文件资源格式,当前为mp3,wav,请按照实际文件格式填入
372
+ # @param FileFormat: 音频文件资源格式,当前支持格式:wav、mp3、m4a,请按照实际文件格式填入。
337
373
  # @type FileFormat: String
338
374
  # @param Name: 文件名称,可以由英文字母、数字、下划线、-、@#组成,不超过64个字符
339
375
  # @type Name: String
340
376
  # @param FileContent: 数据Base64编码,短音频同步接口仅传入可音频内容;
341
- # 支持范围:文件大小不能超过5M,时长不可超过60s,码率范围为8-16Kbps
342
- # 支持格式:wav、mp3
377
+ # 支持范围:文件大小不能超过5M,时长不可超过60s;
378
+ # 支持格式:wav (PCM编码)、mp3、m4a (采样率:16kHz~48kHz,位深:16bit 小端,声道数:单声道/双声道,建议格式:16kHz/16bit/单声道)。
343
379
  # @type FileContent: String
344
380
  # @param FileUrl: 音频资源访问链接,与FileContent参数必须二选一输入;
345
- # 支持范围:同FileContent;
381
+ # 支持范围及格式:同FileContent;
346
382
  # @type FileUrl: String
347
383
 
348
384
  attr_accessor :BizType, :DataId, :FileFormat, :Name, :FileContent, :FileUrl
@@ -394,12 +430,25 @@ module TencentCloud
394
430
  # @param MoanResults: 音频中低俗内容审核结果;
395
431
  # 注意:此字段可能返回 null,表示取不到有效值。
396
432
  # @type MoanResults: Array
433
+ # @param SubLabel: 该字段用于返回当前标签(Lable)下的二级标签。
434
+ # 注意:此字段可能返回null,表示取不到有效值。
435
+ # 注意:此字段可能返回 null,表示取不到有效值。
436
+ # @type SubLabel: String
437
+ # @param LanguageResults: 该字段用于返回音频小语种检测的详细审核结果。具体结果内容请参见AudioResultDetailLanguageResult数据结构的细节描述。
438
+ # 注意:此字段可能返回 null,表示取不到有效值。
439
+ # @type LanguageResults: Array
440
+ # @param SpeakerResults: 音频中说话人识别返回结果;
441
+ # 注意:此字段可能返回 null,表示取不到有效值。
442
+ # @type SpeakerResults: Array
443
+ # @param RecognitionResults: 识别类标签结果信息列表
444
+ # 注意:此字段可能返回 null,表示取不到有效值。
445
+ # @type RecognitionResults: Array
397
446
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
398
447
  # @type RequestId: String
399
448
 
400
- attr_accessor :DataId, :Name, :BizType, :Suggestion, :Label, :AsrText, :TextResults, :MoanResults, :RequestId
449
+ attr_accessor :DataId, :Name, :BizType, :Suggestion, :Label, :AsrText, :TextResults, :MoanResults, :SubLabel, :LanguageResults, :SpeakerResults, :RecognitionResults, :RequestId
401
450
 
402
- def initialize(dataid=nil, name=nil, biztype=nil, suggestion=nil, label=nil, asrtext=nil, textresults=nil, moanresults=nil, requestid=nil)
451
+ def initialize(dataid=nil, name=nil, biztype=nil, suggestion=nil, label=nil, asrtext=nil, textresults=nil, moanresults=nil, sublabel=nil, languageresults=nil, speakerresults=nil, recognitionresults=nil, requestid=nil)
403
452
  @DataId = dataid
404
453
  @Name = name
405
454
  @BizType = biztype
@@ -408,6 +457,10 @@ module TencentCloud
408
457
  @AsrText = asrtext
409
458
  @TextResults = textresults
410
459
  @MoanResults = moanresults
460
+ @SubLabel = sublabel
461
+ @LanguageResults = languageresults
462
+ @SpeakerResults = speakerresults
463
+ @RecognitionResults = recognitionresults
411
464
  @RequestId = requestid
412
465
  end
413
466
 
@@ -434,6 +487,31 @@ module TencentCloud
434
487
  @MoanResults << moanresult_tmp
435
488
  end
436
489
  end
490
+ @SubLabel = params['SubLabel']
491
+ unless params['LanguageResults'].nil?
492
+ @LanguageResults = []
493
+ params['LanguageResults'].each do |i|
494
+ audioresultdetaillanguageresult_tmp = AudioResultDetailLanguageResult.new
495
+ audioresultdetaillanguageresult_tmp.deserialize(i)
496
+ @LanguageResults << audioresultdetaillanguageresult_tmp
497
+ end
498
+ end
499
+ unless params['SpeakerResults'].nil?
500
+ @SpeakerResults = []
501
+ params['SpeakerResults'].each do |i|
502
+ audioresultdetailspeakerresult_tmp = AudioResultDetailSpeakerResult.new
503
+ audioresultdetailspeakerresult_tmp.deserialize(i)
504
+ @SpeakerResults << audioresultdetailspeakerresult_tmp
505
+ end
506
+ end
507
+ unless params['RecognitionResults'].nil?
508
+ @RecognitionResults = []
509
+ params['RecognitionResults'].each do |i|
510
+ recognitionresult_tmp = RecognitionResult.new
511
+ recognitionresult_tmp.deserialize(i)
512
+ @RecognitionResults << recognitionresult_tmp
513
+ end
514
+ end
437
515
  @RequestId = params['RequestId']
438
516
  end
439
517
  end
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.385
4
+ version: 3.0.388
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-08-11 00:00:00.000000000 Z
11
+ date: 2022-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common