tencentcloud-sdk-python-trtc 3.0.1399__py2.py3-none-any.whl → 3.0.1406__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-trtc might be problematic. Click here for more details.

tencentcloud/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1399'
17
+ __version__ = '3.0.1406'
@@ -161,6 +161,9 @@ INVALIDPARAMETER_INVALIDAUDIOINPUT = 'InvalidParameter.InvalidAudioInput'
161
161
  # invalid sdkAppId
162
162
  INVALIDPARAMETER_INVALIDSDKAPPID = 'InvalidParameter.InvalidSdkAppId'
163
163
 
164
+ # VoicePrintIdList 不能为空,也不能过长。
165
+ INVALIDPARAMETER_INVALIDVOICEPRINTIDLIST = 'InvalidParameter.InvalidVoicePrintIdList'
166
+
164
167
  # 大画面居右显示参数错误。
165
168
  INVALIDPARAMETER_MAINVIDEORIGHTALIGN = 'InvalidParameter.MainVideoRightAlign'
166
169
 
@@ -296,8 +299,8 @@ MISSINGPARAMETER_ENCODEPARAMS = 'MissingParameter.EncodeParams'
296
299
  # 缺少endTS_s参数。
297
300
  MISSINGPARAMETER_ENDTS = 'MissingParameter.EndTs'
298
301
 
299
- # 缺少VoicePrintIdList 参数。
300
- MISSINGPARAMETER_MISSINGVOICEPRINTIDLIST = 'MissingParameter.MissingVoicePrintIdList'
302
+ # 更新声纹时,Audio,AudioName,AudioMetaInfo不能都为空。
303
+ MISSINGPARAMETER_MISSINGVOICEPRINTUPDATEPARAMS = 'MissingParameter.MissingVoicePrintUpdateParams'
301
304
 
302
305
  # 缺少OutputParams参数。
303
306
  MISSINGPARAMETER_OUTPUTPARAMS = 'MissingParameter.OutputParams'
@@ -211,6 +211,8 @@ class AgentConfig(AbstractModel):
211
211
  :type AmbientSound: :class:`tencentcloud.trtc.v20190722.models.AmbientSound`
212
212
  :param _VoicePrint: 声纹配置
213
213
  :type VoicePrint: :class:`tencentcloud.trtc.v20190722.models.VoicePrint`
