tencentcloud-sdk-python 3.1.82__py2.py3-none-any.whl → 3.1.83__py2.py3-none-any.whl

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.
tencentcloud/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.82'
17
+ __version__ = '3.1.83'
@@ -18,6 +18,177 @@ import warnings
18
18
  from tencentcloud.common.abstract_model import AbstractModel
19
19
 
20
20
 
21
+ class AIGCRecognitionResult(AbstractModel):
22
+ r"""aigc片段审核结果
23
+
24
+ """
25
+
26
+ def __init__(self):
27
+ r"""
28
+ :param _Label: <p>一级标签名</p>
29
+ :type Label: str
30
+ :param _LabelCode: <p>一级标签码</p>
31
+ :type LabelCode: str
32
+ :param _Score: <p>分数</p>
33
+ :type Score: int
34
+ :param _StartTime: <p>该vad片段在原始音频片段中的起始时间偏移</p>
35
+ :type StartTime: float
36
+ :param _EndTime: <p>该vad片段在原始音频片段中的结束时间偏移</p>
37
+ :type EndTime: float
38
+ :param _Suggestion: <p>建议值</p>
39
+ :type Suggestion: str
40
+ :param _SubLabel: <p>二级标签名</p>
41
+ :type SubLabel: str
42
+ :param _SubLabelCode: <p>二级标签码</p>
43
+ :type SubLabelCode: str
44
+ :param _SubTag: <p>三级标签名</p>
45
+ :type SubTag: str
46
+ :param _SubTagCode: <p>三级标签码</p>
47
+ :type SubTagCode: str
48
+ """
49
+ self._Label = None
50
+ self._LabelCode = None
51
+ self._Score = None
52
+ self._StartTime = None
53
+ self._EndTime = None
54
+ self._Suggestion = None
55
+ self._SubLabel = None
56
+ self._SubLabelCode = None
57
+ self._SubTag = None
58
+ self._SubTagCode = None
59
+
60
+ @property
61
+ def Label(self):
62
+ r"""<p>一级标签名</p>
63
+ :rtype: str
64
+ """
65
+ return self._Label
66
+
67
+ @Label.setter
68
+ def Label(self, Label):
69
+ self._Label = Label
70
+
71
+ @property
72
+ def LabelCode(self):
73
+ r"""<p>一级标签码</p>
74
+ :rtype: str
75
+ """
76
+ return self._LabelCode
77
+
78
+ @LabelCode.setter
79
+ def LabelCode(self, LabelCode):
80
+ self._LabelCode = LabelCode
81
+
82
+ @property
83
+ def Score(self):
84
+ r"""<p>分数</p>
85
+ :rtype: int
86
+ """
87
+ return self._Score
88
+
89
+ @Score.setter
90
+ def Score(self, Score):
91
+ self._Score = Score
92
+
93
+ @property
94
+ def StartTime(self):
95
+ r"""<p>该vad片段在原始音频片段中的起始时间偏移</p>
96
+ :rtype: float
97
+ """
98
+ return self._StartTime
99
+
100
+ @StartTime.setter
101
+ def StartTime(self, StartTime):
102
+ self._StartTime = StartTime
103
+
104
+ @property
105
+ def EndTime(self):
106
+ r"""<p>该vad片段在原始音频片段中的结束时间偏移</p>
107
+ :rtype: float
108
+ """
109
+ return self._EndTime
110
+
111
+ @EndTime.setter
112
+ def EndTime(self, EndTime):
113
+ self._EndTime = EndTime
114
+
115
+ @property
116
+ def Suggestion(self):
117
+ r"""<p>建议值</p>
118
+ :rtype: str
119
+ """
120
+ return self._Suggestion
121
+
122
+ @Suggestion.setter
123
+ def Suggestion(self, Suggestion):
124
+ self._Suggestion = Suggestion
125
+
126
+ @property
127
+ def SubLabel(self):
128
+ r"""<p>二级标签名</p>
129
+ :rtype: str
130
+ """
131
+ return self._SubLabel
132
+
133
+ @SubLabel.setter
134
+ def SubLabel(self, SubLabel):
135
+ self._SubLabel = SubLabel
136
+
137
+ @property
138
+ def SubLabelCode(self):
139
+ r"""<p>二级标签码</p>
140
+ :rtype: str
141
+ """
142
+ return self._SubLabelCode
143
+
144
+ @SubLabelCode.setter
145
+ def SubLabelCode(self, SubLabelCode):
146
+ self._SubLabelCode = SubLabelCode
147
+
148
+ @property
149
+ def SubTag(self):
150
+ r"""<p>三级标签名</p>
151
+ :rtype: str
152
+ """
153
+ return self._SubTag
154
+
155
+ @SubTag.setter
156
+ def SubTag(self, SubTag):
157
+ self._SubTag = SubTag
158
+
159
+ @property
160
+ def SubTagCode(self):
161
+ r"""<p>三级标签码</p>
162
+ :rtype: str
163
+ """
164
+ return self._SubTagCode
165
+
166
+ @SubTagCode.setter
167
+ def SubTagCode(self, SubTagCode):
168
+ self._SubTagCode = SubTagCode
169
+
170
+
171
+ def _deserialize(self, params):
172
+ self._Label = params.get("Label")
173
+ self._LabelCode = params.get("LabelCode")
174
+ self._Score = params.get("Score")
175
+ self._StartTime = params.get("StartTime")
176
+ self._EndTime = params.get("EndTime")
177
+ self._Suggestion = params.get("Suggestion")
178
+ self._SubLabel = params.get("SubLabel")
179
+ self._SubLabelCode = params.get("SubLabelCode")
180
+ self._SubTag = params.get("SubTag")
181
+ self._SubTagCode = params.get("SubTagCode")
182
+ memeber_set = set(params.keys())
183
+ for name, value in vars(self).items():
184
+ property_name = name[1:]
185
+ if property_name in memeber_set:
186
+ memeber_set.remove(property_name)
187
+ if len(memeber_set) > 0:
188
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
189
+
190
+
191
+
21
192
  class AudioResult(AbstractModel):
