tencentcloud-sdk-python 3.1.13__py2.py3-none-any.whl → 3.1.33__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.

Potentially problematic release.


This version of tencentcloud-sdk-python might be problematic. Click here for more details.

Files changed (260) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/ags/v20250920/ags_client.py +46 -0
  3. tencentcloud/ags/v20250920/ags_client_async.py +36 -0
  4. tencentcloud/ags/v20250920/errorcodes.py +45 -0
  5. tencentcloud/ags/v20250920/models.py +1704 -110
  6. tencentcloud/ai3d/v20250513/ai3d_client.py +4 -4
  7. tencentcloud/ai3d/v20250513/ai3d_client_async.py +4 -4
  8. tencentcloud/ai3d/v20250513/models.py +78 -36
  9. tencentcloud/aiart/v20221229/aiart_client.py +46 -0
  10. tencentcloud/aiart/v20221229/aiart_client_async.py +36 -0
  11. tencentcloud/aiart/v20221229/models.py +289 -0
  12. tencentcloud/ams/v20201229/models.py +101 -0
  13. tencentcloud/antiddos/v20200309/antiddos_client.py +69 -0
  14. tencentcloud/antiddos/v20200309/antiddos_client_async.py +54 -0
  15. tencentcloud/antiddos/v20200309/errorcodes.py +27 -0
  16. tencentcloud/antiddos/v20200309/models.py +1671 -97
  17. tencentcloud/apm/v20210622/apm_client.py +23 -0
  18. tencentcloud/apm/v20210622/apm_client_async.py +18 -0
  19. tencentcloud/apm/v20210622/errorcodes.py +3 -0
  20. tencentcloud/apm/v20210622/models.py +1678 -78
  21. tencentcloud/asr/v20190614/models.py +100 -2
  22. tencentcloud/autoscaling/v20180419/autoscaling_client.py +1 -1
  23. tencentcloud/autoscaling/v20180419/autoscaling_client_async.py +1 -1
  24. tencentcloud/autoscaling/v20180419/models.py +475 -338
  25. tencentcloud/bh/v20230418/models.py +179 -6
  26. tencentcloud/billing/v20180709/billing_client.py +23 -0
  27. tencentcloud/billing/v20180709/billing_client_async.py +18 -0
  28. tencentcloud/billing/v20180709/models.py +328 -6
  29. tencentcloud/cam/v20190116/models.py +111 -2
  30. tencentcloud/car/v20220110/car_client.py +23 -0
  31. tencentcloud/car/v20220110/car_client_async.py +18 -0
  32. tencentcloud/car/v20220110/models.py +109 -0
  33. tencentcloud/cbs/v20170312/models.py +14 -14
  34. tencentcloud/ccc/v20200210/ccc_client.py +42 -13
  35. tencentcloud/ccc/v20200210/ccc_client_async.py +37 -13
  36. tencentcloud/ccc/v20200210/errorcodes.py +6 -0
  37. tencentcloud/ccc/v20200210/models.py +256 -4
  38. tencentcloud/cdb/v20170320/models.py +37 -16
  39. tencentcloud/cdc/v20201214/models.py +92 -124
  40. tencentcloud/cdn/v20180606/cdn_client.py +0 -78
  41. tencentcloud/cdn/v20180606/cdn_client_async.py +0 -63
  42. tencentcloud/cdn/v20180606/errorcodes.py +3 -0
  43. tencentcloud/cdn/v20180606/models.py +464 -1028
  44. tencentcloud/cdwch/v20200915/cdwch_client.py +23 -0
  45. tencentcloud/cdwch/v20200915/cdwch_client_async.py +18 -0
  46. tencentcloud/cdwch/v20200915/models.py +555 -0
  47. tencentcloud/cdwdoris/v20211228/models.py +505 -0
  48. tencentcloud/cfs/v20190719/errorcodes.py +1 -1
  49. tencentcloud/cfs/v20190719/models.py +2 -2
  50. tencentcloud/cfw/v20190904/cfw_client.py +278 -23
  51. tencentcloud/cfw/v20190904/cfw_client_async.py +218 -18
  52. tencentcloud/cfw/v20190904/models.py +3319 -1154
  53. tencentcloud/chdfs/v20201112/models.py +150 -0
  54. tencentcloud/ckafka/v20190819/models.py +458 -282
  55. tencentcloud/clb/v20180317/clb_client.py +23 -0
  56. tencentcloud/clb/v20180317/clb_client_async.py +18 -0
  57. tencentcloud/clb/v20180317/models.py +230 -130
  58. tencentcloud/cloudapp/v20220530/models.py +190 -36
  59. tencentcloud/cloudaudit/v20190319/models.py +32 -4
  60. tencentcloud/cloudmate/__init__.py +0 -0
  61. tencentcloud/cloudmate/v20251030/__init__.py +0 -0
  62. tencentcloud/cloudmate/v20251030/cloudmate_client.py +45 -0
  63. tencentcloud/cloudmate/v20251030/cloudmate_client_async.py +45 -0
  64. tencentcloud/cloudmate/v20251030/errorcodes.py +30 -0
  65. tencentcloud/cloudmate/v20251030/models.py +387 -0
  66. tencentcloud/cls/v20201016/cls_client.py +1064 -0
  67. tencentcloud/cls/v20201016/cls_client_async.py +860 -26
  68. tencentcloud/cls/v20201016/models.py +10246 -384
  69. tencentcloud/cme/v20191029/models.py +23 -0
  70. tencentcloud/csip/v20221121/models.py +317 -0
  71. tencentcloud/cvm/v20170312/cvm_client.py +1 -1
  72. tencentcloud/cvm/v20170312/cvm_client_async.py +1 -1
  73. tencentcloud/cvm/v20170312/errorcodes.py +9 -0
  74. tencentcloud/cvm/v20170312/models.py +28 -8
  75. tencentcloud/cwp/v20180228/cwp_client.py +0 -188
  76. tencentcloud/cwp/v20180228/cwp_client_async.py +0 -148
  77. tencentcloud/cwp/v20180228/models.py +1097 -1814
  78. tencentcloud/cynosdb/v20190107/models.py +181 -48
  79. tencentcloud/dataagent/v20250513/dataagent_client.py +161 -0
  80. tencentcloud/dataagent/v20250513/dataagent_client_async.py +126 -0
  81. tencentcloud/dataagent/v20250513/models.py +1477 -52
  82. tencentcloud/dbbrain/v20210527/dbbrain_client.py +23 -0
  83. tencentcloud/dbbrain/v20210527/dbbrain_client_async.py +18 -0
  84. tencentcloud/dbbrain/v20210527/models.py +261 -15
  85. tencentcloud/dbs/v20211108/dbs_client.py +69 -0
  86. tencentcloud/dbs/v20211108/dbs_client_async.py +54 -0
  87. tencentcloud/dbs/v20211108/errorcodes.py +15 -0
  88. tencentcloud/dbs/v20211108/models.py +1173 -27
  89. tencentcloud/dlc/v20210125/dlc_client.py +69 -0
  90. tencentcloud/dlc/v20210125/dlc_client_async.py +54 -0
  91. tencentcloud/dlc/v20210125/errorcodes.py +15 -0
  92. tencentcloud/dlc/v20210125/models.py +1016 -0
  93. tencentcloud/dnspod/v20210323/errorcodes.py +6 -0
  94. tencentcloud/dnspod/v20210323/models.py +4 -4
  95. tencentcloud/emr/v20190103/emr_client.py +46 -0
  96. tencentcloud/emr/v20190103/emr_client_async.py +36 -0
  97. tencentcloud/emr/v20190103/models.py +625 -2
  98. tencentcloud/es/v20180416/errorcodes.py +15 -0
  99. tencentcloud/es/v20180416/es_client.py +115 -0
  100. tencentcloud/es/v20180416/es_client_async.py +90 -0
  101. tencentcloud/es/v20180416/models.py +498 -4
  102. tencentcloud/ess/v20201111/ess_client.py +153 -6
  103. tencentcloud/ess/v20201111/ess_client_async.py +128 -6
  104. tencentcloud/ess/v20201111/models.py +1496 -58
  105. tencentcloud/essbasic/v20210526/models.py +129 -23
  106. tencentcloud/evt/v20250217/evt_client.py +46 -0
  107. tencentcloud/evt/v20250217/evt_client_async.py +36 -0
  108. tencentcloud/evt/v20250217/models.py +188 -0
  109. tencentcloud/faceid/v20180301/models.py +10 -4
  110. tencentcloud/gaap/v20180529/models.py +260 -352
  111. tencentcloud/gs/v20191118/models.py +150 -4
  112. tencentcloud/gwlb/v20240906/models.py +48 -70
  113. tencentcloud/iai/v20180301/models.py +4 -4
  114. tencentcloud/iai/v20200303/models.py +4 -4
  115. tencentcloud/igtm/v20231024/errorcodes.py +1 -1
  116. tencentcloud/ims/v20201229/ims_client.py +1 -1
  117. tencentcloud/ims/v20201229/ims_client_async.py +1 -1
  118. tencentcloud/ioa/v20220601/models.py +60 -0
  119. tencentcloud/keewidb/v20220308/models.py +52 -68
  120. tencentcloud/lcic/v20220817/models.py +15 -0
  121. tencentcloud/lighthouse/v20200324/errorcodes.py +2 -2
  122. tencentcloud/lighthouse/v20200324/models.py +8 -0
  123. tencentcloud/live/v20180801/errorcodes.py +6 -0
  124. tencentcloud/live/v20180801/live_client.py +143 -0
  125. tencentcloud/live/v20180801/live_client_async.py +113 -0
  126. tencentcloud/live/v20180801/models.py +914 -311
  127. tencentcloud/lke/v20231130/lke_client.py +48 -1
  128. tencentcloud/lke/v20231130/lke_client_async.py +43 -1
  129. tencentcloud/lke/v20231130/models.py +2940 -459
  130. tencentcloud/lkeap/v20240522/lkeap_client.py +1 -1
  131. tencentcloud/lkeap/v20240522/lkeap_client_async.py +1 -1
  132. tencentcloud/lkeap/v20240522/models.py +2 -6
  133. tencentcloud/lowcode/v20210108/models.py +30 -0
  134. tencentcloud/mna/v20210119/models.py +18 -2
  135. tencentcloud/mongodb/v20190725/models.py +2 -2
  136. tencentcloud/monitor/v20180724/models.py +258 -0
  137. tencentcloud/mps/v20190612/errorcodes.py +9 -0
  138. tencentcloud/mps/v20190612/models.py +3007 -140
  139. tencentcloud/mps/v20190612/mps_client.py +115 -0
  140. tencentcloud/mps/v20190612/mps_client_async.py +90 -0
  141. tencentcloud/oceanus/v20190422/errorcodes.py +9 -0
  142. tencentcloud/oceanus/v20190422/models.py +210 -4
  143. tencentcloud/ocr/v20181119/models.py +72 -4
  144. tencentcloud/ocr/v20181119/ocr_client.py +12 -8
  145. tencentcloud/ocr/v20181119/ocr_client_async.py +11 -7
  146. tencentcloud/partners/v20180321/models.py +88 -92
  147. tencentcloud/pts/v20210728/models.py +206 -0
  148. tencentcloud/rce/v20250425/__init__.py +0 -0
  149. tencentcloud/rce/v20250425/errorcodes.py +15 -0
  150. tencentcloud/rce/v20250425/models.py +301 -0
  151. tencentcloud/rce/v20250425/rce_client.py +49 -0
  152. tencentcloud/rce/v20250425/rce_client_async.py +44 -0
  153. tencentcloud/redis/v20180412/models.py +65 -70
  154. tencentcloud/rum/v20210622/models.py +548 -0
  155. tencentcloud/rum/v20210622/rum_client.py +23 -0
  156. tencentcloud/rum/v20210622/rum_client_async.py +18 -0
  157. tencentcloud/scf/v20180416/models.py +28 -2
  158. tencentcloud/ses/v20201002/errorcodes.py +3 -0
  159. tencentcloud/ssl/v20191205/models.py +991 -70
  160. tencentcloud/ssl/v20191205/ssl_client.py +2 -2
  161. tencentcloud/ssl/v20191205/ssl_client_async.py +2 -2
  162. tencentcloud/ssm/v20190923/models.py +134 -0
  163. tencentcloud/svp/v20240125/models.py +35 -20
  164. tencentcloud/tag/v20180813/models.py +34 -54
  165. tencentcloud/tat/v20201028/models.py +2 -0
  166. tencentcloud/tcaplusdb/v20190823/models.py +0 -337
  167. tencentcloud/tcaplusdb/v20190823/tcaplusdb_client.py +0 -25
  168. tencentcloud/tcaplusdb/v20190823/tcaplusdb_client_async.py +0 -20
  169. tencentcloud/tcb/v20180608/errorcodes.py +15 -12
  170. tencentcloud/tcb/v20180608/models.py +5761 -8383
  171. tencentcloud/tcb/v20180608/tcb_client.py +0 -276
  172. tencentcloud/tcb/v20180608/tcb_client_async.py +0 -216
  173. tencentcloud/tcbr/v20220217/errorcodes.py +27 -0
  174. tencentcloud/tcbr/v20220217/models.py +4193 -1389
  175. tencentcloud/tcbr/v20220217/tcbr_client.py +207 -0
  176. tencentcloud/tcbr/v20220217/tcbr_client_async.py +162 -0
  177. tencentcloud/tcr/v20190924/models.py +727 -61
  178. tencentcloud/tcr/v20190924/tcr_client.py +92 -0
  179. tencentcloud/tcr/v20190924/tcr_client_async.py +72 -0
  180. tencentcloud/tcss/v20201101/models.py +30 -0
  181. tencentcloud/tdai/v20250717/models.py +440 -2
  182. tencentcloud/tdai/v20250717/tdai_client.py +23 -0
  183. tencentcloud/tdai/v20250717/tdai_client_async.py +18 -0
  184. tencentcloud/tdmq/v20200217/errorcodes.py +1 -1
  185. tencentcloud/tdmq/v20200217/models.py +432 -4
  186. tencentcloud/tdmq/v20200217/tdmq_client.py +24 -0
  187. tencentcloud/tdmq/v20200217/tdmq_client_async.py +19 -0
  188. tencentcloud/teo/v20220901/errorcodes.py +39 -0
  189. tencentcloud/teo/v20220901/models.py +596 -79
  190. tencentcloud/teo/v20220901/teo_client.py +107 -1
  191. tencentcloud/teo/v20220901/teo_client_async.py +97 -1
  192. tencentcloud/thpc/v20211109/models.py +14 -14
  193. tencentcloud/thpc/v20220401/models.py +14 -14
  194. tencentcloud/thpc/v20230321/models.py +20 -54
  195. tencentcloud/tione/v20211111/errorcodes.py +9 -0
  196. tencentcloud/tione/v20211111/models.py +910 -73
  197. tencentcloud/tione/v20211111/tione_client.py +69 -0
  198. tencentcloud/tione/v20211111/tione_client_async.py +54 -0
  199. tencentcloud/tke/v20180525/models.py +468 -18
  200. tencentcloud/tke/v20180525/tke_client.py +69 -0
  201. tencentcloud/tke/v20180525/tke_client_async.py +54 -0
  202. tencentcloud/tke/v20220501/models.py +539 -0
  203. tencentcloud/tke/v20220501/tke_client.py +23 -0
  204. tencentcloud/tke/v20220501/tke_client_async.py +18 -0
  205. tencentcloud/trocket/v20230308/models.py +42 -21
  206. tencentcloud/trocket/v20230308/trocket_client.py +2 -1
  207. tencentcloud/trocket/v20230308/trocket_client_async.py +2 -1
  208. tencentcloud/trtc/v20190722/errorcodes.py +3 -0
  209. tencentcloud/trtc/v20190722/models.py +173 -30
  210. tencentcloud/tse/v20201207/models.py +42 -0
  211. tencentcloud/tsf/v20180326/errorcodes.py +4 -4
  212. tencentcloud/tsf/v20180326/models.py +15 -510
  213. tencentcloud/tsf/v20180326/tsf_client.py +66 -47
  214. tencentcloud/tsf/v20180326/tsf_client_async.py +44 -20
  215. tencentcloud/tts/v20190823/tts_client.py +1 -1
  216. tencentcloud/tts/v20190823/tts_client_async.py +1 -1
  217. tencentcloud/vclm/v20240523/models.py +383 -0
  218. tencentcloud/vclm/v20240523/vclm_client.py +46 -0
  219. tencentcloud/vclm/v20240523/vclm_client_async.py +36 -0
  220. tencentcloud/vcube/v20220410/models.py +30 -0
  221. tencentcloud/vdb/v20230616/models.py +567 -0
  222. tencentcloud/vdb/v20230616/vdb_client.py +69 -0
  223. tencentcloud/vdb/v20230616/vdb_client_async.py +54 -0
  224. tencentcloud/vm/v20210922/models.py +116 -0
  225. tencentcloud/vod/v20180717/errorcodes.py +3 -0
  226. tencentcloud/vod/v20180717/models.py +4107 -622
  227. tencentcloud/vod/v20180717/vod_client.py +72 -3
  228. tencentcloud/vod/v20180717/vod_client_async.py +57 -3
  229. tencentcloud/vpc/v20170312/errorcodes.py +15 -0
  230. tencentcloud/vpc/v20170312/models.py +387 -2
  231. tencentcloud/vpc/v20170312/vpc_client.py +23 -0
  232. tencentcloud/vpc/v20170312/vpc_client_async.py +18 -0
  233. tencentcloud/waf/v20180125/errorcodes.py +3 -0
  234. tencentcloud/waf/v20180125/models.py +970 -0
  235. tencentcloud/waf/v20180125/waf_client.py +46 -0
  236. tencentcloud/waf/v20180125/waf_client_async.py +36 -0
  237. tencentcloud/wedata/v20210820/models.py +2851 -29
  238. tencentcloud/wedata/v20210820/wedata_client.py +23 -0
  239. tencentcloud/wedata/v20210820/wedata_client_async.py +18 -0
  240. tencentcloud/wedata/v20250806/errorcodes.py +21 -0
  241. tencentcloud/wedata/v20250806/models.py +40999 -15704
  242. tencentcloud/wedata/v20250806/wedata_client.py +1402 -65
  243. tencentcloud/wedata/v20250806/wedata_client_async.py +1047 -0
  244. tencentcloud/weilingwith/v20230427/errorcodes.py +0 -3
  245. tencentcloud/weilingwith/v20230427/models.py +17 -336
  246. tencentcloud/weilingwith/v20230427/weilingwith_client.py +0 -25
  247. tencentcloud/weilingwith/v20230427/weilingwith_client_async.py +0 -20
  248. tencentcloud/wimgs/__init__.py +0 -0
  249. tencentcloud/wimgs/v20251106/__init__.py +0 -0
  250. tencentcloud/wimgs/v20251106/errorcodes.py +33 -0
  251. tencentcloud/wimgs/v20251106/models.py +132 -0
  252. tencentcloud/wimgs/v20251106/wimgs_client.py +49 -0
  253. tencentcloud/wimgs/v20251106/wimgs_client_async.py +44 -0
  254. tencentcloud/wsa/v20250508/errorcodes.py +6 -0
  255. tencentcloud/wsa/v20250508/models.py +17 -2
  256. {tencentcloud_sdk_python-3.1.13.dist-info → tencentcloud_sdk_python-3.1.33.dist-info}/METADATA +1 -1
  257. {tencentcloud_sdk_python-3.1.13.dist-info → tencentcloud_sdk_python-3.1.33.dist-info}/RECORD +260 -243
  258. {tencentcloud_sdk_python-3.1.13.dist-info → tencentcloud_sdk_python-3.1.33.dist-info}/WHEEL +1 -1
  259. {tencentcloud_sdk_python-3.1.13.dist-info → tencentcloud_sdk_python-3.1.33.dist-info}/LICENSE +0 -0
  260. {tencentcloud_sdk_python-3.1.13.dist-info → tencentcloud_sdk_python-3.1.33.dist-info}/top_level.txt +0 -0