214
+ :param _TurnDetection: 语义断句检测
215
+ :type TurnDetection: :class:`tencentcloud.trtc.v20190722.models.TurnDetection`
214
216
  """
215
217
  self._UserId = None
216
218
  self._UserSig = None
@@ -225,6 +227,7 @@ class AgentConfig(AbstractModel):
225
227
  self._FilterBracketsContent = None
226
228
  self._AmbientSound = None
227
229
  self._VoicePrint = None
230
+ self._TurnDetection = None
228
231
 
229
232
  @property
230
233
  def UserId(self):
@@ -377,6 +380,17 @@ class AgentConfig(AbstractModel):
377
380
  def VoicePrint(self, VoicePrint):
378
381
  self._VoicePrint = VoicePrint
379
382
 
383
+ @property
384
+ def TurnDetection(self):
385
+ """语义断句检测
386
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.TurnDetection`
387
+ """
388
+ return self._TurnDetection
389
+
390
+ @TurnDetection.setter
391
+ def TurnDetection(self, TurnDetection):
392
+ self._TurnDetection = TurnDetection
393
+
380
394
 
381
395
  def _deserialize(self, params):
382
396
  self._UserId = params.get("UserId")
@@ -396,6 +410,9 @@ class AgentConfig(AbstractModel):
396
410
  if params.get("VoicePrint") is not None:
397
411
  self._VoicePrint = VoicePrint()
398
412
  self._VoicePrint._deserialize(params.get("VoicePrint"))
413
+ if params.get("TurnDetection") is not None:
414
+ self._TurnDetection = TurnDetection()
415
+ self._TurnDetection._deserialize(params.get("TurnDetection"))
399
416
  memeber_set = set(params.keys())
400
417
  for name, value in vars(self).items():
401
418
  property_name = name[1:]
@@ -474,7 +491,7 @@ class AgentParams(AbstractModel):
474
491
 
475
492
  class AmbientSound(AbstractModel):
476
493
  """背景音设置,将在通话中添加环境音效,使体验更加逼真。目前支持以下选项:
477
- coffee_shop: 咖啡店氛围,背景中有人聊天。
494
+ coffee_shops: 咖啡店氛围,背景中有人聊天。
478
495
  busy_office: 客服中心
479
496
  street_traffic: 户外街道
480
497
  evening_mountain: 户外山林
@@ -10803,7 +10820,7 @@ class RegisterVoicePrintRequest(AbstractModel):
10803
10820
 
10804
10821
  def __init__(self):
10805
10822
  r"""
10806
- :param _Audio: 整个wav音频文件的base64字符串,其中wav文件限定为16k或8k采样率, 16bit位深, 单声道, 8到18秒有效音频时长,编码数据大小不超过2M
10823
+ :param _Audio: 整个wav音频文件的base64字符串,其中wav文件限定为16k采样率, 16bit位深, 单声道, 8到18秒音频时长,有效音频不小于6秒(不能有太多静音段),编码数据大小不超过2M
10807
10824
  :type Audio: str
10808
10825
  :param _ReqTimestamp: 毫秒时间戳
10809
10826
  :type ReqTimestamp: int
@@ -10822,7 +10839,7 @@ class RegisterVoicePrintRequest(AbstractModel):
10822
10839
 
10823
10840
  @property
10824
10841
  def Audio(self):
10825
- """整个wav音频文件的base64字符串,其中wav文件限定为16k或8k采样率, 16bit位深, 单声道, 8到18秒有效音频时长,编码数据大小不超过2M
10842
+ """整个wav音频文件的base64字符串,其中wav文件限定为16k采样率, 16bit位深, 单声道, 8到18秒音频时长,有效音频不小于6秒(不能有太多静音段),编码数据大小不超过2M
10826
10843
  :rtype: str
10827
10844
  """
10828
10845
  return self._Audio
@@ -14942,6 +14959,76 @@ class TrtcUsage(AbstractModel):
14942
14959
 
14943
14960
 
14944
14961
 
14962
+ class TurnDetection(AbstractModel):
14963
+ """断句配置
14964
+
14965
+ """
14966
+
14967
+ def __init__(self):
14968
+ r"""
14969
+ :param _SemanticEagerness: TurnDetectionMode为3时生效,语义断句的灵敏程度
14970
+
14971
+
14972
+ 功能简介:根据用户所说的话来判断其已完成发言来分割音频
14973
+
14974
+
14975
+ 可选: "low" | "medium" | "high" | "auto"
14976
+
14977
+
14978
+ auto 是默认值,与 medium 相同。
14979
+ low 将让用户有足够的时间说话。
14980
+ high 将尽快对音频进行分块。
14981
+
14982
+
14983
+ 如果您希望模型在对话模式下更频繁地响应,可以将 SemanticEagerness 设置为 high
14984
+ 如果您希望在用户停顿时,AI能够等待片刻,可以将 SemanticEagerness 设置为 low
14985
+ 无论什么模式,最终都会分割送个大模型进行回复
14986
+
14987
+ :type SemanticEagerness: str
14988
+ """
14989
+ self._SemanticEagerness = None
14990
+
14991
+ @property
14992
+ def SemanticEagerness(self):
14993
+ """TurnDetectionMode为3时生效,语义断句的灵敏程度
14994
+
14995
+
14996
+ 功能简介:根据用户所说的话来判断其已完成发言来分割音频
14997
+
14998
+
14999
+ 可选: "low" | "medium" | "high" | "auto"
15000
+
15001
+
15002
+ auto 是默认值,与 medium 相同。
15003
+ low 将让用户有足够的时间说话。
15004
+ high 将尽快对音频进行分块。
15005
+
15006
+
15007
+ 如果您希望模型在对话模式下更频繁地响应,可以将 SemanticEagerness 设置为 high
15008
+ 如果您希望在用户停顿时,AI能够等待片刻,可以将 SemanticEagerness 设置为 low
15009
+ 无论什么模式,最终都会分割送个大模型进行回复
15010
+
15011
+ :rtype: str
15012
+ """
15013
+ return self._SemanticEagerness
15014
+
15015
+ @SemanticEagerness.setter
15016
+ def SemanticEagerness(self, SemanticEagerness):
15017
+ self._SemanticEagerness = SemanticEagerness
15018
+
15019
+
15020
+ def _deserialize(self, params):
15021
+ self._SemanticEagerness = params.get("SemanticEagerness")
15022
+ memeber_set = set(params.keys())
15023
+ for name, value in vars(self).items():
15024
+ property_name = name[1:]
15025
+ if property_name in memeber_set:
15026
+ memeber_set.remove(property_name)
15027
+ if len(memeber_set) > 0:
15028
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
15029
+
15030
+
15031
+
14945
15032
  class UpdateAIConversationRequest(AbstractModel):
14946
15033
  """UpdateAIConversation请求参数结构体
14947
15034
 
@@ -15467,7 +15554,7 @@ class UpdateVoicePrintRequest(AbstractModel):
15467
15554
  :type ReqTimestamp: int
15468
15555
  :param _AudioFormat: 音频格式,目前只支持0,代表wav
15469
15556
  :type AudioFormat: int
15470
- :param _Audio: 整个wav音频文件的base64字符串,其中wav文件限定为16k或8k采样率, 16bit位深, 单声道, 8到18秒有效音频时长,编码数据大小不超过2M
15557
+ :param _Audio: 整个wav音频文件的base64字符串,其中wav文件限定为16k采样率, 16bit位深, 单声道, 8到18秒音频时长,有效音频不小于6秒(不能有太多静音段),编码数据大小不超过2M
15471
15558
  :type Audio: str
15472
15559
  :param _AudioMetaInfo: 和声纹绑定的MetaInfo,长度最大不超过512
15473
15560
  :type AudioMetaInfo: str
@@ -15513,7 +15600,7 @@ class UpdateVoicePrintRequest(AbstractModel):
15513
15600
 
15514
15601
  @property
15515
15602
  def Audio(self):
15516
- """整个wav音频文件的base64字符串,其中wav文件限定为16k或8k采样率, 16bit位深, 单声道, 8到18秒有效音频时长,编码数据大小不超过2M
15603
+ """整个wav音频文件的base64字符串,其中wav文件限定为16k采样率, 16bit位深, 单声道, 8到18秒音频时长,有效音频不小于6秒(不能有太多静音段),编码数据大小不超过2M
15517
15604
  :rtype: str
15518
15605
  """
15519
15606
  return self._Audio
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-trtc
3
- Version: 3.0.1399
3
+ Version: 3.0.1406
4
4
  Summary: Tencent Cloud Trtc SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common (==3.0.1399)
18
+ Requires-Dist: tencentcloud-sdk-python-common (==3.0.1406)
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1,10 @@
1
+ tencentcloud/__init__.py,sha256=GMxEk0whnix5vfIuAxf5bkBfJ-D1uc592YQ6xSAXmRA,631
2
+ tencentcloud/trtc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ tencentcloud/trtc/v20190722/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ tencentcloud/trtc/v20190722/errorcodes.py,sha256=p8nnSmWbd2IoGYa5x5ZKKLfKJpfSZdz9so867X4eCQ8,12729
5
+ tencentcloud/trtc/v20190722/models.py,sha256=eeG4Q_pQef4yITKdRkpqNeh8rk6WGSNN-PkEwJWvjqM,598385
6
+ tencentcloud/trtc/v20190722/trtc_client.py,sha256=AmejLPaS3rkN-Ne2p-L9gvp1d3fH8xeiUWC19wA6pmA,82726
7
+ tencentcloud_sdk_python_trtc-3.0.1406.dist-info/METADATA,sha256=V74wHPk2yYlM3REiJghZAHNGaCV1AIkdkmaJsbIAU2I,1501
8
+ tencentcloud_sdk_python_trtc-3.0.1406.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
9
+ tencentcloud_sdk_python_trtc-3.0.1406.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
10
+ tencentcloud_sdk_python_trtc-3.0.1406.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- tencentcloud/__init__.py,sha256=kaJ4RLABKUDPGJ_CtVSweAM5EoAMaNah4Yi_sOIqO94,631
2
- tencentcloud/trtc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- tencentcloud/trtc/v20190722/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- tencentcloud/trtc/v20190722/errorcodes.py,sha256=lO_GGH57TUbftmZdfGTEyrPGIj9kxfdinB_SKUy8HmY,12546
5
- tencentcloud/trtc/v20190722/models.py,sha256=NjUQAY_jk_LmxgMqLqd3XTg1U0uLRd8epz4fNkIqTeI,595447
6
- tencentcloud/trtc/v20190722/trtc_client.py,sha256=AmejLPaS3rkN-Ne2p-L9gvp1d3fH8xeiUWC19wA6pmA,82726
7
- tencentcloud_sdk_python_trtc-3.0.1399.dist-info/METADATA,sha256=Fqvzswa86tTDRfy7u4oX4C_phrDBCn5w0XA813M1aws,1501
8
- tencentcloud_sdk_python_trtc-3.0.1399.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
9
- tencentcloud_sdk_python_trtc-3.0.1399.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
10
- tencentcloud_sdk_python_trtc-3.0.1399.dist-info/RECORD,,