tencentcloud-sdk-python-trtc 3.0.1213__tar.gz → 3.0.1249__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.

Files changed (16) hide show
  1. {tencentcloud-sdk-python-trtc-3.0.1213 → tencentcloud-sdk-python-trtc-3.0.1249}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-trtc-3.0.1213 → tencentcloud-sdk-python-trtc-3.0.1249}/setup.py +1 -1
  3. {tencentcloud-sdk-python-trtc-3.0.1213 → tencentcloud-sdk-python-trtc-3.0.1249}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-trtc-3.0.1213 → tencentcloud-sdk-python-trtc-3.0.1249}/tencentcloud/trtc/v20190722/models.py +251 -7
  5. {tencentcloud-sdk-python-trtc-3.0.1213 → tencentcloud-sdk-python-trtc-3.0.1249}/tencentcloud/trtc/v20190722/trtc_client.py +48 -35
  6. {tencentcloud-sdk-python-trtc-3.0.1213 → tencentcloud-sdk-python-trtc-3.0.1249}/tencentcloud_sdk_python_trtc.egg-info/PKG-INFO +1 -1
  7. tencentcloud-sdk-python-trtc-3.0.1249/tencentcloud_sdk_python_trtc.egg-info/requires.txt +1 -0
  8. tencentcloud-sdk-python-trtc-3.0.1213/tencentcloud_sdk_python_trtc.egg-info/requires.txt +0 -1
  9. {tencentcloud-sdk-python-trtc-3.0.1213 → tencentcloud-sdk-python-trtc-3.0.1249}/README.rst +0 -0
  10. {tencentcloud-sdk-python-trtc-3.0.1213 → tencentcloud-sdk-python-trtc-3.0.1249}/setup.cfg +0 -0
  11. {tencentcloud-sdk-python-trtc-3.0.1213 → tencentcloud-sdk-python-trtc-3.0.1249}/tencentcloud/trtc/__init__.py +0 -0
  12. {tencentcloud-sdk-python-trtc-3.0.1213 → tencentcloud-sdk-python-trtc-3.0.1249}/tencentcloud/trtc/v20190722/__init__.py +0 -0
  13. {tencentcloud-sdk-python-trtc-3.0.1213 → tencentcloud-sdk-python-trtc-3.0.1249}/tencentcloud/trtc/v20190722/errorcodes.py +0 -0
  14. {tencentcloud-sdk-python-trtc-3.0.1213 → tencentcloud-sdk-python-trtc-3.0.1249}/tencentcloud_sdk_python_trtc.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-trtc-3.0.1213 → tencentcloud-sdk-python-trtc-3.0.1249}/tencentcloud_sdk_python_trtc.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-trtc-3.0.1213 → tencentcloud-sdk-python-trtc-3.0.1249}/tencentcloud_sdk_python_trtc.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-trtc
3
- Version: 3.0.1213
3
+ Version: 3.0.1249
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
@@ -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.1213"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1249"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Trtc SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1213'
17
+ __version__ = '3.0.1249'
@@ -530,26 +530,21 @@ class CloudStorage(AbstractModel):
530
530
  0:腾讯云对象存储 COS
531
531
  1:AWS
532
532
  【注意】目前第三方云存储仅支持AWS,更多第三方云存储陆续支持中
533
- 示例值:0
534
533
  :type Vendor: int