@@ -429,7 +429,6 @@ class CreateAsyncRecognitionTaskRequest(AbstractModel):
429
429
  :param _EngineType: 引擎模型类型。
430
430
  • 16k_zh:中文普通话通用;
431
431
  • 16k_en:英语;
432
- • 16k_yue:粤语;
433
432
  • 16k_id:印度尼西亚语;
434
433
  • 16k_fil:菲律宾语;
435
434
  • 16k_th:泰语;
@@ -479,7 +478,6 @@ class CreateAsyncRecognitionTaskRequest(AbstractModel):
479
478
  r"""引擎模型类型。
480
479
  • 16k_zh:中文普通话通用;
481
480
  • 16k_en:英语;
482
- • 16k_yue:粤语;
483
481
  • 16k_id:印度尼西亚语;
484
482
  • 16k_fil:菲律宾语;
485
483
  • 16k_th:泰语;
@@ -899,6 +897,7 @@ class CreateRecTaskRequest(AbstractModel):
899
897
  :param _SpeakerDiarization: 是否开启说话人分离
900
898
  0:不开启;
901
899
  1:开启(仅支持以下引擎:8k_zh/8k_zh_large/16k_zh/16k_ms/16k_en/16k_id/16k_zh_large/16k_zh_dialect/16k_zh_en,且ChannelNum=1时可用);
900
+ 3: 开启角色分离,需配合SpeakerRoles参数使用(增值服务,仅支持16k_zh_en引擎,可支持传入声纹对录音文件内的说话人进行角色认证)
902
901
  默认值为 0
903
902
 
904
903
  注意:
@@ -1005,6 +1004,14 @@ class CreateRecTaskRequest(AbstractModel):
1005
1004
  1. 本功能配置完成后,预计在10分钟后生效
1006
1005
 
1007
1006
  :type ReplaceTextId: str
1007
+ :param _SpeakerRoles: 开启角色分离能力
1008
+ 配合SpeakerDiarization: 3 使用,ASR增值服务,可传入一组声纹信息进行角色认证,仅支持16k_zh_en引擎。
1009
+ 需传入SpeakerRoleInfo数据组,确定说话人的角色信息,涉及RoleAudioUrl和RoleName两个参数。
1010
+ RoleAudioUrl:需要认证角色的声纹音频地址,建议30s内的纯净人声,最长不能超过45s。
1011
+ RoleName:需要认证角色的名称,若匹配成功,会替换话者分离中的SpeakerID。
1012
+ 示例:
1013
+ "{\"EngineModelType\":\"16k_zh_en\",\"ChannelNum\":1,\"ResTextFormat\":1,\"SourceType\":0,\"Url\":\"需要进行ASR识别的音频链接\",\"SpeakerDiarization\":3,\"SpeakerRoles\":[{\"RoleAudioUrl\":\"需要认证角色的声纹音频地址\",\"RoleName\":\"需要认证角色的名称\"}]}"
1014
+ :type SpeakerRoles: list of SpeakerRoleInfo
1008
1015
  """
