tencentcloud-sdk-python-trtc 3.0.1452__py2.py3-none-any.whl → 3.0.1458__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 +1 -1
- tencentcloud/trtc/v20190722/models.py +161 -2
- {tencentcloud_sdk_python_trtc-3.0.1452.dist-info → tencentcloud_sdk_python_trtc-3.0.1458.dist-info}/METADATA +2 -2
- tencentcloud_sdk_python_trtc-3.0.1458.dist-info/RECORD +10 -0
- tencentcloud_sdk_python_trtc-3.0.1452.dist-info/RECORD +0 -10
- {tencentcloud_sdk_python_trtc-3.0.1452.dist-info → tencentcloud_sdk_python_trtc-3.0.1458.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_trtc-3.0.1452.dist-info → tencentcloud_sdk_python_trtc-3.0.1458.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -12122,6 +12122,8 @@ class RecognizeConfig(AbstractModel):
|
|
|
12122
12122
|
:type HotWordList: str
|
|
12123
12123
|
:param _VadSilenceTime: 语音识别vad的时间,范围为240-2000,默认为1000,单位为ms。更小的值会让语音识别分句更快。
|
|
12124
12124
|
:type VadSilenceTime: int
|
|
12125
|
+
:param _VadLevel: vad的远场人声抑制能力(不会对asr识别效果造成影响),范围为[0, 3],默认为0。推荐设置为2,有较好的远场人声抑制能力。
|
|
12126
|
+
:type VadLevel: int
|
|
12125
12127
|
"""
|
|
12126
12128
|
self._Language = None
|
|
12127
12129
|
self._AlternativeLanguage = None
|
|
@@ -12129,6 +12131,7 @@ class RecognizeConfig(AbstractModel):
|
|
|
12129
12131
|
self._TranslationLanguage = None
|
|
12130
12132
|
self._HotWordList = None
|
|
12131
12133
|
self._VadSilenceTime = None
|
|
12134
|
+
self._VadLevel = None
|
|
12132
12135
|
|
|
12133
12136
|
@property
|
|
12134
12137
|
def Language(self):
|
|
@@ -12271,6 +12274,17 @@ class RecognizeConfig(AbstractModel):
|
|
|
12271
12274
|
def VadSilenceTime(self, VadSilenceTime):
|
|
12272
12275
|
self._VadSilenceTime = VadSilenceTime
|
|
12273
12276
|
|
|
12277
|
+
@property
|
|
12278
|
+
def VadLevel(self):
|
|
12279
|
+
"""vad的远场人声抑制能力(不会对asr识别效果造成影响),范围为[0, 3],默认为0。推荐设置为2,有较好的远场人声抑制能力。
|
|
12280
|
+
:rtype: int
|
|
12281
|
+
"""
|
|
12282
|
+
return self._VadLevel
|
|
12283
|
+
|
|
12284
|
+
@VadLevel.setter
|
|
12285
|
+
def VadLevel(self, VadLevel):
|
|
12286
|
+
self._VadLevel = VadLevel
|
|
12287
|
+
|
|
12274
12288
|
|
|
12275
12289
|
def _deserialize(self, params):
|
|
12276
12290
|
self._Language = params.get("Language")
|
|
@@ -12279,6 +12293,7 @@ class RecognizeConfig(AbstractModel):
|
|
|
12279
12293
|
self._TranslationLanguage = params.get("TranslationLanguage")
|
|
12280
12294
|
self._HotWordList = params.get("HotWordList")
|
|
12281
12295
|
self._VadSilenceTime = params.get("VadSilenceTime")
|
|
12296
|
+
self._VadLevel = params.get("VadLevel")
|
|
12282
12297
|
memeber_set = set(params.keys())
|
|
12283
12298
|
for name, value in vars(self).items():
|
|
12284
12299
|
property_name = name[1:]
|
|
@@ -13809,8 +13824,9 @@ class SliceParams(AbstractModel):
|
|
|
13809
13824
|
示例值:30
|
|
13810
13825
|
:type MaxIdleTime: int
|
|
13811
13826
|
:param _SliceAudio: 音频切片时长,默认15s 示例值:15
|
|
13827
|
+
取值范围15-60s
|
|
13812
13828
|
:type SliceAudio: int
|
|
13813
|
-
:param _SliceVideo: 视频截帧间隔时长,默认5s, 示例值:5
|
|
13829
|
+
:param _SliceVideo: 视频截帧间隔时长,默认5s, 示例值:5 取值范围5-60s
|
|
13814
13830
|
:type SliceVideo: int
|
|
13815
13831
|
:param _SubscribeStreamUserIds: 指定订阅流白名单或者黑名单。
|
|
13816
13832
|
:type SubscribeStreamUserIds: :class:`tencentcloud.trtc.v20190722.models.SubscribeStreamUserIds`
|
|
@@ -13854,6 +13870,7 @@ class SliceParams(AbstractModel):
|
|
|
13854
13870
|
@property
|
|
13855
13871
|
def SliceAudio(self):
|
|
13856
13872
|
"""音频切片时长,默认15s 示例值:15
|
|
13873
|
+
取值范围15-60s
|
|
13857
13874
|
:rtype: int
|
|
13858
13875
|
"""
|
|
13859
13876
|
return self._SliceAudio
|
|
@@ -13864,7 +13881,7 @@ class SliceParams(AbstractModel):
|
|
|
13864
13881
|
|
|
13865
13882
|
@property
|
|
13866
13883
|
def SliceVideo(self):
|
|
13867
|
-
"""视频截帧间隔时长,默认5s, 示例值:5
|
|
13884
|
+
"""视频截帧间隔时长,默认5s, 示例值:5 取值范围5-60s
|
|
13868
13885
|
:rtype: int
|
|
13869
13886
|
"""
|
|
13870
13887
|
return self._SliceVideo
|
|
@@ -14307,6 +14324,8 @@ TranscriptionMode为0时,需要保证一个房间内只发起一个任务,
|
|
|
14307
14324
|
:type RoomIdType: int
|
|
14308
14325
|
:param _RecognizeConfig: 语音识别配置。
|
|
14309
14326
|
:type RecognizeConfig: :class:`tencentcloud.trtc.v20190722.models.RecognizeConfig`
|
|
14327
|
+
:param _TranslationConfig: 翻译相关配置
|
|
14328
|
+
:type TranslationConfig: :class:`tencentcloud.trtc.v20190722.models.TranslationConfig`
|
|
14310
14329
|
"""
|
|
14311
14330
|
self._SdkAppId = None
|
|
14312
14331
|
self._RoomId = None
|
|
@@ -14314,6 +14333,7 @@ TranscriptionMode为0时,需要保证一个房间内只发起一个任务,
|
|
|
14314
14333
|
self._SessionId = None
|
|
14315
14334
|
self._RoomIdType = None
|
|
14316
14335
|
self._RecognizeConfig = None
|
|
14336
|
+
self._TranslationConfig = None
|
|
14317
14337
|
|
|
14318
14338
|
@property
|
|
14319
14339
|
def SdkAppId(self):
|
|
@@ -14383,6 +14403,17 @@ TranscriptionMode为0时,需要保证一个房间内只发起一个任务,
|
|
|
14383
14403
|
def RecognizeConfig(self, RecognizeConfig):
|
|
14384
14404
|
self._RecognizeConfig = RecognizeConfig
|
|
14385
14405
|
|
|
14406
|
+
@property
|
|
14407
|
+
def TranslationConfig(self):
|
|
14408
|
+
"""翻译相关配置
|
|
14409
|
+
:rtype: :class:`tencentcloud.trtc.v20190722.models.TranslationConfig`
|
|
14410
|
+
"""
|
|
14411
|
+
return self._TranslationConfig
|
|
14412
|
+
|
|
14413
|
+
@TranslationConfig.setter
|
|
14414
|
+
def TranslationConfig(self, TranslationConfig):
|
|
14415
|
+
self._TranslationConfig = TranslationConfig
|
|
14416
|
+
|
|
14386
14417
|
|
|
14387
14418
|
def _deserialize(self, params):
|
|
14388
14419
|
self._SdkAppId = params.get("SdkAppId")
|
|
@@ -14395,6 +14426,9 @@ TranscriptionMode为0时,需要保证一个房间内只发起一个任务,
|
|
|
14395
14426
|
if params.get("RecognizeConfig") is not None:
|
|
14396
14427
|
self._RecognizeConfig = RecognizeConfig()
|
|
14397
14428
|
self._RecognizeConfig._deserialize(params.get("RecognizeConfig"))
|
|
14429
|
+
if params.get("TranslationConfig") is not None:
|
|
14430
|
+
self._TranslationConfig = TranslationConfig()
|
|
14431
|
+
self._TranslationConfig._deserialize(params.get("TranslationConfig"))
|
|
14398
14432
|
memeber_set = set(params.keys())
|
|
14399
14433
|
for name, value in vars(self).items():
|
|
14400
14434
|
property_name = name[1:]
|
|
@@ -16555,6 +16589,42 @@ class TRTCDataResult(AbstractModel):
|
|
|
16555
16589
|
|
|
16556
16590
|
|
|
16557
16591
|
|
|
16592
|
+
class TTSConfig(AbstractModel):
|
|
16593
|
+
"""TTS相关配置
|
|
16594
|
+
|
|
16595
|
+
"""
|
|
16596
|
+
|
|
16597
|
+
def __init__(self):
|
|
16598
|
+
r"""
|
|
16599
|
+
:param _VoiceId: 音色ID
|
|
16600
|
+
:type VoiceId: str
|
|
16601
|
+
"""
|
|
16602
|
+
self._VoiceId = None
|
|
16603
|
+
|
|
16604
|
+
@property
|
|
16605
|
+
def VoiceId(self):
|
|
16606
|
+
"""音色ID
|
|
16607
|
+
:rtype: str
|
|
16608
|
+
"""
|
|
16609
|
+
return self._VoiceId
|
|
16610
|
+
|
|
16611
|
+
@VoiceId.setter
|
|
16612
|
+
def VoiceId(self, VoiceId):
|
|
16613
|
+
self._VoiceId = VoiceId
|
|
16614
|
+
|
|
16615
|
+
|
|
16616
|
+
def _deserialize(self, params):
|
|
16617
|
+
self._VoiceId = params.get("VoiceId")
|
|
16618
|
+
memeber_set = set(params.keys())
|
|
16619
|
+
for name, value in vars(self).items():
|
|
16620
|
+
property_name = name[1:]
|
|
16621
|
+
if property_name in memeber_set:
|
|
16622
|
+
memeber_set.remove(property_name)
|
|
16623
|
+
if len(memeber_set) > 0:
|
|
16624
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
16625
|
+
|
|
16626
|
+
|
|
16627
|
+
|
|
16558
16628
|
class TencentVod(AbstractModel):
|
|
16559
16629
|
"""腾讯云点播相关参数。
|
|
16560
16630
|
|
|
@@ -17064,6 +17134,8 @@ https://cloud.tencent.com/document/product/269/31999#app-.E7.AE.A1.E7.90.86.E5.9
|
|
|
17064
17134
|
:type TargetUserIdList: list of str
|
|
17065
17135
|
:param _VoicePrint: 声纹配置
|
|
17066
17136
|
:type VoicePrint: :class:`tencentcloud.trtc.v20190722.models.VoicePrint`
|
|
17137
|
+
:param _TurnDetection: 语义断句检测
|
|
17138
|
+
:type TurnDetection: :class:`tencentcloud.trtc.v20190722.models.TurnDetection`
|
|
17067
17139
|
"""
|
|
17068
17140
|
self._UserId = None
|
|
17069
17141
|
self._UserSig = None
|
|
@@ -17074,6 +17146,7 @@ https://cloud.tencent.com/document/product/269/31999#app-.E7.AE.A1.E7.90.86.E5.9
|
|
|
17074
17146
|
self._TargetUserId = None
|
|
17075
17147
|
self._TargetUserIdList = None
|
|
17076
17148
|
self._VoicePrint = None
|
|
17149
|
+
self._TurnDetection = None
|
|
17077
17150
|
|
|
17078
17151
|
@property
|
|
17079
17152
|
def UserId(self):
|
|
@@ -17184,6 +17257,17 @@ https://cloud.tencent.com/document/product/269/31999#app-.E7.AE.A1.E7.90.86.E5.9
|
|
|
17184
17257
|
def VoicePrint(self, VoicePrint):
|
|
17185
17258
|
self._VoicePrint = VoicePrint
|
|
17186
17259
|
|
|
17260
|
+
@property
|
|
17261
|
+
def TurnDetection(self):
|
|
17262
|
+
"""语义断句检测
|
|
17263
|
+
:rtype: :class:`tencentcloud.trtc.v20190722.models.TurnDetection`
|
|
17264
|
+
"""
|
|
17265
|
+
return self._TurnDetection
|
|
17266
|
+
|
|
17267
|
+
@TurnDetection.setter
|
|
17268
|
+
def TurnDetection(self, TurnDetection):
|
|
17269
|
+
self._TurnDetection = TurnDetection
|
|
17270
|
+
|
|
17187
17271
|
|
|
17188
17272
|
def _deserialize(self, params):
|
|
17189
17273
|
self._UserId = params.get("UserId")
|
|
@@ -17197,6 +17281,81 @@ https://cloud.tencent.com/document/product/269/31999#app-.E7.AE.A1.E7.90.86.E5.9
|
|
|
17197
17281
|
if params.get("VoicePrint") is not None:
|
|
17198
17282
|
self._VoicePrint = VoicePrint()
|
|
17199
17283
|
self._VoicePrint._deserialize(params.get("VoicePrint"))
|
|
17284
|
+
if params.get("TurnDetection") is not None:
|
|
17285
|
+
self._TurnDetection = TurnDetection()
|
|
17286
|
+
self._TurnDetection._deserialize(params.get("TurnDetection"))
|
|
17287
|
+
memeber_set = set(params.keys())
|
|
17288
|
+
for name, value in vars(self).items():
|
|
17289
|
+
property_name = name[1:]
|
|
17290
|
+
if property_name in memeber_set:
|
|
17291
|
+
memeber_set.remove(property_name)
|
|
17292
|
+
if len(memeber_set) > 0:
|
|
17293
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
17294
|
+
|
|
17295
|
+
|
|
17296
|
+
|
|
17297
|
+
class TranslationConfig(AbstractModel):
|
|
17298
|
+
"""翻译相关配置
|
|
17299
|
+
|
|
17300
|
+
"""
|
|
17301
|
+
|
|
17302
|
+
def __init__(self):
|
|
17303
|
+
r"""
|
|
17304
|
+
:param _TargetLanguages: 翻译的目标语言,目标语种列表(ISO 639-1)
|
|
17305
|
+
|
|
17306
|
+
:type TargetLanguages: list of str
|
|
17307
|
+
:param _Mode: 1: 仅文字翻译, 2: 语音同传
|
|
17308
|
+
|
|
17309
|
+
:type Mode: int
|
|
17310
|
+
:param _TTSConfig: 语音同传配置,开启同传时,需要传递
|
|
17311
|
+
:type TTSConfig: :class:`tencentcloud.trtc.v20190722.models.TTSConfig`
|
|
17312
|
+
"""
|
|
17313
|
+
self._TargetLanguages = None
|
|
17314
|
+
self._Mode = None
|
|
17315
|
+
self._TTSConfig = None
|
|
17316
|
+
|
|
17317
|
+
@property
|
|
17318
|
+
def TargetLanguages(self):
|
|
17319
|
+
"""翻译的目标语言,目标语种列表(ISO 639-1)
|
|
17320
|
+
|
|
17321
|
+
:rtype: list of str
|
|
17322
|
+
"""
|
|
17323
|
+
return self._TargetLanguages
|
|
17324
|
+
|
|
17325
|
+
@TargetLanguages.setter
|
|
17326
|
+
def TargetLanguages(self, TargetLanguages):
|
|
17327
|
+
self._TargetLanguages = TargetLanguages
|
|
17328
|
+
|
|
17329
|
+
@property
|
|
17330
|
+
def Mode(self):
|
|
17331
|
+
""" 1: 仅文字翻译, 2: 语音同传
|
|
17332
|
+
|
|
17333
|
+
:rtype: int
|
|
17334
|
+
"""
|
|
17335
|
+
return self._Mode
|
|
17336
|
+
|
|
17337
|
+
@Mode.setter
|
|
17338
|
+
def Mode(self, Mode):
|
|
17339
|
+
self._Mode = Mode
|
|
17340
|
+
|
|
17341
|
+
@property
|
|
17342
|
+
def TTSConfig(self):
|
|
17343
|
+
"""语音同传配置,开启同传时,需要传递
|
|
17344
|
+
:rtype: :class:`tencentcloud.trtc.v20190722.models.TTSConfig`
|
|
17345
|
+
"""
|
|
17346
|
+
return self._TTSConfig
|
|
17347
|
+
|
|
17348
|
+
@TTSConfig.setter
|
|
17349
|
+
def TTSConfig(self, TTSConfig):
|
|
17350
|
+
self._TTSConfig = TTSConfig
|
|
17351
|
+
|
|
17352
|
+
|
|
17353
|
+
def _deserialize(self, params):
|
|
17354
|
+
self._TargetLanguages = params.get("TargetLanguages")
|
|
17355
|
+
self._Mode = params.get("Mode")
|
|
17356
|
+
if params.get("TTSConfig") is not None:
|
|
17357
|
+
self._TTSConfig = TTSConfig()
|
|
17358
|
+
self._TTSConfig._deserialize(params.get("TTSConfig"))
|
|
17200
17359
|
memeber_set = set(params.keys())
|
|
17201
17360
|
for name, value in vars(self).items():
|
|
17202
17361
|
property_name = name[1:]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-trtc
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.1458
|
|
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.0.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common (<4.0.0,>=3.0.1458)
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
tencentcloud/__init__.py,sha256=h5Hby4bvALXKG32YKjikPeeRTwOm9JylcBCO9rFsXkg,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=xLMIY3GqMT4P3HzptYvbgmPjE64wn3EDSO-6EMb-kq4,13309
|
|
5
|
+
tencentcloud/trtc/v20190722/models.py,sha256=vzGmxsKg8tzAAGy5Kmpus2u3CCKkAMaSWW5pC1opncw,697179
|
|
6
|
+
tencentcloud/trtc/v20190722/trtc_client.py,sha256=-V4mFFJq8qBKz9aV2G2hYnGUxUBxt8K5EBtXhadIYHs,94078
|
|
7
|
+
tencentcloud_sdk_python_trtc-3.0.1458.dist-info/METADATA,sha256=njSfBi4rWYzEbaly1PcpEzSqgPXP2gVC532GqKqpOrM,1508
|
|
8
|
+
tencentcloud_sdk_python_trtc-3.0.1458.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
|
9
|
+
tencentcloud_sdk_python_trtc-3.0.1458.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
10
|
+
tencentcloud_sdk_python_trtc-3.0.1458.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
tencentcloud/__init__.py,sha256=Tbos1JpCp5FNnGherxW2mFiEn32SG1Ai4l4VaMfreG8,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=xLMIY3GqMT4P3HzptYvbgmPjE64wn3EDSO-6EMb-kq4,13309
|
|
5
|
-
tencentcloud/trtc/v20190722/models.py,sha256=1fqjgCel8mnc0_ueOQXLSBUhjeAkrJN2jfFV4EhsOTM,692138
|
|
6
|
-
tencentcloud/trtc/v20190722/trtc_client.py,sha256=-V4mFFJq8qBKz9aV2G2hYnGUxUBxt8K5EBtXhadIYHs,94078
|
|
7
|
-
tencentcloud_sdk_python_trtc-3.0.1452.dist-info/METADATA,sha256=Xb14Y8SEQfWmSAz2mXXTy5KLBtwiZI-Q5dMztz0mZdg,1508
|
|
8
|
-
tencentcloud_sdk_python_trtc-3.0.1452.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
|
9
|
-
tencentcloud_sdk_python_trtc-3.0.1452.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
10
|
-
tencentcloud_sdk_python_trtc-3.0.1452.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|