tencentcloud-sdk-trtc 3.0.889 → 3.0.890

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 108d3df3b2056ff7413832f4c54aa4581e64e5d8
4
- data.tar.gz: a977e9cd960623a6a16e5ce86a87b615de995428
3
+ metadata.gz: dc4003521c37a2f8478289cc7775938bfcc48fa4
4
+ data.tar.gz: 283ece976bf22d62d3af6286b04393526aad4646
5
5
  SHA512:
6
- metadata.gz: a5df5e25aecf82cb455f3cf8dd93e4ff4bc67c3509f2e0b4a0fb5104652cd10b7dae3175bb54bd47f3885f082245089b311688edaea0f5fe333353bc8eb49d83
7
- data.tar.gz: ef3c6e41b50d9693258e472c782dc252b86adc04b42390aa5f2d1933a2b827ca9bc930de7b898d387eb77bef7d5dfe6d0fb90a94e81b457c35f238f927864cd4
6
+ metadata.gz: 7b0ce58d86227659b4d937b425d99c1c21b745e999502afca8f876bf1794d29a66658d12dbc969eceed3f476a539fd6bc8e4830cec07126be178081c12d08659
7
+ data.tar.gz: 961e47d95f09b3db0179898fb316943f6dbcc7016768ef1c91113fb9db249d4ece2f72be0c617971da5bbc61ea0891a2b746080043d1442167187b20bae50208
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.889
1
+ 3.0.890
@@ -1081,45 +1081,12 @@ module TencentCloud
1081
1081
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1082
1082
  end
1083
1083
 
1084
- # 这个接口调用后,后台会启动转录机器人,实时进行语音识别并下发字幕和转录消息。
1084
+ # 启动转录机器人,后台会通过机器人拉流进行实时进行语音识别并下发字幕和转录消息。
1085
1085
  # 转录机器人支持两种拉流方式,通过TranscriptionMode字段控制:
1086
1086
  # - 拉取全房间的流。
1087
1087
  # - 拉取特定用户的流。
1088
1088
 
1089
- # 服务端通过TRTC的自定义消息实时下发字幕和会议记录,CmdId固定是1。客户端只需监听自定义消息的回调即可,比如[c++回调](https://cloud.tencent.com/document/product/647/79637#4cd82f4edb24992a15a25187089e1565)。其他客户端比如安卓、Web等同样可在该链接处找到。
1090
-
1091
- # 服务端实时下发的消息是JSON字符串,实时字幕具体格式如下:
1092
- # `{
1093
- # "type": "subtitle",
1094
- # "userid": "xxx",
1095
- # "text": "xxx",
1096
- # "start_time": "00:00:02",
1097
- # "end_time": "00:00:05"
1098
- # }`
1099
- # 字段作用如下:
1100
- # - type是subtitle,表示这是实时字幕消息。
1101
- # - userid表示是哪个用户说的话。
1102
- # - text是语音识别出的文本。
1103
- # - start_time和end_time表示该字幕消息从任务开启后的开始和结束时间。
1104
-
1105
- # 转录消息具体格式如下:
1106
- # `{
1107
- # "type": "transcription",
1108
- # "userid": "xxx",
1109
- # "text": "xxx",
1110
- # "start_time": "00:00:02",
1111
- # "end_time": "00:00:05"
1112
- # }`
1113
- # 字段作用如下:
1114
- # - type是transcription,表示这是转录消息。
1115
- # - 其余字段同实时字幕消息。
1116
-
1117
- # 转录消息和实时字幕消息的区别是,转录消息是完整的一句话,实时字幕消息则是这一句话的中间阶段。
1118
- # 假如有一句完整的话,“今天天气怎么样?”,那么服务的下发消息的顺序可能是这样:
1119
- # - 字幕消息,“今天”
1120
- # - 字幕消息,“今天天气”
1121
- # - 字幕消息,“今天天气怎么样”
1122
- # - 转录消息,“今天天气怎么样?”
1089
+ # 服务端通过TRTC的自定义消息实时下发字幕以及转录消息,CmdId固定是1。客户端只需监听自定义消息的回调即可,比如[c++回调](https://cloud.tencent.com/document/product/647/79637#4cd82f4edb24992a15a25187089e1565)。其他客户端比如安卓、Web等同样可在该链接处找到。
1123
1090
 
1124
1091
  # @param request: Request instance for StartAITranscription.
1125
1092
  # @type request: :class:`Tencentcloud::trtc::V20190722::StartAITranscriptionRequest`
@@ -1507,6 +1474,30 @@ module TencentCloud
1507
1474
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1508
1475
  end
1509
1476
 