1009
1016
  self._EngineModelType = None
1010
1017
  self._ChannelNum = None
@@ -1030,6 +1037,7 @@ class CreateRecTaskRequest(AbstractModel):
1030
1037
  self._HotwordList = None
1031
1038
  self._KeyWordLibIdList = None
1032
1039
  self._ReplaceTextId = None
1040
+ self._SpeakerRoles = None
1033
1041
 
1034
1042
  @property
1035
1043
  def EngineModelType(self):
@@ -1193,6 +1201,7 @@ class CreateRecTaskRequest(AbstractModel):
1193
1201
  r"""是否开启说话人分离
1194
1202
  0:不开启;
1195
1203
  1:开启(仅支持以下引擎:8k_zh/8k_zh_large/16k_zh/16k_ms/16k_en/16k_id/16k_zh_large/16k_zh_dialect/16k_zh_en,且ChannelNum=1时可用);
1204
+ 3: 开启角色分离,需配合SpeakerRoles参数使用(增值服务,仅支持16k_zh_en引擎,可支持传入声纹对录音文件内的说话人进行角色认证)
1196
1205
  默认值为 0
1197
1206
 
1198
1207
  注意:
@@ -1445,6 +1454,23 @@ class CreateRecTaskRequest(AbstractModel):
1445
1454
  def ReplaceTextId(self, ReplaceTextId):
1446
1455
  self._ReplaceTextId = ReplaceTextId
1447
1456
 
1457
+ @property
1458
+ def SpeakerRoles(self):
1459
+ r"""开启角色分离能力
1460
+ 配合SpeakerDiarization: 3 使用,ASR增值服务,可传入一组声纹信息进行角色认证,仅支持16k_zh_en引擎。
1461
+ 需传入SpeakerRoleInfo数据组,确定说话人的角色信息,涉及RoleAudioUrl和RoleName两个参数。
1462
+ RoleAudioUrl:需要认证角色的声纹音频地址,建议30s内的纯净人声,最长不能超过45s。
1463
+ RoleName:需要认证角色的名称,若匹配成功,会替换话者分离中的SpeakerID。
1464
+ 示例:
1465
+ "{\"EngineModelType\":\"16k_zh_en\",\"ChannelNum\":1,\"ResTextFormat\":1,\"SourceType\":0,\"Url\":\"需要进行ASR识别的音频链接\",\"SpeakerDiarization\":3,\"SpeakerRoles\":[{\"RoleAudioUrl\":\"需要认证角色的声纹音频地址\",\"RoleName\":\"需要认证角色的名称\"}]}"
1466
+ :rtype: list of SpeakerRoleInfo
1467
+ """
1468
+ return self._SpeakerRoles
1469
+
1470
+ @SpeakerRoles.setter
1471
+ def SpeakerRoles(self, SpeakerRoles):
1472
+ self._SpeakerRoles = SpeakerRoles
1473
+
1448
1474
 
1449
1475
  def _deserialize(self, params):
1450
1476
  self._EngineModelType = params.get("EngineModelType")
@@ -1471,6 +1497,12 @@ class CreateRecTaskRequest(AbstractModel):
1471
1497
  self._HotwordList = params.get("HotwordList")
1472
1498
  self._KeyWordLibIdList = params.get("KeyWordLibIdList")
1473
1499
  self._ReplaceTextId = params.get("ReplaceTextId")
1500
+ if params.get("SpeakerRoles") is not None:
1501
+ self._SpeakerRoles = []
1502
+ for item in params.get("SpeakerRoles"):
1503
+ obj = SpeakerRoleInfo()
1504
+ obj._deserialize(item)
1505
+ self._SpeakerRoles.append(obj)
1474
1506
  memeber_set = set(params.keys())
1475
1507
  for name, value in vars(self).items():
1476
1508
  property_name = name[1:]
@@ -3833,6 +3865,8 @@ hotword_list:临时热词表。每次请求时直接传入临时热词表来
3833
3865
  :type HotwordList: str
3834
3866
  :param _InputSampleRate: 支持pcm格式的8k音频在与引擎采样率不匹配的情况下升采样到16k后识别,能有效提升识别准确率。仅支持:8000。如:传入 8000 ,则pcm音频采样率为8k,当引擎选用16k_zh, 那么该8k采样率的pcm音频可以在16k_zh引擎下正常识别。 注:此参数仅适用于pcm格式音频,不传入值将维持默认状态,即默认调用的引擎采样率等于pcm音频采样率。
3835
3867
  :type InputSampleRate: int
3868
+ :param _ReplaceTextId: 替换词id。用于调用对应的替换词表。
3869
+ :type ReplaceTextId: str
3836
3870
  """
