tencentcloud-sdk-python-trtc 3.1.122__tar.gz → 3.1.124__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.122 → tencentcloud_sdk_python_trtc-3.1.124}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_trtc-3.1.122 → tencentcloud_sdk_python_trtc-3.1.124}/setup.py +1 -1
- {tencentcloud_sdk_python_trtc-3.1.122 → tencentcloud_sdk_python_trtc-3.1.124}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_trtc-3.1.122 → tencentcloud_sdk_python_trtc-3.1.124}/tencentcloud/trtc/v20190722/errorcodes.py +6 -0
- {tencentcloud_sdk_python_trtc-3.1.122 → tencentcloud_sdk_python_trtc-3.1.124}/tencentcloud/trtc/v20190722/models.py +223 -108
- {tencentcloud_sdk_python_trtc-3.1.122 → tencentcloud_sdk_python_trtc-3.1.124}/tencentcloud_sdk_python_trtc.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_trtc-3.1.124/tencentcloud_sdk_python_trtc.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_trtc-3.1.122/tencentcloud_sdk_python_trtc.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_trtc-3.1.122 → tencentcloud_sdk_python_trtc-3.1.124}/README.rst +0 -0
- {tencentcloud_sdk_python_trtc-3.1.122 → tencentcloud_sdk_python_trtc-3.1.124}/setup.cfg +0 -0
- {tencentcloud_sdk_python_trtc-3.1.122 → tencentcloud_sdk_python_trtc-3.1.124}/tencentcloud/trtc/__init__.py +0 -0
- {tencentcloud_sdk_python_trtc-3.1.122 → tencentcloud_sdk_python_trtc-3.1.124}/tencentcloud/trtc/v20190722/__init__.py +0 -0
- {tencentcloud_sdk_python_trtc-3.1.122 → tencentcloud_sdk_python_trtc-3.1.124}/tencentcloud/trtc/v20190722/trtc_client.py +0 -0
- {tencentcloud_sdk_python_trtc-3.1.122 → tencentcloud_sdk_python_trtc-3.1.124}/tencentcloud/trtc/v20190722/trtc_client_async.py +0 -0
- {tencentcloud_sdk_python_trtc-3.1.122 → tencentcloud_sdk_python_trtc-3.1.124}/tencentcloud_sdk_python_trtc.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_trtc-3.1.122 → tencentcloud_sdk_python_trtc-3.1.124}/tencentcloud_sdk_python_trtc.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_trtc-3.1.122 → tencentcloud_sdk_python_trtc-3.1.124}/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.124
|
|
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.124
|
|
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.124,<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:]
|
|
@@ -6488,17 +6523,15 @@ class DescribeTRTCMarketQualityDataRequest(AbstractModel):
|
|
|
6488
6523
|
|
|
6489
6524
|
def __init__(self):
|
|
6490
6525
|
r"""
|
|
6491
|
-
:param _SdkAppId:
|
|
6526
|
+
:param _SdkAppId: <p>用户SdkAppId(如:1400xxxxxx)</p>
|
|
6492
6527
|
:type SdkAppId: str
|
|
6493
|
-
:param _StartTime:
|
|
6528
|
+
:param _StartTime: <p>查询开始时间,格式为YYYY-MM-DD。(查询时间范围根据监控仪表盘功能版本而定,【基础版】可查近30天,【进阶版】可查近60天)</p>
|
|
6494
6529
|
:type StartTime: str
|
|
6495
|
-
:param _EndTime:
|
|
6530
|
+
:param _EndTime: <p>查询结束时间,格式为YYYY-MM-DD。</p>
|
|
6496
6531
|
:type EndTime: str
|
|
6497
|
-
:param _Period:
|
|
6498
|
-
d:按天。此时返回查询时间范围内 UTC 时间为零点的数据。
|
|
6499
|
-
h:按小时。此时返回查询时间范围内 UTC 时间为整小时的数据。
|
|
6532
|
+
:param _Period: <p>返回数据的粒度,支持设为以下值:<br>d:按天。此时返回查询时间范围内 UTC 时间为零点的数据。<br>h:按小时。此时返回查询时间范围内 UTC 时间为整小时的数据。</p>
|
|
6500
6533
|
:type Period: str
|
|
6501
|
-
:param _IsFloat:
|
|
6534
|
+
:param _IsFloat: <p>返回数据是否为小数</p>
|
|
6502
6535
|
:type IsFloat: bool
|
|
6503
6536
|
"""
|
|
6504
6537
|
self._SdkAppId = None
|
|
@@ -6509,7 +6542,7 @@ h:按小时。此时返回查询时间范围内 UTC 时间为整小时的数
|
|
|
6509
6542
|
|
|
6510
6543
|
@property
|
|
6511
6544
|
def SdkAppId(self):
|
|
6512
|
-
r"""
|
|
6545
|
+
r"""<p>用户SdkAppId(如:1400xxxxxx)</p>
|
|
6513
6546
|
:rtype: str
|
|
6514
6547
|
"""
|
|
6515
6548
|
return self._SdkAppId
|
|
@@ -6520,7 +6553,7 @@ h:按小时。此时返回查询时间范围内 UTC 时间为整小时的数
|
|
|
6520
6553
|
|
|
6521
6554
|
@property
|
|
6522
6555
|
def StartTime(self):
|
|
6523
|
-
r"""
|
|
6556
|
+
r"""<p>查询开始时间,格式为YYYY-MM-DD。(查询时间范围根据监控仪表盘功能版本而定,【基础版】可查近30天,【进阶版】可查近60天)</p>
|
|
6524
6557
|
:rtype: str
|
|
6525
6558
|
"""
|
|
6526
6559
|
return self._StartTime
|
|
@@ -6531,7 +6564,7 @@ h:按小时。此时返回查询时间范围内 UTC 时间为整小时的数
|
|
|
6531
6564
|
|
|
6532
6565
|
@property
|
|
6533
6566
|
def EndTime(self):
|
|
6534
|
-
r"""
|
|
6567
|
+
r"""<p>查询结束时间,格式为YYYY-MM-DD。</p>
|
|
6535
6568
|
:rtype: str
|
|
6536
6569
|
"""
|
|
6537
6570
|
return self._EndTime
|
|
@@ -6542,9 +6575,7 @@ h:按小时。此时返回查询时间范围内 UTC 时间为整小时的数
|
|
|
6542
6575
|
|
|
6543
6576
|
@property
|
|
6544
6577
|
def Period(self):
|
|
6545
|
-
r"""
|
|
6546
|
-
d:按天。此时返回查询时间范围内 UTC 时间为零点的数据。
|
|
6547
|
-
h:按小时。此时返回查询时间范围内 UTC 时间为整小时的数据。
|
|
6578
|
+
r"""<p>返回数据的粒度,支持设为以下值:<br>d:按天。此时返回查询时间范围内 UTC 时间为零点的数据。<br>h:按小时。此时返回查询时间范围内 UTC 时间为整小时的数据。</p>
|
|
6548
6579
|
:rtype: str
|
|
6549
6580
|
"""
|
|
6550
6581
|
return self._Period
|
|
@@ -6555,7 +6586,7 @@ h:按小时。此时返回查询时间范围内 UTC 时间为整小时的数
|
|
|
6555
6586
|
|
|
6556
6587
|
@property
|
|
6557
6588
|
def IsFloat(self):
|
|
6558
|
-
r"""
|
|
6589
|
+
r"""<p>返回数据是否为小数</p>
|
|
6559
6590
|
:rtype: bool
|
|
6560
6591
|
"""
|
|
6561
6592
|
return self._IsFloat
|
|
@@ -6588,7 +6619,7 @@ class DescribeTRTCMarketQualityDataResponse(AbstractModel):
|
|
|
6588
6619
|
|
|
6589
6620
|
def __init__(self):
|
|
6590
6621
|
r"""
|
|
6591
|
-
:param _Data: TRTC
|
|
6622
|
+
:param _Data: <p>TRTC监控数据出参</p>
|
|
6592
6623
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
6593
6624
|
:type Data: :class:`tencentcloud.trtc.v20190722.models.TRTCDataResult`
|
|
6594
6625
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -6599,7 +6630,7 @@ class DescribeTRTCMarketQualityDataResponse(AbstractModel):
|
|
|
6599
6630
|
|
|
6600
6631
|
@property
|
|
6601
6632
|
def Data(self):
|
|
6602
|
-
r"""TRTC
|
|
6633
|
+
r"""<p>TRTC监控数据出参</p>
|
|
6603
6634
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
6604
6635
|
:rtype: :class:`tencentcloud.trtc.v20190722.models.TRTCDataResult`
|
|
6605
6636
|
"""
|
|
@@ -9719,55 +9750,36 @@ class McuLayout(AbstractModel):
|
|
|
9719
9750
|
|
|
9720
9751
|
def __init__(self):
|
|
9721
9752
|
r"""
|
|
9722
|
-
:param _UserMediaStream:
|
|
9753
|
+
:param _UserMediaStream: <p>用户媒体流参数。不填时腾讯云后台按照上行主播的进房顺序自动填充。</p>
|
|
9723
9754
|
:type UserMediaStream: :class:`tencentcloud.trtc.v20190722.models.UserMediaStream`
|
|
9724
|
-
:param _ImageWidth:
|
|
9755
|
+
:param _ImageWidth: <p>子画面在输出时的宽度,单位为像素值,不填默认为0。</p>
|
|
9725
9756
|
:type ImageWidth: int
|
|
9726
|
-
:param _ImageHeight:
|
|
9757
|
+
:param _ImageHeight: <p>子画面在输出时的高度,单位为像素值,不填默认为0。</p>
|
|
9727
9758
|
:type ImageHeight: int
|
|
9728
|
-
:param _LocationX:
|
|
9759
|
+
:param _LocationX: <p>子画面在输出时的X偏移,单位为像素值,LocationX与ImageWidth之和不能超过混流输出的总宽度,不填默认为0。</p>
|
|
9729
9760
|
:type LocationX: int
|
|
9730
|
-
:param _LocationY:
|
|
9761
|
+
:param _LocationY: <p>子画面在输出时的Y偏移,单位为像素值,LocationY与ImageHeight之和不能超过混流输出的总高度,不填默认为0。</p>
|
|
9731
9762
|
:type LocationY: int
|
|
9732
|
-
:param _ZOrder:
|
|
9763
|
+
:param _ZOrder: <p>子画面在输出时的层级,不填默认为0。</p>
|
|
9733
9764
|
:type ZOrder: int
|
|
9734
|
-
:param _RenderMode:
|
|
9765
|
+
:param _RenderMode: <p>子画面在输出时的显示模式:0为裁剪,1为缩放并显示背景,2为缩放并显示黑底。不填默认为0。</p>
|
|
9735
9766
|
:type RenderMode: int
|
|
9736
|
-
:param _BackGroundColor:
|
|
9737
|
-
红色:0xcc0033。
|
|
9738
|
-
黄色:0xcc9900。
|
|
9739
|
-
绿色:0xcccc33。
|
|
9740
|
-
蓝色:0x99CCFF。
|
|
9741
|
-
黑色:0x000000。
|
|
9742
|
-
白色:0xFFFFFF。
|
|
9743
|
-
灰色:0x999999。
|
|
9767
|
+
:param _BackGroundColor: <p>【此参数配置无效,暂不支持】子画面的背景颜色,常用的颜色有:<br>红色:0xcc0033。<br>黄色:0xcc9900。<br>绿色:0xcccc33。<br>蓝色:0x99CCFF。<br>黑色:0x000000。<br>白色:0xFFFFFF。<br>灰色:0x999999。</p>
|
|
9744
9768
|
:type BackGroundColor: str
|
|
9745
|
-
:param _BackgroundImageUrl:
|
|
9746
|
-
注:
|
|
9747
|
-
1,您需要确保图片链接的可访问性,后台单次下载超时时间为10秒,最多重试3次,若最终图片下载失败,占位图片将不会生效。
|
|
9748
|
-
2,url可支持字符集:【'0-9','a-z','A-Z','-', '.', '_', '~', ':', '/', '?', '#', '[', ']','@', '!', '&', '(', ')', '*', '+', ',', '%', '=', ';', '|'】,您需要确保url字符在可支持字符集内,若存在可支持字符集外的字符,占位图片将不会生效。
|
|
9769
|
+
: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
9770
|
:type BackgroundImageUrl: str
|
|
9750
|
-
:param _CustomCrop:
|
|
9771
|
+
:param _CustomCrop: <p>客户自定义裁剪,针对原始输入流裁剪</p>
|
|
9751
9772
|
:type CustomCrop: :class:`tencentcloud.trtc.v20190722.models.McuCustomCrop`
|
|
9752
|
-
:param _BackgroundRenderMode:
|
|
9773
|
+
:param _BackgroundRenderMode: <p>子背景图在输出时的显示模式:0为裁剪,1为缩放并显示背景,2为缩放并显示黑底,3为变比例伸缩,4为自定义渲染。不填默认为3。</p>
|
|
9753
9774
|
: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字符在可支持字符集内,若存在可支持字符集外的字符,透明模版将不会生效。
|
|
9775
|
+
: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
9776
|
:type TransparentUrl: str
|
|
9759
|
-
:param _BackgroundCustomRender:
|
|
9777
|
+
:param _BackgroundCustomRender: <p>子背景图的自定义渲染参数,当BackgroundRenderMode为4时必须配置。</p>
|
|
9760
9778
|
: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
|
-
|
|
9779
|
+
: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
9780
|
:type BackGroundColorMode: int
|
|
9781
|
+
:param _EnableStreamSEI: <p>是否保留上行SEI,1:保留 0:不保留</p><p>取值范围:[0, 1]</p><p>默认值:1</p>
|
|
9782
|
+
:type EnableStreamSEI: int
|
|
9771
9783
|
"""
|
|
9772
9784
|
self._UserMediaStream = None
|
|
9773
9785
|
self._ImageWidth = None
|
|
@@ -9783,10 +9795,11 @@ bit1:上行流缩放是否生效。
|
|
|
9783
9795
|
self._TransparentUrl = None
|
|
9784
9796
|
self._BackgroundCustomRender = None
|
|
9785
9797
|
self._BackGroundColorMode = None
|
|
9798
|
+
self._EnableStreamSEI = None
|
|
9786
9799
|
|
|
9787
9800
|
@property
|
|
9788
9801
|
def UserMediaStream(self):
|
|
9789
|
-
r"""
|
|
9802
|
+
r"""<p>用户媒体流参数。不填时腾讯云后台按照上行主播的进房顺序自动填充。</p>
|
|
9790
9803
|
:rtype: :class:`tencentcloud.trtc.v20190722.models.UserMediaStream`
|
|
9791
9804
|
"""
|
|
9792
9805
|
return self._UserMediaStream
|
|
@@ -9797,7 +9810,7 @@ bit1:上行流缩放是否生效。
|
|
|
9797
9810
|
|
|
9798
9811
|
@property
|
|
9799
9812
|
def ImageWidth(self):
|
|
9800
|
-
r"""
|
|
9813
|
+
r"""<p>子画面在输出时的宽度,单位为像素值,不填默认为0。</p>
|
|
9801
9814
|
:rtype: int
|
|
9802
9815
|
"""
|
|
9803
9816
|
return self._ImageWidth
|
|
@@ -9808,7 +9821,7 @@ bit1:上行流缩放是否生效。
|
|
|
9808
9821
|
|
|
9809
9822
|
@property
|
|
9810
9823
|
def ImageHeight(self):
|
|
9811
|
-
r"""
|
|
9824
|
+
r"""<p>子画面在输出时的高度,单位为像素值,不填默认为0。</p>
|
|
9812
9825
|
:rtype: int
|
|
9813
9826
|
"""
|
|
9814
9827
|
return self._ImageHeight
|
|
@@ -9819,7 +9832,7 @@ bit1:上行流缩放是否生效。
|
|
|
9819
9832
|
|
|
9820
9833
|
@property
|
|
9821
9834
|
def LocationX(self):
|
|
9822
|
-
r"""
|
|
9835
|
+
r"""<p>子画面在输出时的X偏移,单位为像素值,LocationX与ImageWidth之和不能超过混流输出的总宽度,不填默认为0。</p>
|
|
9823
9836
|
:rtype: int
|
|
9824
9837
|
"""
|
|
9825
9838
|
return self._LocationX
|
|
@@ -9830,7 +9843,7 @@ bit1:上行流缩放是否生效。
|
|
|
9830
9843
|
|
|
9831
9844
|
@property
|
|
9832
9845
|
def LocationY(self):
|
|
9833
|
-
r"""
|
|
9846
|
+
r"""<p>子画面在输出时的Y偏移,单位为像素值,LocationY与ImageHeight之和不能超过混流输出的总高度,不填默认为0。</p>
|
|
9834
9847
|
:rtype: int
|
|
9835
9848
|
"""
|
|
9836
9849
|
return self._LocationY
|
|
@@ -9841,7 +9854,7 @@ bit1:上行流缩放是否生效。
|
|
|
9841
9854
|
|
|
9842
9855
|
@property
|
|
9843
9856
|
def ZOrder(self):
|
|
9844
|
-
r"""
|
|
9857
|
+
r"""<p>子画面在输出时的层级,不填默认为0。</p>
|
|
9845
9858
|
:rtype: int
|
|
9846
9859
|
"""
|
|
9847
9860
|
return self._ZOrder
|
|
@@ -9852,7 +9865,7 @@ bit1:上行流缩放是否生效。
|
|
|
9852
9865
|
|
|
9853
9866
|
@property
|
|
9854
9867
|
def RenderMode(self):
|
|
9855
|
-
r"""
|
|
9868
|
+
r"""<p>子画面在输出时的显示模式:0为裁剪,1为缩放并显示背景,2为缩放并显示黑底。不填默认为0。</p>
|
|
9856
9869
|
:rtype: int
|
|
9857
9870
|
"""
|
|
9858
9871
|
return self._RenderMode
|
|
@@ -9863,14 +9876,7 @@ bit1:上行流缩放是否生效。
|
|
|
9863
9876
|
|
|
9864
9877
|
@property
|
|
9865
9878
|
def BackGroundColor(self):
|
|
9866
|
-
r"""
|
|
9867
|
-
红色:0xcc0033。
|
|
9868
|
-
黄色:0xcc9900。
|
|
9869
|
-
绿色:0xcccc33。
|
|
9870
|
-
蓝色:0x99CCFF。
|
|
9871
|
-
黑色:0x000000。
|
|
9872
|
-
白色:0xFFFFFF。
|
|
9873
|
-
灰色:0x999999。
|
|
9879
|
+
r"""<p>【此参数配置无效,暂不支持】子画面的背景颜色,常用的颜色有:<br>红色:0xcc0033。<br>黄色:0xcc9900。<br>绿色:0xcccc33。<br>蓝色:0x99CCFF。<br>黑色:0x000000。<br>白色:0xFFFFFF。<br>灰色:0x999999。</p>
|
|
9874
9880
|
:rtype: str
|
|
9875
9881
|
"""
|
|
9876
9882
|
return self._BackGroundColor
|
|
@@ -9881,10 +9887,7 @@ bit1:上行流缩放是否生效。
|
|
|
9881
9887
|
|
|
9882
9888
|
@property
|
|
9883
9889
|
def BackgroundImageUrl(self):
|
|
9884
|
-
r"""
|
|
9885
|
-
注:
|
|
9886
|
-
1,您需要确保图片链接的可访问性,后台单次下载超时时间为10秒,最多重试3次,若最终图片下载失败,占位图片将不会生效。
|
|
9887
|
-
2,url可支持字符集:【'0-9','a-z','A-Z','-', '.', '_', '~', ':', '/', '?', '#', '[', ']','@', '!', '&', '(', ')', '*', '+', ',', '%', '=', ';', '|'】,您需要确保url字符在可支持字符集内,若存在可支持字符集外的字符,占位图片将不会生效。
|
|
9890
|
+
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
9891
|
:rtype: str
|
|
9889
9892
|
"""
|
|
9890
9893
|
return self._BackgroundImageUrl
|
|
@@ -9895,7 +9898,7 @@ bit1:上行流缩放是否生效。
|
|
|
9895
9898
|
|
|
9896
9899
|
@property
|
|
9897
9900
|
def CustomCrop(self):
|
|
9898
|
-
r"""
|
|
9901
|
+
r"""<p>客户自定义裁剪,针对原始输入流裁剪</p>
|
|
9899
9902
|
:rtype: :class:`tencentcloud.trtc.v20190722.models.McuCustomCrop`
|
|
9900
9903
|
"""
|
|
9901
9904
|
return self._CustomCrop
|
|
@@ -9906,7 +9909,7 @@ bit1:上行流缩放是否生效。
|
|
|
9906
9909
|
|
|
9907
9910
|
@property
|
|
9908
9911
|
def BackgroundRenderMode(self):
|
|
9909
|
-
r"""
|
|
9912
|
+
r"""<p>子背景图在输出时的显示模式:0为裁剪,1为缩放并显示背景,2为缩放并显示黑底,3为变比例伸缩,4为自定义渲染。不填默认为3。</p>
|
|
9910
9913
|
:rtype: int
|
|
9911
9914
|
"""
|
|
9912
9915
|
return self._BackgroundRenderMode
|
|
@@ -9917,10 +9920,7 @@ bit1:上行流缩放是否生效。
|
|
|
9917
9920
|
|
|
9918
9921
|
@property
|
|
9919
9922
|
def TransparentUrl(self):
|
|
9920
|
-
r"""
|
|
9921
|
-
注:
|
|
9922
|
-
1,模板图片宽高比应接近目标画面宽高比,以避免缩放适配目标画面时出现模板效果变形;2,透明模版只有RenderMode为0(裁剪)时才生效;3,您需要确保图片链接的可访问性,后台单次下载超时时间为10秒,最多重试3次,若最终图片下载失败,透明模板将不会生效。
|
|
9923
|
-
2,url可支持字符集:【'0-9','a-z','A-Z','-', '.', '_', '~', ':', '/', '?', '#', '[', ']','@', '!', '&', '(', ')', '*', '+', ',', '%', '=', ';', '|'】,您需要确保url字符在可支持字符集内,若存在可支持字符集外的字符,透明模版将不会生效。
|
|
9923
|
+
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
9924
|
:rtype: str
|
|
9925
9925
|
"""
|
|
9926
9926
|
return self._TransparentUrl
|
|
@@ -9931,7 +9931,7 @@ bit1:上行流缩放是否生效。
|
|
|
9931
9931
|
|
|
9932
9932
|
@property
|
|
9933
9933
|
def BackgroundCustomRender(self):
|
|
9934
|
-
r"""
|
|
9934
|
+
r"""<p>子背景图的自定义渲染参数,当BackgroundRenderMode为4时必须配置。</p>
|
|
9935
9935
|
:rtype: :class:`tencentcloud.trtc.v20190722.models.McuBackgroundCustomRender`
|
|
9936
9936
|
"""
|
|
9937
9937
|
return self._BackgroundCustomRender
|
|
@@ -9942,15 +9942,7 @@ bit1:上行流缩放是否生效。
|
|
|
9942
9942
|
|
|
9943
9943
|
@property
|
|
9944
9944
|
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
|
-
|
|
9945
|
+
r"""<p>子背景色生效模式,默认值为0表示均不生效。<br>bit0:占位图缩放是否生效。<br>bit1:上行流缩放是否生效。<br>您可以将相应bit位置1启动生效,例如:<br>0(00)表示子背景色不生效。<br>1(01)表示子背景色只在占位图缩放时生效。<br>2(10)表示子背景色只在上行流缩放时生效。<br>3(11)表示子背景色在占位图缩放和上行流缩放时均生效。</p>
|
|
9954
9946
|
:rtype: int
|
|
9955
9947
|
"""
|
|
9956
9948
|
return self._BackGroundColorMode
|
|
@@ -9959,6 +9951,17 @@ bit1:上行流缩放是否生效。
|
|
|
9959
9951
|
def BackGroundColorMode(self, BackGroundColorMode):
|
|
9960
9952
|
self._BackGroundColorMode = BackGroundColorMode
|
|
9961
9953
|
|
|
9954
|
+
@property
|
|
9955
|
+
def EnableStreamSEI(self):
|
|
9956
|
+
r"""<p>是否保留上行SEI,1:保留 0:不保留</p><p>取值范围:[0, 1]</p><p>默认值:1</p>
|
|
9957
|
+
:rtype: int
|
|
9958
|
+
"""
|
|
9959
|
+
return self._EnableStreamSEI
|
|
9960
|
+
|
|
9961
|
+
@EnableStreamSEI.setter
|
|
9962
|
+
def EnableStreamSEI(self, EnableStreamSEI):
|
|
9963
|
+
self._EnableStreamSEI = EnableStreamSEI
|
|
9964
|
+
|
|
9962
9965
|
|
|
9963
9966
|
def _deserialize(self, params):
|
|
9964
9967
|
if params.get("UserMediaStream") is not None:
|
|
@@ -9981,6 +9984,7 @@ bit1:上行流缩放是否生效。
|
|
|
9981
9984
|
self._BackgroundCustomRender = McuBackgroundCustomRender()
|
|
9982
9985
|
self._BackgroundCustomRender._deserialize(params.get("BackgroundCustomRender"))
|
|
9983
9986
|
self._BackGroundColorMode = params.get("BackGroundColorMode")
|
|
9987
|
+
self._EnableStreamSEI = params.get("EnableStreamSEI")
|
|
9984
9988
|
memeber_set = set(params.keys())
|
|
9985
9989
|
for name, value in vars(self).items():
|
|
9986
9990
|
property_name = name[1:]
|
|
@@ -9998,26 +10002,29 @@ class McuLayoutParams(AbstractModel):
|
|
|
9998
10002
|
|
|
9999
10003
|
def __init__(self):
|
|
10000
10004
|
r"""
|
|
10001
|
-
:param _MixLayoutMode:
|
|
10005
|
+
:param _MixLayoutMode: <p>布局模式:动态布局(1:悬浮布局(默认),2:屏幕分享布局,3:九宫格布局),静态布局(4:自定义布局)。最多支持混入16路音视频流,如果用户只上行音频,也会被算作一路;自定义布局中,如果子画面只设置占位图,也被算作一路。</p>
|
|
10002
10006
|
:type MixLayoutMode: int
|
|
10003
|
-
:param _PureAudioHoldPlaceMode:
|
|
10007
|
+
:param _PureAudioHoldPlaceMode: <p>纯音频上行是否占布局位置,只在动态布局中有效。0表示纯音频不占布局位置,1表示纯音频占布局位置,不填默认为0。</p>
|
|
10004
10008
|
:type PureAudioHoldPlaceMode: int
|
|
10005
|
-
:param _MixLayoutList:
|
|
10009
|
+
:param _MixLayoutList: <p>自定义模板中有效,指定用户视频在混合画面中的位置,最多支持设置16个输入流。</p>
|
|
10006
10010
|
:type MixLayoutList: list of McuLayout
|
|
10007
|
-
:param _MaxVideoUser:
|
|
10011
|
+
:param _MaxVideoUser: <p>指定动态布局中悬浮布局和屏幕分享布局的大画面信息,只在悬浮布局和屏幕分享布局有效。</p>
|
|
10008
10012
|
:type MaxVideoUser: :class:`tencentcloud.trtc.v20190722.models.MaxVideoUser`
|
|
10009
|
-
:param _RenderMode:
|
|
10013
|
+
:param _RenderMode: <p>屏幕分享模板、悬浮模板、九宫格模版有效,画面在输出时的显示模式:0为裁剪,1为缩放,2为缩放并显示黑底</p>
|
|
10010
10014
|
:type RenderMode: int
|
|
10015
|
+
:param _EnableStreamSEI: <p>是否保留上行sei,1:保留 0:不保留,只对动态布局生效,自定义布局不生效</p><p>取值范围:[0, 1]</p><p>默认值:1</p>
|
|
10016
|
+
:type EnableStreamSEI: int
|
|
10011
10017
|
"""
|
|
10012
10018
|
self._MixLayoutMode = None
|
|
10013
10019
|
self._PureAudioHoldPlaceMode = None
|
|
10014
10020
|
self._MixLayoutList = None
|
|
10015
10021
|
self._MaxVideoUser = None
|
|
10016
10022
|
self._RenderMode = None
|
|
10023
|
+
self._EnableStreamSEI = None
|
|
10017
10024
|
|
|
10018
10025
|
@property
|
|
10019
10026
|
def MixLayoutMode(self):
|
|
10020
|
-
r"""
|
|
10027
|
+
r"""<p>布局模式:动态布局(1:悬浮布局(默认),2:屏幕分享布局,3:九宫格布局),静态布局(4:自定义布局)。最多支持混入16路音视频流,如果用户只上行音频,也会被算作一路;自定义布局中,如果子画面只设置占位图,也被算作一路。</p>
|
|
10021
10028
|
:rtype: int
|
|
10022
10029
|
"""
|
|
10023
10030
|
return self._MixLayoutMode
|
|
@@ -10028,7 +10035,7 @@ class McuLayoutParams(AbstractModel):
|
|
|
10028
10035
|
|
|
10029
10036
|
@property
|
|
10030
10037
|
def PureAudioHoldPlaceMode(self):
|
|
10031
|
-
r"""
|
|
10038
|
+
r"""<p>纯音频上行是否占布局位置,只在动态布局中有效。0表示纯音频不占布局位置,1表示纯音频占布局位置,不填默认为0。</p>
|
|
10032
10039
|
:rtype: int
|
|
10033
10040
|
"""
|
|
10034
10041
|
return self._PureAudioHoldPlaceMode
|
|
@@ -10039,7 +10046,7 @@ class McuLayoutParams(AbstractModel):
|
|
|
10039
10046
|
|
|
10040
10047
|
@property
|
|
10041
10048
|
def MixLayoutList(self):
|
|
10042
|
-
r"""
|
|
10049
|
+
r"""<p>自定义模板中有效,指定用户视频在混合画面中的位置,最多支持设置16个输入流。</p>
|
|
10043
10050
|
:rtype: list of McuLayout
|
|
10044
10051
|
"""
|
|
10045
10052
|
return self._MixLayoutList
|
|
@@ -10050,7 +10057,7 @@ class McuLayoutParams(AbstractModel):
|
|
|
10050
10057
|
|
|
10051
10058
|
@property
|
|
10052
10059
|
def MaxVideoUser(self):
|
|
10053
|
-
r"""
|
|
10060
|
+
r"""<p>指定动态布局中悬浮布局和屏幕分享布局的大画面信息,只在悬浮布局和屏幕分享布局有效。</p>
|
|
10054
10061
|
:rtype: :class:`tencentcloud.trtc.v20190722.models.MaxVideoUser`
|
|
10055
10062
|
"""
|
|
10056
10063
|
return self._MaxVideoUser
|
|
@@ -10061,7 +10068,7 @@ class McuLayoutParams(AbstractModel):
|
|
|
10061
10068
|
|
|
10062
10069
|
@property
|
|
10063
10070
|
def RenderMode(self):
|
|
10064
|
-
r"""
|
|
10071
|
+
r"""<p>屏幕分享模板、悬浮模板、九宫格模版有效,画面在输出时的显示模式:0为裁剪,1为缩放,2为缩放并显示黑底</p>
|
|
10065
10072
|
:rtype: int
|
|
10066
10073
|
"""
|
|
10067
10074
|
return self._RenderMode
|
|
@@ -10070,6 +10077,17 @@ class McuLayoutParams(AbstractModel):
|
|
|
10070
10077
|
def RenderMode(self, RenderMode):
|
|
10071
10078
|
self._RenderMode = RenderMode
|
|
10072
10079
|
|
|
10080
|
+
@property
|
|
10081
|
+
def EnableStreamSEI(self):
|
|
10082
|
+
r"""<p>是否保留上行sei,1:保留 0:不保留,只对动态布局生效,自定义布局不生效</p><p>取值范围:[0, 1]</p><p>默认值:1</p>
|
|
10083
|
+
:rtype: int
|
|
10084
|
+
"""
|
|
10085
|
+
return self._EnableStreamSEI
|
|
10086
|
+
|
|
10087
|
+
@EnableStreamSEI.setter
|
|
10088
|
+
def EnableStreamSEI(self, EnableStreamSEI):
|
|
10089
|
+
self._EnableStreamSEI = EnableStreamSEI
|
|
10090
|
+
|
|
10073
10091
|
|
|
10074
10092
|
def _deserialize(self, params):
|
|
10075
10093
|
self._MixLayoutMode = params.get("MixLayoutMode")
|
|
@@ -10084,6 +10102,7 @@ class McuLayoutParams(AbstractModel):
|
|
|
10084
10102
|
self._MaxVideoUser = MaxVideoUser()
|
|
10085
10103
|
self._MaxVideoUser._deserialize(params.get("MaxVideoUser"))
|
|
10086
10104
|
self._RenderMode = params.get("RenderMode")
|
|
10105
|
+
self._EnableStreamSEI = params.get("EnableStreamSEI")
|
|
10087
10106
|
memeber_set = set(params.keys())
|
|
10088
10107
|
for name, value in vars(self).items():
|
|
10089
10108
|
property_name = name[1:]
|
|
@@ -18569,7 +18588,7 @@ class TextToSpeechRequest(AbstractModel):
|
|
|
18569
18588
|
:type Language: str
|
|
18570
18589
|
:param _PronunciationDict: <p>多音字/生僻字发音纠正词典条目。指定特定词语在本次请求中使用的发音。</p>
|
|
18571
18590
|
:type PronunciationDict: list of PronunciationDict
|
|
18572
|
-
:param _AlignmentMode: <p
|
|
18591
|
+
:param _AlignmentMode: <p>字幕级别</p><p>枚举值:</p><ul><li>0: 无字幕</li><li>1: 句子级别字幕</li><li>2: 词级别字幕,目前只有flow_01_ex支持词级别字幕</li></ul><p>默认值:0</p>
|
|
18573
18592
|
:type AlignmentMode: int
|
|
18574
18593
|
:param _ExtraParams: <p>json字符串,用于拓展用法</p>
|
|
18575
18594
|
:type ExtraParams: str
|
|
@@ -18679,7 +18698,7 @@ class TextToSpeechRequest(AbstractModel):
|
|
|
18679
18698
|
|
|
18680
18699
|
@property
|
|
18681
18700
|
def AlignmentMode(self):
|
|
18682
|
-
r"""<p
|
|
18701
|
+
r"""<p>字幕级别</p><p>枚举值:</p><ul><li>0: 无字幕</li><li>1: 句子级别字幕</li><li>2: 词级别字幕,目前只有flow_01_ex支持词级别字幕</li></ul><p>默认值:0</p>
|
|
18683
18702
|
:rtype: int
|
|
18684
18703
|
"""
|
|
18685
18704
|
return self._AlignmentMode
|
|
@@ -18831,7 +18850,7 @@ class TextToSpeechSSERequest(AbstractModel):
|
|
|
18831
18850
|
:type Language: str
|
|
18832
18851
|
:param _PronunciationDict: <p>多音字/生僻字发音纠正词典条目。指定特定词语在本次请求中使用的发音。</p>
|
|
18833
18852
|
:type PronunciationDict: list of PronunciationDict
|
|
18834
|
-
:param _AlignmentMode: <p
|
|
18853
|
+
:param _AlignmentMode: <p>字幕级别</p><p>枚举值:</p><ul><li>0: 无字幕</li><li>1: 句子级别字幕</li><li>2: 词级别字幕,目前只有flow_01_ex支持</li></ul><p>默认值:0</p>
|
|
18835
18854
|
:type AlignmentMode: int
|
|
18836
18855
|
:param _ExtraParams: <p>json字符串,用于拓展用法</p>
|
|
18837
18856
|
:type ExtraParams: str
|
|
@@ -18941,7 +18960,7 @@ class TextToSpeechSSERequest(AbstractModel):
|
|
|
18941
18960
|
|
|
18942
18961
|
@property
|
|
18943
18962
|
def AlignmentMode(self):
|
|
18944
|
-
r"""<p
|
|
18963
|
+
r"""<p>字幕级别</p><p>枚举值:</p><ul><li>0: 无字幕</li><li>1: 句子级别字幕</li><li>2: 词级别字幕,目前只有flow_01_ex支持</li></ul><p>默认值:0</p>
|
|
18945
18964
|
:rtype: int
|
|
18946
18965
|
"""
|
|
18947
18966
|
return self._AlignmentMode
|
|
@@ -21971,4 +21990,100 @@ Hls 格式录制此参数不生效。
|
|
|
21971
21990
|
memeber_set.remove(property_name)
|
|
21972
21991
|
if len(memeber_set) > 0:
|
|
21973
21992
|
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
21993
|
+
|
|
21994
|
+
|
|
21995
|
+
|
|
21996
|
+
class WordItem(AbstractModel):
|
|
21997
|
+
r"""词级别对齐信息
|
|
21998
|
+
|
|
21999
|
+
"""
|
|
22000
|
+
|
|
22001
|
+
def __init__(self):
|
|
22002
|
+
r"""
|
|
22003
|
+
:param _Word: <p>词对应的文本</p>
|
|
22004
|
+
:type Word: str
|
|
22005
|
+
:param _TimeBeginMs: <p>词对应的时间起点</p>
|
|
22006
|
+
:type TimeBeginMs: int
|
|
22007
|
+
:param _TimeEndMs: <p>词对应的时间尾点</p>
|
|
22008
|
+
:type TimeEndMs: int
|
|
22009
|
+
:param _WordBegin: <p>词的索引起点</p>
|
|
22010
|
+
:type WordBegin: int
|
|
22011
|
+
:param _WordEnd: <p>词的索引尾点</p>
|
|
22012
|
+
:type WordEnd: int
|
|
22013
|
+
"""
|
|
22014
|
+
self._Word = None
|
|
22015
|
+
self._TimeBeginMs = None
|
|
22016
|
+
self._TimeEndMs = None
|
|
22017
|
+
self._WordBegin = None
|
|
22018
|
+
self._WordEnd = None
|
|
22019
|
+
|
|
22020
|
+
@property
|
|
22021
|
+
def Word(self):
|
|
22022
|
+
r"""<p>词对应的文本</p>
|
|
22023
|
+
:rtype: str
|
|
22024
|
+
"""
|
|
22025
|
+
return self._Word
|
|
22026
|
+
|
|
22027
|
+
@Word.setter
|
|
22028
|
+
def Word(self, Word):
|
|
22029
|
+
self._Word = Word
|
|
22030
|
+
|
|
22031
|
+
@property
|
|
22032
|
+
def TimeBeginMs(self):
|
|
22033
|
+
r"""<p>词对应的时间起点</p>
|
|
22034
|
+
:rtype: int
|
|
22035
|
+
"""
|
|
22036
|
+
return self._TimeBeginMs
|
|
22037
|
+
|
|
22038
|
+
@TimeBeginMs.setter
|
|
22039
|
+
def TimeBeginMs(self, TimeBeginMs):
|
|
22040
|
+
self._TimeBeginMs = TimeBeginMs
|
|
22041
|
+
|
|
22042
|
+
@property
|
|
22043
|
+
def TimeEndMs(self):
|
|
22044
|
+
r"""<p>词对应的时间尾点</p>
|
|
22045
|
+
:rtype: int
|
|
22046
|
+
"""
|
|
22047
|
+
return self._TimeEndMs
|
|
22048
|
+
|
|
22049
|
+
@TimeEndMs.setter
|
|
22050
|
+
def TimeEndMs(self, TimeEndMs):
|
|
22051
|
+
self._TimeEndMs = TimeEndMs
|
|
22052
|
+
|
|
22053
|
+
@property
|
|
22054
|
+
def WordBegin(self):
|
|
22055
|
+
r"""<p>词的索引起点</p>
|
|
22056
|
+
:rtype: int
|
|
22057
|
+
"""
|
|
22058
|
+
return self._WordBegin
|
|
22059
|
+
|
|
22060
|
+
@WordBegin.setter
|
|
22061
|
+
def WordBegin(self, WordBegin):
|
|
22062
|
+
self._WordBegin = WordBegin
|
|
22063
|
+
|
|
22064
|
+
@property
|
|
22065
|
+
def WordEnd(self):
|
|
22066
|
+
r"""<p>词的索引尾点</p>
|
|
22067
|
+
:rtype: int
|
|
22068
|
+
"""
|
|
22069
|
+
return self._WordEnd
|
|
22070
|
+
|
|
22071
|
+
@WordEnd.setter
|
|
22072
|
+
def WordEnd(self, WordEnd):
|
|
22073
|
+
self._WordEnd = WordEnd
|
|
22074
|
+
|
|
22075
|
+
|
|
22076
|
+
def _deserialize(self, params):
|
|
22077
|
+
self._Word = params.get("Word")
|
|
22078
|
+
self._TimeBeginMs = params.get("TimeBeginMs")
|
|
22079
|
+
self._TimeEndMs = params.get("TimeEndMs")
|
|
22080
|
+
self._WordBegin = params.get("WordBegin")
|
|
22081
|
+
self._WordEnd = params.get("WordEnd")
|
|
22082
|
+
memeber_set = set(params.keys())
|
|
22083
|
+
for name, value in vars(self).items():
|
|
22084
|
+
property_name = name[1:]
|
|
22085
|
+
if property_name in memeber_set:
|
|
22086
|
+
memeber_set.remove(property_name)
|
|
22087
|
+
if len(memeber_set) > 0:
|
|
22088
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
21974
22089
|
|
|
@@ -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.124
|
|
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.124
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.124
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.122
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|