tencentcloud-sdk-python-trtc 3.1.118__tar.gz → 3.1.123__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.
- {tencentcloud_sdk_python_trtc-3.1.118 → tencentcloud_sdk_python_trtc-3.1.123}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_trtc-3.1.118 → tencentcloud_sdk_python_trtc-3.1.123}/setup.py +1 -1
- {tencentcloud_sdk_python_trtc-3.1.118 → tencentcloud_sdk_python_trtc-3.1.123}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_trtc-3.1.118 → tencentcloud_sdk_python_trtc-3.1.123}/tencentcloud/trtc/v20190722/errorcodes.py +6 -0
- {tencentcloud_sdk_python_trtc-3.1.118 → tencentcloud_sdk_python_trtc-3.1.123}/tencentcloud/trtc/v20190722/models.py +231 -114
- {tencentcloud_sdk_python_trtc-3.1.118 → tencentcloud_sdk_python_trtc-3.1.123}/tencentcloud_sdk_python_trtc.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_trtc-3.1.123/tencentcloud_sdk_python_trtc.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_trtc-3.1.118/tencentcloud_sdk_python_trtc.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_trtc-3.1.118 → tencentcloud_sdk_python_trtc-3.1.123}/README.rst +0 -0
- {tencentcloud_sdk_python_trtc-3.1.118 → tencentcloud_sdk_python_trtc-3.1.123}/setup.cfg +0 -0
- {tencentcloud_sdk_python_trtc-3.1.118 → tencentcloud_sdk_python_trtc-3.1.123}/tencentcloud/trtc/__init__.py +0 -0
- {tencentcloud_sdk_python_trtc-3.1.118 → tencentcloud_sdk_python_trtc-3.1.123}/tencentcloud/trtc/v20190722/__init__.py +0 -0
- {tencentcloud_sdk_python_trtc-3.1.118 → tencentcloud_sdk_python_trtc-3.1.123}/tencentcloud/trtc/v20190722/trtc_client.py +0 -0
- {tencentcloud_sdk_python_trtc-3.1.118 → tencentcloud_sdk_python_trtc-3.1.123}/tencentcloud/trtc/v20190722/trtc_client_async.py +0 -0
- {tencentcloud_sdk_python_trtc-3.1.118 → tencentcloud_sdk_python_trtc-3.1.123}/tencentcloud_sdk_python_trtc.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_trtc-3.1.118 → tencentcloud_sdk_python_trtc-3.1.123}/tencentcloud_sdk_python_trtc.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_trtc-3.1.118 → tencentcloud_sdk_python_trtc-3.1.123}/tencentcloud_sdk_python_trtc.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-trtc
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.123
|
|
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.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.123
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -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.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.123,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Trtc SDK for Python',
|
|
@@ -308,6 +308,12 @@ INVALIDPARAMETER_VOLUME = 'InvalidParameter.Volume'
|
|
|
308
308
|
# RoomId值错误。
|
|
309
309
|
INVALIDPARAMETERVALUE_ROOMID = 'InvalidParameterValue.RoomId'
|
|
310
310
|
|
|
311
|
+
# 并发数量受限
|
|
312
|
+
LIMITEXCEEDED_CONCURRENCYLIMIT = 'LimitExceeded.ConcurrencyLimit'
|
|
313
|
+
|
|
314
|
+
# 克隆超过最大数量
|
|
315
|
+
LIMITEXCEEDED_VOICECLONEMAXNUMLIMIT = 'LimitExceeded.VoiceCloneMaxNumLimit'
|
|
316
|
+
|
|
311
317
|
# 缺少参数错误。
|
|
312
318
|
MISSINGPARAMETER = 'MissingParameter'
|
|
313
319
|
|
|
@@ -532,23 +532,40 @@ class AlignmentItem(AbstractModel):
|
|
|
532
532
|
|
|
533
533
|
def __init__(self):
|
|
534
534
|
r"""
|
|
535
|
-
:param
|
|
535
|
+
:param _Text: <p>字幕文本</p>
|
|
536
|
+
:type Text: str
|
|
537
|
+
:param _TimeBeginMs: <p>字幕对应的时间起点</p>
|
|
536
538
|
:type TimeBeginMs: int
|
|
537
|
-
:param _TimeEndMs:
|
|
539
|
+
:param _TimeEndMs: <p>字幕对应的时间尾点</p>
|
|
538
540
|
:type TimeEndMs: int
|
|
539
|
-
:param _TextBegin:
|
|
541
|
+
:param _TextBegin: <p>字幕对应的文本索引起点</p>
|
|
540
542
|
:type TextBegin: int
|
|
541
|
-
:param _TextEnd:
|
|
543
|
+
:param _TextEnd: <p>字幕对应的文本索引尾点</p>
|
|
542
544
|
:type TextEnd: int
|
|
545
|
+
:param _Words: <p>词级别时间戳</p>
|
|
546
|
+
:type Words: list of WordItem
|
|
543
547
|
"""
|
|
548
|
+
self._Text = None
|
|
544
549
|
self._TimeBeginMs = None
|
|
545
550
|
self._TimeEndMs = None
|
|
546
551
|
self._TextBegin = None
|
|
547
552
|
self._TextEnd = None
|
|
553
|
+
self._Words = None
|
|
554
|
+
|
|
555
|
+
@property
|
|
556
|
+
def Text(self):
|
|
557
|
+
r"""<p>字幕文本</p>
|
|
558
|
+
:rtype: str
|
|
559
|
+
"""
|
|
560
|
+
return self._Text
|
|
561
|
+
|
|
562
|
+
@Text.setter
|
|
563
|
+
def Text(self, Text):
|
|
564
|
+
self._Text = Text
|
|
548
565
|
|
|
549
566
|
@property
|
|
550
567
|
def TimeBeginMs(self):
|
|
551
|
-
r"""
|
|
568
|
+
r"""<p>字幕对应的时间起点</p>
|
|
552
569
|
:rtype: int
|
|
553
570
|
"""
|
|
554
571
|
return self._TimeBeginMs
|
|
@@ -559,7 +576,7 @@ class AlignmentItem(AbstractModel):
|
|
|
559
576
|
|
|
560
577
|
@property
|
|
561
578
|
def TimeEndMs(self):
|
|
562
|
-
r"""
|
|
579
|
+
r"""<p>字幕对应的时间尾点</p>
|
|
563
580
|
:rtype: int
|
|
564
581
|
"""
|
|
565
582
|
return self._TimeEndMs
|
|
@@ -570,7 +587,7 @@ class AlignmentItem(AbstractModel):
|
|
|
570
587
|
|
|
571
588
|
@property
|
|
572
589
|
def TextBegin(self):
|
|
573
|
-
r"""
|
|
590
|
+
r"""<p>字幕对应的文本索引起点</p>
|
|
574
591
|
:rtype: int
|
|
575
592
|
"""
|
|
576
593
|
return self._TextBegin
|
|
@@ -581,7 +598,7 @@ class AlignmentItem(AbstractModel):
|
|
|
581
598
|
|
|
582
599
|
@property
|
|
583
600
|
def TextEnd(self):
|
|
584
|
-
r"""
|
|
601
|
+
r"""<p>字幕对应的文本索引尾点</p>
|
|
585
602
|
:rtype: int
|
|
586
603
|
"""
|
|
587
604
|
return self._TextEnd
|
|
@@ -590,12 +607,30 @@ class AlignmentItem(AbstractModel):
|
|
|
590
607
|
def TextEnd(self, TextEnd):
|
|
591
608
|
self._TextEnd = TextEnd
|
|
592
609
|
|
|
610
|
+
@property
|
|
611
|
+
def Words(self):
|
|
612
|
+
r"""<p>词级别时间戳</p>
|
|
613
|
+
:rtype: list of WordItem
|
|
614
|
+
"""
|
|
615
|
+
return self._Words
|
|
616
|
+
|
|
617
|
+
@Words.setter
|
|
618
|
+
def Words(self, Words):
|
|
619
|
+
self._Words = Words
|
|
620
|
+
|
|
593
621
|
|
|
594
622
|
def _deserialize(self, params):
|
|
623
|
+
self._Text = params.get("Text")
|
|
595
624
|
self._TimeBeginMs = params.get("TimeBeginMs")
|
|
596
625
|
self._TimeEndMs = params.get("TimeEndMs")
|
|
597
626
|
self._TextBegin = params.get("TextBegin")
|
|
598
627
|
self._TextEnd = params.get("TextEnd")
|
|
628
|
+
if params.get("Words") is not None:
|
|
629
|
+
self._Words = []
|
|
630
|
+
for item in params.get("Words"):
|
|
631
|
+
obj = WordItem()
|
|
632
|
+
obj._deserialize(item)
|
|
633
|
+
self._Words.append(obj)
|
|
599
634
|
memeber_set = set(params.keys())
|
|
600
635
|
for name, value in vars(self).items():
|
|
601
636
|
property_name = name[1:]
|
|
@@ -9719,55 +9754,36 @@ class McuLayout(AbstractModel):
|
|
|
9719
9754
|
|
|
9720
9755
|
def __init__(self):
|
|
9721
9756
|
r"""
|
|
9722
|
-
:param _UserMediaStream:
|
|
9757
|
+
:param _UserMediaStream: <p>用户媒体流参数。不填时腾讯云后台按照上行主播的进房顺序自动填充。</p>
|
|
9723
9758
|
:type UserMediaStream: :class:`tencentcloud.trtc.v20190722.models.UserMediaStream`
|
|
9724
|
-
:param _ImageWidth:
|
|
9759
|
+
:param _ImageWidth: <p>子画面在输出时的宽度,单位为像素值,不填默认为0。</p>
|
|
9725
9760
|
:type ImageWidth: int
|
|
9726
|
-
:param _ImageHeight:
|
|
9761
|
+
:param _ImageHeight: <p>子画面在输出时的高度,单位为像素值,不填默认为0。</p>
|
|
9727
9762
|
:type ImageHeight: int
|
|
9728
|
-
:param _LocationX:
|
|
9763
|
+
:param _LocationX: <p>子画面在输出时的X偏移,单位为像素值,LocationX与ImageWidth之和不能超过混流输出的总宽度,不填默认为0。</p>
|
|
9729
9764
|
:type LocationX: int
|
|
9730
|
-
:param _LocationY:
|
|
9765
|
+
:param _LocationY: <p>子画面在输出时的Y偏移,单位为像素值,LocationY与ImageHeight之和不能超过混流输出的总高度,不填默认为0。</p>
|
|
9731
9766
|
:type LocationY: int
|
|
9732
|
-
:param _ZOrder:
|
|
9767
|
+
:param _ZOrder: <p>子画面在输出时的层级,不填默认为0。</p>
|
|
9733
9768
|
:type ZOrder: int
|
|
9734
|
-
:param _RenderMode:
|
|
9769
|
+
:param _RenderMode: <p>子画面在输出时的显示模式:0为裁剪,1为缩放并显示背景,2为缩放并显示黑底。不填默认为0。</p>
|
|
9735
9770
|
:type RenderMode: int
|
|
9736
|
-
:param _BackGroundColor:
|
|
9737
|
-
红色:0xcc0033。
|
|
9738
|
-
黄色:0xcc9900。
|
|
9739
|
-
绿色:0xcccc33。
|
|
9740
|
-
蓝色:0x99CCFF。
|
|
9741
|
-
黑色:0x000000。
|
|
9742
|
-
白色:0xFFFFFF。
|
|
9743
|
-
灰色:0x999999。
|
|
9771
|
+
:param _BackGroundColor: <p>【此参数配置无效,暂不支持】子画面的背景颜色,常用的颜色有:<br>红色:0xcc0033。<br>黄色:0xcc9900。<br>绿色:0xcccc33。<br>蓝色:0x99CCFF。<br>黑色:0x000000。<br>白色:0xFFFFFF。<br>灰色:0x999999。</p>
|
|
9744
9772
|
:type BackGroundColor: str
|
|
9745
|
-
:param _BackgroundImageUrl:
|
|
9746
|
-
注:
|
|
9747
|
-
1,您需要确保图片链接的可访问性,后台单次下载超时时间为10秒,最多重试3次,若最终图片下载失败,占位图片将不会生效。
|
|
9748
|
-
2,url可支持字符集:【'0-9','a-z','A-Z','-', '.', '_', '~', ':', '/', '?', '#', '[', ']','@', '!', '&', '(', ')', '*', '+', ',', '%', '=', ';', '|'】,您需要确保url字符在可支持字符集内,若存在可支持字符集外的字符,占位图片将不会生效。
|
|
9773
|
+
:param _BackgroundImageUrl: <p>子画面的占位图片url,填写该参数,当用户关闭摄像头或未进入TRTC房间时,会在布局位置填充为指定图片。若指定图片与布局位置尺寸比例不一致,则会对图片进行拉伸处理,优先级高于BackGroundColor。支持png、jpg、jpeg、bmp、gif、webm格式。图片分辨率限制不超过2K,图片大小限制不超过5MB。<br>注:<br>1,您需要确保图片链接的可访问性,后台单次下载超时时间为10秒,最多重试3次,若最终图片下载失败,占位图片将不会生效。<br>2,url可支持字符集:【'0-9','a-z','A-Z','-', '.', '_', '~', ':', '/', '?', '#', '[', ']','@', '!', '&', '(', ')', '*', '+', ',', '%', '=', ';', '|'】,您需要确保url字符在可支持字符集内,若存在可支持字符集外的字符,占位图片将不会生效。</p>
|
|
9749
9774
|
:type BackgroundImageUrl: str
|
|
9750
|
-
:param _CustomCrop:
|
|
9775
|
+
:param _CustomCrop: <p>客户自定义裁剪,针对原始输入流裁剪</p>
|
|
9751
9776
|
:type CustomCrop: :class:`tencentcloud.trtc.v20190722.models.McuCustomCrop`
|
|
9752
|
-
:param _BackgroundRenderMode:
|
|
9777
|
+
:param _BackgroundRenderMode: <p>子背景图在输出时的显示模式:0为裁剪,1为缩放并显示背景,2为缩放并显示黑底,3为变比例伸缩,4为自定义渲染。不填默认为3。</p>
|
|
9753
9778
|
:type BackgroundRenderMode: int
|
|
9754
|
-
:param _TransparentUrl:
|
|
9755
|
-
注:
|
|
9756
|
-
1,模板图片宽高比应接近目标画面宽高比,以避免缩放适配目标画面时出现模板效果变形;2,透明模版只有RenderMode为0(裁剪)时才生效;3,您需要确保图片链接的可访问性,后台单次下载超时时间为10秒,最多重试3次,若最终图片下载失败,透明模板将不会生效。
|
|
9757
|
-
2,url可支持字符集:【'0-9','a-z','A-Z','-', '.', '_', '~', ':', '/', '?', '#', '[', ']','@', '!', '&', '(', ')', '*', '+', ',', '%', '=', ';', '|'】,您需要确保url字符在可支持字符集内,若存在可支持字符集外的字符,透明模版将不会生效。
|
|
9779
|
+
:param _TransparentUrl: <p>子画面的透明模版url,指向一张包含透明通道的模板图片。填写该参数,后台混流时会提取该模板图片的透明通道,将其缩放作为目标画面的透明通道,再和其他画面进行混合。您可以通过透明模版实现目标画面的半透明效果和任意形状裁剪(如圆角、星形、心形等)。 支持png格式。图片分辨率限制不超过2K,图片大小限制不超过5MB。<br>注:<br>1,模板图片宽高比应接近目标画面宽高比,以避免缩放适配目标画面时出现模板效果变形;2,透明模版只有RenderMode为0(裁剪)时才生效;3,您需要确保图片链接的可访问性,后台单次下载超时时间为10秒,最多重试3次,若最终图片下载失败,透明模板将不会生效。<br>2,url可支持字符集:【'0-9','a-z','A-Z','-', '.', '_', '~', ':', '/', '?', '#', '[', ']','@', '!', '&', '(', ')', '*', '+', ',', '%', '=', ';', '|'】,您需要确保url字符在可支持字符集内,若存在可支持字符集外的字符,透明模版将不会生效。</p>
|
|
9758
9780
|
:type TransparentUrl: str
|
|
9759
|
-
:param _BackgroundCustomRender:
|
|
9781
|
+
:param _BackgroundCustomRender: <p>子背景图的自定义渲染参数,当BackgroundRenderMode为4时必须配置。</p>
|
|
9760
9782
|
:type BackgroundCustomRender: :class:`tencentcloud.trtc.v20190722.models.McuBackgroundCustomRender`
|
|
9761
|
-
:param _BackGroundColorMode:
|
|
9762
|
-
bit0:占位图缩放是否生效。
|
|
9763
|
-
bit1:上行流缩放是否生效。
|
|
9764
|
-
您可以将相应bit位置1启动生效,例如:
|
|
9765
|
-
0(00)表示子背景色不生效。
|
|
9766
|
-
1(01)表示子背景色只在占位图缩放时生效。
|
|
9767
|
-
2(10)表示子背景色只在上行流缩放时生效。
|
|
9768
|
-
3(11)表示子背景色在占位图缩放和上行流缩放时均生效。
|
|
9769
|
-
|
|
9783
|
+
:param _BackGroundColorMode: <p>子背景色生效模式,默认值为0表示均不生效。<br>bit0:占位图缩放是否生效。<br>bit1:上行流缩放是否生效。<br>您可以将相应bit位置1启动生效,例如:<br>0(00)表示子背景色不生效。<br>1(01)表示子背景色只在占位图缩放时生效。<br>2(10)表示子背景色只在上行流缩放时生效。<br>3(11)表示子背景色在占位图缩放和上行流缩放时均生效。</p>
|
|
9770
9784
|
:type BackGroundColorMode: int
|
|
9785
|
+
:param _EnableStreamSEI: <p>是否保留上行SEI,1:保留 0:不保留</p><p>取值范围:[0, 1]</p><p>默认值:1</p>
|
|
9786
|
+
:type EnableStreamSEI: int
|
|
9771
9787
|
"""
|
|
9772
9788
|
self._UserMediaStream = None
|
|
9773
9789
|
self._ImageWidth = None
|
|
@@ -9783,10 +9799,11 @@ bit1:上行流缩放是否生效。
|
|
|
9783
9799
|
self._TransparentUrl = None
|
|
9784
9800
|
self._BackgroundCustomRender = None
|
|
9785
9801
|
self._BackGroundColorMode = None
|
|
9802
|
+
self._EnableStreamSEI = None
|
|
9786
9803
|
|
|
9787
9804
|
@property
|
|
9788
9805
|
def UserMediaStream(self):
|
|
9789
|
-
r"""
|
|
9806
|
+
r"""<p>用户媒体流参数。不填时腾讯云后台按照上行主播的进房顺序自动填充。</p>
|
|
9790
9807
|
:rtype: :class:`tencentcloud.trtc.v20190722.models.UserMediaStream`
|
|
9791
9808
|
"""
|
|
9792
9809
|
return self._UserMediaStream
|
|
@@ -9797,7 +9814,7 @@ bit1:上行流缩放是否生效。
|
|
|
9797
9814
|
|
|
9798
9815
|
@property
|
|
9799
9816
|
def ImageWidth(self):
|
|
9800
|
-
r"""
|
|
9817
|
+
r"""<p>子画面在输出时的宽度,单位为像素值,不填默认为0。</p>
|
|
9801
9818
|
:rtype: int
|
|
9802
9819
|
"""
|
|
9803
9820
|
return self._ImageWidth
|
|
@@ -9808,7 +9825,7 @@ bit1:上行流缩放是否生效。
|
|
|
9808
9825
|
|
|
9809
9826
|
@property
|
|
9810
9827
|
def ImageHeight(self):
|
|
9811
|
-
r"""
|
|
9828
|
+
r"""<p>子画面在输出时的高度,单位为像素值,不填默认为0。</p>
|
|
9812
9829
|
:rtype: int
|
|
9813
9830
|
"""
|
|
9814
9831
|
return self._ImageHeight
|
|
@@ -9819,7 +9836,7 @@ bit1:上行流缩放是否生效。
|
|
|
9819
9836
|
|
|
9820
9837
|
@property
|
|
9821
9838
|
def LocationX(self):
|
|
9822
|
-
r"""
|
|
9839
|
+
r"""<p>子画面在输出时的X偏移,单位为像素值,LocationX与ImageWidth之和不能超过混流输出的总宽度,不填默认为0。</p>
|
|
9823
9840
|
:rtype: int
|
|
9824
9841
|
"""
|
|
9825
9842
|
return self._LocationX
|
|
@@ -9830,7 +9847,7 @@ bit1:上行流缩放是否生效。
|
|
|
9830
9847
|
|
|
9831
9848
|
@property
|
|
9832
9849
|
def LocationY(self):
|
|
9833
|
-
r"""
|
|
9850
|
+
r"""<p>子画面在输出时的Y偏移,单位为像素值,LocationY与ImageHeight之和不能超过混流输出的总高度,不填默认为0。</p>
|
|
9834
9851
|
:rtype: int
|
|
9835
9852
|
"""
|
|
9836
9853
|
return self._LocationY
|
|
@@ -9841,7 +9858,7 @@ bit1:上行流缩放是否生效。
|
|
|
9841
9858
|
|
|
9842
9859
|
@property
|
|
9843
9860
|
def ZOrder(self):
|
|
9844
|
-
r"""
|
|
9861
|
+
r"""<p>子画面在输出时的层级,不填默认为0。</p>
|
|
9845
9862
|
:rtype: int
|
|
9846
9863
|
"""
|
|
9847
9864
|
return self._ZOrder
|
|
@@ -9852,7 +9869,7 @@ bit1:上行流缩放是否生效。
|
|
|
9852
9869
|
|
|
9853
9870
|
@property
|
|
9854
9871
|
def RenderMode(self):
|
|
9855
|
-
r"""
|
|
9872
|
+
r"""<p>子画面在输出时的显示模式:0为裁剪,1为缩放并显示背景,2为缩放并显示黑底。不填默认为0。</p>
|
|
9856
9873
|
:rtype: int
|
|
9857
9874
|
"""
|
|
9858
9875
|
return self._RenderMode
|
|
@@ -9863,14 +9880,7 @@ bit1:上行流缩放是否生效。
|
|
|
9863
9880
|
|
|
9864
9881
|
@property
|
|
9865
9882
|
def BackGroundColor(self):
|
|
9866
|
-
r"""
|
|
9867
|
-
红色:0xcc0033。
|
|
9868
|
-
黄色:0xcc9900。
|
|
9869
|
-
绿色:0xcccc33。
|
|
9870
|
-
蓝色:0x99CCFF。
|
|
9871
|
-
黑色:0x000000。
|
|
9872
|
-
白色:0xFFFFFF。
|
|
9873
|
-
灰色:0x999999。
|
|
9883
|
+
r"""<p>【此参数配置无效,暂不支持】子画面的背景颜色,常用的颜色有:<br>红色:0xcc0033。<br>黄色:0xcc9900。<br>绿色:0xcccc33。<br>蓝色:0x99CCFF。<br>黑色:0x000000。<br>白色:0xFFFFFF。<br>灰色:0x999999。</p>
|
|
9874
9884
|
:rtype: str
|
|
9875
9885
|
"""
|
|
9876
9886
|
return self._BackGroundColor
|
|
@@ -9881,10 +9891,7 @@ bit1:上行流缩放是否生效。
|
|
|
9881
9891
|
|
|
9882
9892
|
@property
|
|
9883
9893
|
def BackgroundImageUrl(self):
|
|
9884
|
-
r"""
|
|
9885
|
-
注:
|
|
9886
|
-
1,您需要确保图片链接的可访问性,后台单次下载超时时间为10秒,最多重试3次,若最终图片下载失败,占位图片将不会生效。
|
|
9887
|
-
2,url可支持字符集:【'0-9','a-z','A-Z','-', '.', '_', '~', ':', '/', '?', '#', '[', ']','@', '!', '&', '(', ')', '*', '+', ',', '%', '=', ';', '|'】,您需要确保url字符在可支持字符集内,若存在可支持字符集外的字符,占位图片将不会生效。
|
|
9894
|
+
r"""<p>子画面的占位图片url,填写该参数,当用户关闭摄像头或未进入TRTC房间时,会在布局位置填充为指定图片。若指定图片与布局位置尺寸比例不一致,则会对图片进行拉伸处理,优先级高于BackGroundColor。支持png、jpg、jpeg、bmp、gif、webm格式。图片分辨率限制不超过2K,图片大小限制不超过5MB。<br>注:<br>1,您需要确保图片链接的可访问性,后台单次下载超时时间为10秒,最多重试3次,若最终图片下载失败,占位图片将不会生效。<br>2,url可支持字符集:【'0-9','a-z','A-Z','-', '.', '_', '~', ':', '/', '?', '#', '[', ']','@', '!', '&', '(', ')', '*', '+', ',', '%', '=', ';', '|'】,您需要确保url字符在可支持字符集内,若存在可支持字符集外的字符,占位图片将不会生效。</p>
|
|
9888
9895
|
:rtype: str
|
|
9889
9896
|
"""
|
|
9890
9897
|
return self._BackgroundImageUrl
|
|
@@ -9895,7 +9902,7 @@ bit1:上行流缩放是否生效。
|
|
|
9895
9902
|
|
|
9896
9903
|
@property
|
|
9897
9904
|
def CustomCrop(self):
|
|
9898
|
-
r"""
|
|
9905
|
+
r"""<p>客户自定义裁剪,针对原始输入流裁剪</p>
|
|
9899
9906
|
:rtype: :class:`tencentcloud.trtc.v20190722.models.McuCustomCrop`
|
|
9900
9907
|
"""
|
|
9901
9908
|
return self._CustomCrop
|
|
@@ -9906,7 +9913,7 @@ bit1:上行流缩放是否生效。
|
|
|
9906
9913
|
|
|
9907
9914
|
@property
|
|
9908
9915
|
def BackgroundRenderMode(self):
|
|
9909
|
-
r"""
|
|
9916
|
+
r"""<p>子背景图在输出时的显示模式:0为裁剪,1为缩放并显示背景,2为缩放并显示黑底,3为变比例伸缩,4为自定义渲染。不填默认为3。</p>
|
|
9910
9917
|
:rtype: int
|
|
9911
9918
|
"""
|
|
9912
9919
|
return self._BackgroundRenderMode
|
|
@@ -9917,10 +9924,7 @@ bit1:上行流缩放是否生效。
|
|
|
9917
9924
|
|
|
9918
9925
|
@property
|
|
9919
9926
|
def TransparentUrl(self):
|
|
9920
|
-
r"""
|
|
9921
|
-
注:
|
|
9922
|
-
1,模板图片宽高比应接近目标画面宽高比,以避免缩放适配目标画面时出现模板效果变形;2,透明模版只有RenderMode为0(裁剪)时才生效;3,您需要确保图片链接的可访问性,后台单次下载超时时间为10秒,最多重试3次,若最终图片下载失败,透明模板将不会生效。
|
|
9923
|
-
2,url可支持字符集:【'0-9','a-z','A-Z','-', '.', '_', '~', ':', '/', '?', '#', '[', ']','@', '!', '&', '(', ')', '*', '+', ',', '%', '=', ';', '|'】,您需要确保url字符在可支持字符集内,若存在可支持字符集外的字符,透明模版将不会生效。
|
|
9927
|
+
r"""<p>子画面的透明模版url,指向一张包含透明通道的模板图片。填写该参数,后台混流时会提取该模板图片的透明通道,将其缩放作为目标画面的透明通道,再和其他画面进行混合。您可以通过透明模版实现目标画面的半透明效果和任意形状裁剪(如圆角、星形、心形等)。 支持png格式。图片分辨率限制不超过2K,图片大小限制不超过5MB。<br>注:<br>1,模板图片宽高比应接近目标画面宽高比,以避免缩放适配目标画面时出现模板效果变形;2,透明模版只有RenderMode为0(裁剪)时才生效;3,您需要确保图片链接的可访问性,后台单次下载超时时间为10秒,最多重试3次,若最终图片下载失败,透明模板将不会生效。<br>2,url可支持字符集:【'0-9','a-z','A-Z','-', '.', '_', '~', ':', '/', '?', '#', '[', ']','@', '!', '&', '(', ')', '*', '+', ',', '%', '=', ';', '|'】,您需要确保url字符在可支持字符集内,若存在可支持字符集外的字符,透明模版将不会生效。</p>
|
|
9924
9928
|
:rtype: str
|
|
9925
9929
|
"""
|
|
9926
9930
|
return self._TransparentUrl
|
|
@@ -9931,7 +9935,7 @@ bit1:上行流缩放是否生效。
|
|
|
9931
9935
|
|
|
9932
9936
|
@property
|
|
9933
9937
|
def BackgroundCustomRender(self):
|
|
9934
|
-
r"""
|
|
9938
|
+
r"""<p>子背景图的自定义渲染参数,当BackgroundRenderMode为4时必须配置。</p>
|
|
9935
9939
|
:rtype: :class:`tencentcloud.trtc.v20190722.models.McuBackgroundCustomRender`
|
|
9936
9940
|
"""
|
|
9937
9941
|
return self._BackgroundCustomRender
|
|
@@ -9942,15 +9946,7 @@ bit1:上行流缩放是否生效。
|
|
|
9942
9946
|
|
|
9943
9947
|
@property
|
|
9944
9948
|
def BackGroundColorMode(self):
|
|
9945
|
-
r"""
|
|
9946
|
-
bit0:占位图缩放是否生效。
|
|
9947
|
-
bit1:上行流缩放是否生效。
|
|
9948
|
-
您可以将相应bit位置1启动生效,例如:
|
|
9949
|
-
0(00)表示子背景色不生效。
|
|
9950
|
-
1(01)表示子背景色只在占位图缩放时生效。
|
|
9951
|
-
2(10)表示子背景色只在上行流缩放时生效。
|
|
9952
|
-
3(11)表示子背景色在占位图缩放和上行流缩放时均生效。
|
|
9953
|
-
|
|
9949
|
+
r"""<p>子背景色生效模式,默认值为0表示均不生效。<br>bit0:占位图缩放是否生效。<br>bit1:上行流缩放是否生效。<br>您可以将相应bit位置1启动生效,例如:<br>0(00)表示子背景色不生效。<br>1(01)表示子背景色只在占位图缩放时生效。<br>2(10)表示子背景色只在上行流缩放时生效。<br>3(11)表示子背景色在占位图缩放和上行流缩放时均生效。</p>
|
|
9954
9950
|
:rtype: int
|
|
9955
9951
|
"""
|
|
9956
9952
|
return self._BackGroundColorMode
|
|
@@ -9959,6 +9955,17 @@ bit1:上行流缩放是否生效。
|
|
|
9959
9955
|
def BackGroundColorMode(self, BackGroundColorMode):
|
|
9960
9956
|
self._BackGroundColorMode = BackGroundColorMode
|
|
9961
9957
|
|
|
9958
|
+
@property
|
|
9959
|
+
def EnableStreamSEI(self):
|
|
9960
|
+
r"""<p>是否保留上行SEI,1:保留 0:不保留</p><p>取值范围:[0, 1]</p><p>默认值:1</p>
|
|
9961
|
+
:rtype: int
|
|
9962
|
+
"""
|
|
9963
|
+
return self._EnableStreamSEI
|
|
9964
|
+
|
|
9965
|
+
@EnableStreamSEI.setter
|
|
9966
|
+
def EnableStreamSEI(self, EnableStreamSEI):
|
|
9967
|
+
self._EnableStreamSEI = EnableStreamSEI
|
|
9968
|
+
|
|
9962
9969
|
|
|
9963
9970
|
def _deserialize(self, params):
|
|
9964
9971
|
if params.get("UserMediaStream") is not None:
|
|
@@ -9981,6 +9988,7 @@ bit1:上行流缩放是否生效。
|
|
|
9981
9988
|
self._BackgroundCustomRender = McuBackgroundCustomRender()
|
|
9982
9989
|
self._BackgroundCustomRender._deserialize(params.get("BackgroundCustomRender"))
|
|
9983
9990
|
self._BackGroundColorMode = params.get("BackGroundColorMode")
|
|
9991
|
+
self._EnableStreamSEI = params.get("EnableStreamSEI")
|
|
9984
9992
|
memeber_set = set(params.keys())
|
|
9985
9993
|
for name, value in vars(self).items():
|
|
9986
9994
|
property_name = name[1:]
|
|
@@ -9998,26 +10006,29 @@ class McuLayoutParams(AbstractModel):
|
|
|
9998
10006
|
|
|
9999
10007
|
def __init__(self):
|
|
10000
10008
|
r"""
|
|
10001
|
-
:param _MixLayoutMode:
|
|
10009
|
+
:param _MixLayoutMode: <p>布局模式:动态布局(1:悬浮布局(默认),2:屏幕分享布局,3:九宫格布局),静态布局(4:自定义布局)。最多支持混入16路音视频流,如果用户只上行音频,也会被算作一路;自定义布局中,如果子画面只设置占位图,也被算作一路。</p>
|
|
10002
10010
|
:type MixLayoutMode: int
|
|
10003
|
-
:param _PureAudioHoldPlaceMode:
|
|
10011
|
+
:param _PureAudioHoldPlaceMode: <p>纯音频上行是否占布局位置,只在动态布局中有效。0表示纯音频不占布局位置,1表示纯音频占布局位置,不填默认为0。</p>
|
|
10004
10012
|
:type PureAudioHoldPlaceMode: int
|
|
10005
|
-
:param _MixLayoutList:
|
|
10013
|
+
:param _MixLayoutList: <p>自定义模板中有效,指定用户视频在混合画面中的位置,最多支持设置16个输入流。</p>
|
|
10006
10014
|
:type MixLayoutList: list of McuLayout
|
|
10007
|
-
:param _MaxVideoUser:
|
|
10015
|
+
:param _MaxVideoUser: <p>指定动态布局中悬浮布局和屏幕分享布局的大画面信息,只在悬浮布局和屏幕分享布局有效。</p>
|
|
10008
10016
|
:type MaxVideoUser: :class:`tencentcloud.trtc.v20190722.models.MaxVideoUser`
|
|
10009
|
-
:param _RenderMode:
|
|
10017
|
+
:param _RenderMode: <p>屏幕分享模板、悬浮模板、九宫格模版有效,画面在输出时的显示模式:0为裁剪,1为缩放,2为缩放并显示黑底</p>
|
|
10010
10018
|
:type RenderMode: int
|
|
10019
|
+
:param _EnableStreamSEI: <p>是否保留上行sei,1:保留 0:不保留,只对动态布局生效,自定义布局不生效</p><p>取值范围:[0, 1]</p><p>默认值:1</p>
|
|
10020
|
+
:type EnableStreamSEI: int
|
|
10011
10021
|
"""
|
|
10012
10022
|
self._MixLayoutMode = None
|
|
10013
10023
|
self._PureAudioHoldPlaceMode = None
|
|
10014
10024
|
self._MixLayoutList = None
|
|
10015
10025
|
self._MaxVideoUser = None
|
|
10016
10026
|
self._RenderMode = None
|
|
10027
|
+
self._EnableStreamSEI = None
|
|
10017
10028
|
|
|
10018
10029
|
@property
|
|
10019
10030
|
def MixLayoutMode(self):
|
|
10020
|
-
r"""
|
|
10031
|
+
r"""<p>布局模式:动态布局(1:悬浮布局(默认),2:屏幕分享布局,3:九宫格布局),静态布局(4:自定义布局)。最多支持混入16路音视频流,如果用户只上行音频,也会被算作一路;自定义布局中,如果子画面只设置占位图,也被算作一路。</p>
|
|
10021
10032
|
:rtype: int
|
|
10022
10033
|
"""
|
|
10023
10034
|
return self._MixLayoutMode
|
|
@@ -10028,7 +10039,7 @@ class McuLayoutParams(AbstractModel):
|
|
|
10028
10039
|
|
|
10029
10040
|
@property
|
|
10030
10041
|
def PureAudioHoldPlaceMode(self):
|
|
10031
|
-
r"""
|
|
10042
|
+
r"""<p>纯音频上行是否占布局位置,只在动态布局中有效。0表示纯音频不占布局位置,1表示纯音频占布局位置,不填默认为0。</p>
|
|
10032
10043
|
:rtype: int
|
|
10033
10044
|
"""
|
|
10034
10045
|
return self._PureAudioHoldPlaceMode
|
|
@@ -10039,7 +10050,7 @@ class McuLayoutParams(AbstractModel):
|
|
|
10039
10050
|
|
|
10040
10051
|
@property
|
|
10041
10052
|
def MixLayoutList(self):
|
|
10042
|
-
r"""
|
|
10053
|
+
r"""<p>自定义模板中有效,指定用户视频在混合画面中的位置,最多支持设置16个输入流。</p>
|
|
10043
10054
|
:rtype: list of McuLayout
|
|
10044
10055
|
"""
|
|
10045
10056
|
return self._MixLayoutList
|
|
@@ -10050,7 +10061,7 @@ class McuLayoutParams(AbstractModel):
|
|
|
10050
10061
|
|
|
10051
10062
|
@property
|
|
10052
10063
|
def MaxVideoUser(self):
|
|
10053
|
-
r"""
|
|
10064
|
+
r"""<p>指定动态布局中悬浮布局和屏幕分享布局的大画面信息,只在悬浮布局和屏幕分享布局有效。</p>
|
|
10054
10065
|
:rtype: :class:`tencentcloud.trtc.v20190722.models.MaxVideoUser`
|
|
10055
10066
|
"""
|
|
10056
10067
|
return self._MaxVideoUser
|
|
@@ -10061,7 +10072,7 @@ class McuLayoutParams(AbstractModel):
|
|
|
10061
10072
|
|
|
10062
10073
|
@property
|
|
10063
10074
|
def RenderMode(self):
|
|
10064
|
-
r"""
|
|
10075
|
+
r"""<p>屏幕分享模板、悬浮模板、九宫格模版有效,画面在输出时的显示模式:0为裁剪,1为缩放,2为缩放并显示黑底</p>
|
|
10065
10076
|
:rtype: int
|
|
10066
10077
|
"""
|
|
10067
10078
|
return self._RenderMode
|
|
@@ -10070,6 +10081,17 @@ class McuLayoutParams(AbstractModel):
|
|
|
10070
10081
|
def RenderMode(self, RenderMode):
|
|
10071
10082
|
self._RenderMode = RenderMode
|
|
10072
10083
|
|
|
10084
|
+
@property
|
|
10085
|
+
def EnableStreamSEI(self):
|
|
10086
|
+
r"""<p>是否保留上行sei,1:保留 0:不保留,只对动态布局生效,自定义布局不生效</p><p>取值范围:[0, 1]</p><p>默认值:1</p>
|
|
10087
|
+
:rtype: int
|
|
10088
|
+
"""
|
|
10089
|
+
return self._EnableStreamSEI
|
|
10090
|
+
|
|
10091
|
+
@EnableStreamSEI.setter
|
|
10092
|
+
def EnableStreamSEI(self, EnableStreamSEI):
|
|
10093
|
+
self._EnableStreamSEI = EnableStreamSEI
|
|
10094
|
+
|
|
10073
10095
|
|
|
10074
10096
|
def _deserialize(self, params):
|
|
10075
10097
|
self._MixLayoutMode = params.get("MixLayoutMode")
|
|
@@ -10084,6 +10106,7 @@ class McuLayoutParams(AbstractModel):
|
|
|
10084
10106
|
self._MaxVideoUser = MaxVideoUser()
|
|
10085
10107
|
self._MaxVideoUser._deserialize(params.get("MaxVideoUser"))
|
|
10086
10108
|
self._RenderMode = params.get("RenderMode")
|
|
10109
|
+
self._EnableStreamSEI = params.get("EnableStreamSEI")
|
|
10087
10110
|
memeber_set = set(params.keys())
|
|
10088
10111
|
for name, value in vars(self).items():
|
|
10089
10112
|
property_name = name[1:]
|
|
@@ -16749,24 +16772,23 @@ class StartWebRecordRequest(AbstractModel):
|
|
|
16749
16772
|
|
|
16750
16773
|
def __init__(self):
|
|
16751
16774
|
r"""
|
|
16752
|
-
:param _RecordUrl:
|
|
16775
|
+
:param _RecordUrl: <p>【必填】需要录制的网页URL</p>
|
|
16753
16776
|
:type RecordUrl: str
|
|
16754
|
-
:param _StorageParams:
|
|
16777
|
+
:param _StorageParams: <p>【必填】云存储相关的参数,目前支持腾讯云对象存储以及腾讯云云点播VOD,不支持第三方云存储;输出文件的存储格式仅支持hls或mp4</p>
|
|
16755
16778
|
:type StorageParams: :class:`tencentcloud.trtc.v20190722.models.StorageParams`
|
|
16756
|
-
:param _SdkAppId:
|
|
16779
|
+
:param _SdkAppId: <p>【必填】TRTC的SdkAppId</p>
|
|
16757
16780
|
:type SdkAppId: int
|
|
16758
|
-
:param _MaxDurationLimit:
|
|
16781
|
+
:param _MaxDurationLimit: <p>录制最大时长限制, 单位 s, 合法取值范围[1800, 86400], 默认 86400s(24 小时)</p>
|
|
16759
16782
|
:type MaxDurationLimit: int
|
|
16760
|
-
:param _WebRecordVideoParams:
|
|
16783
|
+
:param _WebRecordVideoParams: <p>页面录制视频参数</p>
|
|
16761
16784
|
:type WebRecordVideoParams: :class:`tencentcloud.trtc.v20190722.models.WebRecordVideoParams`
|
|
16762
|
-
:param _RecordId:
|
|
16763
|
-
传入录制RecordId来标识此次任务, 小于32字节,若携带RecordId发起两次以上的开始录制请求,任务只会启动一个,第二个报错FailedOperation.TaskExist。注意StartWebRecord调用失败时而非FailedOperation.TaskExist错误,请更换RecordId重新发起。
|
|
16785
|
+
:param _RecordId: <p>当对重复任务敏感时,请关注此值: 为了避免任务在短时间内重复发起,导致任务重复<br>传入录制RecordId来标识此次任务, 小于32字节,若携带RecordId发起两次以上的开始录制请求,任务只会启动一个,第二个报错FailedOperation.TaskExist。注意StartWebRecord调用失败时而非FailedOperation.TaskExist错误,请更换RecordId重新发起。</p>
|
|
16764
16786
|
:type RecordId: str
|
|
16765
|
-
:param _PublishCdnParams:
|
|
16787
|
+
:param _PublishCdnParams: <p>若您想要推流到CDN,可以使用PublishCdnParams.N参数设置,支持最多同时推流到10个CDN地址。若转推地址是腾讯云CDN时,请将IsTencentCdn明确设置为1</p>
|
|
16766
16788
|
:type PublishCdnParams: list of McuPublishCdnParam
|
|
16767
|
-
:param _ReadyTimeout:
|
|
16789
|
+
:param _ReadyTimeout: <p>录制页面资源加载的超时时间,单位:秒。默认值为 0 秒,该值需大于等于 0秒,且小于等于 60秒。录制页面未启用页面加载超时检测时,请勿设置此参数。</p>
|
|
16768
16790
|
:type ReadyTimeout: int
|
|
16769
|
-
:param _EmulateMobileParams:
|
|
16791
|
+
:param _EmulateMobileParams: <p>渲染移动模式参数;不准备渲染移动模式页面时,请勿设置此参数。</p>
|
|
16770
16792
|
:type EmulateMobileParams: :class:`tencentcloud.trtc.v20190722.models.EmulateMobileParams`
|
|
16771
16793
|
"""
|
|
16772
16794
|
self._RecordUrl = None
|
|
@@ -16781,7 +16803,7 @@ class StartWebRecordRequest(AbstractModel):
|
|
|
16781
16803
|
|
|
16782
16804
|
@property
|
|
16783
16805
|
def RecordUrl(self):
|
|
16784
|
-
r"""
|
|
16806
|
+
r"""<p>【必填】需要录制的网页URL</p>
|
|
16785
16807
|
:rtype: str
|
|
16786
16808
|
"""
|
|
16787
16809
|
return self._RecordUrl
|
|
@@ -16792,7 +16814,7 @@ class StartWebRecordRequest(AbstractModel):
|
|
|
16792
16814
|
|
|
16793
16815
|
@property
|
|
16794
16816
|
def StorageParams(self):
|
|
16795
|
-
r"""
|
|
16817
|
+
r"""<p>【必填】云存储相关的参数,目前支持腾讯云对象存储以及腾讯云云点播VOD,不支持第三方云存储;输出文件的存储格式仅支持hls或mp4</p>
|
|
16796
16818
|
:rtype: :class:`tencentcloud.trtc.v20190722.models.StorageParams`
|
|
16797
16819
|
"""
|
|
16798
16820
|
return self._StorageParams
|
|
@@ -16803,7 +16825,7 @@ class StartWebRecordRequest(AbstractModel):
|
|
|
16803
16825
|
|
|
16804
16826
|
@property
|
|
16805
16827
|
def SdkAppId(self):
|
|
16806
|
-
r"""
|
|
16828
|
+
r"""<p>【必填】TRTC的SdkAppId</p>
|
|
16807
16829
|
:rtype: int
|
|
16808
16830
|
"""
|
|
16809
16831
|
return self._SdkAppId
|
|
@@ -16814,7 +16836,7 @@ class StartWebRecordRequest(AbstractModel):
|
|
|
16814
16836
|
|
|
16815
16837
|
@property
|
|
16816
16838
|
def MaxDurationLimit(self):
|
|
16817
|
-
r"""
|
|
16839
|
+
r"""<p>录制最大时长限制, 单位 s, 合法取值范围[1800, 86400], 默认 86400s(24 小时)</p>
|
|
16818
16840
|
:rtype: int
|
|
16819
16841
|
"""
|
|
16820
16842
|
return self._MaxDurationLimit
|
|
@@ -16825,7 +16847,7 @@ class StartWebRecordRequest(AbstractModel):
|
|
|
16825
16847
|
|
|
16826
16848
|
@property
|
|
16827
16849
|
def WebRecordVideoParams(self):
|
|
16828
|
-
r"""
|
|
16850
|
+
r"""<p>页面录制视频参数</p>
|
|
16829
16851
|
:rtype: :class:`tencentcloud.trtc.v20190722.models.WebRecordVideoParams`
|
|
16830
16852
|
"""
|
|
16831
16853
|
return self._WebRecordVideoParams
|
|
@@ -16836,8 +16858,7 @@ class StartWebRecordRequest(AbstractModel):
|
|
|
16836
16858
|
|
|
16837
16859
|
@property
|
|
16838
16860
|
def RecordId(self):
|
|
16839
|
-
r"""
|
|
16840
|
-
传入录制RecordId来标识此次任务, 小于32字节,若携带RecordId发起两次以上的开始录制请求,任务只会启动一个,第二个报错FailedOperation.TaskExist。注意StartWebRecord调用失败时而非FailedOperation.TaskExist错误,请更换RecordId重新发起。
|
|
16861
|
+
r"""<p>当对重复任务敏感时,请关注此值: 为了避免任务在短时间内重复发起,导致任务重复<br>传入录制RecordId来标识此次任务, 小于32字节,若携带RecordId发起两次以上的开始录制请求,任务只会启动一个,第二个报错FailedOperation.TaskExist。注意StartWebRecord调用失败时而非FailedOperation.TaskExist错误,请更换RecordId重新发起。</p>
|
|
16841
16862
|
:rtype: str
|
|
16842
16863
|
"""
|
|
16843
16864
|
return self._RecordId
|
|
@@ -16848,7 +16869,7 @@ class StartWebRecordRequest(AbstractModel):
|
|
|
16848
16869
|
|
|
16849
16870
|
@property
|
|
16850
16871
|
def PublishCdnParams(self):
|
|
16851
|
-
r"""
|
|
16872
|
+
r"""<p>若您想要推流到CDN,可以使用PublishCdnParams.N参数设置,支持最多同时推流到10个CDN地址。若转推地址是腾讯云CDN时,请将IsTencentCdn明确设置为1</p>
|
|
16852
16873
|
:rtype: list of McuPublishCdnParam
|
|
16853
16874
|
"""
|
|
16854
16875
|
return self._PublishCdnParams
|
|
@@ -16859,7 +16880,7 @@ class StartWebRecordRequest(AbstractModel):
|
|
|
16859
16880
|
|
|
16860
16881
|
@property
|
|
16861
16882
|
def ReadyTimeout(self):
|
|
16862
|
-
r"""
|
|
16883
|
+
r"""<p>录制页面资源加载的超时时间,单位:秒。默认值为 0 秒,该值需大于等于 0秒,且小于等于 60秒。录制页面未启用页面加载超时检测时,请勿设置此参数。</p>
|
|
16863
16884
|
:rtype: int
|
|
16864
16885
|
"""
|
|
16865
16886
|
return self._ReadyTimeout
|
|
@@ -16870,7 +16891,7 @@ class StartWebRecordRequest(AbstractModel):
|
|
|
16870
16891
|
|
|
16871
16892
|
@property
|
|
16872
16893
|
def EmulateMobileParams(self):
|
|
16873
|
-
r"""
|
|
16894
|
+
r"""<p>渲染移动模式参数;不准备渲染移动模式页面时,请勿设置此参数。</p>
|
|
16874
16895
|
:rtype: :class:`tencentcloud.trtc.v20190722.models.EmulateMobileParams`
|
|
16875
16896
|
"""
|
|
16876
16897
|
return self._EmulateMobileParams
|
|
@@ -16918,7 +16939,7 @@ class StartWebRecordResponse(AbstractModel):
|
|
|
16918
16939
|
|
|
16919
16940
|
def __init__(self):
|
|
16920
16941
|
r"""
|
|
16921
|
-
:param _TaskId:
|
|
16942
|
+
:param _TaskId: <p>录制任务的唯一Id</p>
|
|
16922
16943
|
:type TaskId: str
|
|
16923
16944
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
16924
16945
|
:type RequestId: str
|
|
@@ -16928,7 +16949,7 @@ class StartWebRecordResponse(AbstractModel):
|
|
|
16928
16949
|
|
|
16929
16950
|
@property
|
|
16930
16951
|
def TaskId(self):
|
|
16931
|
-
r"""
|
|
16952
|
+
r"""<p>录制任务的唯一Id</p>
|
|
16932
16953
|
:rtype: str
|
|
16933
16954
|
"""
|
|
16934
16955
|
return self._TaskId
|
|
@@ -18571,7 +18592,7 @@ class TextToSpeechRequest(AbstractModel):
|
|
|
18571
18592
|
:type Language: str
|
|
18572
18593
|
:param _PronunciationDict: <p>多音字/生僻字发音纠正词典条目。指定特定词语在本次请求中使用的发音。</p>
|
|
18573
18594
|
:type PronunciationDict: list of PronunciationDict
|
|
18574
|
-
:param _AlignmentMode: <p
|
|
18595
|
+
:param _AlignmentMode: <p>字幕级别</p><p>枚举值:</p><ul><li>0: 无字幕</li><li>1: 句子级别字幕</li><li>2: 词级别字幕,目前只有flow_01_ex支持词级别字幕</li></ul><p>默认值:0</p>
|
|
18575
18596
|
:type AlignmentMode: int
|
|
18576
18597
|
:param _ExtraParams: <p>json字符串,用于拓展用法</p>
|
|
18577
18598
|
:type ExtraParams: str
|
|
@@ -18681,7 +18702,7 @@ class TextToSpeechRequest(AbstractModel):
|
|
|
18681
18702
|
|
|
18682
18703
|
@property
|
|
18683
18704
|
def AlignmentMode(self):
|
|
18684
|
-
r"""<p
|
|
18705
|
+
r"""<p>字幕级别</p><p>枚举值:</p><ul><li>0: 无字幕</li><li>1: 句子级别字幕</li><li>2: 词级别字幕,目前只有flow_01_ex支持词级别字幕</li></ul><p>默认值:0</p>
|
|
18685
18706
|
:rtype: int
|
|
18686
18707
|
"""
|
|
18687
18708
|
return self._AlignmentMode
|
|
@@ -18833,7 +18854,7 @@ class TextToSpeechSSERequest(AbstractModel):
|
|
|
18833
18854
|
:type Language: str
|
|
18834
18855
|
:param _PronunciationDict: <p>多音字/生僻字发音纠正词典条目。指定特定词语在本次请求中使用的发音。</p>
|
|
18835
18856
|
:type PronunciationDict: list of PronunciationDict
|
|
18836
|
-
:param _AlignmentMode: <p
|
|
18857
|
+
:param _AlignmentMode: <p>字幕级别</p><p>枚举值:</p><ul><li>0: 无字幕</li><li>1: 句子级别字幕</li><li>2: 词级别字幕,目前只有flow_01_ex支持</li></ul><p>默认值:0</p>
|
|
18837
18858
|
:type AlignmentMode: int
|
|
18838
18859
|
:param _ExtraParams: <p>json字符串,用于拓展用法</p>
|
|
18839
18860
|
:type ExtraParams: str
|
|
@@ -18943,7 +18964,7 @@ class TextToSpeechSSERequest(AbstractModel):
|
|
|
18943
18964
|
|
|
18944
18965
|
@property
|
|
18945
18966
|
def AlignmentMode(self):
|
|
18946
|
-
r"""<p
|
|
18967
|
+
r"""<p>字幕级别</p><p>枚举值:</p><ul><li>0: 无字幕</li><li>1: 句子级别字幕</li><li>2: 词级别字幕,目前只有flow_01_ex支持</li></ul><p>默认值:0</p>
|
|
18947
18968
|
:rtype: int
|
|
18948
18969
|
"""
|
|
18949
18970
|
return self._AlignmentMode
|
|
@@ -21973,4 +21994,100 @@ Hls 格式录制此参数不生效。
|
|
|
21973
21994
|
memeber_set.remove(property_name)
|
|
21974
21995
|
if len(memeber_set) > 0:
|
|
21975
21996
|
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
21997
|
+
|
|
21998
|
+
|
|
21999
|
+
|
|
22000
|
+
class WordItem(AbstractModel):
|
|
22001
|
+
r"""词级别对齐信息
|
|
22002
|
+
|
|
22003
|
+
"""
|
|
22004
|
+
|
|
22005
|
+
def __init__(self):
|
|
22006
|
+
r"""
|
|
22007
|
+
:param _Word: <p>词对应的文本</p>
|
|
22008
|
+
:type Word: str
|
|
22009
|
+
:param _TimeBeginMs: <p>词对应的时间起点</p>
|
|
22010
|
+
:type TimeBeginMs: int
|
|
22011
|
+
:param _TimeEndMs: <p>词对应的时间尾点</p>
|
|
22012
|
+
:type TimeEndMs: int
|
|
22013
|
+
:param _WordBegin: <p>词的索引起点</p>
|
|
22014
|
+
:type WordBegin: int
|
|
22015
|
+
:param _WordEnd: <p>词的索引尾点</p>
|
|
22016
|
+
:type WordEnd: int
|
|
22017
|
+
"""
|
|
22018
|
+
self._Word = None
|
|
22019
|
+
self._TimeBeginMs = None
|
|
22020
|
+
self._TimeEndMs = None
|
|
22021
|
+
self._WordBegin = None
|
|
22022
|
+
self._WordEnd = None
|
|
22023
|
+
|
|
22024
|
+
@property
|
|
22025
|
+
def Word(self):
|
|
22026
|
+
r"""<p>词对应的文本</p>
|
|
22027
|
+
:rtype: str
|
|
22028
|
+
"""
|
|
22029
|
+
return self._Word
|
|
22030
|
+
|
|
22031
|
+
@Word.setter
|
|
22032
|
+
def Word(self, Word):
|
|
22033
|
+
self._Word = Word
|
|
22034
|
+
|
|
22035
|
+
@property
|
|
22036
|
+
def TimeBeginMs(self):
|
|
22037
|
+
r"""<p>词对应的时间起点</p>
|
|
22038
|
+
:rtype: int
|
|
22039
|
+
"""
|
|
22040
|
+
return self._TimeBeginMs
|
|
22041
|
+
|
|
22042
|
+
@TimeBeginMs.setter
|
|
22043
|
+
def TimeBeginMs(self, TimeBeginMs):
|
|
22044
|
+
self._TimeBeginMs = TimeBeginMs
|
|
22045
|
+
|
|
22046
|
+
@property
|
|
22047
|
+
def TimeEndMs(self):
|
|
22048
|
+
r"""<p>词对应的时间尾点</p>
|
|
22049
|
+
:rtype: int
|
|
22050
|
+
"""
|
|
22051
|
+
return self._TimeEndMs
|
|
22052
|
+
|
|
22053
|
+
@TimeEndMs.setter
|
|
22054
|
+
def TimeEndMs(self, TimeEndMs):
|
|
22055
|
+
self._TimeEndMs = TimeEndMs
|
|
22056
|
+
|
|
22057
|
+
@property
|
|
22058
|
+
def WordBegin(self):
|
|
22059
|
+
r"""<p>词的索引起点</p>
|
|
22060
|
+
:rtype: int
|
|
22061
|
+
"""
|
|
22062
|
+
return self._WordBegin
|
|
22063
|
+
|
|
22064
|
+
@WordBegin.setter
|
|
22065
|
+
def WordBegin(self, WordBegin):
|
|
22066
|
+
self._WordBegin = WordBegin
|
|
22067
|
+
|
|
22068
|
+
@property
|
|
22069
|
+
def WordEnd(self):
|
|
22070
|
+
r"""<p>词的索引尾点</p>
|
|
22071
|
+
:rtype: int
|
|
22072
|
+
"""
|
|
22073
|
+
return self._WordEnd
|
|
22074
|
+
|
|
22075
|
+
@WordEnd.setter
|
|
22076
|
+
def WordEnd(self, WordEnd):
|
|
22077
|
+
self._WordEnd = WordEnd
|
|
22078
|
+
|
|
22079
|
+
|
|
22080
|
+
def _deserialize(self, params):
|
|
22081
|
+
self._Word = params.get("Word")
|
|
22082
|
+
self._TimeBeginMs = params.get("TimeBeginMs")
|
|
22083
|
+
self._TimeEndMs = params.get("TimeEndMs")
|
|
22084
|
+
self._WordBegin = params.get("WordBegin")
|
|
22085
|
+
self._WordEnd = params.get("WordEnd")
|
|
22086
|
+
memeber_set = set(params.keys())
|
|
22087
|
+
for name, value in vars(self).items():
|
|
22088
|
+
property_name = name[1:]
|
|
22089
|
+
if property_name in memeber_set:
|
|
22090
|
+
memeber_set.remove(property_name)
|
|
22091
|
+
if len(memeber_set) > 0:
|
|
22092
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
21976
22093
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-trtc
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.123
|
|
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.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.123
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.123
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.118
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|