22
193
  r"""音频审核输出参数
23
194
 
@@ -25,49 +196,50 @@ class AudioResult(AbstractModel):
25
196
 
26
197
  def __init__(self):
27
198
  r"""
28
- :param _HitFlag: 该字段用于返回审核内容是否命中审核模型;取值:0(**未命中**)、1(**命中**)。
199
+ :param _HitFlag: <p>该字段用于返回审核内容是否命中审核模型;取值:0(<strong>未命中</strong>)、1(<strong>命中</strong>)。</p>
29
200
  :type HitFlag: int
30
- :param _Label: 该字段用于返回检测结果所对应的恶意标签。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告,**Custom**:自定义违规;以及其他令人反感、不安全或不适宜的内容类型。
201
+ :param _Label: <p>该字段用于返回检测结果所对应的恶意标签。<br>返回值:<strong>Normal</strong>:正常,<strong>Porn</strong>:色情,<strong>Abuse</strong>:谩骂,<strong>Ad</strong>:广告,<strong>Custom</strong>:自定义违规;以及其他令人反感、不安全或不适宜的内容类型。</p>
31
202
  :type Label: str
32
- :param _Suggestion: 该字段用于返回后续操作建议。当您获取到判定结果后,返回值表示具体的后续建议操作。<br>
33
- 返回值:**Block**:建议屏蔽,**Review** :建议人工复审,**Pass**:建议通过
203
+ :param _Suggestion: <p>该字段用于返回后续操作建议。当您获取到判定结果后,返回值表示具体的后续建议操作。<br><br>返回值:<strong>Block</strong>:建议屏蔽,<strong>Review</strong> :建议人工复审,<strong>Pass</strong>:建议通过</p>
34
204
  :type Suggestion: str
35
- :param _Score: 该字段用于返回当前标签下的置信度,取值范围:0(**置信度最低**)-100(**置信度最高** ),越高代表文本越有可能属于当前返回的标签;如:*色情 99*,则表明该文本非常有可能属于色情内容。
205
+ :param _Score: <p>该字段用于返回当前标签下的置信度,取值范围:0(<strong>置信度最低</strong>)-100(<strong>置信度最高</strong> ),越高代表文本越有可能属于当前返回的标签;如:<em>色情 99</em>,则表明该文本非常有可能属于色情内容。</p>
36
206
  :type Score: int
