tencentcloud-sdk-python-trtc 3.0.1199__py2.py3-none-any.whl → 3.0.1200__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.1199'
17
+ __version__ = '3.0.1200'
@@ -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 房间中的每一路音视频流做单独的录制又或者多路视频画面合流混成一路。
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-trtc
3
- Version: 3.0.1199
3
+ Version: 3.0.1200
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.1199)
18
+ Requires-Dist: tencentcloud-sdk-python-common (==3.0.1200)
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1,10 @@
1
+ tencentcloud/__init__.py,sha256=LV7dD3w8_eAWPQPV0aZwkId8tqGsZLCg3ws-WkKlh9w,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=K4q7UWQkdedEyrQJFz67cH3xzyKo78PS0EseWry0JXo,10898
5
+ tencentcloud/trtc/v20190722/models.py,sha256=KrysycUo7ahHhg2n8Y1x_SQLHYQDVbG_Z5EdmHuMgSM,389149
6
+ tencentcloud/trtc/v20190722/trtc_client.py,sha256=7Ay7ASGAANlaL8eS1hhHM_4ULDH1xyWjgUPrpJV6IFM,89174
7
+ tencentcloud_sdk_python_trtc-3.0.1200.dist-info/METADATA,sha256=Kl8UJCHduzn_e11yOvceCpOU5PqUJZ24fOkQcFn8TFw,1497
8
+ tencentcloud_sdk_python_trtc-3.0.1200.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
9
+ tencentcloud_sdk_python_trtc-3.0.1200.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
10
+ tencentcloud_sdk_python_trtc-3.0.1200.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- tencentcloud/__init__.py,sha256=uFrFM8sUSYsLwBxWhKaYYBrr5J_CFIgJ4jMYQoieT_k,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=K4q7UWQkdedEyrQJFz67cH3xzyKo78PS0EseWry0JXo,10898
5
- tencentcloud/trtc/v20190722/models.py,sha256=FmIDZpKXHZ0A1MGHEKMSMw5AhS8kFVYygYRIYwdCH-M,385436
6
- tencentcloud/trtc/v20190722/trtc_client.py,sha256=ZQTZDqcrIEAvi2AxxnciId-HHZQ595o3NmMGbZQ2HlE,88258
7
- tencentcloud_sdk_python_trtc-3.0.1199.dist-info/METADATA,sha256=D9ZhTsamPlafEprm5diDZFYb5HKZj_5jCG2rbOtafWA,1497
8
- tencentcloud_sdk_python_trtc-3.0.1199.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
9
- tencentcloud_sdk_python_trtc-3.0.1199.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
10
- tencentcloud_sdk_python_trtc-3.0.1199.dist-info/RECORD,,