1477
+ # 更新AIConversation参数
1478
+
1479
+ # @param request: Request instance for UpdateAIConversation.
1480
+ # @type request: :class:`Tencentcloud::trtc::V20190722::UpdateAIConversationRequest`
1481
+ # @rtype: :class:`Tencentcloud::trtc::V20190722::UpdateAIConversationResponse`
1482
+ def UpdateAIConversation(request)
1483
+ body = send_request('UpdateAIConversation', request.serialize)
1484
+ response = JSON.parse(body)
1485
+ if response['Response'].key?('Error') == false
1486
+ model = UpdateAIConversationResponse.new
1487
+ model.deserialize(response['Response'])
1488
+ model
1489
+ else
1490
+ code = response['Response']['Error']['Code']
1491
+ message = response['Response']['Error']['Message']
1492
+ reqid = response['Response']['RequestId']
1493
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1494
+ end
1495
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1496
+ raise e
1497
+ rescue StandardError => e
1498
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1499
+ end
1500
+
1510
1501
  # 接口说明:
1511
1502
  # 成功发起混流转推后,可以使用此接口来更新任务。仅在任务进行时有效,任务退出后更新将会返回错误。更新操作为增量更新模式。
1512
1503
  # 注意:为了保障推流的稳定性,更新不支持任务在纯音频、音视频、纯视频之间进行切换。
@@ -5202,6 +5202,58 @@ module TencentCloud
5202
5202
  end
5203
5203
  end
5204
5204
 
5205
+ # UpdateAIConversation请求参数结构体
5206
+ class UpdateAIConversationRequest < TencentCloud::Common::AbstractModel
5207
+ # @param TaskId: 唯一标识一个任务
5208
+ # @type TaskId: String
5209
+ # @param WelcomeMessage: 不填写则不进行更新,机器人的欢迎语
5210
+ # @type WelcomeMessage: String
5211
+ # @param InterruptMode: 不填写则不进行更新。智能打断模式,0表示服务端自动打断,1表示服务端不打断,由端上发送打断信令进行打断
5212
+ # @type InterruptMode: Integer
5213
+ # @param InterruptSpeechDuration: 不填写则不进行更新。InterruptMode为0时使用,单位为毫秒,默认为500ms。表示服务端检测到持续InterruptSpeechDuration毫秒的人声则进行打断
5214
+ # @type InterruptSpeechDuration: Integer
5215
+ # @param LLMConfig: 不填写则不进行更新,LLM配置,详情见StartAIConversation接口
5216
+ # @type LLMConfig: String
5217
+ # @param TTSConfig: 不填写则不进行更新,TTS配置,详情见StartAIConversation接口
5218
+ # @type TTSConfig: String
5219
+
5220
+ attr_accessor :TaskId, :WelcomeMessage, :InterruptMode, :InterruptSpeechDuration, :LLMConfig, :TTSConfig
5221
+
5222
+ def initialize(taskid=nil, welcomemessage=nil, interruptmode=nil, interruptspeechduration=nil, llmconfig=nil, ttsconfig=nil)
5223
+ @TaskId = taskid
5224
+ @WelcomeMessage = welcomemessage
5225
+ @InterruptMode = interruptmode
5226
+ @InterruptSpeechDuration = interruptspeechduration
5227
+ @LLMConfig = llmconfig
5228
+ @TTSConfig = ttsconfig
5229
+ end
5230
+
5231
+ def deserialize(params)
5232
+ @TaskId = params['TaskId']
5233
+ @WelcomeMessage = params['WelcomeMessage']
5234
+ @InterruptMode = params['InterruptMode']
5235
+ @InterruptSpeechDuration = params['InterruptSpeechDuration']
5236
+ @LLMConfig = params['LLMConfig']
5237
+ @TTSConfig = params['TTSConfig']
5238
+ end
5239
+ end
5240
+
5241
+ # UpdateAIConversation返回参数结构体
5242
+ class UpdateAIConversationResponse < TencentCloud::Common::AbstractModel
5243
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5244
+ # @type RequestId: String
5245
+
5246
+ attr_accessor :RequestId
5247
+
5248
+ def initialize(requestid=nil)
5249
+ @RequestId = requestid
5250
+ end
5251
+
5252
+ def deserialize(params)
5253
+ @RequestId = params['RequestId']
5254
+ end
5255
+ end
5256
+
5205
5257
  # UpdatePublishCdnStream请求参数结构体
5206
5258
  class UpdatePublishCdnStreamRequest < TencentCloud::Common::AbstractModel
5207
5259
  # @param SdkAppId: TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和转推的房间所对应的SdkAppId相同。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-trtc
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.889
4
+ version: 3.0.890
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-19 00:00:00.000000000 Z
11
+ date: 2024-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common