tencentcloud-sdk-trtc 3.0.880 → 3.0.881
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190722/client.rb +3 -1
- data/lib/v20190722/models.rb +67 -33
- 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: 12b675e0f32960cf5b19fcf275198342a9814073
|
4
|
+
data.tar.gz: 48f603f30f7345abed9229bd35cd2f0357a65373
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54e1ea9dcc5ccf721a8ec0aeabb2f1f4207b6f6b8badcbc51a8c8f8423e65ab3611470c2e4ab61eeb6181e968037117b2cca066deab56ddde99a15bd2b93d60e
|
7
|
+
data.tar.gz: f211ceea29418d1ff4a094a70f66e51689ecc0bfc6af8b0e02121942115d7182161e4839c0ecac7902884831b6c86c33d06a972fe6db1c8c34ca65328ac60952
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.881
|
data/lib/v20190722/client.rb
CHANGED
@@ -1055,7 +1055,9 @@ module TencentCloud
|
|
1055
1055
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1056
1056
|
end
|
1057
1057
|
|
1058
|
-
#
|
1058
|
+
# 启动AI对话任务,AI通道机器人进入TRTC房间,与房间内指定的成员进行AI对话,适用于智能客服,AI口语教师等场景
|
1059
|
+
|
1060
|
+
# TRTC AI对话功能内置语音转文本能力,同时提供通道服务,即客户可灵活指定第三方AI模型(LLM)服务和文本转音频(TTS)服务,更多[功能说明](https://cloud.tencent.com/document/product/647/108901)。
|
1059
1061
|
|
1060
1062
|
# @param request: Request instance for StartAIConversation.
|
1061
1063
|
# @type request: :class:`Tencentcloud::trtc::V20190722::StartAIConversationRequest`
|
data/lib/v20190722/models.rb
CHANGED
@@ -88,17 +88,21 @@ module TencentCloud
|
|
88
88
|
# @param TargetUserId: 机器人拉流的UserId, 填写后,机器人会拉取该UserId的流进行实时处理
|
89
89
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
90
90
|
# @type TargetUserId: String
|
91
|
-
# @param MaxIdleTime:
|
91
|
+
# @param MaxIdleTime: 房间内超过MaxIdleTime 没有推流,后台自动关闭任务,默认值是60s。
|
92
92
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
93
93
|
# @type MaxIdleTime: Integer
|
94
|
+
# @param WelcomeMessage: 机器人的欢迎语
|
95
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
96
|
+
# @type WelcomeMessage: String
|
94
97
|
|
95
|
-
attr_accessor :UserId, :UserSig, :TargetUserId, :MaxIdleTime
|
98
|
+
attr_accessor :UserId, :UserSig, :TargetUserId, :MaxIdleTime, :WelcomeMessage
|
96
99
|
|
97
|
-
def initialize(userid=nil, usersig=nil, targetuserid=nil, maxidletime=nil)
|
100
|
+
def initialize(userid=nil, usersig=nil, targetuserid=nil, maxidletime=nil, welcomemessage=nil)
|
98
101
|
@UserId = userid
|
99
102
|
@UserSig = usersig
|
100
103
|
@TargetUserId = targetuserid
|
101
104
|
@MaxIdleTime = maxidletime
|
105
|
+
@WelcomeMessage = welcomemessage
|
102
106
|
end
|
103
107
|
|
104
108
|
def deserialize(params)
|
@@ -106,6 +110,7 @@ module TencentCloud
|
|
106
110
|
@UserSig = params['UserSig']
|
107
111
|
@TargetUserId = params['TargetUserId']
|
108
112
|
@MaxIdleTime = params['MaxIdleTime']
|
113
|
+
@WelcomeMessage = params['WelcomeMessage']
|
109
114
|
end
|
110
115
|
end
|
111
116
|
|
@@ -590,7 +595,7 @@ module TencentCloud
|
|
590
595
|
# @type StartTime: String
|
591
596
|
# @param Status: 任务状态。有4个值:1、Idle表示任务未开始2、Preparing表示任务准备中3、InProgress表示任务正在运行4、Stopped表示任务已停止,正在清理资源中
|
592
597
|
# @type Status: String
|
593
|
-
# @param TaskId:
|
598
|
+
# @param TaskId: 任务的唯一标识,在启动任务时生成
|
594
599
|
# @type TaskId: String
|
595
600
|
# @param SessionId: 开启对话任务时填写的SessionId,如果没写则不返回。
|
596
601
|
# @type SessionId: String
|
@@ -3511,36 +3516,45 @@ module TencentCloud
|
|
3511
3516
|
|
3512
3517
|
# 语音识别使用的配置
|
3513
3518
|
class RecognizeConfig < TencentCloud::Common::AbstractModel
|
3514
|
-
# @param Language:
|
3515
|
-
#
|
3516
|
-
#
|
3517
|
-
|
3518
|
-
#
|
3519
|
-
#
|
3520
|
-
#
|
3521
|
-
#
|
3522
|
-
#
|
3523
|
-
#
|
3524
|
-
#
|
3525
|
-
#
|
3526
|
-
#
|
3527
|
-
#
|
3528
|
-
#
|
3529
|
-
#
|
3530
|
-
#
|
3531
|
-
#
|
3532
|
-
#
|
3533
|
-
#
|
3534
|
-
#
|
3519
|
+
# @param Language: 语音转文字支持识别的语言,默认是"zh" 中文
|
3520
|
+
# 目前全量支持的语言如下,等号左面是语言英文名,右面是Language字段需要填写的值,该值遵循[ISO639](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes):
|
3521
|
+
# 可通过购买「语音转文本时长包」解锁或领取包月套餐体验版解锁此功能。
|
3522
|
+
|
3523
|
+
# 语音转文本支持语言类型如下:
|
3524
|
+
# - Chinese = "zh" # 中文
|
3525
|
+
# - Chinese_TW = "zh-TW" # 中国台湾
|
3526
|
+
# - English = "en" # 英语
|
3527
|
+
# - Chinese_YUE = "zh-yue" # 中国粤语
|
3528
|
+
# - Chinese_DIALECT = "zh-dialect" # 中国方言
|
3529
|
+
# - English = "en" # 英语
|
3530
|
+
# - Vietnamese = "vi" # 越南语
|
3531
|
+
# - Japanese = "ja" # 日语
|
3532
|
+
# - Korean = "ko" # 汉语
|
3533
|
+
# - Indonesia = "id" # 印度尼西亚语
|
3534
|
+
# - Thai = "th" # 泰语
|
3535
|
+
# - Portuguese = "pt" # 葡萄牙语
|
3536
|
+
# - Turkish = "tr" # 土耳其语
|
3537
|
+
# - Arabic = "ar" # 阿拉伯语
|
3538
|
+
# - Spanish = "es" # 西班牙语
|
3539
|
+
# - Hindi = "hi" # 印地语
|
3540
|
+
# - French = "fr" # 法语
|
3541
|
+
# - Malay = "ms" # 马来语
|
3542
|
+
# - Filipino = "fil" # 菲律宾语
|
3543
|
+
# - German = "de" # 德语
|
3544
|
+
# - Italian = "it" # 意大利语
|
3545
|
+
# - Russian = "ru" # 俄语
|
3535
3546
|
|
3536
3547
|
# 注意:
|
3537
3548
|
# 如果缺少满足您需求的语言,请联系我们技术人员。
|
3549
|
+
# 示例值:zh
|
3538
3550
|
# @type Language: String
|
3539
|
-
# @param AlternativeLanguage:
|
3551
|
+
# @param AlternativeLanguage: 发起模糊识别额外可能替代语言类型,最多填写3种语言类型。
|
3552
|
+
# 注:Language指定为"zh-dialect" # 中国方言 时,不支持模糊识别,该字段无效
|
3540
3553
|
# @type AlternativeLanguage: Array
|
3541
3554
|
# @param Model: 使用的模型,目前支持tencent和google,默认是tencent。
|
3542
3555
|
# @type Model: String
|
3543
3556
|
# @param TranslationLanguage: 翻译功能支持的语言,如果填写,则会启用翻译,不填则只会使用语音识别。
|
3557
|
+
# 注:文本翻译功能需要购买「语音转文本时长包」解锁或领取包月套餐-体验版解。
|
3544
3558
|
# 目前全量支持的语言如下,等号左面是语言英文名,右面是Language字段需要填写的值,该值遵循[ISO639](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes):
|
3545
3559
|
# Chinese = "zh"
|
3546
3560
|
# Chinese_TW = "zh-TW"
|
@@ -3564,6 +3578,7 @@ module TencentCloud
|
|
3564
3578
|
|
3565
3579
|
# 注意:
|
3566
3580
|
# 如果缺少满足您需求的语言,请联系我们技术人员。
|
3581
|
+
# 示例值:en
|
3567
3582
|
# @type TranslationLanguage: String
|
3568
3583
|
|
3569
3584
|
attr_accessor :Language, :AlternativeLanguage, :Model, :TranslationLanguage
|
@@ -3839,7 +3854,8 @@ module TencentCloud
|
|
3839
3854
|
# 如果缺少满足您需求的语言,请联系我们技术人员。
|
3840
3855
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
3841
3856
|
# @type Language: String
|
3842
|
-
# @param AlternativeLanguage:
|
3857
|
+
# @param AlternativeLanguage: 发起模糊识别额外可能替代语言类型,最多填写3种语言类型,
|
3858
|
+
# 注:Language指定为"zh-dialect" # 中国方言 时,不支持模糊识别,该字段无效
|
3843
3859
|
|
3844
3860
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
3845
3861
|
# @type AlternativeLanguage: Array
|
@@ -4009,17 +4025,21 @@ module TencentCloud
|
|
4009
4025
|
# @type Text: String
|
4010
4026
|
# @param Interrupt: 是否允许该文本打断机器人说话
|
4011
4027
|
# @type Interrupt: Boolean
|
4028
|
+
# @param StopAfterPlay: 播报完文本后,是否自动关闭对话任务
|
4029
|
+
# @type StopAfterPlay: Boolean
|
4012
4030
|
|
4013
|
-
attr_accessor :Text, :Interrupt
|
4031
|
+
attr_accessor :Text, :Interrupt, :StopAfterPlay
|
4014
4032
|
|
4015
|
-
def initialize(text=nil, interrupt=nil)
|
4033
|
+
def initialize(text=nil, interrupt=nil, stopafterplay=nil)
|
4016
4034
|
@Text = text
|
4017
4035
|
@Interrupt = interrupt
|
4036
|
+
@StopAfterPlay = stopafterplay
|
4018
4037
|
end
|
4019
4038
|
|
4020
4039
|
def deserialize(params)
|
4021
4040
|
@Text = params['Text']
|
4022
4041
|
@Interrupt = params['Interrupt']
|
4042
|
+
@StopAfterPlay = params['StopAfterPlay']
|
4023
4043
|
end
|
4024
4044
|
end
|
4025
4045
|
|
@@ -4086,7 +4106,7 @@ module TencentCloud
|
|
4086
4106
|
# @type RoomId: String
|
4087
4107
|
# @param AgentConfig: 机器人参数
|
4088
4108
|
# @type AgentConfig: :class:`Tencentcloud::Trtc.v20190722.models.AgentConfig`
|
4089
|
-
# @param SessionId: 调用方传入的唯一Id
|
4109
|
+
# @param SessionId: 调用方传入的唯一Id,可用于客户侧防止重复发起任务以及可以通过该字段查询任务状态。
|
4090
4110
|
# @type SessionId: String
|
4091
4111
|
# @param RoomIdType: TRTC房间号的类型,0代表数字房间号,1代表字符串房间号。不填默认是数字房间号。
|
4092
4112
|
# @type RoomIdType: Integer
|
@@ -4477,8 +4497,16 @@ module TencentCloud
|
|
4477
4497
|
# @type SourceUrl: Array
|
4478
4498
|
# @param SeekSecond: 指定视频从某个秒时间戳播放
|
4479
4499
|
# @type SeekSecond: Integer
|
4480
|
-
|
4481
|
-
|
4500
|
+
# @param AutoPush: 开启自动旁路推流,请确认控制台已经开启该功能。
|
4501
|
+
# @type AutoPush: Boolean
|
4502
|
+
# @param RepeatNum: 循环播放次数, 取值范围[-1, 1000], 默认1次。
|
4503
|
+
# - 0 无效值
|
4504
|
+
# - -1 循环播放, 需要主动调用停止接口或设置MaxDuration
|
4505
|
+
# @type RepeatNum: Integer
|
4506
|
+
# @param MaxDuration: 循环播放最大时长,仅支持RepeatNum设置-1时生效,取值范围[1, 10080],单位分钟。
|
4507
|
+
# @type MaxDuration: Integer
|
4508
|
+
|
4509
|
+
attr_accessor :SdkAppId, :RoomId, :RoomIdType, :UserId, :UserSig, :StreamUrl, :PrivateMapKey, :VideoEncodeParams, :AudioEncodeParams, :SourceUrl, :SeekSecond, :AutoPush, :RepeatNum, :MaxDuration
|
4482
4510
|
extend Gem::Deprecate
|
4483
4511
|
deprecate :VideoEncodeParams, :none, 2024, 8
|
4484
4512
|
deprecate :VideoEncodeParams=, :none, 2024, 8
|
@@ -4487,7 +4515,7 @@ module TencentCloud
|
|
4487
4515
|
deprecate :SourceUrl, :none, 2024, 8
|
4488
4516
|
deprecate :SourceUrl=, :none, 2024, 8
|
4489
4517
|
|
4490
|
-
def initialize(sdkappid=nil, roomid=nil, roomidtype=nil, userid=nil, usersig=nil, streamurl=nil, privatemapkey=nil, videoencodeparams=nil, audioencodeparams=nil, sourceurl=nil, seeksecond=nil)
|
4518
|
+
def initialize(sdkappid=nil, roomid=nil, roomidtype=nil, userid=nil, usersig=nil, streamurl=nil, privatemapkey=nil, videoencodeparams=nil, audioencodeparams=nil, sourceurl=nil, seeksecond=nil, autopush=nil, repeatnum=nil, maxduration=nil)
|
4491
4519
|
@SdkAppId = sdkappid
|
4492
4520
|
@RoomId = roomid
|
4493
4521
|
@RoomIdType = roomidtype
|
@@ -4499,6 +4527,9 @@ module TencentCloud
|
|
4499
4527
|
@AudioEncodeParams = audioencodeparams
|
4500
4528
|
@SourceUrl = sourceurl
|
4501
4529
|
@SeekSecond = seeksecond
|
4530
|
+
@AutoPush = autopush
|
4531
|
+
@RepeatNum = repeatnum
|
4532
|
+
@MaxDuration = maxduration
|
4502
4533
|
end
|
4503
4534
|
|
4504
4535
|
def deserialize(params)
|
@@ -4519,6 +4550,9 @@ module TencentCloud
|
|
4519
4550
|
end
|
4520
4551
|
@SourceUrl = params['SourceUrl']
|
4521
4552
|
@SeekSecond = params['SeekSecond']
|
4553
|
+
@AutoPush = params['AutoPush']
|
4554
|
+
@RepeatNum = params['RepeatNum']
|
4555
|
+
@MaxDuration = params['MaxDuration']
|
4522
4556
|
end
|
4523
4557
|
end
|
4524
4558
|
|
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.881
|
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-
|
11
|
+
date: 2024-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|