37
- :param _Text: 该字段用于返回音频文件经ASR识别后的文本信息。最长可识别**5小时**的音频文件,若超出时长限制,接口将会报错。
207
+ :param _Text: <p>该字段用于返回音频文件经ASR识别后的文本信息。最长可识别<strong>5小时</strong>的音频文件,若超出时长限制,接口将会报错。</p>
38
208
  :type Text: str
39
- :param _Url: 该字段用于返回审核结果的访问链接(URL)。<br>备注:链接默认有效期为12小时。如果您需要更长时效的链接,请使用[COS预签名](https://cloud.tencent.com/document/product/1265/104001)功能更新签名时效。
209
+ :param _Url: <p>该字段用于返回审核结果的访问链接(URL)。<br>备注:链接默认有效期为12小时。如果您需要更长时效的链接,请使用<a href="https://cloud.tencent.com/document/product/1265/104001">COS预签名</a>功能更新签名时效。</p>
40
210
  :type Url: str
41
- :param _Duration: 该字段用于返回音频文件的时长,单位为毫秒。
211
+ :param _Duration: <p>该字段用于返回音频文件的时长,单位为毫秒。</p>
42
212
  :type Duration: str
43
- :param _Extra: 该字段用于返回额外附加信息,不同客户或Biztype下返回信息不同。
213
+ :param _Extra: <p>该字段用于返回额外附加信息,不同客户或Biztype下返回信息不同。</p>
44
214
  :type Extra: str
45
- :param _TextResults: 该字段用于返回音频文件经ASR识别后产生的文本的详细审核结果。具体结果内容请参见AudioResultDetailLanguageResult数据结构的细节描述。
215
+ :param _TextResults: <p>该字段用于返回音频文件经ASR识别后产生的文本的详细审核结果。具体结果内容请参见AudioResultDetailLanguageResult数据结构的细节描述。</p>
46
216
  :type TextResults: list of AudioResultDetailTextResult
47
- :param _MoanResults: 该字段用于返回音频文件呻吟检测的详细审核结果。具体结果内容请参见AudioResultDetailMoanResult数据结构的细节描述。
217
+ :param _MoanResults: <p>该字段用于返回音频文件呻吟检测的详细审核结果。具体结果内容请参见AudioResultDetailMoanResult数据结构的细节描述。</p>
48
218
  :type MoanResults: list of AudioResultDetailMoanResult
49
- :param _LanguageResults: 该字段用于返回音频小语种检测的详细审核结果。具体结果内容请参见AudioResultDetailLanguageResult数据结构的细节描述。
219
+ :param _LanguageResults: <p>该字段用于返回音频小语种检测的详细审核结果。具体结果内容请参见AudioResultDetailLanguageResult数据结构的细节描述。</p>
50
220
  :type LanguageResults: list of AudioResultDetailLanguageResult
51
- :param _SubLabel: 该字段用于返回当前标签(Lable)下的二级标签。
221
+ :param _SubLabel: <p>该字段用于返回当前标签(Lable)下的二级标签。</p>
52
222
  :type SubLabel: str
53
- :param _RecognitionResults: 识别类标签结果信息列表
223
+ :param _RecognitionResults: <p>识别类标签结果信息列表</p>
54
224
  :type RecognitionResults: list of RecognitionResult
55
- :param _SpeakerResults: 说话人结果
225
+ :param _SpeakerResults: <p>说话人结果</p>
56
226
  :type SpeakerResults: list of SpeakerResults
57
- :param _LabelResults: 歌曲识别结果
227
+ :param _LabelResults: <p>歌曲识别结果</p>
58
228
  :type LabelResults: list of LabelResults
59
- :param _TravelResults: 出行结果
229
+ :param _TravelResults: <p>出行结果</p>
60
230
  :type TravelResults: list of TravelResults
61
- :param _SubTag: 三级标签
231
+ :param _SubTag: <p>三级标签</p>
62
232
  :type SubTag: str
63
- :param _SubTagCode: 三级标签码
233
+ :param _SubTagCode: <p>三级标签码</p>
64
234
  :type SubTagCode: str
65
- :param _HitType: 审核检测类型
235
+ :param _HitType: <p>审核检测类型</p>
66
236
  :type HitType: str
67
- :param _Sentences: ASR句子的起止时间
237
+ :param _Sentences: <p>ASR句子的起止时间</p>
68
238
  :type Sentences: list of Sentence
69
- :param _RequestId: 切片请求ID
239
+ :param _RequestId: <p>切片请求ID</p>
70
240
  :type RequestId: str
241
+ :param _AIGCRecognitionResults: <p>AIGC音频片段审核结果</p>
242
+ :type AIGCRecognitionResults: list of AIGCRecognitionResult
71
243
  """
72
244
  self._HitFlag = None
73
245
  self._Label = None
@@ -90,10 +262,11 @@ class AudioResult(AbstractModel):
90
262
  self._HitType = None
91
263
  self._Sentences = None
92
264
  self._RequestId = None
265
+ self._AIGCRecognitionResults = None
93
266
 
94
267
  @property
95
268
  def HitFlag(self):
96
- r"""该字段用于返回审核内容是否命中审核模型;取值:0(**未命中**)、1(**命中**)。
269
+ r"""<p>该字段用于返回审核内容是否命中审核模型;取值:0(<strong>未命中</strong>)、1(<strong>命中</strong>)。</p>
97
270
  :rtype: int
98
271
  """
99
272
  return self._HitFlag
@@ -104,7 +277,7 @@ class AudioResult(AbstractModel):
104
277
 
105
278
  @property
106
279
  def Label(self):
107
- r"""该字段用于返回检测结果所对应的恶意标签。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告,**Custom**:自定义违规;以及其他令人反感、不安全或不适宜的内容类型。
280
+ r"""<p>该字段用于返回检测结果所对应的恶意标签。<br>返回值:<strong>Normal</strong>:正常,<strong>Porn</strong>:色情,<strong>Abuse</strong>:谩骂,<strong>Ad</strong>:广告,<strong>Custom</strong>:自定义违规;以及其他令人反感、不安全或不适宜的内容类型。</p>
108
281
  :rtype: str
109
282
  """
110
283
  return self._Label
@@ -115,8 +288,7 @@ class AudioResult(AbstractModel):
115
288
 
116
289
  @property
117
290
  def Suggestion(self):
118
- r"""该字段用于返回后续操作建议。当您获取到判定结果后,返回值表示具体的后续建议操作。<br>
119
- 返回值:**Block**:建议屏蔽,**Review** :建议人工复审,**Pass**:建议通过
291
+ r"""<p>该字段用于返回后续操作建议。当您获取到判定结果后,返回值表示具体的后续建议操作。<br><br>返回值:<strong>Block</strong>:建议屏蔽,<strong>Review</strong> :建议人工复审,<strong>Pass</strong>:建议通过</p>
120
292
  :rtype: str
121
293
  """
122
294
  return self._Suggestion
@@ -127,7 +299,7 @@ class AudioResult(AbstractModel):
127
299
 
128
300
  @property
129
301
  def Score(self):
130
- r"""该字段用于返回当前标签下的置信度,取值范围:0(**置信度最低**)-100(**置信度最高** ),越高代表文本越有可能属于当前返回的标签;如:*色情 99*,则表明该文本非常有可能属于色情内容。
302
+ r"""<p>该字段用于返回当前标签下的置信度,取值范围:0(<strong>置信度最低</strong>)-100(<strong>置信度最高</strong> ),越高代表文本越有可能属于当前返回的标签;如:<em>色情 99</em>,则表明该文本非常有可能属于色情内容。</p>
131
303
  :rtype: int
132
304
  """
133
305
  return self._Score
@@ -138,7 +310,7 @@ class AudioResult(AbstractModel):
138
310
 
139
311
  @property
140
312
  def Text(self):
141
- r"""该字段用于返回音频文件经ASR识别后的文本信息。最长可识别**5小时**的音频文件,若超出时长限制,接口将会报错。
313
+ r"""<p>该字段用于返回音频文件经ASR识别后的文本信息。最长可识别<strong>5小时</strong>的音频文件,若超出时长限制,接口将会报错。</p>
142
314
  :rtype: str
143
315
  """
144
316
  return self._Text
@@ -149,7 +321,7 @@ class AudioResult(AbstractModel):
149
321
 
150
322
  @property
151
323
  def Url(self):
152
- r"""该字段用于返回审核结果的访问链接(URL)。<br>备注:链接默认有效期为12小时。如果您需要更长时效的链接,请使用[COS预签名](https://cloud.tencent.com/document/product/1265/104001)功能更新签名时效。
324
+ r"""<p>该字段用于返回审核结果的访问链接(URL)。<br>备注:链接默认有效期为12小时。如果您需要更长时效的链接,请使用<a href="https://cloud.tencent.com/document/product/1265/104001">COS预签名</a>功能更新签名时效。</p>
153
325
  :rtype: str
154
326
  """
155
327
  return self._Url
@@ -160,7 +332,7 @@ class AudioResult(AbstractModel):
160
332
 
161
333
  @property
162
334
  def Duration(self):
163
- r"""该字段用于返回音频文件的时长,单位为毫秒。
335
+ r"""<p>该字段用于返回音频文件的时长,单位为毫秒。</p>
164
336
  :rtype: str
165
337
  """
166
338
  return self._Duration
@@ -171,7 +343,7 @@ class AudioResult(AbstractModel):
171
343
 
172
344
  @property
173
345
  def Extra(self):
174
- r"""该字段用于返回额外附加信息,不同客户或Biztype下返回信息不同。
346
+ r"""<p>该字段用于返回额外附加信息,不同客户或Biztype下返回信息不同。</p>
175
347
  :rtype: str
176
348
  """
177
349
  return self._Extra
@@ -182,7 +354,7 @@ class AudioResult(AbstractModel):
182
354
 
183
355
  @property
184
356
  def TextResults(self):
185
- r"""该字段用于返回音频文件经ASR识别后产生的文本的详细审核结果。具体结果内容请参见AudioResultDetailLanguageResult数据结构的细节描述。
357
+ r"""<p>该字段用于返回音频文件经ASR识别后产生的文本的详细审核结果。具体结果内容请参见AudioResultDetailLanguageResult数据结构的细节描述。</p>
186
358
  :rtype: list of AudioResultDetailTextResult
187
359
  """
188
360
  return self._TextResults
@@ -193,7 +365,7 @@ class AudioResult(AbstractModel):
193
365
 
194
366
  @property
195
367
  def MoanResults(self):
196
- r"""该字段用于返回音频文件呻吟检测的详细审核结果。具体结果内容请参见AudioResultDetailMoanResult数据结构的细节描述。
368
+ r"""<p>该字段用于返回音频文件呻吟检测的详细审核结果。具体结果内容请参见AudioResultDetailMoanResult数据结构的细节描述。</p>
197
369
  :rtype: list of AudioResultDetailMoanResult
198
370
  """
199
371
  return self._MoanResults
@@ -204,7 +376,7 @@ class AudioResult(AbstractModel):
204
376
 
205
377
  @property
206
378
  def LanguageResults(self):
207
- r"""该字段用于返回音频小语种检测的详细审核结果。具体结果内容请参见AudioResultDetailLanguageResult数据结构的细节描述。
379
+ r"""<p>该字段用于返回音频小语种检测的详细审核结果。具体结果内容请参见AudioResultDetailLanguageResult数据结构的细节描述。</p>
208
380
  :rtype: list of AudioResultDetailLanguageResult
209
381
  """
210
382
  return self._LanguageResults
@@ -215,7 +387,7 @@ class AudioResult(AbstractModel):
215
387
 
216
388
  @property
217
389
  def SubLabel(self):
218
- r"""该字段用于返回当前标签(Lable)下的二级标签。
390
+ r"""<p>该字段用于返回当前标签(Lable)下的二级标签。</p>
219
391
  :rtype: str
220
392
  """
221
393
  return self._SubLabel
@@ -226,7 +398,7 @@ class AudioResult(AbstractModel):
226
398
 
227
399
  @property
228
400
  def RecognitionResults(self):
229
- r"""识别类标签结果信息列表
401
+ r"""<p>识别类标签结果信息列表</p>
230
402
  :rtype: list of RecognitionResult
231
403
  """
232
404
  return self._RecognitionResults
@@ -237,7 +409,7 @@ class AudioResult(AbstractModel):
237
409
 
238
410
  @property
239
411
  def SpeakerResults(self):
240
- r"""说话人结果
412
+ r"""<p>说话人结果</p>
241
413
  :rtype: list of SpeakerResults
242
414
  """
243
415
  return self._SpeakerResults
@@ -248,7 +420,7 @@ class AudioResult(AbstractModel):
248
420
 
249
421
  @property
250
422
  def LabelResults(self):
251
- r"""歌曲识别结果
423
+ r"""<p>歌曲识别结果</p>
252
424
  :rtype: list of LabelResults
253
425
  """
254
426
  return self._LabelResults
@@ -259,7 +431,7 @@ class AudioResult(AbstractModel):
259
431
 
260
432
  @property
261
433
  def TravelResults(self):
262
- r"""出行结果
434
+ r"""<p>出行结果</p>
263
435
  :rtype: list of TravelResults
264
436
  """
265
437
  return self._TravelResults
@@ -270,7 +442,7 @@ class AudioResult(AbstractModel):
270
442
 
271
443
  @property
272
444
  def SubTag(self):
273
- r"""三级标签
445
+ r"""<p>三级标签</p>
274
446
  :rtype: str
275
447
  """
276
448
  return self._SubTag
@@ -281,7 +453,7 @@ class AudioResult(AbstractModel):
281
453
 
282
454
  @property
283
455
  def SubTagCode(self):
284
- r"""三级标签码
456
+ r"""<p>三级标签码</p>
285
457
  :rtype: str
286
458
  """
287
459
  return self._SubTagCode
@@ -292,7 +464,7 @@ class AudioResult(AbstractModel):
292
464
 
293
465
  @property
294
466
  def HitType(self):
295
- r"""审核检测类型
467
+ r"""<p>审核检测类型</p>
296
468
  :rtype: str
297
469
  """
298
470
  return self._HitType
@@ -303,7 +475,7 @@ class AudioResult(AbstractModel):
303
475
 
304
476
  @property
305
477
  def Sentences(self):
306
- r"""ASR句子的起止时间
478
+ r"""<p>ASR句子的起止时间</p>
307
479
  :rtype: list of Sentence
308
480
  """
309
481
  return self._Sentences
@@ -314,7 +486,7 @@ class AudioResult(AbstractModel):
314
486
 
315
487
  @property
316
488
  def RequestId(self):
317
- r"""切片请求ID
489
+ r"""<p>切片请求ID</p>
318
490
  :rtype: str
319
491
  """
320
492
  return self._RequestId
@@ -323,6 +495,17 @@ class AudioResult(AbstractModel):
323
495
  def RequestId(self, RequestId):
324
496
  self._RequestId = RequestId
325
497
 
498
+ @property
499
+ def AIGCRecognitionResults(self):
500
+ r"""<p>AIGC音频片段审核结果</p>
501
+ :rtype: list of AIGCRecognitionResult
502
+ """
503
+ return self._AIGCRecognitionResults
504
+
505
+ @AIGCRecognitionResults.setter
506
+ def AIGCRecognitionResults(self, AIGCRecognitionResults):
507
+ self._AIGCRecognitionResults = AIGCRecognitionResults
508
+
326
509
 
327
510
  def _deserialize(self, params):
328
511
  self._HitFlag = params.get("HitFlag")
@@ -386,6 +569,12 @@ class AudioResult(AbstractModel):
386
569
  obj._deserialize(item)
387
570
  self._Sentences.append(obj)
388
571
  self._RequestId = params.get("RequestId")
572
+ if params.get("AIGCRecognitionResults") is not None:
573
+ self._AIGCRecognitionResults = []
574
+ for item in params.get("AIGCRecognitionResults"):
575
+ obj = AIGCRecognitionResult()
576
+ obj._deserialize(item)
577
+ self._AIGCRecognitionResults.append(obj)
389
578
  memeber_set = set(params.keys())
390
579
  for name, value in vars(self).items():
391
580
  property_name = name[1:]