3837
3871
  self._EngSerViceType = None
3838
3872
  self._SourceType = None
@@ -3853,6 +3887,7 @@ hotword_list:临时热词表。每次请求时直接传入临时热词表来
3853
3887
  self._ReinforceHotword = None
3854
3888
  self._HotwordList = None
3855
3889
  self._InputSampleRate = None
3890
+ self._ReplaceTextId = None
3856
3891
 
3857
3892
  @property
3858
3893
  def EngSerViceType(self):
@@ -4115,6 +4150,17 @@ hotword_list:临时热词表。每次请求时直接传入临时热词表来
4115
4150
  def InputSampleRate(self, InputSampleRate):
4116
4151
  self._InputSampleRate = InputSampleRate
4117
4152
 
4153
+ @property
4154
+ def ReplaceTextId(self):
4155
+ r"""替换词id。用于调用对应的替换词表。
4156
+ :rtype: str
4157
+ """
4158
+ return self._ReplaceTextId
4159
+
4160
+ @ReplaceTextId.setter
4161
+ def ReplaceTextId(self, ReplaceTextId):
4162
+ self._ReplaceTextId = ReplaceTextId
4163
+
4118
4164
 
4119
4165
  def _deserialize(self, params):
4120
4166
  self._EngSerViceType = params.get("EngSerViceType")
