tencentcloud-sdk-ams 3.0.386 → 3.0.389

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a13fbc5545e01df0b0108d6995a900cd84332218
4
- data.tar.gz: adb7f1e8438f945845d16a6f6ed28b64c80de127
3
+ metadata.gz: 1fe6a99a78c7e40091637cfd822f3d621beb5084
4
+ data.tar.gz: 526a439dbf0c52c788652ba6d51a7e8cd31e85ef
5
5
  SHA512:
6
- metadata.gz: 4728baba7d09dd626e6ad40f459689af5e79d9047f78b806a3dc25b582ccec443d7f36d6c4f679d3e8435d1278766dd996c775b836f456a1574cdf393460f7be
7
- data.tar.gz: acf520cd5d13b759568a3f4e8bd3e2876a5dac9f8dc1f88bcd40e8ac89daa5d34032b9549955a6b4fecfa0b0f8026acd7b4eab794a1110373d09dec9d7523947
6
+ metadata.gz: 50e26de9894e0c2a4ee95de9b6f4ccb8a238e8617a12e4e76074880603351b7e89f45b410726c91e2f539a0e51b5545de8a39f3ce86a7f302738ed76e6f8bae5
7
+ data.tar.gz: 4ea1c028eedb96b82566c672ab4d4b3dbb580b893005374ac0495f637a1cfca2ecc1d98577606dada89659543cbb6894fd61f3596ebb7945ed77f2d075231246
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.386
1
+ 3.0.389
@@ -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.386
4
+ version: 3.0.389
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-12 00:00:00.000000000 Z
11
+ date: 2022-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common