tencentcloud-sdk-python-trtc 3.0.1192__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.1192 → tencentcloud-sdk-python-trtc-3.0.1200}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-trtc-3.0.1192 → tencentcloud-sdk-python-trtc-3.0.1200}/setup.py +1 -1
- {tencentcloud-sdk-python-trtc-3.0.1192 → tencentcloud-sdk-python-trtc-3.0.1200}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-trtc-3.0.1192 → tencentcloud-sdk-python-trtc-3.0.1200}/tencentcloud/trtc/v20190722/models.py +132 -1
- {tencentcloud-sdk-python-trtc-3.0.1192 → tencentcloud-sdk-python-trtc-3.0.1200}/tencentcloud/trtc/v20190722/trtc_client.py +25 -3
- {tencentcloud-sdk-python-trtc-3.0.1192 → 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.1192/tencentcloud_sdk_python_trtc.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-trtc-3.0.1192 → tencentcloud-sdk-python-trtc-3.0.1200}/README.rst +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1192 → tencentcloud-sdk-python-trtc-3.0.1200}/setup.cfg +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1192 → tencentcloud-sdk-python-trtc-3.0.1200}/tencentcloud/trtc/__init__.py +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1192 → tencentcloud-sdk-python-trtc-3.0.1200}/tencentcloud/trtc/v20190722/__init__.py +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1192 → tencentcloud-sdk-python-trtc-3.0.1200}/tencentcloud/trtc/v20190722/errorcodes.py +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1192 → tencentcloud-sdk-python-trtc-3.0.1200}/tencentcloud_sdk_python_trtc.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1192 → tencentcloud-sdk-python-trtc-3.0.1200}/tencentcloud_sdk_python_trtc.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1192 → 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
|
|
|
@@ -9372,7 +9503,7 @@ class StartStreamIngestRequest(AbstractModel):
|
|
|
9372
9503
|
:type UserId: str
|
|
9373
9504
|
:param _UserSig: 输入在线媒体流机器人UserId对应的校验签名,即UserId和UserSig相当于机器人进房的登录密码,具体计算方法请参考TRTC计算[UserSig](https://cloud.tencent.com/document/product/647/45910#UserSig)的方案。
|
|
9374
9505
|
:type UserSig: str
|
|
9375
|
-
:param _StreamUrl: 源流URL
|
|
9506
|
+
:param _StreamUrl: 源流URL【必填】。如果是视频流,分辨率请保持不变。
|
|
9376
9507
|
:type StreamUrl: str
|
|
9377
9508
|
:param _PrivateMapKey: TRTC房间权限加密串,只有在TRTC控制台启用了高级权限控制的时候需要携带,在TRTC控制台如果开启高级权限控制后,TRTC 的后台服务系统会校验一个叫做 [PrivateMapKey] 的“权限票据”,权限票据中包含了一个加密后的 RoomId 和一个加密后的“权限位列表”。由于 PrivateMapKey 中包含 RoomId,所以只提供了 UserSig 没有提供 PrivateMapKey 时,并不能进入指定的房间。
|
|
9378
9509
|
:type PrivateMapKey: str
|
|
@@ -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 房间中的每一路音视频流做单独的录制又或者多路视频画面合流混成一路。
|
|
@@ -1283,9 +1306,8 @@ class TrtcClient(AbstractClient):
|
|
|
1283
1306
|
|
|
1284
1307
|
|
|
1285
1308
|
def StartStreamIngest(self, request):
|
|
1286
|
-
"""将一个在线媒体流推到TRTC
|
|
1287
|
-
|
|
1288
|
-
)
|
|
1309
|
+
"""将一个在线媒体流推到TRTC房间,更多功能说明见[输入媒体流进房](https://cloud.tencent.com/document/product/647/102957#50940aad-d90f-4473-9f46-d5dd46917653)。
|
|
1310
|
+
使用输入在线媒体流功能需先订阅 [尊享版或旗舰版套餐包](https://cloud.tencent.com/document/product/647/85386) 解锁能力位。
|
|
1289
1311
|
|
|
1290
1312
|
:param request: Request instance for StartStreamIngest.
|
|
1291
1313
|
:type request: :class:`tencentcloud.trtc.v20190722.models.StartStreamIngestRequest`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1200
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1192
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|