@@ -4136,6 +4182,7 @@ hotword_list:临时热词表。每次请求时直接传入临时热词表来
4136
4182
  self._ReinforceHotword = params.get("ReinforceHotword")
4137
4183
  self._HotwordList = params.get("HotwordList")
4138
4184
  self._InputSampleRate = params.get("InputSampleRate")
4185
+ self._ReplaceTextId = params.get("ReplaceTextId")
4139
4186
  memeber_set = set(params.keys())
4140
4187
  for name, value in vars(self).items():
4141
4188
  property_name = name[1:]
@@ -4475,6 +4522,57 @@ class SetVocabStateResponse(AbstractModel):
4475
4522
  self._RequestId = params.get("RequestId")
4476
4523
 
4477
4524
 
4525
+ class SpeakerRoleInfo(AbstractModel):
4526
+ r"""说话人注册角色声纹信息
4527
+
4528
+ """
4529
+
4530
+ def __init__(self):
4531
+ r"""
4532
+ :param _RoleAudioUrl: 音频url地址,建议不超过30秒,最大45秒
4533
+ :type RoleAudioUrl: str
4534
+ :param _RoleName: 不超过30字节
4535
+ :type RoleName: str
4536
+ """
4537
+ self._RoleAudioUrl = None
4538
+ self._RoleName = None
4539
+
4540
+ @property
4541
+ def RoleAudioUrl(self):
4542
+ r"""音频url地址,建议不超过30秒,最大45秒
4543
+ :rtype: str
4544
+ """
4545
+ return self._RoleAudioUrl
4546
+
4547
+ @RoleAudioUrl.setter
4548
+ def RoleAudioUrl(self, RoleAudioUrl):
4549
+ self._RoleAudioUrl = RoleAudioUrl
4550
+
4551
+ @property
4552
+ def RoleName(self):
4553
+ r"""不超过30字节
4554
+ :rtype: str
4555
+ """
4556
+ return self._RoleName
4557
+
4558
+ @RoleName.setter
4559
+ def RoleName(self, RoleName):
4560
+ self._RoleName = RoleName
4561
+
4562
+
4563
+ def _deserialize(self, params):
4564
+ self._RoleAudioUrl = params.get("RoleAudioUrl")
4565
+ self._RoleName = params.get("RoleName")
4566
+ memeber_set = set(params.keys())
4567
+ for name, value in vars(self).items():
4568
+ property_name = name[1:]
4569
+ if property_name in memeber_set:
4570
+ memeber_set.remove(property_name)
4571
+ if len(memeber_set) > 0:
4572
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
4573
+
4574
+
4575
+
4478
4576
  class Task(AbstractModel):
