tencentcloud-sdk-python-trtc 3.0.1425__py2.py3-none-any.whl → 3.0.1436__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 +1 -1
- tencentcloud/trtc/v20190722/models.py +89 -6
- {tencentcloud_sdk_python_trtc-3.0.1425.dist-info → tencentcloud_sdk_python_trtc-3.0.1436.dist-info}/METADATA +2 -2
- tencentcloud_sdk_python_trtc-3.0.1436.dist-info/RECORD +10 -0
- tencentcloud_sdk_python_trtc-3.0.1425.dist-info/RECORD +0 -10
- {tencentcloud_sdk_python_trtc-3.0.1425.dist-info → tencentcloud_sdk_python_trtc-3.0.1436.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_trtc-3.0.1425.dist-info → tencentcloud_sdk_python_trtc-3.0.1436.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -213,6 +213,10 @@ class AgentConfig(AbstractModel):
|
|
|
213
213
|
:type VoicePrint: :class:`tencentcloud.trtc.v20190722.models.VoicePrint`
|
|
214
214
|
:param _TurnDetection: 语义断句检测
|
|
215
215
|
:type TurnDetection: :class:`tencentcloud.trtc.v20190722.models.TurnDetection`
|
|
216
|
+
:param _SubtitleMode: 机器人字幕显示模式。
|
|
217
|
+
- 0表示尽快显示,不会和音频播放进行同步。此时字幕全量下发,后面的字幕会包含前面的字幕。
|
|
218
|
+
- 1表示句子级别的实时显示,会和音频播放进行同步,只有当前句子对应的音频播放完后,下一条字幕才会下发。此时字幕增量下发,端上需要把前后的字幕进行拼接才是完整字幕。
|
|
219
|
+
:type SubtitleMode: int
|
|
216
220
|
"""
|
|
217
221
|
self._UserId = None
|
|
218
222
|
self._UserSig = None
|
|
@@ -228,6 +232,7 @@ class AgentConfig(AbstractModel):
|
|
|
228
232
|
self._AmbientSound = None
|
|
229
233
|
self._VoicePrint = None
|
|
230
234
|
self._TurnDetection = None
|
|
235
|
+
self._SubtitleMode = None
|
|
231
236
|
|
|
232
237
|
@property
|
|
233
238
|
def UserId(self):
|
|
@@ -391,6 +396,19 @@ class AgentConfig(AbstractModel):
|
|
|
391
396
|
def TurnDetection(self, TurnDetection):
|
|
392
397
|
self._TurnDetection = TurnDetection
|
|
393
398
|
|
|
399
|
+
@property
|
|
400
|
+
def SubtitleMode(self):
|
|
401
|
+
"""机器人字幕显示模式。
|
|
402
|
+
- 0表示尽快显示,不会和音频播放进行同步。此时字幕全量下发,后面的字幕会包含前面的字幕。
|
|
403
|
+
- 1表示句子级别的实时显示,会和音频播放进行同步,只有当前句子对应的音频播放完后,下一条字幕才会下发。此时字幕增量下发,端上需要把前后的字幕进行拼接才是完整字幕。
|
|
404
|
+
:rtype: int
|
|
405
|
+
"""
|
|
406
|
+
return self._SubtitleMode
|
|
407
|
+
|
|
408
|
+
@SubtitleMode.setter
|
|
409
|
+
def SubtitleMode(self, SubtitleMode):
|
|
410
|
+
self._SubtitleMode = SubtitleMode
|
|
411
|
+
|
|
394
412
|
|
|
395
413
|
def _deserialize(self, params):
|
|
396
414
|
self._UserId = params.get("UserId")
|
|
@@ -413,6 +431,7 @@ class AgentConfig(AbstractModel):
|
|
|
413
431
|
if params.get("TurnDetection") is not None:
|
|
414
432
|
self._TurnDetection = TurnDetection()
|
|
415
433
|
self._TurnDetection._deserialize(params.get("TurnDetection"))
|
|
434
|
+
self._SubtitleMode = params.get("SubtitleMode")
|
|
416
435
|
memeber_set = set(params.keys())
|
|
417
436
|
for name, value in vars(self).items():
|
|
418
437
|
property_name = name[1:]
|
|
@@ -1401,16 +1420,17 @@ class ControlAIConversationRequest(AbstractModel):
|
|
|
1401
1420
|
r"""
|
|
1402
1421
|
:param _TaskId: 任务唯一标识
|
|
1403
1422
|
:type TaskId: str
|
|
1404
|
-
:param _Command:
|
|
1405
|
-
|
|
1406
|
-
- ServerPushText,服务端发送文本给AI机器人,AI机器人会播报该文本
|
|
1423
|
+
:param _Command: 控制命令,目前支持命令如下:- ServerPushText,服务端发送文本给AI机器人,AI机器人会播报该文本. - InvokeLLM,服务端发送文本给大模型,触发对话
|
|
1407
1424
|
:type Command: str
|
|
1408
1425
|
:param _ServerPushText: 服务端发送播报文本命令,当Command为ServerPushText时必填
|
|
1409
1426
|
:type ServerPushText: :class:`tencentcloud.trtc.v20190722.models.ServerPushText`
|
|
1427
|
+
:param _InvokeLLM: 服务端发送命令主动请求大模型,当Command为InvokeLLM时会把content请求到大模型,头部增加X-Invoke-LLM="1"
|
|
1428
|
+
:type InvokeLLM: :class:`tencentcloud.trtc.v20190722.models.InvokeLLM`
|
|
1410
1429
|
"""
|
|
1411
1430
|
self._TaskId = None
|
|
1412
1431
|
self._Command = None
|
|
1413
1432
|
self._ServerPushText = None
|
|
1433
|
+
self._InvokeLLM = None
|
|
1414
1434
|
|
|
1415
1435
|
@property
|
|
1416
1436
|
def TaskId(self):
|
|
@@ -1425,9 +1445,7 @@ class ControlAIConversationRequest(AbstractModel):
|
|
|
1425
1445
|
|
|
1426
1446
|
@property
|
|
1427
1447
|
def Command(self):
|
|
1428
|
-
"""
|
|
1429
|
-
|
|
1430
|
-
- ServerPushText,服务端发送文本给AI机器人,AI机器人会播报该文本
|
|
1448
|
+
"""控制命令,目前支持命令如下:- ServerPushText,服务端发送文本给AI机器人,AI机器人会播报该文本. - InvokeLLM,服务端发送文本给大模型,触发对话
|
|
1431
1449
|
:rtype: str
|
|
1432
1450
|
"""
|
|
1433
1451
|
return self._Command
|
|
@@ -1447,6 +1465,17 @@ class ControlAIConversationRequest(AbstractModel):
|
|
|
1447
1465
|
def ServerPushText(self, ServerPushText):
|
|
1448
1466
|
self._ServerPushText = ServerPushText
|
|
1449
1467
|
|
|
1468
|
+
@property
|
|
1469
|
+
def InvokeLLM(self):
|
|
1470
|
+
"""服务端发送命令主动请求大模型,当Command为InvokeLLM时会把content请求到大模型,头部增加X-Invoke-LLM="1"
|
|
1471
|
+
:rtype: :class:`tencentcloud.trtc.v20190722.models.InvokeLLM`
|
|
1472
|
+
"""
|
|
1473
|
+
return self._InvokeLLM
|
|
1474
|
+
|
|
1475
|
+
@InvokeLLM.setter
|
|
1476
|
+
def InvokeLLM(self, InvokeLLM):
|
|
1477
|
+
self._InvokeLLM = InvokeLLM
|
|
1478
|
+
|
|
1450
1479
|
|
|
1451
1480
|
def _deserialize(self, params):
|
|
1452
1481
|
self._TaskId = params.get("TaskId")
|
|
@@ -1454,6 +1483,9 @@ class ControlAIConversationRequest(AbstractModel):
|
|
|
1454
1483
|
if params.get("ServerPushText") is not None:
|
|
1455
1484
|
self._ServerPushText = ServerPushText()
|
|
1456
1485
|
self._ServerPushText._deserialize(params.get("ServerPushText"))
|
|
1486
|
+
if params.get("InvokeLLM") is not None:
|
|
1487
|
+
self._InvokeLLM = InvokeLLM()
|
|
1488
|
+
self._InvokeLLM._deserialize(params.get("InvokeLLM"))
|
|
1457
1489
|
memeber_set = set(params.keys())
|
|
1458
1490
|
for name, value in vars(self).items():
|
|
1459
1491
|
property_name = name[1:]
|
|
@@ -7815,6 +7847,57 @@ class EventMessage(AbstractModel):
|
|
|
7815
7847
|
|
|
7816
7848
|
|
|
7817
7849
|
|
|
7850
|
+
class InvokeLLM(AbstractModel):
|
|
7851
|
+
"""调用服务端主动发起请求到LLM
|
|
7852
|
+
|
|
7853
|
+
"""
|
|
7854
|
+
|
|
7855
|
+
def __init__(self):
|
|
7856
|
+
r"""
|
|
7857
|
+
:param _Content: 请求LLM的内容
|
|
7858
|
+
:type Content: str
|
|
7859
|
+
:param _Interrupt: 是否允许该文本打断机器人说话
|
|
7860
|
+
:type Interrupt: bool
|
|
7861
|
+
"""
|
|
7862
|
+
self._Content = None
|
|
7863
|
+
self._Interrupt = None
|
|
7864
|
+
|
|
7865
|
+
@property
|
|
7866
|
+
def Content(self):
|
|
7867
|
+
"""请求LLM的内容
|
|
7868
|
+
:rtype: str
|
|
7869
|
+
"""
|
|
7870
|
+
return self._Content
|
|
7871
|
+
|
|
7872
|
+
@Content.setter
|
|
7873
|
+
def Content(self, Content):
|
|
7874
|
+
self._Content = Content
|
|
7875
|
+
|
|
7876
|
+
@property
|
|
7877
|
+
def Interrupt(self):
|
|
7878
|
+
"""是否允许该文本打断机器人说话
|
|
7879
|
+
:rtype: bool
|
|
7880
|
+
"""
|
|
7881
|
+
return self._Interrupt
|
|
7882
|
+
|
|
7883
|
+
@Interrupt.setter
|
|
7884
|
+
def Interrupt(self, Interrupt):
|
|
7885
|
+
self._Interrupt = Interrupt
|
|
7886
|
+
|
|
7887
|
+
|
|
7888
|
+
def _deserialize(self, params):
|
|
7889
|
+
self._Content = params.get("Content")
|
|
7890
|
+
self._Interrupt = params.get("Interrupt")
|
|
7891
|
+
memeber_set = set(params.keys())
|
|
7892
|
+
for name, value in vars(self).items():
|
|
7893
|
+
property_name = name[1:]
|
|
7894
|
+
if property_name in memeber_set:
|
|
7895
|
+
memeber_set.remove(property_name)
|
|
7896
|
+
if len(memeber_set) > 0:
|
|
7897
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
7898
|
+
|
|
7899
|
+
|
|
7900
|
+
|
|
7818
7901
|
class LayoutParams(AbstractModel):
|
|
7819
7902
|
"""MCU混流布局参数
|
|
7820
7903
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-trtc
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.1436
|
|
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 (<4.0.0,>=3.0.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common (<4.0.0,>=3.0.1436)
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
tencentcloud/__init__.py,sha256=yGylr5YIhnByBsGQsKQ7Efv97DKtKNa3248OOHO20Iw,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=R03U5XVCYYCIKZb4OgXMhuu9TwegXmM_XbXscYI0LnY,12702
|
|
5
|
+
tencentcloud/trtc/v20190722/models.py,sha256=Asn8yP5JYe34q4t9gJdqo-lVgp7MUQ1M9-bEb5dwzes,676379
|
|
6
|
+
tencentcloud/trtc/v20190722/trtc_client.py,sha256=O-f1BLSvzAPnFZSiyCsu3ia7ZmAqd1W3HPFiJ0atDWY,91503
|
|
7
|
+
tencentcloud_sdk_python_trtc-3.0.1436.dist-info/METADATA,sha256=ZuwR75QB9Tvyh2_TNeSK3S1WL2rgJypEI771HTPu3YY,1508
|
|
8
|
+
tencentcloud_sdk_python_trtc-3.0.1436.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
|
9
|
+
tencentcloud_sdk_python_trtc-3.0.1436.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
10
|
+
tencentcloud_sdk_python_trtc-3.0.1436.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
tencentcloud/__init__.py,sha256=P-yWjZUVYjJ2OzOXka6_js8vKz6taTctRl6AFDhVcRc,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=R03U5XVCYYCIKZb4OgXMhuu9TwegXmM_XbXscYI0LnY,12702
|
|
5
|
-
tencentcloud/trtc/v20190722/models.py,sha256=teoQSoteWBpBIN8YJxrbjZ1T9TgslkG58mVpo7SWooI,672949
|
|
6
|
-
tencentcloud/trtc/v20190722/trtc_client.py,sha256=O-f1BLSvzAPnFZSiyCsu3ia7ZmAqd1W3HPFiJ0atDWY,91503
|
|
7
|
-
tencentcloud_sdk_python_trtc-3.0.1425.dist-info/METADATA,sha256=6BBNulKjuFK6eouzfkLnvTAoqV4nzIJKFavb9ZGjM1Y,1508
|
|
8
|
-
tencentcloud_sdk_python_trtc-3.0.1425.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
|
9
|
-
tencentcloud_sdk_python_trtc-3.0.1425.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
10
|
-
tencentcloud_sdk_python_trtc-3.0.1425.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|