tencentcloud-sdk-python-trtc 3.0.1202__py2.py3-none-any.whl → 3.0.1209__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/errorcodes.py +3 -0
- tencentcloud/trtc/v20190722/models.py +122 -54
- tencentcloud/trtc/v20190722/trtc_client.py +3 -4
- {tencentcloud_sdk_python_trtc-3.0.1202.dist-info → tencentcloud_sdk_python_trtc-3.0.1209.dist-info}/METADATA +2 -2
- tencentcloud_sdk_python_trtc-3.0.1209.dist-info/RECORD +10 -0
- tencentcloud_sdk_python_trtc-3.0.1202.dist-info/RECORD +0 -10
- {tencentcloud_sdk_python_trtc-3.0.1202.dist-info → tencentcloud_sdk_python_trtc-3.0.1209.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_trtc-3.0.1202.dist-info → tencentcloud_sdk_python_trtc-3.0.1209.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -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,18 @@ 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
|
|
172
175
|
"""
|
|
173
176
|
self._UserId = None
|
|
174
177
|
self._UserSig = None
|
|
175
178
|
self._TargetUserId = None
|
|
176
179
|
self._MaxIdleTime = None
|
|
180
|
+
self._WelcomeMessage = None
|
|
177
181
|
|
|
178
182
|
@property
|
|
179
183
|
def UserId(self):
|
|
@@ -207,12 +211,21 @@ class AgentConfig(AbstractModel):
|
|
|
207
211
|
def MaxIdleTime(self, MaxIdleTime):
|
|
208
212
|
self._MaxIdleTime = MaxIdleTime
|
|
209
213
|
|
|
214
|
+
@property
|
|
215
|
+
def WelcomeMessage(self):
|
|
216
|
+
return self._WelcomeMessage
|
|
217
|
+
|
|
218
|
+
@WelcomeMessage.setter
|
|
219
|
+
def WelcomeMessage(self, WelcomeMessage):
|
|
220
|
+
self._WelcomeMessage = WelcomeMessage
|
|
221
|
+
|
|
210
222
|
|
|
211
223
|
def _deserialize(self, params):
|
|
212
224
|
self._UserId = params.get("UserId")
|
|
213
225
|
self._UserSig = params.get("UserSig")
|
|
214
226
|
self._TargetUserId = params.get("TargetUserId")
|
|
215
227
|
self._MaxIdleTime = params.get("MaxIdleTime")
|
|
228
|
+
self._WelcomeMessage = params.get("WelcomeMessage")
|
|
216
229
|
memeber_set = set(params.keys())
|
|
217
230
|
for name, value in vars(self).items():
|
|
218
231
|
property_name = name[1:]
|
|
@@ -717,6 +730,8 @@ class CreateCloudRecordingRequest(AbstractModel):
|
|
|
717
730
|
:param _SdkAppId: TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和录制的房间所对应的SdkAppId相同。
|
|
718
731
|
:type SdkAppId: int
|
|
719
732
|
:param _RoomId: TRTC的[RoomId](https://cloud.tencent.com/document/product/647/46351#roomid),录制的TRTC房间所对应的RoomId。
|
|
733
|
+
注:房间号类型默认为整型,若房间号类型为字符串,请通过RoomIdType指定。
|
|
734
|
+
|
|
720
735
|
:type RoomId: str
|
|
721
736
|
:param _UserId: 录制机器人的UserId,用于进房发起录制任务。
|
|
722
737
|
【*注意】这个UserId不能与当前房间内的主播观众[UserId](https://cloud.tencent.com/document/product/647/46351#userid)重复。如果一个房间发起多个录制任务时,机器人的userid也不能相互重复,否则会中断前一个录制任务。建议可以把房间ID作为UserId的标识的一部分,即录制机器人UserId在房间内唯一。
|
|
@@ -1271,7 +1286,7 @@ class DescribeAIConversationResponse(AbstractModel):
|
|
|
1271
1286
|
:type StartTime: str
|
|
1272
1287
|
:param _Status: 任务状态。有4个值:1、Idle表示任务未开始2、Preparing表示任务准备中3、InProgress表示任务正在运行4、Stopped表示任务已停止,正在清理资源中
|
|
1273
1288
|
:type Status: str
|
|
1274
|
-
:param _TaskId:
|
|
1289
|
+
:param _TaskId: 任务的唯一标识,在启动任务时生成
|
|
1275
1290
|
:type TaskId: str
|
|
1276
1291
|
:param _SessionId: 开启对话任务时填写的SessionId,如果没写则不返回。
|
|
1277
1292
|
:type SessionId: str
|
|
@@ -5916,8 +5931,12 @@ class McuUserInfoParams(AbstractModel):
|
|
|
5916
5931
|
r"""
|
|
5917
5932
|
:param _UserInfo: 用户参数。
|
|
5918
5933
|
:type UserInfo: :class:`tencentcloud.trtc.v20190722.models.MixUserInfo`
|
|
5934
|
+
:param _SoundLevel: 混音的音量调整:取值范围是0到100,100为原始上行音量,不填默认为100,值越小则音量越低。
|
|
5935
|
+
注:该参数只在音量白名单下配置生效,其他场景配置无效。
|
|
5936
|
+
:type SoundLevel: int
|
|
5919
5937
|
"""
|
|
5920
5938
|
self._UserInfo = None
|
|
5939
|
+
self._SoundLevel = None
|
|
5921
5940
|
|
|
5922
5941
|
@property
|
|
5923
5942
|
def UserInfo(self):
|
|
@@ -5927,11 +5946,20 @@ class McuUserInfoParams(AbstractModel):
|
|
|
5927
5946
|
def UserInfo(self, UserInfo):
|
|
5928
5947
|
self._UserInfo = UserInfo
|
|
5929
5948
|
|
|
5949
|
+
@property
|
|
5950
|
+
def SoundLevel(self):
|
|
5951
|
+
return self._SoundLevel
|
|
5952
|
+
|
|
5953
|
+
@SoundLevel.setter
|
|
5954
|
+
def SoundLevel(self, SoundLevel):
|
|
5955
|
+
self._SoundLevel = SoundLevel
|
|
5956
|
+
|
|
5930
5957
|
|
|
5931
5958
|
def _deserialize(self, params):
|
|
5932
5959
|
if params.get("UserInfo") is not None:
|
|
5933
5960
|
self._UserInfo = MixUserInfo()
|
|
5934
5961
|
self._UserInfo._deserialize(params.get("UserInfo"))
|
|
5962
|
+
self._SoundLevel = params.get("SoundLevel")
|
|
5935
5963
|
memeber_set = set(params.keys())
|
|
5936
5964
|
for name, value in vars(self).items():
|
|
5937
5965
|
property_name = name[1:]
|
|
@@ -7538,59 +7566,43 @@ class RecognizeConfig(AbstractModel):
|
|
|
7538
7566
|
|
|
7539
7567
|
def __init__(self):
|
|
7540
7568
|
r"""
|
|
7541
|
-
:param _Language:
|
|
7542
|
-
|
|
7543
|
-
|
|
7544
|
-
|
|
7545
|
-
|
|
7546
|
-
|
|
7547
|
-
|
|
7548
|
-
|
|
7549
|
-
|
|
7550
|
-
|
|
7551
|
-
|
|
7552
|
-
|
|
7553
|
-
|
|
7554
|
-
|
|
7555
|
-
|
|
7556
|
-
|
|
7557
|
-
|
|
7558
|
-
|
|
7559
|
-
|
|
7560
|
-
|
|
7561
|
-
|
|
7569
|
+
:param _Language: 语音转文字支持识别的语言,默认是"zh" 中文
|
|
7570
|
+
目前全量支持的语言如下,等号左面是语言英文名,右面是Language字段需要填写的值,该值遵循[ISO639](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes):
|
|
7571
|
+
可通过购买「语音转文本时长包」解锁或领取包月套餐体验版解锁此功能。
|
|
7572
|
+
|
|
7573
|
+
语音转文本支持语言类型如下:
|
|
7574
|
+
- Chinese = "zh" # 中文
|
|
7575
|
+
- Chinese_TW = "zh-TW" # 中国台湾
|
|
7576
|
+
- English = "en" # 英语
|
|
7577
|
+
- Chinese_YUE = "zh-yue" # 中国粤语
|
|
7578
|
+
- Chinese_DIALECT = "zh-dialect" # 中国方言
|
|
7579
|
+
- English = "en" # 英语
|
|
7580
|
+
- Vietnamese = "vi" # 越南语
|
|
7581
|
+
- Japanese = "ja" # 日语
|
|
7582
|
+
- Korean = "ko" # 汉语
|
|
7583
|
+
- Indonesia = "id" # 印度尼西亚语
|
|
7584
|
+
- Thai = "th" # 泰语
|
|
7585
|
+
- Portuguese = "pt" # 葡萄牙语
|
|
7586
|
+
- Turkish = "tr" # 土耳其语
|
|
7587
|
+
- Arabic = "ar" # 阿拉伯语
|
|
7588
|
+
- Spanish = "es" # 西班牙语
|
|
7589
|
+
- Hindi = "hi" # 印地语
|
|
7590
|
+
- French = "fr" # 法语
|
|
7591
|
+
- Malay = "ms" # 马来语
|
|
7592
|
+
- Filipino = "fil" # 菲律宾语
|
|
7593
|
+
- German = "de" # 德语
|
|
7594
|
+
- Italian = "it" # 意大利语
|
|
7595
|
+
- Russian = "ru" # 俄语
|
|
7562
7596
|
|
|
7563
7597
|
注意:
|
|
7564
7598
|
如果缺少满足您需求的语言,请联系我们技术人员。
|
|
7565
7599
|
:type Language: str
|
|
7566
|
-
:param _AlternativeLanguage:
|
|
7600
|
+
:param _AlternativeLanguage: 发起模糊识别额外可能替代语言类型,最多填写3种语言类型。
|
|
7601
|
+
注:Language指定为"zh-dialect" # 中国方言 时,不支持模糊识别,该字段无效
|
|
7567
7602
|
:type AlternativeLanguage: list of str
|
|
7568
|
-
:param _Model:
|
|
7603
|
+
:param _Model: 目前已不支持
|
|
7569
7604
|
:type Model: str
|
|
7570
|
-
:param _TranslationLanguage:
|
|
7571
|
-
目前全量支持的语言如下,等号左面是语言英文名,右面是Language字段需要填写的值,该值遵循[ISO639](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes):
|
|
7572
|
-
Chinese = "zh"
|
|
7573
|
-
Chinese_TW = "zh-TW"
|
|
7574
|
-
English = "en"
|
|
7575
|
-
Vietnamese = "vi"
|
|
7576
|
-
Japanese = "ja"
|
|
7577
|
-
Korean = "ko"
|
|
7578
|
-
Indonesia = "id"
|
|
7579
|
-
Thai = "th"
|
|
7580
|
-
Portuguese = "pt"
|
|
7581
|
-
Turkish = "tr"
|
|
7582
|
-
Arabic = "ar"
|
|
7583
|
-
Spanish = "es"
|
|
7584
|
-
Hindi = "hi"
|
|
7585
|
-
French = "fr"
|
|
7586
|
-
Malay = "ms"
|
|
7587
|
-
Filipino = "fil"
|
|
7588
|
-
German = "de"
|
|
7589
|
-
Italian = "it"
|
|
7590
|
-
Russian = "ru"
|
|
7591
|
-
|
|
7592
|
-
注意:
|
|
7593
|
-
如果缺少满足您需求的语言,请联系我们技术人员。
|
|
7605
|
+
:param _TranslationLanguage: 目前已不支持
|
|
7594
7606
|
:type TranslationLanguage: str
|
|
7595
7607
|
"""
|
|
7596
7608
|
self._Language = None
|
|
@@ -7628,10 +7640,14 @@ Russian = "ru"
|
|
|
7628
7640
|
|
|
7629
7641
|
@property
|
|
7630
7642
|
def TranslationLanguage(self):
|
|
7643
|
+
warnings.warn("parameter `TranslationLanguage` is deprecated", DeprecationWarning)
|
|
7644
|
+
|
|
7631
7645
|
return self._TranslationLanguage
|
|
7632
7646
|
|
|
7633
7647
|
@TranslationLanguage.setter
|
|
7634
7648
|
def TranslationLanguage(self, TranslationLanguage):
|
|
7649
|
+
warnings.warn("parameter `TranslationLanguage` is deprecated", DeprecationWarning)
|
|
7650
|
+
|
|
7635
7651
|
self._TranslationLanguage = TranslationLanguage
|
|
7636
7652
|
|
|
7637
7653
|
|
|
@@ -8195,7 +8211,8 @@ class STTConfig(AbstractModel):
|
|
|
8195
8211
|
如果缺少满足您需求的语言,请联系我们技术人员。
|
|
8196
8212
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
8197
8213
|
:type Language: str
|
|
8198
|
-
:param _AlternativeLanguage:
|
|
8214
|
+
:param _AlternativeLanguage: 发起模糊识别额外可能替代语言类型,最多填写3种语言类型,
|
|
8215
|
+
注:Language指定为"zh-dialect" # 中国方言 时,不支持模糊识别,该字段无效
|
|
8199
8216
|
|
|
8200
8217
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
8201
8218
|
:type AlternativeLanguage: list of str
|
|
@@ -8559,9 +8576,12 @@ class ServerPushText(AbstractModel):
|
|
|
8559
8576
|
:type Text: str
|
|
8560
8577
|
:param _Interrupt: 是否允许该文本打断机器人说话
|
|
8561
8578
|
:type Interrupt: bool
|
|
8579
|
+
:param _StopAfterPlay: 播报完文本后,是否自动关闭对话任务
|
|
8580
|
+
:type StopAfterPlay: bool
|
|
8562
8581
|
"""
|
|
8563
8582
|
self._Text = None
|
|
8564
8583
|
self._Interrupt = None
|
|
8584
|
+
self._StopAfterPlay = None
|
|
8565
8585
|
|
|
8566
8586
|
@property
|
|
8567
8587
|
def Text(self):
|
|
@@ -8579,10 +8599,19 @@ class ServerPushText(AbstractModel):
|
|
|
8579
8599
|
def Interrupt(self, Interrupt):
|
|
8580
8600
|
self._Interrupt = Interrupt
|
|
8581
8601
|
|
|
8602
|
+
@property
|
|
8603
|
+
def StopAfterPlay(self):
|
|
8604
|
+
return self._StopAfterPlay
|
|
8605
|
+
|
|
8606
|
+
@StopAfterPlay.setter
|
|
8607
|
+
def StopAfterPlay(self, StopAfterPlay):
|
|
8608
|
+
self._StopAfterPlay = StopAfterPlay
|
|
8609
|
+
|
|
8582
8610
|
|
|
8583
8611
|
def _deserialize(self, params):
|
|
8584
8612
|
self._Text = params.get("Text")
|
|
8585
8613
|
self._Interrupt = params.get("Interrupt")
|
|
8614
|
+
self._StopAfterPlay = params.get("StopAfterPlay")
|
|
8586
8615
|
memeber_set = set(params.keys())
|
|
8587
8616
|
for name, value in vars(self).items():
|
|
8588
8617
|
property_name = name[1:]
|
|
@@ -8734,18 +8763,18 @@ class StartAIConversationRequest(AbstractModel):
|
|
|
8734
8763
|
:type RoomId: str
|
|
8735
8764
|
:param _AgentConfig: 机器人参数
|
|
8736
8765
|
:type AgentConfig: :class:`tencentcloud.trtc.v20190722.models.AgentConfig`
|
|
8737
|
-
:param _SessionId: 调用方传入的唯一Id
|
|
8766
|
+
:param _SessionId: 调用方传入的唯一Id,可用于客户侧防止重复发起任务以及可以通过该字段查询任务状态。
|
|
8738
8767
|
:type SessionId: str
|
|
8739
8768
|
:param _RoomIdType: TRTC房间号的类型,0代表数字房间号,1代表字符串房间号。不填默认是数字房间号。
|
|
8740
8769
|
:type RoomIdType: int
|
|
8741
8770
|
:param _STTConfig: 语音识别配置。
|
|
8742
8771
|
:type STTConfig: :class:`tencentcloud.trtc.v20190722.models.STTConfig`
|
|
8743
8772
|
:param _LLMConfig: LLM配置。需符合openai规范,为JSON字符串,示例如下:
|
|
8744
|
-
<pre> { <br>   "LLMType": “大模型类型", // String
|
|
8773
|
+
<pre> { <br>   "LLMType": “大模型类型", // String 必填,如:"openai" <br>   "Model": "您的模型名称", // String 必填,指定使用的模型<br> "APIKey": "您的LLM API密钥", // String 必填 <br>   "APIUrl": "https://api.xxx.com/chat/completions", // String 必填,LLM API访问的URL<br>   "Streaming": true // Boolean 非必填,指定是否使用流式传输<br>  } </pre>
|
|
8745
8774
|
|
|
8746
8775
|
:type LLMConfig: str
|
|
8747
|
-
:param _TTSConfig: TTS
|
|
8748
|
-
<pre>{ <br>   "AppId":
|
|
8776
|
+
:param _TTSConfig: TTS配置,为JSON字符串,腾讯云TTS示例如下:
|
|
8777
|
+
<pre>{ <br>   "AppId": 您的应用ID, // Integer 必填<br>   "TTSType": "TTS类型", // String TTS类型, 固定为"tencent"<br>   "SecretId": "您的密钥ID", // String 必填<br>   "SecretKey": "您的密钥Key", // String 必填<br>   "VoiceType": 101001, // Integer 必填,音色 ID,包括标准音色与精品音色,精品音色拟真度更高,价格不同于标准音色,请参见<a href="https://cloud.tencent.com/document/product/1073/34112">语音合成计费概述</a>。完整的音色 ID 列表请参见<a href="https://cloud.tencent.com/document/product/1073/92668#55924b56-1a73-4663-a7a1-a8dd82d6e823">语音合成音色列表</a>。<br>   "Speed": 1.25, // Integer 非必填,语速,范围:[-2,6],分别对应不同语速: -2: 代表0.6倍 -1: 代表0.8倍 0: 代表1.0倍(默认) 1: 代表1.2倍 2: 代表1.5倍 6: 代表2.5倍 如果需要更细化的语速,可以保留小数点后 2 位,例如0.5/1.25/2.81等。 参数值与实际语速转换,可参考 <a href="https://sdk-1300466766.cos.ap-shanghai.myqcloud.com/sample/speed_sample.tar.gz">语速转换</a><br>   "Volume": 5, // Integer 非必填,音量大小,范围:[0,10],分别对应11个等级的音量,默认值为0,代表正常音量。<br>   "PrimaryLanguage": "zh-CN" // String 非必填,主要语言<br>  }</pre>
|
|
8749
8778
|
:type TTSConfig: str
|
|
8750
8779
|
"""
|
|
8751
8780
|
self._SdkAppId = None
|
|
@@ -9515,6 +9544,15 @@ class StartStreamIngestRequest(AbstractModel):
|
|
|
9515
9544
|
:type SourceUrl: list of str
|
|
9516
9545
|
:param _SeekSecond: 指定视频从某个秒时间戳播放
|
|
9517
9546
|
:type SeekSecond: int
|
|
9547
|
+
:param _AutoPush: 开启自动旁路推流,请确认控制台已经开启该功能。
|
|
9548
|
+
:type AutoPush: bool
|
|
9549
|
+
:param _RepeatNum: 循环播放次数, 取值范围[-1, 1000], 默认1次。
|
|
9550
|
+
- 0 无效值
|
|
9551
|
+
- -1 循环播放, 需要主动调用停止接口或设置MaxDuration
|
|
9552
|
+
|
|
9553
|
+
:type RepeatNum: int
|
|
9554
|
+
:param _MaxDuration: 循环播放最大时长,仅支持RepeatNum设置-1时生效,取值范围[1, 10080],单位分钟。
|
|
9555
|
+
:type MaxDuration: int
|
|
9518
9556
|
"""
|
|
9519
9557
|
self._SdkAppId = None
|
|
9520
9558
|
self._RoomId = None
|
|
@@ -9527,6 +9565,9 @@ class StartStreamIngestRequest(AbstractModel):
|
|
|
9527
9565
|
self._AudioEncodeParams = None
|
|
9528
9566
|
self._SourceUrl = None
|
|
9529
9567
|
self._SeekSecond = None
|
|
9568
|
+
self._AutoPush = None
|
|
9569
|
+
self._RepeatNum = None
|
|
9570
|
+
self._MaxDuration = None
|
|
9530
9571
|
|
|
9531
9572
|
@property
|
|
9532
9573
|
def SdkAppId(self):
|
|
@@ -9628,6 +9669,30 @@ class StartStreamIngestRequest(AbstractModel):
|
|
|
9628
9669
|
def SeekSecond(self, SeekSecond):
|
|
9629
9670
|
self._SeekSecond = SeekSecond
|
|
9630
9671
|
|
|
9672
|
+
@property
|
|
9673
|
+
def AutoPush(self):
|
|
9674
|
+
return self._AutoPush
|
|
9675
|
+
|
|
9676
|
+
@AutoPush.setter
|
|
9677
|
+
def AutoPush(self, AutoPush):
|
|
9678
|
+
self._AutoPush = AutoPush
|
|
9679
|
+
|
|
9680
|
+
@property
|
|
9681
|
+
def RepeatNum(self):
|
|
9682
|
+
return self._RepeatNum
|
|
9683
|
+
|
|
9684
|
+
@RepeatNum.setter
|
|
9685
|
+
def RepeatNum(self, RepeatNum):
|
|
9686
|
+
self._RepeatNum = RepeatNum
|
|
9687
|
+
|
|
9688
|
+
@property
|
|
9689
|
+
def MaxDuration(self):
|
|
9690
|
+
return self._MaxDuration
|
|
9691
|
+
|
|
9692
|
+
@MaxDuration.setter
|
|
9693
|
+
def MaxDuration(self, MaxDuration):
|
|
9694
|
+
self._MaxDuration = MaxDuration
|
|
9695
|
+
|
|
9631
9696
|
|
|
9632
9697
|
def _deserialize(self, params):
|
|
9633
9698
|
self._SdkAppId = params.get("SdkAppId")
|
|
@@ -9645,6 +9710,9 @@ class StartStreamIngestRequest(AbstractModel):
|
|
|
9645
9710
|
self._AudioEncodeParams._deserialize(params.get("AudioEncodeParams"))
|
|
9646
9711
|
self._SourceUrl = params.get("SourceUrl")
|
|
9647
9712
|
self._SeekSecond = params.get("SeekSecond")
|
|
9713
|
+
self._AutoPush = params.get("AutoPush")
|
|
9714
|
+
self._RepeatNum = params.get("RepeatNum")
|
|
9715
|
+
self._MaxDuration = params.get("MaxDuration")
|
|
9648
9716
|
memeber_set = set(params.keys())
|
|
9649
9717
|
for name, value in vars(self).items():
|
|
9650
9718
|
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
|
}`
|
|
@@ -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.1209
|
|
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 (==3.0.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common (==3.0.1209)
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
tencentcloud/__init__.py,sha256=_iFyR-3rOYw2dmIVHoNHApiNLB2Q6NkRGCnMRXlLH2Y,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=WNu9Hx8kn4lpbc342xXM1lw4uTQIx2JCvZchRlUXBL8,10987
|
|
5
|
+
tencentcloud/trtc/v20190722/models.py,sha256=onV37eHazFNdMwyknTD7uZhCwrLxitKd8K73_bPZOwI,392013
|
|
6
|
+
tencentcloud/trtc/v20190722/trtc_client.py,sha256=1qXvD_oecbj3wr_LRHO9yscDsRFAnuB85TV0hbMFFTo,77719
|
|
7
|
+
tencentcloud_sdk_python_trtc-3.0.1209.dist-info/METADATA,sha256=bi0kDoV-vf6Wlt792TgP2HmY6FOJvCd8y0fKnj-dUTk,1497
|
|
8
|
+
tencentcloud_sdk_python_trtc-3.0.1209.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
|
9
|
+
tencentcloud_sdk_python_trtc-3.0.1209.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
10
|
+
tencentcloud_sdk_python_trtc-3.0.1209.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
tencentcloud/__init__.py,sha256=MRhmf8qYzKiISF-A18v9HHqE8Aob-YvRu2_WZ8ECOoU,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=K4q7UWQkdedEyrQJFz67cH3xzyKo78PS0EseWry0JXo,10898
|
|
5
|
-
tencentcloud/trtc/v20190722/models.py,sha256=jQ3dyyTZiHhDEA-f2IU_8rBANerjKFNwkvYROwPifPY,389205
|
|
6
|
-
tencentcloud/trtc/v20190722/trtc_client.py,sha256=7LEm9-06cMUwXOEpm-ueDS7tx9hln3zcZxexC1Fc6Ak,77573
|
|
7
|
-
tencentcloud_sdk_python_trtc-3.0.1202.dist-info/METADATA,sha256=Na9XzmVWOv5Tm4AS9ouRYyr6fBWKKV7ZjLz2orPhPn8,1497
|
|
8
|
-
tencentcloud_sdk_python_trtc-3.0.1202.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
|
9
|
-
tencentcloud_sdk_python_trtc-3.0.1202.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
10
|
-
tencentcloud_sdk_python_trtc-3.0.1202.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|