tencentcloud-sdk-python-trtc 3.0.1208__tar.gz → 3.0.1214__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.1208 → tencentcloud-sdk-python-trtc-3.0.1214}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-trtc-3.0.1208 → tencentcloud-sdk-python-trtc-3.0.1214}/setup.py +1 -1
- {tencentcloud-sdk-python-trtc-3.0.1208 → tencentcloud-sdk-python-trtc-3.0.1214}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-trtc-3.0.1208 → tencentcloud-sdk-python-trtc-3.0.1214}/tencentcloud/trtc/v20190722/models.py +32 -28
- {tencentcloud-sdk-python-trtc-3.0.1208 → tencentcloud-sdk-python-trtc-3.0.1214}/tencentcloud/trtc/v20190722/trtc_client.py +0 -3
- {tencentcloud-sdk-python-trtc-3.0.1208 → tencentcloud-sdk-python-trtc-3.0.1214}/tencentcloud_sdk_python_trtc.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-trtc-3.0.1214/tencentcloud_sdk_python_trtc.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-trtc-3.0.1208/tencentcloud_sdk_python_trtc.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-trtc-3.0.1208 → tencentcloud-sdk-python-trtc-3.0.1214}/README.rst +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1208 → tencentcloud-sdk-python-trtc-3.0.1214}/setup.cfg +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1208 → tencentcloud-sdk-python-trtc-3.0.1214}/tencentcloud/trtc/__init__.py +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1208 → tencentcloud-sdk-python-trtc-3.0.1214}/tencentcloud/trtc/v20190722/__init__.py +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1208 → tencentcloud-sdk-python-trtc-3.0.1214}/tencentcloud/trtc/v20190722/errorcodes.py +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1208 → tencentcloud-sdk-python-trtc-3.0.1214}/tencentcloud_sdk_python_trtc.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1208 → tencentcloud-sdk-python-trtc-3.0.1214}/tencentcloud_sdk_python_trtc.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1208 → tencentcloud-sdk-python-trtc-3.0.1214}/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.1214"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Trtc SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -172,12 +172,20 @@ class AgentConfig(AbstractModel):
|
|
|
172
172
|
:param _WelcomeMessage: 机器人的欢迎语
|
|
173
173
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
174
174
|
:type WelcomeMessage: str
|
|
175
|
+
:param _InterruptMode: 智能打断模式,默认为0,0表示服务端自动打断,1表示服务端不打断,由端上发送打断信令进行打断
|
|
176
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
177
|
+
:type InterruptMode: int
|
|
178
|
+
:param _InterruptSpeechDuration: InterruptMode为0时使用,单位为毫秒,默认为500ms。表示服务端检测到持续InterruptSpeechDuration毫秒的人声则进行打断。
|
|
179
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
180
|
+
:type InterruptSpeechDuration: int
|
|
175
181
|
"""
|
|
176
182
|
self._UserId = None
|
|
177
183
|
self._UserSig = None
|
|
178
184
|
self._TargetUserId = None
|
|
179
185
|
self._MaxIdleTime = None
|
|
180
186
|
self._WelcomeMessage = None
|
|
187
|
+
self._InterruptMode = None
|
|
188
|
+
self._InterruptSpeechDuration = None
|
|
181
189
|
|
|
182
190
|
@property
|
|
183
191
|
def UserId(self):
|
|
@@ -219,6 +227,22 @@ class AgentConfig(AbstractModel):
|
|
|
219
227
|
def WelcomeMessage(self, WelcomeMessage):
|
|
220
228
|
self._WelcomeMessage = WelcomeMessage
|
|
221
229
|
|
|
230
|
+
@property
|
|
231
|
+
def InterruptMode(self):
|
|
232
|
+
return self._InterruptMode
|
|
233
|
+
|
|
234
|
+
@InterruptMode.setter
|
|
235
|
+
def InterruptMode(self, InterruptMode):
|
|
236
|
+
self._InterruptMode = InterruptMode
|
|
237
|
+
|
|
238
|
+
@property
|
|
239
|
+
def InterruptSpeechDuration(self):
|
|
240
|
+
return self._InterruptSpeechDuration
|
|
241
|
+
|
|
242
|
+
@InterruptSpeechDuration.setter
|
|
243
|
+
def InterruptSpeechDuration(self, InterruptSpeechDuration):
|
|
244
|
+
self._InterruptSpeechDuration = InterruptSpeechDuration
|
|
245
|
+
|
|
222
246
|
|
|
223
247
|
def _deserialize(self, params):
|
|
224
248
|
self._UserId = params.get("UserId")
|
|
@@ -226,6 +250,8 @@ class AgentConfig(AbstractModel):
|
|
|
226
250
|
self._TargetUserId = params.get("TargetUserId")
|
|
227
251
|
self._MaxIdleTime = params.get("MaxIdleTime")
|
|
228
252
|
self._WelcomeMessage = params.get("WelcomeMessage")
|
|
253
|
+
self._InterruptMode = params.get("InterruptMode")
|
|
254
|
+
self._InterruptSpeechDuration = params.get("InterruptSpeechDuration")
|
|
229
255
|
memeber_set = set(params.keys())
|
|
230
256
|
for name, value in vars(self).items():
|
|
231
257
|
property_name = name[1:]
|
|
@@ -7596,39 +7622,13 @@ class RecognizeConfig(AbstractModel):
|
|
|
7596
7622
|
|
|
7597
7623
|
注意:
|
|
7598
7624
|
如果缺少满足您需求的语言,请联系我们技术人员。
|
|
7599
|
-
示例值:zh
|
|
7600
7625
|
:type Language: str
|
|
7601
7626
|
:param _AlternativeLanguage: 发起模糊识别额外可能替代语言类型,最多填写3种语言类型。
|
|
7602
7627
|
注:Language指定为"zh-dialect" # 中国方言 时,不支持模糊识别,该字段无效
|
|
7603
7628
|
:type AlternativeLanguage: list of str
|
|
7604
|
-
:param _Model:
|
|
7629
|
+
:param _Model: 目前已不支持
|
|
7605
7630
|
:type Model: str
|
|
7606
|
-
:param _TranslationLanguage:
|
|
7607
|
-
注:文本翻译功能需要购买「语音转文本时长包」解锁或领取包月套餐-体验版解。
|
|
7608
|
-
目前全量支持的语言如下,等号左面是语言英文名,右面是Language字段需要填写的值,该值遵循[ISO639](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes):
|
|
7609
|
-
Chinese = "zh"
|
|
7610
|
-
Chinese_TW = "zh-TW"
|
|
7611
|
-
English = "en"
|
|
7612
|
-
Vietnamese = "vi"
|
|
7613
|
-
Japanese = "ja"
|
|
7614
|
-
Korean = "ko"
|
|
7615
|
-
Indonesia = "id"
|
|
7616
|
-
Thai = "th"
|
|
7617
|
-
Portuguese = "pt"
|
|
7618
|
-
Turkish = "tr"
|
|
7619
|
-
Arabic = "ar"
|
|
7620
|
-
Spanish = "es"
|
|
7621
|
-
Hindi = "hi"
|
|
7622
|
-
French = "fr"
|
|
7623
|
-
Malay = "ms"
|
|
7624
|
-
Filipino = "fil"
|
|
7625
|
-
German = "de"
|
|
7626
|
-
Italian = "it"
|
|
7627
|
-
Russian = "ru"
|
|
7628
|
-
|
|
7629
|
-
注意:
|
|
7630
|
-
如果缺少满足您需求的语言,请联系我们技术人员。
|
|
7631
|
-
示例值:en
|
|
7631
|
+
:param _TranslationLanguage: 目前已不支持
|
|
7632
7632
|
:type TranslationLanguage: str
|
|
7633
7633
|
"""
|
|
7634
7634
|
self._Language = None
|
|
@@ -7666,10 +7666,14 @@ Russian = "ru"
|
|
|
7666
7666
|
|
|
7667
7667
|
@property
|
|
7668
7668
|
def TranslationLanguage(self):
|
|
7669
|
+
warnings.warn("parameter `TranslationLanguage` is deprecated", DeprecationWarning)
|
|
7670
|
+
|
|
7669
7671
|
return self._TranslationLanguage
|
|
7670
7672
|
|
|
7671
7673
|
@TranslationLanguage.setter
|
|
7672
7674
|
def TranslationLanguage(self, TranslationLanguage):
|
|
7675
|
+
warnings.warn("parameter `TranslationLanguage` is deprecated", DeprecationWarning)
|
|
7676
|
+
|
|
7673
7677
|
self._TranslationLanguage = TranslationLanguage
|
|
7674
7678
|
|
|
7675
7679
|
|
|
@@ -1052,7 +1052,6 @@ class TrtcClient(AbstractClient):
|
|
|
1052
1052
|
"type": "subtitle",
|
|
1053
1053
|
"userid": "xxx",
|
|
1054
1054
|
"text": "xxx",
|
|
1055
|
-
"translation_text": "xxx",
|
|
1056
1055
|
"start_time": "00:00:02",
|
|
1057
1056
|
"end_time": "00:00:05"
|
|
1058
1057
|
}`
|
|
@@ -1060,7 +1059,6 @@ class TrtcClient(AbstractClient):
|
|
|
1060
1059
|
- type是subtitle,表示这是实时字幕消息。
|
|
1061
1060
|
- userid表示是哪个用户说的话。
|
|
1062
1061
|
- text是语音识别出的文本。
|
|
1063
|
-
- translation_text是text翻译后的文本,如果不启用翻译,则是空字符串。
|
|
1064
1062
|
- start_time和end_time表示该字幕消息从任务开启后的开始和结束时间。
|
|
1065
1063
|
|
|
1066
1064
|
转录消息具体格式如下:
|
|
@@ -1068,7 +1066,6 @@ class TrtcClient(AbstractClient):
|
|
|
1068
1066
|
"type": "transcription",
|
|
1069
1067
|
"userid": "xxx",
|
|
1070
1068
|
"text": "xxx",
|
|
1071
|
-
"translation_text": "xx",
|
|
1072
1069
|
"start_time": "00:00:02",
|
|
1073
1070
|
"end_time": "00:00:05"
|
|
1074
1071
|
}`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1214
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1208
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|