tencentcloud-sdk-python-trtc 3.0.1384__tar.gz → 3.0.1386__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.1384 → tencentcloud-sdk-python-trtc-3.0.1386}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-trtc-3.0.1384 → tencentcloud-sdk-python-trtc-3.0.1386}/setup.py +1 -1
- {tencentcloud-sdk-python-trtc-3.0.1384 → tencentcloud-sdk-python-trtc-3.0.1386}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-trtc-3.0.1384 → tencentcloud-sdk-python-trtc-3.0.1386}/tencentcloud/trtc/v20190722/models.py +50 -2
- {tencentcloud-sdk-python-trtc-3.0.1384 → tencentcloud-sdk-python-trtc-3.0.1386}/tencentcloud_sdk_python_trtc.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-trtc-3.0.1386/tencentcloud_sdk_python_trtc.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-trtc-3.0.1384/tencentcloud_sdk_python_trtc.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-trtc-3.0.1384 → tencentcloud-sdk-python-trtc-3.0.1386}/README.rst +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1384 → tencentcloud-sdk-python-trtc-3.0.1386}/setup.cfg +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1384 → tencentcloud-sdk-python-trtc-3.0.1386}/tencentcloud/trtc/__init__.py +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1384 → tencentcloud-sdk-python-trtc-3.0.1386}/tencentcloud/trtc/v20190722/__init__.py +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1384 → tencentcloud-sdk-python-trtc-3.0.1386}/tencentcloud/trtc/v20190722/errorcodes.py +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1384 → tencentcloud-sdk-python-trtc-3.0.1386}/tencentcloud/trtc/v20190722/trtc_client.py +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1384 → tencentcloud-sdk-python-trtc-3.0.1386}/tencentcloud_sdk_python_trtc.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1384 → tencentcloud-sdk-python-trtc-3.0.1386}/tencentcloud_sdk_python_trtc.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1384 → tencentcloud-sdk-python-trtc-3.0.1386}/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.1386"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Trtc SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -11377,14 +11377,29 @@ class ServerPushText(AbstractModel):
|
|
|
11377
11377
|
:param _StopAfterPlay: 播报完文本后,是否自动关闭对话任务
|
|
11378
11378
|
:type StopAfterPlay: bool
|
|
11379
11379
|
:param _Audio: 服务端推送播报音频
|
|
11380
|
-
|
|
11380
|
+
格式说明:音频必须为单声道,采样率必须跟对应TTS的采样率保持一致,编码为Base64字符串。
|
|
11381
11381
|
输入规则:当提供Audio字段时,将不接受Text字段的输入。系统将直接播放Audio字段中的音频内容。
|
|
11382
11382
|
:type Audio: str
|
|
11383
|
+
:param _DropMode: 默认为0,仅在Interrupt为false时有效
|
|
11384
|
+
- 0表示当前有交互发生时,会丢弃Interrupt为false的消息
|
|
11385
|
+
- 1表示当前有交互发生时,不会丢弃Interrupt为false的消息,而是缓存下来,等待当前交互结束后,再去处理
|
|
11386
|
+
|
|
11387
|
+
注意:DropMode为1时,允许缓存多个消息,如果后续出现了打断,缓存的消息会被清空
|
|
11388
|
+
:type DropMode: int
|
|
11389
|
+
:param _Priority: ServerPushText消息的优先级,0表示可被打断,1表示不会被打断。**目前仅支持传入0,如果需要传入1,请提工单联系我们添加权限。**
|
|
11390
|
+
注意:在接收到Priority=1的消息后,后续其他任何消息都会被忽略(包括Priority=1的消息),直到Priority=1的消息处理结束。该字段可与Interrupt、DropMode字段配合使用。
|
|
11391
|
+
例子:
|
|
11392
|
+
- Priority=1、Interrupt=true,会打断现有交互,立刻播报,播报过程中不会被打断
|
|
11393
|
+
- Priority=1、Interrupt=false、DropMode=1,会等待当前交互结束,再进行播报,播报过程中不会被打断
|
|
11394
|
+
|
|
11395
|
+
:type Priority: int
|
|
11383
11396
|
"""
|
|
11384
11397
|
self._Text = None
|
|
11385
11398
|
self._Interrupt = None
|
|
11386
11399
|
self._StopAfterPlay = None
|
|
11387
11400
|
self._Audio = None
|
|
11401
|
+
self._DropMode = None
|
|
11402
|
+
self._Priority = None
|
|
11388
11403
|
|
|
11389
11404
|
@property
|
|
11390
11405
|
def Text(self):
|
|
@@ -11422,7 +11437,7 @@ class ServerPushText(AbstractModel):
|
|
|
11422
11437
|
@property
|
|
11423
11438
|
def Audio(self):
|
|
11424
11439
|
"""服务端推送播报音频
|
|
11425
|
-
|
|
11440
|
+
格式说明:音频必须为单声道,采样率必须跟对应TTS的采样率保持一致,编码为Base64字符串。
|
|
11426
11441
|
输入规则:当提供Audio字段时,将不接受Text字段的输入。系统将直接播放Audio字段中的音频内容。
|
|
11427
11442
|
:rtype: str
|
|
11428
11443
|
"""
|
|
@@ -11432,12 +11447,45 @@ class ServerPushText(AbstractModel):
|
|
|
11432
11447
|
def Audio(self, Audio):
|
|
11433
11448
|
self._Audio = Audio
|
|
11434
11449
|
|
|
11450
|
+
@property
|
|
11451
|
+
def DropMode(self):
|
|
11452
|
+
"""默认为0,仅在Interrupt为false时有效
|
|
11453
|
+
- 0表示当前有交互发生时,会丢弃Interrupt为false的消息
|
|
11454
|
+
- 1表示当前有交互发生时,不会丢弃Interrupt为false的消息,而是缓存下来,等待当前交互结束后,再去处理
|
|
11455
|
+
|
|
11456
|
+
注意:DropMode为1时,允许缓存多个消息,如果后续出现了打断,缓存的消息会被清空
|
|
11457
|
+
:rtype: int
|
|
11458
|
+
"""
|
|
11459
|
+
return self._DropMode
|
|
11460
|
+
|
|
11461
|
+
@DropMode.setter
|
|
11462
|
+
def DropMode(self, DropMode):
|
|
11463
|
+
self._DropMode = DropMode
|
|
11464
|
+
|
|
11465
|
+
@property
|
|
11466
|
+
def Priority(self):
|
|
11467
|
+
"""ServerPushText消息的优先级,0表示可被打断,1表示不会被打断。**目前仅支持传入0,如果需要传入1,请提工单联系我们添加权限。**
|
|
11468
|
+
注意:在接收到Priority=1的消息后,后续其他任何消息都会被忽略(包括Priority=1的消息),直到Priority=1的消息处理结束。该字段可与Interrupt、DropMode字段配合使用。
|
|
11469
|
+
例子:
|
|
11470
|
+
- Priority=1、Interrupt=true,会打断现有交互,立刻播报,播报过程中不会被打断
|
|
11471
|
+
- Priority=1、Interrupt=false、DropMode=1,会等待当前交互结束,再进行播报,播报过程中不会被打断
|
|
11472
|
+
|
|
11473
|
+
:rtype: int
|
|
11474
|
+
"""
|
|
11475
|
+
return self._Priority
|
|
11476
|
+
|
|
11477
|
+
@Priority.setter
|
|
11478
|
+
def Priority(self, Priority):
|
|
11479
|
+
self._Priority = Priority
|
|
11480
|
+
|
|
11435
11481
|
|
|
11436
11482
|
def _deserialize(self, params):
|
|
11437
11483
|
self._Text = params.get("Text")
|
|
11438
11484
|
self._Interrupt = params.get("Interrupt")
|
|
11439
11485
|
self._StopAfterPlay = params.get("StopAfterPlay")
|
|
11440
11486
|
self._Audio = params.get("Audio")
|
|
11487
|
+
self._DropMode = params.get("DropMode")
|
|
11488
|
+
self._Priority = params.get("Priority")
|
|
11441
11489
|
memeber_set = set(params.keys())
|
|
11442
11490
|
for name, value in vars(self).items():
|
|
11443
11491
|
property_name = name[1:]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1386
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1384
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|