tencentcloud-sdk-trtc 3.0.874 → 3.0.875
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190722/client.rb +24 -0
- data/lib/v20190722/models.rb +65 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e632f753e9964366859e18905f3f0d1261b34ae
|
4
|
+
data.tar.gz: 27a52eec1a381a03dac9d1047348df3781a90324
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05ba521795db1515906f7746231f49529cb455ad7e2aaf300be629bb7b758793cad23bb48ac460e25bd6bc15bfa43d5109981a747ead1e9a0242721bf67926e6
|
7
|
+
data.tar.gz: f51ba07850548d6312d001bebd55628823e29983b3adf07cd00059f5b76f7418996aad056b7db90ee2c6002a858aaf8706a69f16ad5ed2e5dae9921c1f2147a9
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.875
|
data/lib/v20190722/client.rb
CHANGED
@@ -29,6 +29,30 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
+
# 提供服务端控制机器人的功能
|
33
|
+
|
34
|
+
# @param request: Request instance for ControlAIConversation.
|
35
|
+
# @type request: :class:`Tencentcloud::trtc::V20190722::ControlAIConversationRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::trtc::V20190722::ControlAIConversationResponse`
|
37
|
+
def ControlAIConversation(request)
|
38
|
+
body = send_request('ControlAIConversation', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = ControlAIConversationResponse.new
|
42
|
+
model.deserialize(response['Response'])
|
43
|
+
model
|
44
|
+
else
|
45
|
+
code = response['Response']['Error']['Code']
|
46
|
+
message = response['Response']['Error']['Message']
|
47
|
+
reqid = response['Response']['RequestId']
|
48
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
49
|
+
end
|
50
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
51
|
+
raise e
|
52
|
+
rescue StandardError => e
|
53
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
|
+
end
|
55
|
+
|
32
56
|
# 接口说明:
|
33
57
|
# 启动云端录制功能,完成房间内的音视频录制,并上传到指定的云存储。您可以通过此 API 接口把TRTC 房间中的每一路音视频流做单独的录制又或者多路视频画面合流混成一路。
|
34
58
|
|
data/lib/v20190722/models.rb
CHANGED
@@ -286,6 +286,51 @@ module TencentCloud
|
|
286
286
|
end
|
287
287
|
end
|
288
288
|
|
289
|
+
# ControlAIConversation请求参数结构体
|
290
|
+
class ControlAIConversationRequest < TencentCloud::Common::AbstractModel
|
291
|
+
# @param TaskId: 任务唯一标识
|
292
|
+
# @type TaskId: String
|
293
|
+
# @param Command: 控制命令,目前支持命令如下:
|
294
|
+
|
295
|
+
# - ServerPushText,服务端发送文本给AI机器人,AI机器人会播报该文本
|
296
|
+
# @type Command: String
|
297
|
+
# @param ServerPushText: 服务端发送播报文本命令,当Command为ServerPushText时必填
|
298
|
+
# @type ServerPushText: :class:`Tencentcloud::Trtc.v20190722.models.ServerPushText`
|
299
|
+
|
300
|
+
attr_accessor :TaskId, :Command, :ServerPushText
|
301
|
+
|
302
|
+
def initialize(taskid=nil, command=nil, serverpushtext=nil)
|
303
|
+
@TaskId = taskid
|
304
|
+
@Command = command
|
305
|
+
@ServerPushText = serverpushtext
|
306
|
+
end
|
307
|
+
|
308
|
+
def deserialize(params)
|
309
|
+
@TaskId = params['TaskId']
|
310
|
+
@Command = params['Command']
|
311
|
+
unless params['ServerPushText'].nil?
|
312
|
+
@ServerPushText = ServerPushText.new
|
313
|
+
@ServerPushText.deserialize(params['ServerPushText'])
|
314
|
+
end
|
315
|
+
end
|
316
|
+
end
|
317
|
+
|
318
|
+
# ControlAIConversation返回参数结构体
|
319
|
+
class ControlAIConversationResponse < TencentCloud::Common::AbstractModel
|
320
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
321
|
+
# @type RequestId: String
|
322
|
+
|
323
|
+
attr_accessor :RequestId
|
324
|
+
|
325
|
+
def initialize(requestid=nil)
|
326
|
+
@RequestId = requestid
|
327
|
+
end
|
328
|
+
|
329
|
+
def deserialize(params)
|
330
|
+
@RequestId = params['RequestId']
|
331
|
+
end
|
332
|
+
end
|
333
|
+
|
289
334
|
# CreateCloudRecording请求参数结构体
|
290
335
|
class CreateCloudRecordingRequest < TencentCloud::Common::AbstractModel
|
291
336
|
# @param SdkAppId: TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和录制的房间所对应的SdkAppId相同。
|
@@ -3952,6 +3997,26 @@ module TencentCloud
|
|
3952
3997
|
end
|
3953
3998
|
end
|
3954
3999
|
|
4000
|
+
# 服务端控制AI对话机器人播报指定文本
|
4001
|
+
class ServerPushText < TencentCloud::Common::AbstractModel
|
4002
|
+
# @param Text: 服务端推送播报文本
|
4003
|
+
# @type Text: String
|
4004
|
+
# @param Interrupt: 是否允许该文本打断机器人说话
|
4005
|
+
# @type Interrupt: Boolean
|
4006
|
+
|
4007
|
+
attr_accessor :Text, :Interrupt
|
4008
|
+
|
4009
|
+
def initialize(text=nil, interrupt=nil)
|
4010
|
+
@Text = text
|
4011
|
+
@Interrupt = interrupt
|
4012
|
+
end
|
4013
|
+
|
4014
|
+
def deserialize(params)
|
4015
|
+
@Text = params['Text']
|
4016
|
+
@Interrupt = params['Interrupt']
|
4017
|
+
end
|
4018
|
+
end
|
4019
|
+
|
3955
4020
|
# 单流旁路转推的用户上行信息。
|
3956
4021
|
class SingleSubscribeParams < TencentCloud::Common::AbstractModel
|
3957
4022
|
# @param UserMediaStream: 用户媒体流参数。
|
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.
|
4
|
+
version: 3.0.875
|
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-07-
|
11
|
+
date: 2024-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|