tencentcloud-sdk-python-trtc 3.0.1195__tar.gz → 3.0.1200__tar.gz
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-sdk-python-trtc-3.0.1195 → tencentcloud-sdk-python-trtc-3.0.1200}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-trtc-3.0.1195 → tencentcloud-sdk-python-trtc-3.0.1200}/setup.py +1 -1
- {tencentcloud-sdk-python-trtc-3.0.1195 → tencentcloud-sdk-python-trtc-3.0.1200}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-trtc-3.0.1195 → tencentcloud-sdk-python-trtc-3.0.1200}/tencentcloud/trtc/v20190722/models.py +131 -0
- {tencentcloud-sdk-python-trtc-3.0.1195 → tencentcloud-sdk-python-trtc-3.0.1200}/tencentcloud/trtc/v20190722/trtc_client.py +23 -0
- {tencentcloud-sdk-python-trtc-3.0.1195 → tencentcloud-sdk-python-trtc-3.0.1200}/tencentcloud_sdk_python_trtc.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-trtc-3.0.1200/tencentcloud_sdk_python_trtc.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-trtc-3.0.1195/tencentcloud_sdk_python_trtc.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-trtc-3.0.1195 → tencentcloud-sdk-python-trtc-3.0.1200}/README.rst +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1195 → tencentcloud-sdk-python-trtc-3.0.1200}/setup.cfg +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1195 → tencentcloud-sdk-python-trtc-3.0.1200}/tencentcloud/trtc/__init__.py +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1195 → tencentcloud-sdk-python-trtc-3.0.1200}/tencentcloud/trtc/v20190722/__init__.py +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1195 → tencentcloud-sdk-python-trtc-3.0.1200}/tencentcloud/trtc/v20190722/errorcodes.py +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1195 → tencentcloud-sdk-python-trtc-3.0.1200}/tencentcloud_sdk_python_trtc.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1195 → tencentcloud-sdk-python-trtc-3.0.1200}/tencentcloud_sdk_python_trtc.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1195 → tencentcloud-sdk-python-trtc-3.0.1200}/tencentcloud_sdk_python_trtc.egg-info/top_level.txt +0 -0
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-trtc',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common==3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1200"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Trtc SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -621,6 +621,92 @@ class CloudVod(AbstractModel):
|
|
|
621
621
|
|
|
622
622
|
|
|
623
623
|
|
|
624
|
+
class ControlAIConversationRequest(AbstractModel):
|
|
625
|
+
"""ControlAIConversation请求参数结构体
|
|
626
|
+
|
|
627
|
+
"""
|
|
628
|
+
|
|
629
|
+
def __init__(self):
|
|
630
|
+
r"""
|
|
631
|
+
:param _TaskId: 任务唯一标识
|
|
632
|
+
:type TaskId: str
|
|
633
|
+
:param _Command: 控制命令,目前支持命令如下:
|
|
634
|
+
|
|
635
|
+
- ServerPushText,服务端发送文本给AI机器人,AI机器人会播报该文本
|
|
636
|
+
:type Command: str
|
|
637
|
+
:param _ServerPushText: 服务端发送播报文本命令,当Command为ServerPushText时必填
|
|
638
|
+
:type ServerPushText: :class:`tencentcloud.trtc.v20190722.models.ServerPushText`
|
|
639
|
+
"""
|
|
640
|
+
self._TaskId = None
|
|
641
|
+
self._Command = None
|
|
642
|
+
self._ServerPushText = None
|
|
643
|
+
|
|
644
|
+
@property
|
|
645
|
+
def TaskId(self):
|
|
646
|
+
return self._TaskId
|
|
647
|
+
|
|
648
|
+
@TaskId.setter
|
|
649
|
+
def TaskId(self, TaskId):
|
|
650
|
+
self._TaskId = TaskId
|
|
651
|
+
|
|
652
|
+
@property
|
|
653
|
+
def Command(self):
|
|
654
|
+
return self._Command
|
|
655
|
+
|
|
656
|
+
@Command.setter
|
|
657
|
+
def Command(self, Command):
|
|
658
|
+
self._Command = Command
|
|
659
|
+
|
|
660
|
+
@property
|
|
661
|
+
def ServerPushText(self):
|
|
662
|
+
return self._ServerPushText
|
|
663
|
+
|
|
664
|
+
@ServerPushText.setter
|
|
665
|
+
def ServerPushText(self, ServerPushText):
|
|
666
|
+
self._ServerPushText = ServerPushText
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
def _deserialize(self, params):
|
|
670
|
+
self._TaskId = params.get("TaskId")
|
|
671
|
+
self._Command = params.get("Command")
|
|
672
|
+
if params.get("ServerPushText") is not None:
|
|
673
|
+
self._ServerPushText = ServerPushText()
|
|
674
|
+
self._ServerPushText._deserialize(params.get("ServerPushText"))
|
|
675
|
+
memeber_set = set(params.keys())
|
|
676
|
+
for name, value in vars(self).items():
|
|
677
|
+
property_name = name[1:]
|
|
678
|
+
if property_name in memeber_set:
|
|
679
|
+
memeber_set.remove(property_name)
|
|
680
|
+
if len(memeber_set) > 0:
|
|
681
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
class ControlAIConversationResponse(AbstractModel):
|
|
686
|
+
"""ControlAIConversation返回参数结构体
|
|
687
|
+
|
|
688
|
+
"""
|
|
689
|
+
|
|
690
|
+
def __init__(self):
|
|
691
|
+
r"""
|
|
692
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
693
|
+
:type RequestId: str
|
|
694
|
+
"""
|
|
695
|
+
self._RequestId = None
|
|
696
|
+
|
|
697
|
+
@property
|
|
698
|
+
def RequestId(self):
|
|
699
|
+
return self._RequestId
|
|
700
|
+
|
|
701
|
+
@RequestId.setter
|
|
702
|
+
def RequestId(self, RequestId):
|
|
703
|
+
self._RequestId = RequestId
|
|
704
|
+
|
|
705
|
+
|
|
706
|
+
def _deserialize(self, params):
|
|
707
|
+
self._RequestId = params.get("RequestId")
|
|
708
|
+
|
|
709
|
+
|
|
624
710
|
class CreateCloudRecordingRequest(AbstractModel):
|
|
625
711
|
"""CreateCloudRecording请求参数结构体
|
|
626
712
|
|
|
@@ -8462,6 +8548,51 @@ class SeriesInfos(AbstractModel):
|
|
|
8462
8548
|
|
|
8463
8549
|
|
|
8464
8550
|
|
|
8551
|
+
class ServerPushText(AbstractModel):
|
|
8552
|
+
"""服务端控制AI对话机器人播报指定文本
|
|
8553
|
+
|
|
8554
|
+
"""
|
|
8555
|
+
|
|
8556
|
+
def __init__(self):
|
|
8557
|
+
r"""
|
|
8558
|
+
:param _Text: 服务端推送播报文本
|
|
8559
|
+
:type Text: str
|
|
8560
|
+
:param _Interrupt: 是否允许该文本打断机器人说话
|
|
8561
|
+
:type Interrupt: bool
|
|
8562
|
+
"""
|
|
8563
|
+
self._Text = None
|
|
8564
|
+
self._Interrupt = None
|
|
8565
|
+
|
|
8566
|
+
@property
|
|
8567
|
+
def Text(self):
|
|
8568
|
+
return self._Text
|
|
8569
|
+
|
|
8570
|
+
@Text.setter
|
|
8571
|
+
def Text(self, Text):
|
|
8572
|
+
self._Text = Text
|
|
8573
|
+
|
|
8574
|
+
@property
|
|
8575
|
+
def Interrupt(self):
|
|
8576
|
+
return self._Interrupt
|
|
8577
|
+
|
|
8578
|
+
@Interrupt.setter
|
|
8579
|
+
def Interrupt(self, Interrupt):
|
|
8580
|
+
self._Interrupt = Interrupt
|
|
8581
|
+
|
|
8582
|
+
|
|
8583
|
+
def _deserialize(self, params):
|
|
8584
|
+
self._Text = params.get("Text")
|
|
8585
|
+
self._Interrupt = params.get("Interrupt")
|
|
8586
|
+
memeber_set = set(params.keys())
|
|
8587
|
+
for name, value in vars(self).items():
|
|
8588
|
+
property_name = name[1:]
|
|
8589
|
+
if property_name in memeber_set:
|
|
8590
|
+
memeber_set.remove(property_name)
|
|
8591
|
+
if len(memeber_set) > 0:
|
|
8592
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
8593
|
+
|
|
8594
|
+
|
|
8595
|
+
|
|
8465
8596
|
class SingleSubscribeParams(AbstractModel):
|
|
8466
8597
|
"""单流旁路转推的用户上行信息。
|
|
8467
8598
|
|
|
@@ -26,6 +26,29 @@ class TrtcClient(AbstractClient):
|
|
|
26
26
|
_service = 'trtc'
|
|
27
27
|
|
|
28
28
|
|
|
29
|
+
def ControlAIConversation(self, request):
|
|
30
|
+
"""提供服务端控制机器人的功能
|
|
31
|
+
|
|
32
|
+
:param request: Request instance for ControlAIConversation.
|
|
33
|
+
:type request: :class:`tencentcloud.trtc.v20190722.models.ControlAIConversationRequest`
|
|
34
|
+
:rtype: :class:`tencentcloud.trtc.v20190722.models.ControlAIConversationResponse`
|
|
35
|
+
|
|
36
|
+
"""
|
|
37
|
+
try:
|
|
38
|
+
params = request._serialize()
|
|
39
|
+
headers = request.headers
|
|
40
|
+
body = self.call("ControlAIConversation", params, headers=headers)
|
|
41
|
+
response = json.loads(body)
|
|
42
|
+
model = models.ControlAIConversationResponse()
|
|
43
|
+
model._deserialize(response["Response"])
|
|
44
|
+
return model
|
|
45
|
+
except Exception as e:
|
|
46
|
+
if isinstance(e, TencentCloudSDKException):
|
|
47
|
+
raise
|
|
48
|
+
else:
|
|
49
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
50
|
+
|
|
51
|
+
|
|
29
52
|
def CreateCloudRecording(self, request):
|
|
30
53
|
"""接口说明:
|
|
31
54
|
启动云端录制功能,完成房间内的音视频录制,并上传到指定的云存储。您可以通过此 API 接口把TRTC 房间中的每一路音视频流做单独的录制又或者多路视频画面合流混成一路。
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1200
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1195
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|