tencentcloud-sdk-python-trtc 3.0.1205__tar.gz → 3.0.1213__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.1205 → tencentcloud-sdk-python-trtc-3.0.1213}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-trtc-3.0.1205 → tencentcloud-sdk-python-trtc-3.0.1213}/setup.py +1 -1
- {tencentcloud-sdk-python-trtc-3.0.1205 → tencentcloud-sdk-python-trtc-3.0.1213}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-trtc-3.0.1205 → tencentcloud-sdk-python-trtc-3.0.1213}/tencentcloud/trtc/v20190722/errorcodes.py +3 -0
- {tencentcloud-sdk-python-trtc-3.0.1205 → tencentcloud-sdk-python-trtc-3.0.1213}/tencentcloud/trtc/v20190722/models.py +130 -51
- {tencentcloud-sdk-python-trtc-3.0.1205 → tencentcloud-sdk-python-trtc-3.0.1213}/tencentcloud/trtc/v20190722/trtc_client.py +3 -4
- {tencentcloud-sdk-python-trtc-3.0.1205 → tencentcloud-sdk-python-trtc-3.0.1213}/tencentcloud_sdk_python_trtc.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-trtc-3.0.1213/tencentcloud_sdk_python_trtc.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-trtc-3.0.1205/tencentcloud_sdk_python_trtc.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-trtc-3.0.1205 → tencentcloud-sdk-python-trtc-3.0.1213}/README.rst +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1205 → tencentcloud-sdk-python-trtc-3.0.1213}/setup.cfg +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1205 → tencentcloud-sdk-python-trtc-3.0.1213}/tencentcloud/trtc/__init__.py +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1205 → tencentcloud-sdk-python-trtc-3.0.1213}/tencentcloud/trtc/v20190722/__init__.py +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1205 → tencentcloud-sdk-python-trtc-3.0.1213}/tencentcloud_sdk_python_trtc.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1205 → tencentcloud-sdk-python-trtc-3.0.1213}/tencentcloud_sdk_python_trtc.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1205 → tencentcloud-sdk-python-trtc-3.0.1213}/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.1213"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Trtc SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -206,6 +206,9 @@ INVALIDPARAMETER_STRROOMID = 'InvalidParameter.StrRoomId'
|
|
|
206
206
|
# StreamId参数错误。
|
|
207
207
|
INVALIDPARAMETER_STREAMID = 'InvalidParameter.StreamId'
|
|
208
208
|
|
|
209
|
+
# StreamUrl参数校验失败
|
|
210
|
+
INVALIDPARAMETER_STREAMURL = 'InvalidParameter.StreamUrl'
|
|
211
|
+
|
|
209
212
|
# TaskId 参数错误。
|
|
210
213
|
INVALIDPARAMETER_TASKID = 'InvalidParameter.TaskId'
|
|
211
214
|
|
|
@@ -166,14 +166,26 @@ class AgentConfig(AbstractModel):
|
|
|
166
166
|
:param _TargetUserId: 机器人拉流的UserId, 填写后,机器人会拉取该UserId的流进行实时处理
|
|
167
167
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
168
168
|
:type TargetUserId: str
|
|
169
|
-
:param _MaxIdleTime:
|
|
169
|
+
:param _MaxIdleTime: 房间内超过MaxIdleTime 没有推流,后台自动关闭任务,默认值是60s。
|
|
170
170
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
171
171
|
:type MaxIdleTime: int
|
|
172
|
+
:param _WelcomeMessage: 机器人的欢迎语
|
|
173
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
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
|
|
172
181
|
"""
|
|
173
182
|
self._UserId = None
|
|
174
183
|
self._UserSig = None
|
|
175
184
|
self._TargetUserId = None
|
|
176
185
|
self._MaxIdleTime = None
|
|
186
|
+
self._WelcomeMessage = None
|
|
187
|
+
self._InterruptMode = None
|
|
188
|
+
self._InterruptSpeechDuration = None
|
|
177
189
|
|
|
178
190
|
@property
|
|
179
191
|
def UserId(self):
|
|
@@ -207,12 +219,39 @@ class AgentConfig(AbstractModel):
|
|
|
207
219
|
def MaxIdleTime(self, MaxIdleTime):
|
|
208
220
|
self._MaxIdleTime = MaxIdleTime
|
|
209
221
|
|
|
222
|
+
@property
|
|
223
|
+
def WelcomeMessage(self):
|
|
224
|
+
return self._WelcomeMessage
|
|
225
|
+
|
|
226
|
+
@WelcomeMessage.setter
|
|
227
|
+
def WelcomeMessage(self, WelcomeMessage):
|
|
228
|
+
self._WelcomeMessage = WelcomeMessage
|
|
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
|
+
|
|
210
246
|
|
|
211
247
|
def _deserialize(self, params):
|
|
212
248
|
self._UserId = params.get("UserId")
|
|
213
249
|
self._UserSig = params.get("UserSig")
|
|
214
250
|
self._TargetUserId = params.get("TargetUserId")
|
|
215
251
|
self._MaxIdleTime = params.get("MaxIdleTime")
|
|
252
|
+
self._WelcomeMessage = params.get("WelcomeMessage")
|
|
253
|
+
self._InterruptMode = params.get("InterruptMode")
|
|
254
|
+
self._InterruptSpeechDuration = params.get("InterruptSpeechDuration")
|
|
216
255
|
memeber_set = set(params.keys())
|
|
217
256
|
for name, value in vars(self).items():
|
|
218
257
|
property_name = name[1:]
|
|
@@ -1273,7 +1312,7 @@ class DescribeAIConversationResponse(AbstractModel):
|
|
|
1273
1312
|
:type StartTime: str
|
|
1274
1313
|
:param _Status: 任务状态。有4个值:1、Idle表示任务未开始2、Preparing表示任务准备中3、InProgress表示任务正在运行4、Stopped表示任务已停止,正在清理资源中
|
|
1275
1314
|
:type Status: str
|
|
1276
|
-
:param _TaskId:
|
|
1315
|
+
:param _TaskId: 任务的唯一标识,在启动任务时生成
|
|
1277
1316
|
:type TaskId: str
|
|
1278
1317
|
:param _SessionId: 开启对话任务时填写的SessionId,如果没写则不返回。
|
|
1279
1318
|
:type SessionId: str
|
|
@@ -7553,59 +7592,43 @@ class RecognizeConfig(AbstractModel):
|
|
|
7553
7592
|
|
|
7554
7593
|
def __init__(self):
|
|
7555
7594
|
r"""
|
|
7556
|
-
:param _Language:
|
|
7557
|
-
|
|
7558
|
-
|
|
7559
|
-
|
|
7560
|
-
|
|
7561
|
-
|
|
7562
|
-
|
|
7563
|
-
|
|
7564
|
-
|
|
7565
|
-
|
|
7566
|
-
|
|
7567
|
-
|
|
7568
|
-
|
|
7569
|
-
|
|
7570
|
-
|
|
7571
|
-
|
|
7572
|
-
|
|
7573
|
-
|
|
7574
|
-
|
|
7575
|
-
|
|
7576
|
-
|
|
7595
|
+
:param _Language: 语音转文字支持识别的语言,默认是"zh" 中文
|
|
7596
|
+
目前全量支持的语言如下,等号左面是语言英文名,右面是Language字段需要填写的值,该值遵循[ISO639](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes):
|
|
7597
|
+
可通过购买「语音转文本时长包」解锁或领取包月套餐体验版解锁此功能。
|
|
7598
|
+
|
|
7599
|
+
语音转文本支持语言类型如下:
|
|
7600
|
+
- Chinese = "zh" # 中文
|
|
7601
|
+
- Chinese_TW = "zh-TW" # 中国台湾
|
|
7602
|
+
- English = "en" # 英语
|
|
7603
|
+
- Chinese_YUE = "zh-yue" # 中国粤语
|
|
7604
|
+
- Chinese_DIALECT = "zh-dialect" # 中国方言
|
|
7605
|
+
- English = "en" # 英语
|
|
7606
|
+
- Vietnamese = "vi" # 越南语
|
|
7607
|
+
- Japanese = "ja" # 日语
|
|
7608
|
+
- Korean = "ko" # 汉语
|
|
7609
|
+
- Indonesia = "id" # 印度尼西亚语
|
|
7610
|
+
- Thai = "th" # 泰语
|
|
7611
|
+
- Portuguese = "pt" # 葡萄牙语
|
|
7612
|
+
- Turkish = "tr" # 土耳其语
|
|
7613
|
+
- Arabic = "ar" # 阿拉伯语
|
|
7614
|
+
- Spanish = "es" # 西班牙语
|
|
7615
|
+
- Hindi = "hi" # 印地语
|
|
7616
|
+
- French = "fr" # 法语
|
|
7617
|
+
- Malay = "ms" # 马来语
|
|
7618
|
+
- Filipino = "fil" # 菲律宾语
|
|
7619
|
+
- German = "de" # 德语
|
|
7620
|
+
- Italian = "it" # 意大利语
|
|
7621
|
+
- Russian = "ru" # 俄语
|
|
7577
7622
|
|
|
7578
7623
|
注意:
|
|
7579
7624
|
如果缺少满足您需求的语言,请联系我们技术人员。
|
|
7580
7625
|
:type Language: str
|
|
7581
|
-
:param _AlternativeLanguage:
|
|
7626
|
+
:param _AlternativeLanguage: 发起模糊识别额外可能替代语言类型,最多填写3种语言类型。
|
|
7627
|
+
注:Language指定为"zh-dialect" # 中国方言 时,不支持模糊识别,该字段无效
|
|
7582
7628
|
:type AlternativeLanguage: list of str
|
|
7583
|
-
:param _Model:
|
|
7629
|
+
:param _Model: 目前已不支持
|
|
7584
7630
|
:type Model: str
|
|
7585
|
-
:param _TranslationLanguage:
|
|
7586
|
-
目前全量支持的语言如下,等号左面是语言英文名,右面是Language字段需要填写的值,该值遵循[ISO639](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes):
|
|
7587
|
-
Chinese = "zh"
|
|
7588
|
-
Chinese_TW = "zh-TW"
|
|
7589
|
-
English = "en"
|
|
7590
|
-
Vietnamese = "vi"
|
|
7591
|
-
Japanese = "ja"
|
|
7592
|
-
Korean = "ko"
|
|
7593
|
-
Indonesia = "id"
|
|
7594
|
-
Thai = "th"
|
|
7595
|
-
Portuguese = "pt"
|
|
7596
|
-
Turkish = "tr"
|
|
7597
|
-
Arabic = "ar"
|
|
7598
|
-
Spanish = "es"
|
|
7599
|
-
Hindi = "hi"
|
|
7600
|
-
French = "fr"
|
|
7601
|
-
Malay = "ms"
|
|
7602
|
-
Filipino = "fil"
|
|
7603
|
-
German = "de"
|
|
7604
|
-
Italian = "it"
|
|
7605
|
-
Russian = "ru"
|
|
7606
|
-
|
|
7607
|
-
注意:
|
|
7608
|
-
如果缺少满足您需求的语言,请联系我们技术人员。
|
|
7631
|
+
:param _TranslationLanguage: 目前已不支持
|
|
7609
7632
|
:type TranslationLanguage: str
|
|
7610
7633
|
"""
|
|
7611
7634
|
self._Language = None
|
|
@@ -7643,10 +7666,14 @@ Russian = "ru"
|
|
|
7643
7666
|
|
|
7644
7667
|
@property
|
|
7645
7668
|
def TranslationLanguage(self):
|
|
7669
|
+
warnings.warn("parameter `TranslationLanguage` is deprecated", DeprecationWarning)
|
|
7670
|
+
|
|
7646
7671
|
return self._TranslationLanguage
|
|
7647
7672
|
|
|
7648
7673
|
@TranslationLanguage.setter
|
|
7649
7674
|
def TranslationLanguage(self, TranslationLanguage):
|
|
7675
|
+
warnings.warn("parameter `TranslationLanguage` is deprecated", DeprecationWarning)
|
|
7676
|
+
|
|
7650
7677
|
self._TranslationLanguage = TranslationLanguage
|
|
7651
7678
|
|
|
7652
7679
|
|
|
@@ -8210,7 +8237,8 @@ class STTConfig(AbstractModel):
|
|
|
8210
8237
|
如果缺少满足您需求的语言,请联系我们技术人员。
|
|
8211
8238
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
8212
8239
|
:type Language: str
|
|
8213
|
-
:param _AlternativeLanguage:
|
|
8240
|
+
:param _AlternativeLanguage: 发起模糊识别额外可能替代语言类型,最多填写3种语言类型,
|
|
8241
|
+
注:Language指定为"zh-dialect" # 中国方言 时,不支持模糊识别,该字段无效
|
|
8214
8242
|
|
|
8215
8243
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
8216
8244
|
:type AlternativeLanguage: list of str
|
|
@@ -8574,9 +8602,12 @@ class ServerPushText(AbstractModel):
|
|
|
8574
8602
|
:type Text: str
|
|
8575
8603
|
:param _Interrupt: 是否允许该文本打断机器人说话
|
|
8576
8604
|
:type Interrupt: bool
|
|
8605
|
+
:param _StopAfterPlay: 播报完文本后,是否自动关闭对话任务
|
|
8606
|
+
:type StopAfterPlay: bool
|
|
8577
8607
|
"""
|
|
8578
8608
|
self._Text = None
|
|
8579
8609
|
self._Interrupt = None
|
|
8610
|
+
self._StopAfterPlay = None
|
|
8580
8611
|
|
|
8581
8612
|
@property
|
|
8582
8613
|
def Text(self):
|
|
@@ -8594,10 +8625,19 @@ class ServerPushText(AbstractModel):
|
|
|
8594
8625
|
def Interrupt(self, Interrupt):
|
|
8595
8626
|
self._Interrupt = Interrupt
|
|
8596
8627
|
|
|
8628
|
+
@property
|
|
8629
|
+
def StopAfterPlay(self):
|
|
8630
|
+
return self._StopAfterPlay
|
|
8631
|
+
|
|
8632
|
+
@StopAfterPlay.setter
|
|
8633
|
+
def StopAfterPlay(self, StopAfterPlay):
|
|
8634
|
+
self._StopAfterPlay = StopAfterPlay
|
|
8635
|
+
|
|
8597
8636
|
|
|
8598
8637
|
def _deserialize(self, params):
|
|
8599
8638
|
self._Text = params.get("Text")
|
|
8600
8639
|
self._Interrupt = params.get("Interrupt")
|
|
8640
|
+
self._StopAfterPlay = params.get("StopAfterPlay")
|
|
8601
8641
|
memeber_set = set(params.keys())
|
|
8602
8642
|
for name, value in vars(self).items():
|
|
8603
8643
|
property_name = name[1:]
|
|
@@ -8749,7 +8789,7 @@ class StartAIConversationRequest(AbstractModel):
|
|
|
8749
8789
|
:type RoomId: str
|
|
8750
8790
|
:param _AgentConfig: 机器人参数
|
|
8751
8791
|
:type AgentConfig: :class:`tencentcloud.trtc.v20190722.models.AgentConfig`
|
|
8752
|
-
:param _SessionId: 调用方传入的唯一Id
|
|
8792
|
+
:param _SessionId: 调用方传入的唯一Id,可用于客户侧防止重复发起任务以及可以通过该字段查询任务状态。
|
|
8753
8793
|
:type SessionId: str
|
|
8754
8794
|
:param _RoomIdType: TRTC房间号的类型,0代表数字房间号,1代表字符串房间号。不填默认是数字房间号。
|
|
8755
8795
|
:type RoomIdType: int
|
|
@@ -9530,6 +9570,15 @@ class StartStreamIngestRequest(AbstractModel):
|
|
|
9530
9570
|
:type SourceUrl: list of str
|
|
9531
9571
|
:param _SeekSecond: 指定视频从某个秒时间戳播放
|
|
9532
9572
|
:type SeekSecond: int
|
|
9573
|
+
:param _AutoPush: 开启自动旁路推流,请确认控制台已经开启该功能。
|
|
9574
|
+
:type AutoPush: bool
|
|
9575
|
+
:param _RepeatNum: 循环播放次数, 取值范围[-1, 1000], 默认1次。
|
|
9576
|
+
- 0 无效值
|
|
9577
|
+
- -1 循环播放, 需要主动调用停止接口或设置MaxDuration
|
|
9578
|
+
|
|
9579
|
+
:type RepeatNum: int
|
|
9580
|
+
:param _MaxDuration: 循环播放最大时长,仅支持RepeatNum设置-1时生效,取值范围[1, 10080],单位分钟。
|
|
9581
|
+
:type MaxDuration: int
|
|
9533
9582
|
"""
|
|
9534
9583
|
self._SdkAppId = None
|
|
9535
9584
|
self._RoomId = None
|
|
@@ -9542,6 +9591,9 @@ class StartStreamIngestRequest(AbstractModel):
|
|
|
9542
9591
|
self._AudioEncodeParams = None
|
|
9543
9592
|
self._SourceUrl = None
|
|
9544
9593
|
self._SeekSecond = None
|
|
9594
|
+
self._AutoPush = None
|
|
9595
|
+
self._RepeatNum = None
|
|
9596
|
+
self._MaxDuration = None
|
|
9545
9597
|
|
|
9546
9598
|
@property
|
|
9547
9599
|
def SdkAppId(self):
|
|
@@ -9643,6 +9695,30 @@ class StartStreamIngestRequest(AbstractModel):
|
|
|
9643
9695
|
def SeekSecond(self, SeekSecond):
|
|
9644
9696
|
self._SeekSecond = SeekSecond
|
|
9645
9697
|
|
|
9698
|
+
@property
|
|
9699
|
+
def AutoPush(self):
|
|
9700
|
+
return self._AutoPush
|
|
9701
|
+
|
|
9702
|
+
@AutoPush.setter
|
|
9703
|
+
def AutoPush(self, AutoPush):
|
|
9704
|
+
self._AutoPush = AutoPush
|
|
9705
|
+
|
|
9706
|
+
@property
|
|
9707
|
+
def RepeatNum(self):
|
|
9708
|
+
return self._RepeatNum
|
|
9709
|
+
|
|
9710
|
+
@RepeatNum.setter
|
|
9711
|
+
def RepeatNum(self, RepeatNum):
|
|
9712
|
+
self._RepeatNum = RepeatNum
|
|
9713
|
+
|
|
9714
|
+
@property
|
|
9715
|
+
def MaxDuration(self):
|
|
9716
|
+
return self._MaxDuration
|
|
9717
|
+
|
|
9718
|
+
@MaxDuration.setter
|
|
9719
|
+
def MaxDuration(self, MaxDuration):
|
|
9720
|
+
self._MaxDuration = MaxDuration
|
|
9721
|
+
|
|
9646
9722
|
|
|
9647
9723
|
def _deserialize(self, params):
|
|
9648
9724
|
self._SdkAppId = params.get("SdkAppId")
|
|
@@ -9660,6 +9736,9 @@ class StartStreamIngestRequest(AbstractModel):
|
|
|
9660
9736
|
self._AudioEncodeParams._deserialize(params.get("AudioEncodeParams"))
|
|
9661
9737
|
self._SourceUrl = params.get("SourceUrl")
|
|
9662
9738
|
self._SeekSecond = params.get("SeekSecond")
|
|
9739
|
+
self._AutoPush = params.get("AutoPush")
|
|
9740
|
+
self._RepeatNum = params.get("RepeatNum")
|
|
9741
|
+
self._MaxDuration = params.get("MaxDuration")
|
|
9663
9742
|
memeber_set = set(params.keys())
|
|
9664
9743
|
for name, value in vars(self).items():
|
|
9665
9744
|
property_name = name[1:]
|
|
@@ -1015,7 +1015,9 @@ class TrtcClient(AbstractClient):
|
|
|
1015
1015
|
|
|
1016
1016
|
|
|
1017
1017
|
def StartAIConversation(self, request):
|
|
1018
|
-
"""
|
|
1018
|
+
"""启动AI对话任务,AI通道机器人进入TRTC房间,与房间内指定的成员进行AI对话,适用于智能客服,AI口语教师等场景
|
|
1019
|
+
|
|
1020
|
+
TRTC AI对话功能内置语音转文本能力,同时提供通道服务,即客户可灵活指定第三方AI模型(LLM)服务和文本转音频(TTS)服务,更多[功能说明](https://cloud.tencent.com/document/product/647/108901)。
|
|
1019
1021
|
|
|
1020
1022
|
:param request: Request instance for StartAIConversation.
|
|
1021
1023
|
:type request: :class:`tencentcloud.trtc.v20190722.models.StartAIConversationRequest`
|
|
@@ -1050,7 +1052,6 @@ class TrtcClient(AbstractClient):
|
|
|
1050
1052
|
"type": "subtitle",
|
|
1051
1053
|
"userid": "xxx",
|
|
1052
1054
|
"text": "xxx",
|
|
1053
|
-
"translation_text": "xxx",
|
|
1054
1055
|
"start_time": "00:00:02",
|
|
1055
1056
|
"end_time": "00:00:05"
|
|
1056
1057
|
}`
|
|
@@ -1058,7 +1059,6 @@ class TrtcClient(AbstractClient):
|
|
|
1058
1059
|
- type是subtitle,表示这是实时字幕消息。
|
|
1059
1060
|
- userid表示是哪个用户说的话。
|
|
1060
1061
|
- text是语音识别出的文本。
|
|
1061
|
-
- translation_text是text翻译后的文本,如果不启用翻译,则是空字符串。
|
|
1062
1062
|
- start_time和end_time表示该字幕消息从任务开启后的开始和结束时间。
|
|
1063
1063
|
|
|
1064
1064
|
转录消息具体格式如下:
|
|
@@ -1066,7 +1066,6 @@ class TrtcClient(AbstractClient):
|
|
|
1066
1066
|
"type": "transcription",
|
|
1067
1067
|
"userid": "xxx",
|
|
1068
1068
|
"text": "xxx",
|
|
1069
|
-
"translation_text": "xx",
|
|
1070
1069
|
"start_time": "00:00:02",
|
|
1071
1070
|
"end_time": "00:00:05"
|
|
1072
1071
|
}`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1213
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1205
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|