535
534
  :param _Region: 腾讯云对象存储的[地域信息](https://cloud.tencent.com/document/product/436/6224#.E5.9C.B0.E5.9F.9F)。
536
535
  示例值:cn-shanghai-1
537
536
 
538
537
  AWS S3[地域信息](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-regions)
539
- 示例值:ap-southeast-3
540
538
  :type Region: str
541
539
  :param _Bucket: 云存储桶名称。
542
540
  :type Bucket: str
543
541
  :param _AccessKey: 云存储的access_key账号信息。
544
542
  若存储至腾讯云对象存储COS,请前往https://console.cloud.tencent.com/cam/capi 查看或创建,对应链接中密钥字段的SecretId值。
545
- 示例值:test-accesskey
546
543
  :type AccessKey: str
547
544
  :param _SecretKey: 云存储的secret_key账号信息。
548
545
  若存储至腾讯云对象存储COS,请前往https://console.cloud.tencent.com/cam/capi 查看或创建,对应链接中密钥字段的SecretKey值。
549
- 示例值:test-secretkey
550
546
  :type SecretKey: str
551
547
  :param _FileNamePrefix: 云存储bucket 的指定位置,由字符串数组组成。合法的字符串范围az,AZ,0~9,'_'和'-',举个例子,录制文件xxx.m3u8在 ["prefix1", "prefix2"]作用下,会变成prefix1/prefix2/TaskId/xxx.m3u8。
552
- 示例值:["prefix1", "prefix2"]
553
548
  :type FileNamePrefix: list of str
554
549
  """
555
550
  self._Vendor = None
@@ -7605,7 +7600,7 @@ class RecognizeConfig(AbstractModel):
7605
7600
  - English = "en" # 英语
7606
7601
  - Vietnamese = "vi" # 越南语
7607
7602
  - Japanese = "ja" # 日语
7608
- - Korean = "ko" # 汉语
7603
+ - Korean = "ko" # 韩语
7609
7604
  - Indonesia = "id" # 印度尼西亚语
7610
7605
  - Thai = "th" # 泰语
7611
7606
  - Portuguese = "pt" # 葡萄牙语
@@ -8218,7 +8213,7 @@ class STTConfig(AbstractModel):
8218
8213
  4. English = "en" # 英语
8219
8214
  5. Vietnamese = "vi" # 越南语
8220
8215
  6. Japanese = "ja" # 日语
8221
- 7. Korean = "ko" # 汉语
8216
+ 7. Korean = "ko" # 韩语
8222
8217
  8. Indonesia = "id" # 印度尼西亚语
8223
8218
  9. Thai = "th" # 泰语
8224
8219
  10. Portuguese = "pt" # 葡萄牙语
@@ -8242,9 +8237,13 @@ class STTConfig(AbstractModel):
8242
8237
 
8243
8238
  注意:此字段可能返回 null,表示取不到有效值。
8244
8239
  :type AlternativeLanguage: list of str
8240
+ :param _VadSilenceTime: 语音识别vad的时间,范围为240-2000,默认为1000,单位为ms。更小的值会让语音识别分句更快。
8241
+ 注意:此字段可能返回 null,表示取不到有效值。
8242
+ :type VadSilenceTime: int
8245
8243
  """
8246
8244
  self._Language = None
8247
8245
  self._AlternativeLanguage = None
8246
+ self._VadSilenceTime = None
8248
8247
 
8249
8248
  @property
8250
8249
  def Language(self):
@@ -8262,10 +8261,19 @@ class STTConfig(AbstractModel):
8262
8261
  def AlternativeLanguage(self, AlternativeLanguage):
8263
8262
  self._AlternativeLanguage = AlternativeLanguage
8264
8263
 
8264
+ @property
8265
+ def VadSilenceTime(self):
8266
+ return self._VadSilenceTime
8267
+
8268
+ @VadSilenceTime.setter
8269
+ def VadSilenceTime(self, VadSilenceTime):
8270
+ self._VadSilenceTime = VadSilenceTime
8271
+
8265
8272
 
8266
8273
  def _deserialize(self, params):
8267
8274
  self._Language = params.get("Language")
8268
8275
  self._AlternativeLanguage = params.get("AlternativeLanguage")
8276
+ self._VadSilenceTime = params.get("VadSilenceTime")
8269
8277
  memeber_set = set(params.keys())
8270
8278
  for name, value in vars(self).items():
8271
8279
  property_name = name[1:]
@@ -9810,6 +9818,8 @@ class StartWebRecordRequest(AbstractModel):
9810
9818
  :type RecordId: str
9811
9819
  :param _PublishCdnParams: 若您想要推流到CDN,可以使用PublishCdnParams.N参数设置,支持最多同时推流到10个CDN地址。若转推地址是腾讯云CDN时,请将IsTencentCdn明确设置为1
9812
9820
  :type PublishCdnParams: list of McuPublishCdnParam
9821
+ :param _ReadyTimeout: 录制页面资源加载的超时时间,单位:秒。默认值为 0 秒,该值需大于等于 0秒,且小于等于 60秒。录制页面未启用页面加载超时检测时,请勿设置此参数。
9822
+ :type ReadyTimeout: int
9813
9823
  """
9814
9824
  self._RecordUrl = None
9815
9825
  self._MaxDurationLimit = None
@@ -9818,6 +9828,7 @@ class StartWebRecordRequest(AbstractModel):
9818
9828
  self._SdkAppId = None
9819
9829
  self._RecordId = None
9820
9830
  self._PublishCdnParams = None
9831
+ self._ReadyTimeout = None
9821
9832
 
9822
9833
  @property
9823
9834
  def RecordUrl(self):
@@ -9875,6 +9886,14 @@ class StartWebRecordRequest(AbstractModel):
9875
9886
  def PublishCdnParams(self, PublishCdnParams):
9876
9887
  self._PublishCdnParams = PublishCdnParams
9877
9888
 
9889
+ @property
9890
+ def ReadyTimeout(self):
9891
+ return self._ReadyTimeout
9892
+
9893
+ @ReadyTimeout.setter
9894
+ def ReadyTimeout(self, ReadyTimeout):
9895
+ self._ReadyTimeout = ReadyTimeout
9896
+
9878
9897
 
9879
9898
  def _deserialize(self, params):
9880
9899
  self._RecordUrl = params.get("RecordUrl")
@@ -9893,6 +9912,7 @@ class StartWebRecordRequest(AbstractModel):
9893
9912
  obj = McuPublishCdnParam()
9894
9913
  obj._deserialize(item)
9895
9914
  self._PublishCdnParams.append(obj)
9915
+ self._ReadyTimeout = params.get("ReadyTimeout")
9896
9916
  memeber_set = set(params.keys())
9897
9917
  for name, value in vars(self).items():
9898
9918
  property_name = name[1:]
@@ -10957,6 +10977,8 @@ https://cloud.tencent.com/document/product/269/31999#app-.E7.AE.A1.E7.90.86.E5.9
10957
10977
  :type TranscriptionMode: int
10958
10978
  :param _TargetUserId: TranscriptionMode为1时必填,机器人只会拉该userid的流,忽略房间里其他用户。
10959
10979
  :type TargetUserId: str
10980
+ :param _TargetUserIdList: 机器人订阅的用户列表
10981
+ :type TargetUserIdList: list of str
10960
10982
  """
10961
10983
  self._UserId = None
10962
10984
  self._UserSig = None
@@ -10965,6 +10987,7 @@ https://cloud.tencent.com/document/product/269/31999#app-.E7.AE.A1.E7.90.86.E5.9
10965
10987
  self._MaxIdleTime = None
10966
10988
  self._TranscriptionMode = None
10967
10989
  self._TargetUserId = None
10990
+ self._TargetUserIdList = None
10968
10991
 
10969
10992
  @property
10970
10993
  def UserId(self):
@@ -11030,6 +11053,14 @@ https://cloud.tencent.com/document/product/269/31999#app-.E7.AE.A1.E7.90.86.E5.9
11030
11053
  def TargetUserId(self, TargetUserId):
11031
11054
  self._TargetUserId = TargetUserId
11032
11055
 
11056
+ @property
11057
+ def TargetUserIdList(self):
11058
+ return self._TargetUserIdList
11059
+
11060
+ @TargetUserIdList.setter
11061
+ def TargetUserIdList(self, TargetUserIdList):
11062
+ self._TargetUserIdList = TargetUserIdList
11063
+
11033
11064
 
11034
11065
  def _deserialize(self, params):
11035
11066
  self._UserId = params.get("UserId")
@@ -11039,6 +11070,7 @@ https://cloud.tencent.com/document/product/269/31999#app-.E7.AE.A1.E7.90.86.E5.9
11039
11070
  self._MaxIdleTime = params.get("MaxIdleTime")
11040
11071
  self._TranscriptionMode = params.get("TranscriptionMode")
11041
11072
  self._TargetUserId = params.get("TargetUserId")
11073
+ self._TargetUserIdList = params.get("TargetUserIdList")
11042
11074
  memeber_set = set(params.keys())
11043
11075
  for name, value in vars(self).items():
11044
11076
  property_name = name[1:]
@@ -11106,6 +11138,124 @@ class TrtcUsage(AbstractModel):
11106
11138
 
11107
11139
 
11108
11140
 
11141
+ class UpdateAIConversationRequest(AbstractModel):
11142
+ """UpdateAIConversation请求参数结构体
11143
+
11144
+ """
11145
+
11146
+ def __init__(self):
11147
+ r"""
11148
+ :param _TaskId: 唯一标识一个任务
11149
+ :type TaskId: str
11150
+ :param _WelcomeMessage: 不填写则不进行更新,机器人的欢迎语
11151
+ :type WelcomeMessage: str
11152
+ :param _InterruptMode: 不填写则不进行更新。智能打断模式,0表示服务端自动打断,1表示服务端不打断,由端上发送打断信令进行打断
11153
+ :type InterruptMode: int
11154
+ :param _InterruptSpeechDuration: 不填写则不进行更新。InterruptMode为0时使用,单位为毫秒,默认为500ms。表示服务端检测到持续InterruptSpeechDuration毫秒的人声则进行打断
11155
+ :type InterruptSpeechDuration: int
11156
+ :param _LLMConfig: 不填写则不进行更新,LLM配置,详情见StartAIConversation接口
11157
+ :type LLMConfig: str
11158
+ :param _TTSConfig: 不填写则不进行更新,TTS配置,详情见StartAIConversation接口
11159
+ :type TTSConfig: str
11160
+ """
11161
+ self._TaskId = None
11162
+ self._WelcomeMessage = None
11163
+ self._InterruptMode = None
11164
+ self._InterruptSpeechDuration = None
11165
+ self._LLMConfig = None
11166
+ self._TTSConfig = None
11167
+
11168
+ @property
11169
+ def TaskId(self):
11170
+ return self._TaskId
11171
+
11172
+ @TaskId.setter
11173
+ def TaskId(self, TaskId):
11174
+ self._TaskId = TaskId
11175
+
11176
+ @property
11177
+ def WelcomeMessage(self):
11178
+ return self._WelcomeMessage
11179
+
11180
+ @WelcomeMessage.setter
11181
+ def WelcomeMessage(self, WelcomeMessage):
11182
+ self._WelcomeMessage = WelcomeMessage
11183
+
11184
+ @property
11185
+ def InterruptMode(self):
11186
+ return self._InterruptMode
11187
+
11188
+ @InterruptMode.setter
11189
+ def InterruptMode(self, InterruptMode):
11190
+ self._InterruptMode = InterruptMode
11191
+
11192
+ @property
11193
+ def InterruptSpeechDuration(self):
11194
+ return self._InterruptSpeechDuration
11195
+
11196
+ @InterruptSpeechDuration.setter
11197
+ def InterruptSpeechDuration(self, InterruptSpeechDuration):
11198
+ self._InterruptSpeechDuration = InterruptSpeechDuration
11199
+
11200
+ @property
11201
+ def LLMConfig(self):
11202
+ return self._LLMConfig
11203
+
11204
+ @LLMConfig.setter
11205
+ def LLMConfig(self, LLMConfig):
11206
+ self._LLMConfig = LLMConfig
11207
+
11208
+ @property
11209
+ def TTSConfig(self):
11210
+ return self._TTSConfig
11211
+
11212
+ @TTSConfig.setter
11213
+ def TTSConfig(self, TTSConfig):
11214
+ self._TTSConfig = TTSConfig
11215
+
11216
+
11217
+ def _deserialize(self, params):
11218
+ self._TaskId = params.get("TaskId")
11219
+ self._WelcomeMessage = params.get("WelcomeMessage")
11220
+ self._InterruptMode = params.get("InterruptMode")
11221
+ self._InterruptSpeechDuration = params.get("InterruptSpeechDuration")
11222
+ self._LLMConfig = params.get("LLMConfig")
11223
+ self._TTSConfig = params.get("TTSConfig")
11224
+ memeber_set = set(params.keys())
11225
+ for name, value in vars(self).items():
11226
+ property_name = name[1:]
11227
+ if property_name in memeber_set:
11228
+ memeber_set.remove(property_name)
11229
+ if len(memeber_set) > 0:
11230
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
11231
+
11232
+
11233
+
11234
+ class UpdateAIConversationResponse(AbstractModel):
11235
+ """UpdateAIConversation返回参数结构体
11236
+
11237
+ """
11238
+
11239
+ def __init__(self):
11240
+ r"""
11241
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
11242
+ :type RequestId: str
11243
+ """
11244
+ self._RequestId = None
11245
+
11246
+ @property
11247
+ def RequestId(self):
11248
+ return self._RequestId
11249
+
11250
+ @RequestId.setter
11251
+ def RequestId(self, RequestId):
11252
+ self._RequestId = RequestId
11253
+
11254
+
11255
+ def _deserialize(self, params):
11256
+ self._RequestId = params.get("RequestId")
11257
+
11258
+
11109
11259
  class UpdatePublishCdnStreamRequest(AbstractModel):
11110
11260
  """UpdatePublishCdnStream请求参数结构体
11111
11261
 
@@ -11302,6 +11452,100 @@ class UpdatePublishCdnStreamResponse(AbstractModel):
11302
11452
  self._RequestId = params.get("RequestId")
11303
11453
 
11304
11454
 
11455
+ class UpdateStreamIngestRequest(AbstractModel):
11456
+ """UpdateStreamIngest请求参数结构体
11457
+
11458
+ """
11459
+
11460
+ def __init__(self):
11461
+ r"""
11462
+ :param _SdkAppId: TRTC的SDKAppId,和任务的房间所对应的SDKAppId相同
11463
+ :type SdkAppId: int
11464
+ :param _TaskId: 任务的唯一Id,在启动任务成功后会返回。
11465
+ :type TaskId: str
11466
+ :param _StreamUrl: 源流URL【必填】。
11467
+ :type StreamUrl: str
11468
+ """
11469
+ self._SdkAppId = None
11470
+ self._TaskId = None
11471
+ self._StreamUrl = None
11472
+
11473
+ @property
11474
+ def SdkAppId(self):
11475
+ return self._SdkAppId
11476
+
11477
+ @SdkAppId.setter
11478
+ def SdkAppId(self, SdkAppId):
11479
+ self._SdkAppId = SdkAppId
11480
+
11481
+ @property
11482
+ def TaskId(self):
11483
+ return self._TaskId
11484
+
11485
+ @TaskId.setter
11486
+ def TaskId(self, TaskId):
11487
+ self._TaskId = TaskId
11488
+
11489
+ @property
11490
+ def StreamUrl(self):
11491
+ return self._StreamUrl
11492
+
11493
+ @StreamUrl.setter
11494
+ def StreamUrl(self, StreamUrl):
11495
+ self._StreamUrl = StreamUrl
11496
+
11497
+
11498
+ def _deserialize(self, params):
11499
+ self._SdkAppId = params.get("SdkAppId")
11500
+ self._TaskId = params.get("TaskId")
11501
+ self._StreamUrl = params.get("StreamUrl")
11502
+ memeber_set = set(params.keys())
11503
+ for name, value in vars(self).items():
11504
+ property_name = name[1:]
11505
+ if property_name in memeber_set:
11506
+ memeber_set.remove(property_name)
11507
+ if len(memeber_set) > 0:
11508
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
11509
+
11510
+
11511
+
11512
+ class UpdateStreamIngestResponse(AbstractModel):
11513
+ """UpdateStreamIngest返回参数结构体
11514
+
11515
+ """
11516
+
11517
+ def __init__(self):
11518
+ r"""
11519
+ :param _Status: 任务的状态信息。InProgress:表示当前任务正在进行中。NotExist:表示当前任务不存在。示例值:InProgress
11520
+ :type Status: str
11521
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
11522
+ :type RequestId: str
11523
+ """
11524
+ self._Status = None
11525
+ self._RequestId = None
11526
+
11527
+ @property
11528
+ def Status(self):
11529
+ return self._Status
11530
+
11531
+ @Status.setter
11532
+ def Status(self, Status):
11533
+ self._Status = Status
11534
+
11535
+ @property
11536
+ def RequestId(self):
11537
+ return self._RequestId
11538
+
11539
+ @RequestId.setter
11540
+ def RequestId(self, RequestId):
11541
+ self._RequestId = RequestId
11542
+
11543
+
11544
+ def _deserialize(self, params):
11545
+ self._Status = params.get("Status")
11546
+ self._RequestId = params.get("RequestId")
11547
+
11548
+
11305
11549
  class UserInformation(AbstractModel):
11306
11550
  """用户信息,包括用户进房时间,退房时间等
11307
11551
 
@@ -1040,45 +1040,12 @@ class TrtcClient(AbstractClient):
1040
1040
 
1041
1041
 
1042
1042
  def StartAITranscription(self, request):
1043
- """这个接口调用后,后台会启动转录机器人,实时进行语音识别并下发字幕和转录消息。
1043
+ """启动转录机器人,后台会通过机器人拉流进行实时进行语音识别并下发字幕和转录消息。
1044
1044
  转录机器人支持两种拉流方式,通过TranscriptionMode字段控制:
1045
1045
  - 拉取全房间的流。
1046
1046
  - 拉取特定用户的流。
1047
1047
 
1048
- 服务端通过TRTC的自定义消息实时下发字幕和会议记录,CmdId固定是1。客户端只需监听自定义消息的回调即可,比如[c++回调](https://cloud.tencent.com/document/product/647/79637#4cd82f4edb24992a15a25187089e1565)。其他客户端比如安卓、Web等同样可在该链接处找到。
1049
-
1050
- 服务端实时下发的消息是JSON字符串,实时字幕具体格式如下:
1051
- `{
1052
- "type": "subtitle",
1053
- "userid": "xxx",
1054
- "text": "xxx",
1055
- "start_time": "00:00:02",
1056
- "end_time": "00:00:05"
1057
- }`
1058
- 字段作用如下:
1059
- - type是subtitle,表示这是实时字幕消息。
1060
- - userid表示是哪个用户说的话。
1061
- - text是语音识别出的文本。
1062
- - start_time和end_time表示该字幕消息从任务开启后的开始和结束时间。
1063
-
1064
- 转录消息具体格式如下:
1065
- `{
1066
- "type": "transcription",
1067
- "userid": "xxx",
1068
- "text": "xxx",
1069
- "start_time": "00:00:02",
1070
- "end_time": "00:00:05"
1071
- }`
1072
- 字段作用如下:
1073
- - type是transcription,表示这是转录消息。
1074
- - 其余字段同实时字幕消息。
1075
-
1076
- 转录消息和实时字幕消息的区别是,转录消息是完整的一句话,实时字幕消息则是这一句话的中间阶段。
1077
- 假如有一句完整的话,“今天天气怎么样?”,那么服务的下发消息的顺序可能是这样:
1078
- - 字幕消息,“今天”
1079
- - 字幕消息,“今天天气”
1080
- - 字幕消息,“今天天气怎么样”
1081
- - 转录消息,“今天天气怎么样?”
1048
+ 服务端通过TRTC的自定义消息实时下发字幕以及转录消息,CmdId固定是1。客户端只需监听自定义消息的回调即可,比如[c++回调](https://cloud.tencent.com/document/product/647/79637#4cd82f4edb24992a15a25187089e1565)。其他客户端比如安卓、Web等同样可在该链接处找到。
1082
1049
 
1083
1050
  :param request: Request instance for StartAITranscription.
1084
1051
  :type request: :class:`tencentcloud.trtc.v20190722.models.StartAITranscriptionRequest`
@@ -1451,6 +1418,29 @@ class TrtcClient(AbstractClient):
1451
1418
  raise TencentCloudSDKException(type(e).__name__, str(e))
1452
1419
 
1453
1420
 
1421
+ def UpdateAIConversation(self, request):
1422
+ """更新AIConversation参数
1423
+
1424
+ :param request: Request instance for UpdateAIConversation.
1425
+ :type request: :class:`tencentcloud.trtc.v20190722.models.UpdateAIConversationRequest`
1426
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.UpdateAIConversationResponse`
1427
+
1428
+ """
1429
+ try:
1430
+ params = request._serialize()
1431
+ headers = request.headers
1432
+ body = self.call("UpdateAIConversation", params, headers=headers)
1433
+ response = json.loads(body)
1434
+ model = models.UpdateAIConversationResponse()
1435
+ model._deserialize(response["Response"])
1436
+ return model
1437
+ except Exception as e:
1438
+ if isinstance(e, TencentCloudSDKException):
1439
+ raise
1440
+ else:
1441
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1442
+
1443
+
1454
1444
  def UpdatePublishCdnStream(self, request):
1455
1445
  """接口说明:
1456
1446
  成功发起混流转推后,可以使用此接口来更新任务。仅在任务进行时有效,任务退出后更新将会返回错误。更新操作为增量更新模式。
@@ -1469,6 +1459,29 @@ class TrtcClient(AbstractClient):
1469
1459
  model = models.UpdatePublishCdnStreamResponse()
1470
1460
  model._deserialize(response["Response"])
1471
1461
  return model
1462
+ except Exception as e:
1463
+ if isinstance(e, TencentCloudSDKException):
1464
+ raise
1465
+ else:
1466
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1467
+
1468
+
1469
+ def UpdateStreamIngest(self, request):
1470
+ """更新输入在线媒体流任务的StreamUrl
1471
+
1472
+ :param request: Request instance for UpdateStreamIngest.
1473
+ :type request: :class:`tencentcloud.trtc.v20190722.models.UpdateStreamIngestRequest`
1474
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.UpdateStreamIngestResponse`
1475
+
1476
+ """
1477
+ try:
1478
+ params = request._serialize()
1479
+ headers = request.headers
1480
+ body = self.call("UpdateStreamIngest", params, headers=headers)
1481
+ response = json.loads(body)
1482
+ model = models.UpdateStreamIngestResponse()
1483
+ model._deserialize(response["Response"])
1484
+ return model
1472
1485
  except Exception as e:
1473
1486
  if isinstance(e, TencentCloudSDKException):
1474
1487
  raise
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-trtc
3
- Version: 3.0.1213
3
+ Version: 3.0.1249
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
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common==3.0.1249
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1213