4479
4577
  r"""[录音文件识别](https://cloud.tencent.com/document/product/1093/37823#3.-.E8.BE.93.E5.87.BA.E5.8F.82.E6.95.B0)、[实时语音异步识别](https://cloud.tencent.com/document/product/1093/52061#3.-.E8.BE.93.E5.87.BA.E5.8F.82.E6.95.B0)请求的返回数据
4480
4578
 
@@ -1339,7 +1339,7 @@ class AutoscalingClient(AbstractClient):
1339
1339
 
1340
1340
  def SetInstancesProtection(self, request):
1341
1341
  r"""本接口(SetInstancesProtection)用于设置实例保护。
1342
- 实例设置保护之后,当发生不健康替换、报警策略、期望值变更等触发缩容时,将不对此实例缩容操作。
1342
+ 实例设置保护之后,当发生不健康替换、报警策略、期望值变更等自动缩容时,将不对此实例缩容操作;对于 [DetachInstances](https://cloud.tencent.com/document/api/377/20436) 和 [RemoveInstances](https://cloud.tencent.com/document/api/377/20431) 接口,允许指定移出被保护的实例。
1343
1343
 
1344
1344
  :param request: Request instance for SetInstancesProtection.
1345
1345
  :type request: :class:`tencentcloud.autoscaling.v20180419.models.SetInstancesProtectionRequest`
@@ -1088,7 +1088,7 @@ class AutoscalingClient(AbstractClient):
1088
1088
  ) -> models.SetInstancesProtectionResponse:
1089
1089
  """
1090
1090
  本接口(SetInstancesProtection)用于设置实例保护。
1091
- 实例设置保护之后,当发生不健康替换、报警策略、期望值变更等触发缩容时,将不对此实例缩容操作。
1091
+ 实例设置保护之后,当发生不健康替换、报警策略、期望值变更等自动缩容时,将不对此实例缩容操作;对于 [DetachInstances](https://cloud.tencent.com/document/api/377/20436) 和 [RemoveInstances](https://cloud.tencent.com/document/api/377/20431) 接口,允许指定移出被保护的实例。
1092
1092
  """
1093
1093
 
1094
1094
  kwargs = {}