tencentcloud-sdk-gme 3.0.1101 → 3.0.1140

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: d117cb9a229e22a29662f0da3f02e8604b2b4fd8
4
- data.tar.gz: 61f30d71eac9f21662351b6447c5758de20d4522
3
+ metadata.gz: 94efcf2c6e9a019da941060f2939565e27fd4ecf
4
+ data.tar.gz: ea9b8cb4201902cb837dc2b96ff66a153d5cb2bb
5
5
  SHA512:
6
- metadata.gz: 18d15a57cf091dc23f0c70f95faa8ae1383834ff32f415bc566718aa0263a23226556297aeaecfe4abc2430b6d0ce6a12eb72c8e9a171e7c0b3a35e65e0d8bed
7
- data.tar.gz: 3b836eae9ecc061335741489108dfe604b96091a46ced6b58adb029c5253f23a52ecaab24d6badf69aa4736c5fd0b1d7d4f08d83d81105e8518127c38d47db87
6
+ metadata.gz: c3fcd049d4fe9575ffed01c64bf7d08aec4a1f15322e276a66993dce7f9935fb8252577e5d003ed00a867ca18c90add77af54d81462913bc22eaf907a58fa5d8
7
+ data.tar.gz: e6af03e4ab88c923b0f3e3dad0c048172102357b387d7069480a8d36adae59bafd93df24b43296fa4df66f9d29735b4beee25e7d9407b067e7b5d3d545ab5d02
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1101
1
+ 3.0.1140
@@ -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::gme::V20180711::ControlAIConversationRequest`
36
+ # @rtype: :class:`Tencentcloud::gme::V20180711::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
 
34
58
  # 用于创建年龄语音识别任务的接口,请求频率10次/秒。该接口目前通过白名单开放试用,如有需求,请提交工单申请。
@@ -209,6 +233,54 @@ module TencentCloud
209
233
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
210
234
  end
211
235
 
236
+ # 传入声纹ID,删除之前注册的声纹信息
237
+
238
+ # @param request: Request instance for DeleteVoicePrint.
239
+ # @type request: :class:`Tencentcloud::gme::V20180711::DeleteVoicePrintRequest`
240
+ # @rtype: :class:`Tencentcloud::gme::V20180711::DeleteVoicePrintResponse`
241
+ def DeleteVoicePrint(request)
242
+ body = send_request('DeleteVoicePrint', request.serialize)
243
+ response = JSON.parse(body)
244
+ if response['Response'].key?('Error') == false
245
+ model = DeleteVoicePrintResponse.new
246
+ model.deserialize(response['Response'])
247
+ model
248
+ else
249
+ code = response['Response']['Error']['Code']
250
+ message = response['Response']['Error']['Message']
251
+ reqid = response['Response']['RequestId']
252
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
253
+ end
254
+ rescue TencentCloud::Common::TencentCloudSDKException => e
255
+ raise e
256
+ rescue StandardError => e
257
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
258
+ end
259
+
260
+ # 查询AI对话任务状态。
261
+
262
+ # @param request: Request instance for DescribeAIConversation.
263
+ # @type request: :class:`Tencentcloud::gme::V20180711::DescribeAIConversationRequest`
264
+ # @rtype: :class:`Tencentcloud::gme::V20180711::DescribeAIConversationResponse`
265
+ def DescribeAIConversation(request)
266
+ body = send_request('DescribeAIConversation', request.serialize)
267
+ response = JSON.parse(body)
268
+ if response['Response'].key?('Error') == false
269
+ model = DescribeAIConversationResponse.new
270
+ model.deserialize(response['Response'])
271
+ model
272
+ else
273
+ code = response['Response']['Error']['Code']
274
+ message = response['Response']['Error']['Message']
275
+ reqid = response['Response']['RequestId']
276
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
277
+ end
278
+ rescue TencentCloud::Common::TencentCloudSDKException => e
279
+ raise e
280
+ rescue StandardError => e
281
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
282
+ end
283
+
212
284
  # 目前该功能底层能力已不具备,不对外提供,目前需要下线,走预下线流程。
213
285
 
214
286
  # 查询年龄语音识别任务结果,请求频率10次/秒。该接口目前通过白名单开放试用,如有需求,请提交工单申请。
@@ -452,6 +524,30 @@ module TencentCloud
452
524
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
453
525
  end
454
526
 
527
+ # 查询先前注册的声纹信息
528
+
529
+ # @param request: Request instance for DescribeVoicePrint.
530
+ # @type request: :class:`Tencentcloud::gme::V20180711::DescribeVoicePrintRequest`
531
+ # @rtype: :class:`Tencentcloud::gme::V20180711::DescribeVoicePrintResponse`
532
+ def DescribeVoicePrint(request)
533
+ body = send_request('DescribeVoicePrint', request.serialize)
534
+ response = JSON.parse(body)
535
+ if response['Response'].key?('Error') == false
536
+ model = DescribeVoicePrintResponse.new
537
+ model.deserialize(response['Response'])
538
+ model
539
+ else
540
+ code = response['Response']['Error']['Code']
541
+ message = response['Response']['Error']['Message']
542
+ reqid = response['Response']['RequestId']
543
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
544
+ end
545
+ rescue TencentCloud::Common::TencentCloudSDKException => e
546
+ raise e
547
+ rescue StandardError => e
548
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
549
+ end
550
+
455
551
  # 查询语音消息转文本热句模型列表
456
552
 
457
553
  # @param request: Request instance for GetCustomizationList.
@@ -598,6 +694,30 @@ module TencentCloud
598
694
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
599
695
  end
600
696
 
697
+ # 传入音频base64串,注册声纹信息,返回声纹ID
698
+
699
+ # @param request: Request instance for RegisterVoicePrint.
700
+ # @type request: :class:`Tencentcloud::gme::V20180711::RegisterVoicePrintRequest`
701
+ # @rtype: :class:`Tencentcloud::gme::V20180711::RegisterVoicePrintResponse`
702
+ def RegisterVoicePrint(request)
703
+ body = send_request('RegisterVoicePrint', request.serialize)
704
+ response = JSON.parse(body)
705
+ if response['Response'].key?('Error') == false
706
+ model = RegisterVoicePrintResponse.new
707
+ model.deserialize(response['Response'])
708
+ model
709
+ else
710
+ code = response['Response']['Error']['Code']
711
+ message = response['Response']['Error']['Message']
712
+ reqid = response['Response']['RequestId']
713
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
714
+ end
715
+ rescue TencentCloud::Common::TencentCloudSDKException => e
716
+ raise e
717
+ rescue StandardError => e
718
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
719
+ end
720
+
601
721
  # 本接口(ScanVoice)用于提交语音检测任务,检测任务列表最多支持100个。使用前请您登录[控制台 - 服务配置](https://console.cloud.tencent.com/gamegme/conf)开启语音内容安全服务。
602
722
  # </br></br>
603
723
 
@@ -757,6 +877,32 @@ module TencentCloud
757
877
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
758
878
  end
759
879
 
880
+ # 启动AI对话任务,AI通道机器人进入GME房间,与房间内指定的成员进行AI对话,适用于智能客服,AI口语教师等场景
881
+
882
+ # GME AI对话功能内置语音转文本能力,同时提供通道服务,即客户可灵活指定第三方AI模型(LLM)服务和文本转音频(TTS)服务,更多[功能说明](https://cloud.tencent.com/document/product/647/108901)。
883
+
884
+ # @param request: Request instance for StartAIConversation.
885
+ # @type request: :class:`Tencentcloud::gme::V20180711::StartAIConversationRequest`
886
+ # @rtype: :class:`Tencentcloud::gme::V20180711::StartAIConversationResponse`
887
+ def StartAIConversation(request)
888
+ body = send_request('StartAIConversation', request.serialize)
889
+ response = JSON.parse(body)
890
+ if response['Response'].key?('Error') == false
891
+ model = StartAIConversationResponse.new
892
+ model.deserialize(response['Response'])
893
+ model
894
+ else
895
+ code = response['Response']['Error']['Code']
896
+ message = response['Response']['Error']['Message']
897
+ reqid = response['Response']['RequestId']
898
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
899
+ end
900
+ rescue TencentCloud::Common::TencentCloudSDKException => e
901
+ raise e
902
+ rescue StandardError => e
903
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
904
+ end
905
+
760
906
  # 开启录制
761
907
 
762
908
  # @param request: Request instance for StartRecord.
@@ -781,6 +927,30 @@ module TencentCloud
781
927
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
782
928
  end
783
929
 
930
+ # 停止AI对话任务
931
+
932
+ # @param request: Request instance for StopAIConversation.
933
+ # @type request: :class:`Tencentcloud::gme::V20180711::StopAIConversationRequest`
934
+ # @rtype: :class:`Tencentcloud::gme::V20180711::StopAIConversationResponse`
935
+ def StopAIConversation(request)
936
+ body = send_request('StopAIConversation', request.serialize)
937
+ response = JSON.parse(body)
938
+ if response['Response'].key?('Error') == false
939
+ model = StopAIConversationResponse.new
940
+ model.deserialize(response['Response'])
941
+ model
942
+ else
943
+ code = response['Response']['Error']['Code']
944
+ message = response['Response']['Error']['Message']
945
+ reqid = response['Response']['RequestId']
946
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
947
+ end
948
+ rescue TencentCloud::Common::TencentCloudSDKException => e
949
+ raise e
950
+ rescue StandardError => e
951
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
952
+ end
953
+
784
954
  # 停止录制
785
955
 
786
956
  # @param request: Request instance for StopRecord.
@@ -805,6 +975,30 @@ module TencentCloud
805
975
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
806
976
  end
807
977
 
978
+ # 更新AIConversation参数
979
+
980
+ # @param request: Request instance for UpdateAIConversation.
981
+ # @type request: :class:`Tencentcloud::gme::V20180711::UpdateAIConversationRequest`
982
+ # @rtype: :class:`Tencentcloud::gme::V20180711::UpdateAIConversationResponse`
983
+ def UpdateAIConversation(request)
984
+ body = send_request('UpdateAIConversation', request.serialize)
985
+ response = JSON.parse(body)
986
+ if response['Response'].key?('Error') == false
987
+ model = UpdateAIConversationResponse.new
988
+ model.deserialize(response['Response'])
989
+ model
990
+ else
991
+ code = response['Response']['Error']['Code']
992
+ message = response['Response']['Error']['Message']
993
+ reqid = response['Response']['RequestId']
994
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
995
+ end
996
+ rescue TencentCloud::Common::TencentCloudSDKException => e
997
+ raise e
998
+ rescue StandardError => e
999
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1000
+ end
1001
+
808
1002
  # 更新自定义送检房间号。**接口使用前提**:目前 UpdateScanRooms 接口通过白名单开放,如需使用,需要 [提交工单申请](https://console.cloud.tencent.com/workorder/category?level1_id=438&level2_id=445&source=0&data_title=%E6%B8%B8%E6%88%8F%E5%A4%9A%E5%AA%92%E4%BD%93%E5%BC%95%E6%93%8EGME&step=1)。
809
1003
 
810
1004
  # @param request: Request instance for UpdateScanRooms.
@@ -854,6 +1048,30 @@ module TencentCloud
854
1048
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
855
1049
  end
856
1050
 
1051
+ # 传入声纹ID以及对应音频信息,更新对应声纹信息
1052
+
1053
+ # @param request: Request instance for UpdateVoicePrint.
1054
+ # @type request: :class:`Tencentcloud::gme::V20180711::UpdateVoicePrintRequest`
1055
+ # @rtype: :class:`Tencentcloud::gme::V20180711::UpdateVoicePrintResponse`
1056
+ def UpdateVoicePrint(request)
1057
+ body = send_request('UpdateVoicePrint', request.serialize)
1058
+ response = JSON.parse(body)
1059
+ if response['Response'].key?('Error') == false
1060
+ model = UpdateVoicePrintResponse.new
1061
+ model.deserialize(response['Response'])
1062
+ model
1063
+ else
1064
+ code = response['Response']['Error']['Code']
1065
+ message = response['Response']['Error']['Message']
1066
+ reqid = response['Response']['RequestId']
1067
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1068
+ end
1069
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1070
+ raise e
1071
+ rescue StandardError => e
1072
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1073
+ end
1074
+
857
1075
 
858
1076
  end
859
1077
  end
@@ -65,6 +65,123 @@ module TencentCloud
65
65
  end
66
66
  end
67
67
 
68
+ # 机器人参数
69
+ class AgentConfig < TencentCloud::Common::AbstractModel
70
+ # @param UserId: 机器人的UserId,用于进房发起任务。【注意】这个UserId不能与当前房间内的主播观众UserId重复。如果一个房间发起多个任务时,机器人的UserId也不能相互重复,否则会中断前一个任务。需要保证机器人UserId在房间内唯一。
71
+ # @type UserId: String
72
+ # @param UserSig: 机器人UserId对应的校验签名,即UserId和UserSig相当于机器人进房的登录密码。
73
+ # @type UserSig: String
74
+ # @param TargetUserId: 机器人拉流的UserId, 填写后,机器人会拉取该UserId的流进行实时处理
75
+ # @type TargetUserId: String
76
+ # @param MaxIdleTime: 房间内超过MaxIdleTime 没有推流,后台自动关闭任务,默认值是60s。
77
+ # @type MaxIdleTime: Integer
78
+ # @param WelcomeMessage: 机器人的欢迎语
79
+ # @type WelcomeMessage: String
80
+ # @param InterruptMode: 智能打断模式,默认为0,0表示服务端自动打断,1表示服务端不打断,由端上发送打断信令进行打断
81
+ # @type InterruptMode: Integer
82
+ # @param InterruptSpeechDuration: InterruptMode为0时使用,单位为毫秒,默认为500ms。表示服务端检测到持续InterruptSpeechDuration毫秒的人声则进行打断。
83
+ # @type InterruptSpeechDuration: Integer
84
+ # @param TurnDetectionMode: 控制新一轮对话的触发方式,默认为0。
85
+ # - 0表示当服务端语音识别检测出的完整一句话后,自动触发一轮新的对话。
86
+ # - 1表示客户端在收到字幕消息后,自行决定是否手动发送聊天信令触发一轮新的对话。
87
+ # @type TurnDetectionMode: Integer
88
+ # @param FilterOneWord: 是否过滤掉用户只说了一个字的句子,true表示过滤,false表示不过滤,默认值为true
89
+ # @type FilterOneWord: Boolean
90
+ # @param WelcomeMessagePriority: 欢迎消息优先级,0默认,1高优,高优不能被打断。
91
+ # @type WelcomeMessagePriority: Integer
92
+ # @param FilterBracketsContent: 用于过滤LLM返回内容,不播放括号中的内容。
93
+ # 1:中文括号()
94
+ # 2:英文括号()
95
+ # 3:中文方括号【】
96
+ # 4:英文方括号[]
97
+ # 5:英文花括号{}
98
+ # 默认值为空,表示不进行过滤。
99
+ # @type FilterBracketsContent: Integer
100
+ # @param AmbientSound: 环境音设置
101
+ # @type AmbientSound: :class:`Tencentcloud::Gme.v20180711.models.AmbientSound`
102
+ # @param VoicePrint: 声纹配置
103
+ # @type VoicePrint: :class:`Tencentcloud::Gme.v20180711.models.VoicePrint`
104
+ # @param InitLLMMessage: 与WelcomeMessage参数互斥,当该参数有值时,WelcomeMessage将失效。\n在对话开始后把该消息送到大模型来获取欢迎语。
105
+ # @type InitLLMMessage: String
106
+ # @param TurnDetection: 语义断句检测
107
+ # @type TurnDetection: :class:`Tencentcloud::Gme.v20180711.models.TurnDetection`
108
+ # @param SubtitleMode: 机器人字幕显示模式。 - 0表示尽快显示,不会和音频播放进行同步。此时字幕全量下发,后面的字幕会包含前面的字幕。 - 1表示句子级别的实时显示,会和音频播放进行同步,只有当前句子对应的音频播放完后,下一条字幕才会下发。此时字幕增量下发,端上需要把前后的字幕进行拼接才是完整字幕。
109
+ # @type SubtitleMode: Integer
110
+
111
+ attr_accessor :UserId, :UserSig, :TargetUserId, :MaxIdleTime, :WelcomeMessage, :InterruptMode, :InterruptSpeechDuration, :TurnDetectionMode, :FilterOneWord, :WelcomeMessagePriority, :FilterBracketsContent, :AmbientSound, :VoicePrint, :InitLLMMessage, :TurnDetection, :SubtitleMode
112
+
113
+ def initialize(userid=nil, usersig=nil, targetuserid=nil, maxidletime=nil, welcomemessage=nil, interruptmode=nil, interruptspeechduration=nil, turndetectionmode=nil, filteroneword=nil, welcomemessagepriority=nil, filterbracketscontent=nil, ambientsound=nil, voiceprint=nil, initllmmessage=nil, turndetection=nil, subtitlemode=nil)
114
+ @UserId = userid
115
+ @UserSig = usersig
116
+ @TargetUserId = targetuserid
117
+ @MaxIdleTime = maxidletime
118
+ @WelcomeMessage = welcomemessage
119
+ @InterruptMode = interruptmode
120
+ @InterruptSpeechDuration = interruptspeechduration
121
+ @TurnDetectionMode = turndetectionmode
122
+ @FilterOneWord = filteroneword
123
+ @WelcomeMessagePriority = welcomemessagepriority
124
+ @FilterBracketsContent = filterbracketscontent
125
+ @AmbientSound = ambientsound
126
+ @VoicePrint = voiceprint
127
+ @InitLLMMessage = initllmmessage
128
+ @TurnDetection = turndetection
129
+ @SubtitleMode = subtitlemode
130
+ end
131
+
132
+ def deserialize(params)
133
+ @UserId = params['UserId']
134
+ @UserSig = params['UserSig']
135
+ @TargetUserId = params['TargetUserId']
136
+ @MaxIdleTime = params['MaxIdleTime']
137
+ @WelcomeMessage = params['WelcomeMessage']
138
+ @InterruptMode = params['InterruptMode']
139
+ @InterruptSpeechDuration = params['InterruptSpeechDuration']
140
+ @TurnDetectionMode = params['TurnDetectionMode']
141
+ @FilterOneWord = params['FilterOneWord']
142
+ @WelcomeMessagePriority = params['WelcomeMessagePriority']
143
+ @FilterBracketsContent = params['FilterBracketsContent']
144
+ unless params['AmbientSound'].nil?
145
+ @AmbientSound = AmbientSound.new
146
+ @AmbientSound.deserialize(params['AmbientSound'])
147
+ end
148
+ unless params['VoicePrint'].nil?
149
+ @VoicePrint = VoicePrint.new
150
+ @VoicePrint.deserialize(params['VoicePrint'])
151
+ end
152
+ @InitLLMMessage = params['InitLLMMessage']
153
+ unless params['TurnDetection'].nil?
154
+ @TurnDetection = TurnDetection.new
155
+ @TurnDetection.deserialize(params['TurnDetection'])
156
+ end
157
+ @SubtitleMode = params['SubtitleMode']
158
+ end
159
+ end
160
+
161
+ # 背景音设置,将在通话中添加环境音效,使体验更加逼真。目前支持以下选项:
162
+ # coffee_shops: 咖啡店氛围,背景中有人聊天。
163
+ # busy_office: 客服中心
164
+ # street_traffic: 户外街道
165
+ # evening_mountain: 户外山林
166
+ class AmbientSound < TencentCloud::Common::AbstractModel
167
+ # @param Scene: 环境场景选择
168
+ # @type Scene: String
169
+ # @param Volume: 控制环境音的音量。取值的范围是 [0,2]。值越低,环境音越小;值越高,环境音越响亮。如果未设置,则使用默认值 1。
170
+ # @type Volume: Float
171
+
172
+ attr_accessor :Scene, :Volume
173
+
174
+ def initialize(scene=nil, volume=nil)
175
+ @Scene = scene
176
+ @Volume = volume
177
+ end
178
+
179
+ def deserialize(params)
180
+ @Scene = params['Scene']
181
+ @Volume = params['Volume']
182
+ end
183
+ end
184
+
68
185
  # 应用用量统计数据
69
186
  class AppStatisticsItem < TencentCloud::Common::AbstractModel
70
187
  # @param RealtimeSpeechStatisticsItem: 实时语音统计数据
@@ -369,6 +486,56 @@ module TencentCloud
369
486
  end
370
487
  end
371
488
 
489
+ # ControlAIConversation请求参数结构体
490
+ class ControlAIConversationRequest < TencentCloud::Common::AbstractModel
491
+ # @param TaskId: 任务唯一标识
492
+ # @type TaskId: String
493
+ # @param Command: 控制命令,目前支持命令如下:- ServerPushText,服务端发送文本给AI机器人,AI机器人会播报该文本. - InvokeLLM,服务端发送文本给大模型,触发对话
494
+ # @type Command: String
495
+ # @param ServerPushText: 服务端发送播报文本命令,当Command为ServerPushText时必填
496
+ # @type ServerPushText: :class:`Tencentcloud::Gme.v20180711.models.ServerPushText`
497
+ # @param InvokeLLM: 服务端发送命令主动请求大模型,当Command为InvokeLLM时会把content请求到大模型,头部增加X-Invoke-LLM="1"
498
+ # @type InvokeLLM: :class:`Tencentcloud::Gme.v20180711.models.InvokeLLM`
499
+
500
+ attr_accessor :TaskId, :Command, :ServerPushText, :InvokeLLM
501
+
502
+ def initialize(taskid=nil, command=nil, serverpushtext=nil, invokellm=nil)
503
+ @TaskId = taskid
504
+ @Command = command
505
+ @ServerPushText = serverpushtext
506
+ @InvokeLLM = invokellm
507
+ end
508
+
509
+ def deserialize(params)
510
+ @TaskId = params['TaskId']
511
+ @Command = params['Command']
512
+ unless params['ServerPushText'].nil?
513
+ @ServerPushText = ServerPushText.new
514
+ @ServerPushText.deserialize(params['ServerPushText'])
515
+ end
516
+ unless params['InvokeLLM'].nil?
517
+ @InvokeLLM = InvokeLLM.new
518
+ @InvokeLLM.deserialize(params['InvokeLLM'])
519
+ end
520
+ end
521
+ end
522
+
523
+ # ControlAIConversation返回参数结构体
524
+ class ControlAIConversationResponse < TencentCloud::Common::AbstractModel
525
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
526
+ # @type RequestId: String
527
+
528
+ attr_accessor :RequestId
529
+
530
+ def initialize(requestid=nil)
531
+ @RequestId = requestid
532
+ end
533
+
534
+ def deserialize(params)
535
+ @RequestId = params['RequestId']
536
+ end
537
+ end
538
+
372
539
  # CreateAgeDetectTask请求参数结构体
373
540
  class CreateAgeDetectTaskRequest < TencentCloud::Common::AbstractModel
374
541
  # @param BizId: 应用id
@@ -625,8 +792,7 @@ module TencentCloud
625
792
  # @param UserId: 需要新增送检的用户号。示例:1234
626
793
  # (若UserId不填,则UserIdString必填;两者选其一;两者都填以UserIdString为准)
627
794
  # @type UserId: Integer
628
- # @param UserIdString: 需要新增送检的用户号。示例:"1234"
629
- # (若UserIdString不填,则UserId必填;两者选其一;两者都填以UserIdString为准)
795
+ # @param UserIdString: 需要新增送检的用户号,长度不超过1024字符。示例:"1234"(若UserIdString不填,则UserId必填;两者选其一;两者都填以UserIdString为准)
630
796
  # @type UserIdString: String
631
797
  # @param ExpirationTime: 当前用户送检过期时间,单位:秒。
632
798
  # 若参数不为0,则在过期时间之后,用户不会被送检。
@@ -828,8 +994,7 @@ module TencentCloud
828
994
  # @param UserId: 需要删除送检的用户号。示例:1234
829
995
  # (若UserId不填,则UserIdString必填;两者选其一;两者都填以UserIdString为准)
830
996
  # @type UserId: Integer
831
- # @param UserIdString: 需要删除送检的用户号。示例:"1234"
832
- # (若UserIdString不填,则UserId必填;两者选其一;两者都填以UserIdString为准)
997
+ # @param UserIdString: 需要删除送检的用户号,长度不超过1024字符。示例:"1234"(若UserIdString不填,则UserId必填;两者选其一;两者都填以UserIdString为准)
833
998
  # @type UserIdString: String
834
999
 
835
1000
  attr_accessor :BizId, :UserId, :UserIdString
@@ -867,6 +1032,90 @@ module TencentCloud
867
1032
  end
868
1033
  end
869
1034
 
1035
+ # DeleteVoicePrint请求参数结构体
1036
+ class DeleteVoicePrintRequest < TencentCloud::Common::AbstractModel
1037
+ # @param VoicePrintId: 声纹信息ID
1038
+ # @type VoicePrintId: String
1039
+
1040
+ attr_accessor :VoicePrintId
1041
+
1042
+ def initialize(voiceprintid=nil)
1043
+ @VoicePrintId = voiceprintid
1044
+ end
1045
+
1046
+ def deserialize(params)
1047
+ @VoicePrintId = params['VoicePrintId']
1048
+ end
1049
+ end
1050
+
1051
+ # DeleteVoicePrint返回参数结构体
1052
+ class DeleteVoicePrintResponse < TencentCloud::Common::AbstractModel
1053
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1054
+ # @type RequestId: String
1055
+
1056
+ attr_accessor :RequestId
1057
+
1058
+ def initialize(requestid=nil)
1059
+ @RequestId = requestid
1060
+ end
1061
+
1062
+ def deserialize(params)
1063
+ @RequestId = params['RequestId']
1064
+ end
1065
+ end
1066
+
1067
+ # DescribeAIConversation请求参数结构体
1068
+ class DescribeAIConversationRequest < TencentCloud::Common::AbstractModel
1069
+ # @param SdkAppId: GME的SdkAppId,和开启转录任务的房间使用的SdkAppId相同。
1070
+ # @type SdkAppId: Integer
1071
+ # @param TaskId: 唯一标识一次任务。
1072
+ # @type TaskId: String
1073
+
1074
+ attr_accessor :SdkAppId, :TaskId
1075
+
1076
+ def initialize(sdkappid=nil, taskid=nil)
1077
+ @SdkAppId = sdkappid
1078
+ @TaskId = taskid
1079
+ end
1080
+
1081
+ def deserialize(params)
1082
+ @SdkAppId = params['SdkAppId']
1083
+ @TaskId = params['TaskId']
1084
+ end
1085
+ end
1086
+
1087
+ # DescribeAIConversation返回参数结构体
1088
+ class DescribeAIConversationResponse < TencentCloud::Common::AbstractModel
1089
+ # @param StartTime: 任务开始时间。
1090
+ # @type StartTime: String
1091
+ # @param Status: 任务状态。有4个值:1、Idle表示任务未开始2、Preparing表示任务准备中3、InProgress表示任务正在运行4、Stopped表示任务已停止,正在清理资源中
1092
+ # @type Status: String
1093
+ # @param TaskId: 唯一标识一次任务。
1094
+ # @type TaskId: String
1095
+ # @param SessionId: 开启对话任务时填写的SessionId,如果没写则不返回。
1096
+ # @type SessionId: String
1097
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1098
+ # @type RequestId: String
1099
+
1100
+ attr_accessor :StartTime, :Status, :TaskId, :SessionId, :RequestId
1101
+
1102
+ def initialize(starttime=nil, status=nil, taskid=nil, sessionid=nil, requestid=nil)
1103
+ @StartTime = starttime
1104
+ @Status = status
1105
+ @TaskId = taskid
1106
+ @SessionId = sessionid
1107
+ @RequestId = requestid
1108
+ end
1109
+
1110
+ def deserialize(params)
1111
+ @StartTime = params['StartTime']
1112
+ @Status = params['Status']
1113
+ @TaskId = params['TaskId']
1114
+ @SessionId = params['SessionId']
1115
+ @RequestId = params['RequestId']
1116
+ end
1117
+ end
1118
+
870
1119
  # DescribeAgeDetectTask请求参数结构体
871
1120
  class DescribeAgeDetectTaskRequest < TencentCloud::Common::AbstractModel
872
1121
  # @param BizId: 应用id
@@ -1535,6 +1784,65 @@ module TencentCloud
1535
1784
  end
1536
1785
  end
1537
1786
 
1787
+ # DescribeVoicePrint请求参数结构体
1788
+ class DescribeVoicePrintRequest < TencentCloud::Common::AbstractModel
1789
+ # @param DescribeMode: 查询方式,0表示查询特定VoicePrintId,1表示分页查询
1790
+ # @type DescribeMode: Integer
1791
+ # @param VoicePrintIdList: 声纹ID
1792
+ # @type VoicePrintIdList: Array
1793
+ # @param PageIndex: 当前页码,从1开始,DescribeMode为1时填写
1794
+ # @type PageIndex: Integer
1795
+ # @param PageSize: 每页条数 最少20,DescribeMode为1时填写
1796
+ # @type PageSize: Integer
1797
+
1798
+ attr_accessor :DescribeMode, :VoicePrintIdList, :PageIndex, :PageSize
1799
+
1800
+ def initialize(describemode=nil, voiceprintidlist=nil, pageindex=nil, pagesize=nil)
1801
+ @DescribeMode = describemode
1802
+ @VoicePrintIdList = voiceprintidlist
1803
+ @PageIndex = pageindex
1804
+ @PageSize = pagesize
1805
+ end
1806
+
1807
+ def deserialize(params)
1808
+ @DescribeMode = params['DescribeMode']
1809
+ @VoicePrintIdList = params['VoicePrintIdList']
1810
+ @PageIndex = params['PageIndex']
1811
+ @PageSize = params['PageSize']
1812
+ end
1813
+ end
1814
+
1815
+ # DescribeVoicePrint返回参数结构体
1816
+ class DescribeVoicePrintResponse < TencentCloud::Common::AbstractModel
1817
+ # @param TotalCount: 总的条数
1818
+ # @type TotalCount: Integer
1819
+ # @param Data: 声纹信息
1820
+ # @type Data: Array
1821
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1822
+ # @type RequestId: String
1823
+
1824
+ attr_accessor :TotalCount, :Data, :RequestId
1825
+
1826
+ def initialize(totalcount=nil, data=nil, requestid=nil)
1827
+ @TotalCount = totalcount
1828
+ @Data = data
1829
+ @RequestId = requestid
1830
+ end
1831
+
1832
+ def deserialize(params)
1833
+ @TotalCount = params['TotalCount']
1834
+ unless params['Data'].nil?
1835
+ @Data = []
1836
+ params['Data'].each do |i|
1837
+ voiceprintinfo_tmp = VoicePrintInfo.new
1838
+ voiceprintinfo_tmp.deserialize(i)
1839
+ @Data << voiceprintinfo_tmp
1840
+ end
1841
+ end
1842
+ @RequestId = params['RequestId']
1843
+ end
1844
+ end
1845
+
1538
1846
  # 查找过滤
1539
1847
  class Filter < TencentCloud::Common::AbstractModel
1540
1848
  # @param Name: 要过滤的字段名, 比如"AppName"
@@ -1618,6 +1926,26 @@ module TencentCloud
1618
1926
  end
1619
1927
  end
1620
1928
 
1929
+ # 调用服务端主动发起请求到LLM
1930
+ class InvokeLLM < TencentCloud::Common::AbstractModel
1931
+ # @param Content: 请求LLM的内容
1932
+ # @type Content: String
1933
+ # @param Interrupt: 是否允许该文本打断机器人说话
1934
+ # @type Interrupt: Boolean
1935
+
1936
+ attr_accessor :Content, :Interrupt
1937
+
1938
+ def initialize(content=nil, interrupt=nil)
1939
+ @Content = content
1940
+ @Interrupt = interrupt
1941
+ end
1942
+
1943
+ def deserialize(params)
1944
+ @Content = params['Content']
1945
+ @Interrupt = params['Interrupt']
1946
+ end
1947
+ end
1948
+
1621
1949
  # ModifyAppStatus请求参数结构体
1622
1950
  class ModifyAppStatusRequest < TencentCloud::Common::AbstractModel
1623
1951
  # @param BizId: 应用ID,创建应用后由后台生成并返回。
@@ -1996,6 +2324,58 @@ module TencentCloud
1996
2324
  end
1997
2325
  end
1998
2326
 
2327
+ # RegisterVoicePrint请求参数结构体
2328
+ class RegisterVoicePrintRequest < TencentCloud::Common::AbstractModel
2329
+ # @param Audio: 整个wav音频文件的base64字符串,其中wav文件限定为16k采样率, 16bit位深, 单声道, 4到18秒音频时长,有效音频不小于3秒(不能有太多静音段), 编码数据大小不超过2M, 为了识别准确率,建议音频长度为8秒
2330
+ # @type Audio: String
2331
+ # @param ReqTimestamp: 毫秒时间戳
2332
+ # @type ReqTimestamp: Integer
2333
+ # @param AudioFormat: 音频格式,目前只支持0,代表wav
2334
+ # @type AudioFormat: Integer
2335
+ # @param AudioName: 音频名称,长度不要超过32
2336
+ # @type AudioName: String
2337
+ # @param AudioMetaInfo: 和声纹绑定的MetaInfo,长度最大不超过512
2338
+ # @type AudioMetaInfo: String
2339
+
2340
+ attr_accessor :Audio, :ReqTimestamp, :AudioFormat, :AudioName, :AudioMetaInfo
2341
+
2342
+ def initialize(audio=nil, reqtimestamp=nil, audioformat=nil, audioname=nil, audiometainfo=nil)
2343
+ @Audio = audio
2344
+ @ReqTimestamp = reqtimestamp
2345
+ @AudioFormat = audioformat
2346
+ @AudioName = audioname
2347
+ @AudioMetaInfo = audiometainfo
2348
+ end
2349
+
2350
+ def deserialize(params)
2351
+ @Audio = params['Audio']
2352
+ @ReqTimestamp = params['ReqTimestamp']
2353
+ @AudioFormat = params['AudioFormat']
2354
+ @AudioName = params['AudioName']
2355
+ @AudioMetaInfo = params['AudioMetaInfo']
2356
+ end
2357
+ end
2358
+
2359
+ # RegisterVoicePrint返回参数结构体
2360
+ class RegisterVoicePrintResponse < TencentCloud::Common::AbstractModel
2361
+ # @param VoicePrintId: 声纹信息ID
2362
+ # @type VoicePrintId: String
2363
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2364
+ # @type RequestId: String
2365
+
2366
+ attr_accessor :VoicePrintId, :RequestId
2367
+
2368
+ def initialize(voiceprintid=nil, requestid=nil)
2369
+ @VoicePrintId = voiceprintid
2370
+ @RequestId = requestid
2371
+ end
2372
+
2373
+ def deserialize(params)
2374
+ @VoicePrintId = params['VoicePrintId']
2375
+ @RequestId = params['RequestId']
2376
+ end
2377
+ end
2378
+
1999
2379
  # 房间内用户信息
2000
2380
  class RoomUser < TencentCloud::Common::AbstractModel
2001
2381
  # @param RoomId: 房间id
@@ -2024,6 +2404,84 @@ module TencentCloud
2024
2404
  end
2025
2405
  end
2026
2406
 
2407
+ # 语音转文字参数
2408
+ class STTConfig < TencentCloud::Common::AbstractModel
2409
+ # @param Language: 语音转文字支持识别的语言,默认是"zh" 中文
2410
+
2411
+ # 可通过购买「AI智能识别时长包」解锁或领取包月套餐体验版解锁不同语言.
2412
+
2413
+ # 语音转文本不同套餐版本支持的语言如下:
2414
+
2415
+ # **基础版**:
2416
+ # - "zh": 中文(简体)
2417
+ # - "zh-TW": 中文(繁体)
2418
+ # - "en": 英语
2419
+
2420
+ # **标准版:**
2421
+ # - "8k_zh_large": 普方大模型引擎. 当前模型同时支持中文等语言的识别,模型参数量极大,语言模型性能增强,针对电话音频中各类场景、各类中文方言的识别准确率极大提升.
2422
+ # - "16k_zh_large": 普方英大模型引擎. 当前模型同时支持中文、英文、多种中文方言等语言的识别,模型参数量极大,语言模型性能增强,针对噪声大、回音大、人声小、人声远等低质量音频的识别准确率极大提升.
2423
+ # - "16k_multi_lang": 多语种大模型引擎. 当前模型同时支持英语、日语、韩语、阿拉伯语、菲律宾语、法语、印地语、印尼语、马来语、葡萄牙语、西班牙语、泰语、土耳其语、越南语、德语的识别,可实现15个语种的自动识别(句子/段落级别).
2424
+ # - "16k_zh_en": 中英大模型引擎. 当前模型同时支持中文、英语识别,模型参数量极大,语言模型性能增强,针对噪声大、回音大、人声小、人声远等低质量音频的识别准确率极大提升.
2425
+
2426
+ # **高级版:**
2427
+ # - "zh-dialect": 中国方言
2428
+ # - "zh-yue": 中国粤语
2429
+ # - "vi": 越南语
2430
+ # - "ja": 日语
2431
+ # - "ko": 韩语
2432
+ # - "id": 印度尼西亚语
2433
+ # - "th": 泰语
2434
+ # - "pt": 葡萄牙语
2435
+ # - "tr": 土耳其语
2436
+ # - "ar": 阿拉伯语
2437
+ # - "es": 西班牙语
2438
+ # - "hi": 印地语
2439
+ # - "fr": 法语
2440
+ # - "ms": 马来语
2441
+ # - "fil": 菲律宾语
2442
+ # - "de": 德语
2443
+ # - "it": 意大利语
2444
+ # - "ru": 俄语
2445
+ # - "sv": 瑞典语
2446
+ # - "da": 丹麦语
2447
+ # - "no": 挪威语
2448
+
2449
+ # **注意:**
2450
+ # 如果缺少满足您需求的语言,请联系我们技术人员。
2451
+ # @type Language: String
2452
+ # @param AlternativeLanguage: **发起模糊识别为高级版能力,默认按照高级版收费,仅支持填写基础版和高级版语言.**
2453
+ # 注意:不支持填写"zh-dialect"
2454
+ # @type AlternativeLanguage: Array
2455
+ # @param CustomParam: 自定义参数,联系后台使用
2456
+ # @type CustomParam: String
2457
+ # @param VadSilenceTime: 语音识别vad的时间,范围为240-2000,默认为1000,单位为ms。更小的值会让语音识别分句更快。
2458
+ # @type VadSilenceTime: Integer
2459
+ # @param HotWordList: 热词表:该参数用于提升识别准确率。 单个热词限制:"热词|权重",单个热词不超过30个字符(最多10个汉字),权重[1-11]或者100,如:“腾讯云|5” 或 “ASR|11”; 热词表限制:多个热词用英文逗号分割,最多支持128个热词,如:“腾讯云|10,语音识别|5,ASR|11”;
2460
+ # @type HotWordList: String
2461
+ # @param VadLevel: vad的远场人声抑制能力(不会对asr识别效果造成影响),范围为[0, 3],默认为0。推荐设置为2,有较好的远场人声抑制能力。
2462
+ # @type VadLevel: Integer
2463
+
2464
+ attr_accessor :Language, :AlternativeLanguage, :CustomParam, :VadSilenceTime, :HotWordList, :VadLevel
2465
+
2466
+ def initialize(language=nil, alternativelanguage=nil, customparam=nil, vadsilencetime=nil, hotwordlist=nil, vadlevel=nil)
2467
+ @Language = language
2468
+ @AlternativeLanguage = alternativelanguage
2469
+ @CustomParam = customparam
2470
+ @VadSilenceTime = vadsilencetime
2471
+ @HotWordList = hotwordlist
2472
+ @VadLevel = vadlevel
2473
+ end
2474
+
2475
+ def deserialize(params)
2476
+ @Language = params['Language']
2477
+ @AlternativeLanguage = params['AlternativeLanguage']
2478
+ @CustomParam = params['CustomParam']
2479
+ @VadSilenceTime = params['VadSilenceTime']
2480
+ @HotWordList = params['HotWordList']
2481
+ @VadLevel = params['VadLevel']
2482
+ end
2483
+ end
2484
+
2027
2485
  # 语音检测详情
2028
2486
  class ScanDetail < TencentCloud::Common::AbstractModel
2029
2487
  # @param Label: 违规场景,参照<a href="https://cloud.tencent.com/document/product/607/37622#Label_Value">Label</a>定义
@@ -2237,6 +2695,52 @@ module TencentCloud
2237
2695
  end
2238
2696
  end
2239
2697
 
2698
+ # 服务端控制AI对话机器人播报指定文本
2699
+ class ServerPushText < TencentCloud::Common::AbstractModel
2700
+ # @param Text: 服务端推送播报文本
2701
+ # @type Text: String
2702
+ # @param Interrupt: 是否允许该文本打断机器人说话
2703
+ # @type Interrupt: Boolean
2704
+ # @param StopAfterPlay: 播报完文本后,是否自动关闭对话任务
2705
+ # @type StopAfterPlay: Boolean
2706
+ # @param Audio: 服务端推送播报音频
2707
+ # 格式说明:音频必须为单声道,采样率必须跟对应TTS的采样率保持一致,编码为Base64字符串。
2708
+ # 输入规则:当提供Audio字段时,将不接受Text字段的输入。系统将直接播放Audio字段中的音频内容。
2709
+ # @type Audio: String
2710
+ # @param DropMode: 默认为0,仅在Interrupt为false时有效
2711
+ # - 0表示当前有交互发生时,会丢弃Interrupt为false的消息
2712
+ # - 1表示当前有交互发生时,不会丢弃Interrupt为false的消息,而是缓存下来,等待当前交互结束后,再去处理
2713
+
2714
+ # 注意:DropMode为1时,允许缓存多个消息,如果后续出现了打断,缓存的消息会被清空
2715
+ # @type DropMode: Integer
2716
+ # @param Priority: ServerPushText消息的优先级,0表示可被打断,1表示不会被打断。**目前仅支持传入0,如果需要传入1,请提工单联系我们添加权限。**
2717
+ # 注意:在接收到Priority=1的消息后,后续其他任何消息都会被忽略(包括Priority=1的消息),直到Priority=1的消息处理结束。该字段可与Interrupt、DropMode字段配合使用。
2718
+ # 例子:
2719
+ # - Priority=1、Interrupt=true,会打断现有交互,立刻播报,播报过程中不会被打断
2720
+ # - Priority=1、Interrupt=false、DropMode=1,会等待当前交互结束,再进行播报,播报过程中不会被打断
2721
+ # @type Priority: Integer
2722
+
2723
+ attr_accessor :Text, :Interrupt, :StopAfterPlay, :Audio, :DropMode, :Priority
2724
+
2725
+ def initialize(text=nil, interrupt=nil, stopafterplay=nil, audio=nil, dropmode=nil, priority=nil)
2726
+ @Text = text
2727
+ @Interrupt = interrupt
2728
+ @StopAfterPlay = stopafterplay
2729
+ @Audio = audio
2730
+ @DropMode = dropmode
2731
+ @Priority = priority
2732
+ end
2733
+
2734
+ def deserialize(params)
2735
+ @Text = params['Text']
2736
+ @Interrupt = params['Interrupt']
2737
+ @StopAfterPlay = params['StopAfterPlay']
2738
+ @Audio = params['Audio']
2739
+ @DropMode = params['DropMode']
2740
+ @Priority = params['Priority']
2741
+ end
2742
+ end
2743
+
2240
2744
  # 服务开关状态
2241
2745
  class ServiceStatus < TencentCloud::Common::AbstractModel
2242
2746
  # @param RealTimeSpeech: 实时语音服务开关状态
@@ -2291,6 +2795,77 @@ module TencentCloud
2291
2795
  end
2292
2796
  end
2293
2797
 
2798
+ # StartAIConversation请求参数结构体
2799
+ class StartAIConversationRequest < TencentCloud::Common::AbstractModel
2800
+ # @param SdkAppId: GME的SdkAppId和开启转录任务的房间使用的SdkAppId相同。
2801
+ # @type SdkAppId: Integer
2802
+ # @param RoomId: GME的RoomId表示开启对话任务的房间号。
2803
+ # @type RoomId: String
2804
+ # @param AgentConfig: 机器人参数
2805
+ # @type AgentConfig: :class:`Tencentcloud::Gme.v20180711.models.AgentConfig`
2806
+ # @param STTConfig: 语音识别配置。
2807
+ # @type STTConfig: :class:`Tencentcloud::Gme.v20180711.models.STTConfig`
2808
+ # @param LLMConfig: LLM配置。需符合openai规范,为JSON字符串,示例如下:
2809
+ # <pre> { <br> &emsp; "LLMType": "大模型类型", // String 必填,如:"openai" <br> &emsp; "Model": "您的模型名称", // String 必填,指定使用的模型<br> "APIKey": "您的LLM API密钥", // String 必填 <br> &emsp; "APIUrl": "https://api.xxx.com/chat/completions", // String 必填,LLM API访问的URL<br> &emsp; "Streaming": true // Boolean 非必填,指定是否使用流式传输<br> &emsp;} </pre>
2810
+ # @type LLMConfig: String
2811
+ # @param TTSConfig: "description": "TTS配置,为JSON字符串,腾讯云TTS示例如下: <pre>{ <br> &emsp; \"AppId\": 您的应用ID, // Integer 必填<br> &emsp; \"TTSType\": \"TTS类型\", // String TTS类型, 固定为\"tencent\"<br> &emsp; \"SecretId\": \"您的密钥ID\", // String 必填<br> &emsp; \"SecretKey\": \"您的密钥Key\", // String 必填<br> &emsp; \"VoiceType\": 101001, // Integer 必填,音色 ID,包括标准音色与精品音色,精品音色拟真度更高,价格不同于标准音色。<br> &emsp; \"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等。 参数值与实际语速转换\"Volume\": 5, // Integer 非必填,音量大小,范围:[0,10],分别对应11个等级的音量,默认值为0,代表正常音量。<br> &emsp; \"EmotionCategory\": \"angry\", // String 非必填 控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)、sajiao(撒娇)、disgusted(厌恶)、amaze(震惊)、peaceful(平静)、exciting(兴奋)、aojiao(傲娇)、jieshuo(解说)。<br> &emsp; \"EmotionIntensity\": 150 // Integer 非必填 控制合成音频情感程度,取值范围为 [50,200],默认为 100;只有 EmotionCategory 不为空时生效。<br> &emsp; }</pre>",
2812
+ # @type TTSConfig: String
2813
+ # @param AvatarConfig: 数字人配置,为JSON字符串。**数字人配置需要提工单加白后才能使用**
2814
+ # @type AvatarConfig: String
2815
+ # @param ExperimentalParams: 实验性参数,联系后台使用
2816
+ # @type ExperimentalParams: String
2817
+
2818
+ attr_accessor :SdkAppId, :RoomId, :AgentConfig, :STTConfig, :LLMConfig, :TTSConfig, :AvatarConfig, :ExperimentalParams
2819
+
2820
+ def initialize(sdkappid=nil, roomid=nil, agentconfig=nil, sttconfig=nil, llmconfig=nil, ttsconfig=nil, avatarconfig=nil, experimentalparams=nil)
2821
+ @SdkAppId = sdkappid
2822
+ @RoomId = roomid
2823
+ @AgentConfig = agentconfig
2824
+ @STTConfig = sttconfig
2825
+ @LLMConfig = llmconfig
2826
+ @TTSConfig = ttsconfig
2827
+ @AvatarConfig = avatarconfig
2828
+ @ExperimentalParams = experimentalparams
2829
+ end
2830
+
2831
+ def deserialize(params)
2832
+ @SdkAppId = params['SdkAppId']
2833
+ @RoomId = params['RoomId']
2834
+ unless params['AgentConfig'].nil?
2835
+ @AgentConfig = AgentConfig.new
2836
+ @AgentConfig.deserialize(params['AgentConfig'])
2837
+ end
2838
+ unless params['STTConfig'].nil?
2839
+ @STTConfig = STTConfig.new
2840
+ @STTConfig.deserialize(params['STTConfig'])
2841
+ end
2842
+ @LLMConfig = params['LLMConfig']
2843
+ @TTSConfig = params['TTSConfig']
2844
+ @AvatarConfig = params['AvatarConfig']
2845
+ @ExperimentalParams = params['ExperimentalParams']
2846
+ end
2847
+ end
2848
+
2849
+ # StartAIConversation返回参数结构体
2850
+ class StartAIConversationResponse < TencentCloud::Common::AbstractModel
2851
+ # @param TaskId: 用于唯一标识对话任务。
2852
+ # @type TaskId: String
2853
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2854
+ # @type RequestId: String
2855
+
2856
+ attr_accessor :TaskId, :RequestId
2857
+
2858
+ def initialize(taskid=nil, requestid=nil)
2859
+ @TaskId = taskid
2860
+ @RequestId = requestid
2861
+ end
2862
+
2863
+ def deserialize(params)
2864
+ @TaskId = params['TaskId']
2865
+ @RequestId = params['RequestId']
2866
+ end
2867
+ end
2868
+
2294
2869
  # StartRecord请求参数结构体
2295
2870
  class StartRecordRequest < TencentCloud::Common::AbstractModel
2296
2871
  # @param BizId: 应用ID。
@@ -2378,6 +2953,38 @@ module TencentCloud
2378
2953
  end
2379
2954
  end
2380
2955
 
2956
+ # StopAIConversation请求参数结构体
2957
+ class StopAIConversationRequest < TencentCloud::Common::AbstractModel
2958
+ # @param TaskId: 唯一标识任务。
2959
+ # @type TaskId: String
2960
+
2961
+ attr_accessor :TaskId
2962
+
2963
+ def initialize(taskid=nil)
2964
+ @TaskId = taskid
2965
+ end
2966
+
2967
+ def deserialize(params)
2968
+ @TaskId = params['TaskId']
2969
+ end
2970
+ end
2971
+
2972
+ # StopAIConversation返回参数结构体
2973
+ class StopAIConversationResponse < TencentCloud::Common::AbstractModel
2974
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2975
+ # @type RequestId: String
2976
+
2977
+ attr_accessor :RequestId
2978
+
2979
+ def initialize(requestid=nil)
2980
+ @RequestId = requestid
2981
+ end
2982
+
2983
+ def deserialize(params)
2984
+ @RequestId = params['RequestId']
2985
+ end
2986
+ end
2987
+
2381
2988
  # StopRecord请求参数结构体
2382
2989
  class StopRecordRequest < TencentCloud::Common::AbstractModel
2383
2990
  # @param TaskId: 任务ID。
@@ -2500,13 +3107,97 @@ module TencentCloud
2500
3107
  end
2501
3108
  end
2502
3109
 
3110
+ # 断句配置
3111
+ class TurnDetection < TencentCloud::Common::AbstractModel
3112
+ # @param SemanticEagerness: TurnDetectionMode为3时生效,语义断句的灵敏程度
3113
+
3114
+
3115
+ # 功能简介:根据用户所说的话来判断其已完成发言来分割音频
3116
+
3117
+
3118
+ # 可选: "low" | "medium" | "high" | "auto"
3119
+
3120
+
3121
+ # auto 是默认值,与 medium 相同。
3122
+ # low 将让用户有足够的时间说话。
3123
+ # high 将尽快对音频进行分块。
3124
+
3125
+
3126
+ # 如果您希望模型在对话模式下更频繁地响应,可以将 SemanticEagerness 设置为 high
3127
+ # 如果您希望在用户停顿时,AI能够等待片刻,可以将 SemanticEagerness 设置为 low
3128
+ # 无论什么模式,最终都会分割送个大模型进行回复
3129
+ # @type SemanticEagerness: String
3130
+
3131
+ attr_accessor :SemanticEagerness
3132
+
3133
+ def initialize(semanticeagerness=nil)
3134
+ @SemanticEagerness = semanticeagerness
3135
+ end
3136
+
3137
+ def deserialize(params)
3138
+ @SemanticEagerness = params['SemanticEagerness']
3139
+ end
3140
+ end
3141
+
3142
+ # UpdateAIConversation请求参数结构体
3143
+ class UpdateAIConversationRequest < TencentCloud::Common::AbstractModel
3144
+ # @param TaskId: 唯一标识一个任务
3145
+ # @type TaskId: String
3146
+ # @param WelcomeMessage: 不填写则不进行更新,机器人的欢迎语
3147
+ # @type WelcomeMessage: String
3148
+ # @param InterruptMode: 不填写则不进行更新。智能打断模式,0表示服务端自动打断,1表示服务端不打断,由端上发送打断信令进行打断
3149
+ # @type InterruptMode: Integer
3150
+ # @param InterruptSpeechDuration: 不填写则不进行更新。InterruptMode为0时使用,单位为毫秒,默认为500ms。表示服务端检测到持续InterruptSpeechDuration毫秒的人声则进行打断
3151
+ # @type InterruptSpeechDuration: Integer
3152
+ # @param LLMConfig: 不填写则不进行更新,LLM配置,详情见StartAIConversation接口
3153
+ # @type LLMConfig: String
3154
+ # @param TTSConfig: 不填写则不进行更新,TTS配置,详情见StartAIConversation接口
3155
+ # @type TTSConfig: String
3156
+
3157
+ attr_accessor :TaskId, :WelcomeMessage, :InterruptMode, :InterruptSpeechDuration, :LLMConfig, :TTSConfig
3158
+
3159
+ def initialize(taskid=nil, welcomemessage=nil, interruptmode=nil, interruptspeechduration=nil, llmconfig=nil, ttsconfig=nil)
3160
+ @TaskId = taskid
3161
+ @WelcomeMessage = welcomemessage
3162
+ @InterruptMode = interruptmode
3163
+ @InterruptSpeechDuration = interruptspeechduration
3164
+ @LLMConfig = llmconfig
3165
+ @TTSConfig = ttsconfig
3166
+ end
3167
+
3168
+ def deserialize(params)
3169
+ @TaskId = params['TaskId']
3170
+ @WelcomeMessage = params['WelcomeMessage']
3171
+ @InterruptMode = params['InterruptMode']
3172
+ @InterruptSpeechDuration = params['InterruptSpeechDuration']
3173
+ @LLMConfig = params['LLMConfig']
3174
+ @TTSConfig = params['TTSConfig']
3175
+ end
3176
+ end
3177
+
3178
+ # UpdateAIConversation返回参数结构体
3179
+ class UpdateAIConversationResponse < TencentCloud::Common::AbstractModel
3180
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3181
+ # @type RequestId: String
3182
+
3183
+ attr_accessor :RequestId
3184
+
3185
+ def initialize(requestid=nil)
3186
+ @RequestId = requestid
3187
+ end
3188
+
3189
+ def deserialize(params)
3190
+ @RequestId = params['RequestId']
3191
+ end
3192
+ end
3193
+
2503
3194
  # UpdateScanRooms请求参数结构体
2504
3195
  class UpdateScanRoomsRequest < TencentCloud::Common::AbstractModel
2505
3196
  # @param BizId: 应用ID
2506
3197
  # @type BizId: Integer
2507
- # @param RoomIdString: 需要送检的所有房间号。多个房间号之间用","分隔。示例:"0001,0002,0003"
3198
+ # @param RoomIdString: 需要送检的所有房间号。多个房间号之间用","分隔,长度不超过1024字符。示例:"0001,0002,0003"
2508
3199
  # @type RoomIdString: String
2509
- # @param RoomIdRegex: 符合此正则表达式规则的房间号将被送检。示例:^6.*(表示所有以6开头的房间号将被送检)
3200
+ # @param RoomIdRegex: 符合此正则表达式规则的房间号将被送检,最大不能超过10个。示例:^6.*(表示所有以6开头的房间号将被送检)
2510
3201
  # @type RoomIdRegex: Array
2511
3202
 
2512
3203
  attr_accessor :BizId, :RoomIdString, :RoomIdRegex
@@ -2548,9 +3239,9 @@ module TencentCloud
2548
3239
  class UpdateScanUsersRequest < TencentCloud::Common::AbstractModel
2549
3240
  # @param BizId: 应用ID
2550
3241
  # @type BizId: Integer
2551
- # @param UserIdString: 需要送检的所有用户号。多个用户号之间用","分隔。示例:"0001,0002,0003"
3242
+ # @param UserIdString: 需要送检的所有用户号。多个用户号之间用","分隔,长度不超过1024字符。示例:"0001,0002,0003"
2552
3243
  # @type UserIdString: String
2553
- # @param UserIdRegex: 符合此正则表达式规则的用户号将被送检。示例:["^6.*"] 表示所有以6开头的用户号将被送检
3244
+ # @param UserIdRegex: 符合此正则表达式规则的用户号将被送检,最大不能超过10个。示例:["^6.*"] 表示所有以6开头的用户号将被送检
2554
3245
  # @type UserIdRegex: Array
2555
3246
 
2556
3247
  attr_accessor :BizId, :UserIdString, :UserIdRegex
@@ -2588,6 +3279,54 @@ module TencentCloud
2588
3279
  end
2589
3280
  end
2590
3281
 
3282
+ # UpdateVoicePrint请求参数结构体
3283
+ class UpdateVoicePrintRequest < TencentCloud::Common::AbstractModel
3284
+ # @param VoicePrintId: 声纹信息ID
3285
+ # @type VoicePrintId: String
3286
+ # @param ReqTimestamp: 毫秒时间戳
3287
+ # @type ReqTimestamp: Integer
3288
+ # @param AudioFormat: 音频格式,目前只支持0,代表wav
3289
+ # @type AudioFormat: Integer
3290
+ # @param Audio: 整个wav音频文件的base64字符串,其中wav文件限定为16k采样率, 16bit位深, 单声道, 8到18秒音频时长,有效音频不小于6秒(不能有太多静音段),编码数据大小不超过2M
3291
+ # @type Audio: String
3292
+ # @param AudioMetaInfo: 和声纹绑定的MetaInfo,长度最大不超过512
3293
+ # @type AudioMetaInfo: String
3294
+
3295
+ attr_accessor :VoicePrintId, :ReqTimestamp, :AudioFormat, :Audio, :AudioMetaInfo
3296
+
3297
+ def initialize(voiceprintid=nil, reqtimestamp=nil, audioformat=nil, audio=nil, audiometainfo=nil)
3298
+ @VoicePrintId = voiceprintid
3299
+ @ReqTimestamp = reqtimestamp
3300
+ @AudioFormat = audioformat
3301
+ @Audio = audio
3302
+ @AudioMetaInfo = audiometainfo
3303
+ end
3304
+
3305
+ def deserialize(params)
3306
+ @VoicePrintId = params['VoicePrintId']
3307
+ @ReqTimestamp = params['ReqTimestamp']
3308
+ @AudioFormat = params['AudioFormat']
3309
+ @Audio = params['Audio']
3310
+ @AudioMetaInfo = params['AudioMetaInfo']
3311
+ end
3312
+ end
3313
+
3314
+ # UpdateVoicePrint返回参数结构体
3315
+ class UpdateVoicePrintResponse < TencentCloud::Common::AbstractModel
3316
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3317
+ # @type RequestId: String
3318
+
3319
+ attr_accessor :RequestId
3320
+
3321
+ def initialize(requestid=nil)
3322
+ @RequestId = requestid
3323
+ end
3324
+
3325
+ def deserialize(params)
3326
+ @RequestId = params['RequestId']
3327
+ end
3328
+ end
3329
+
2591
3330
  # 用户麦克风状态
2592
3331
  class UserMicStatus < TencentCloud::Common::AbstractModel
2593
3332
  # @param EnableMic: 开麦状态。1表示关闭麦克风,2表示打开麦克风。
@@ -2691,6 +3430,70 @@ module TencentCloud
2691
3430
  end
2692
3431
  end
2693
3432
 
3433
+ # 声纹配置参数
3434
+ class VoicePrint < TencentCloud::Common::AbstractModel
3435
+ # @param Mode: 默认为0,表示不启用声纹。1表示启用声纹,此时需要填写voiceprint id。
3436
+ # @type Mode: Integer
3437
+ # @param IdList: VoicePrint Mode为1时需要填写,目前仅支持填写一个声纹id
3438
+ # @type IdList: Array
3439
+
3440
+ attr_accessor :Mode, :IdList
3441
+
3442
+ def initialize(mode=nil, idlist=nil)
3443
+ @Mode = mode
3444
+ @IdList = idlist
3445
+ end
3446
+
3447
+ def deserialize(params)
3448
+ @Mode = params['Mode']
3449
+ @IdList = params['IdList']
3450
+ end
3451
+ end
3452
+
3453
+ # 声纹查询数据
3454
+ class VoicePrintInfo < TencentCloud::Common::AbstractModel
3455
+ # @param VoicePrintId: 声纹ID
3456
+ # @type VoicePrintId: String
3457
+ # @param AppId: 应用id
3458
+ # @type AppId: Integer
3459
+ # @param VoicePrintMetaInfo: 和声纹绑定的MetaInfo
3460
+ # @type VoicePrintMetaInfo: String
3461
+ # @param CreateTime: 创建时间
3462
+ # @type CreateTime: String
3463
+ # @param UpdateTime: 更新时间
3464
+ # @type UpdateTime: String
3465
+ # @param AudioFormat: 音频格式,当前只有0(代表wav)
3466
+ # @type AudioFormat: Integer
3467
+ # @param AudioName: 音频名称
3468
+ # @type AudioName: String
3469
+ # @param ReqTimestamp: 请求毫秒时间戳
3470
+ # @type ReqTimestamp: Integer
3471
+
3472
+ attr_accessor :VoicePrintId, :AppId, :VoicePrintMetaInfo, :CreateTime, :UpdateTime, :AudioFormat, :AudioName, :ReqTimestamp
3473
+
3474
+ def initialize(voiceprintid=nil, appid=nil, voiceprintmetainfo=nil, createtime=nil, updatetime=nil, audioformat=nil, audioname=nil, reqtimestamp=nil)
3475
+ @VoicePrintId = voiceprintid
3476
+ @AppId = appid
3477
+ @VoicePrintMetaInfo = voiceprintmetainfo
3478
+ @CreateTime = createtime
3479
+ @UpdateTime = updatetime
3480
+ @AudioFormat = audioformat
3481
+ @AudioName = audioname
3482
+ @ReqTimestamp = reqtimestamp
3483
+ end
3484
+
3485
+ def deserialize(params)
3486
+ @VoicePrintId = params['VoicePrintId']
3487
+ @AppId = params['AppId']
3488
+ @VoicePrintMetaInfo = params['VoicePrintMetaInfo']
3489
+ @CreateTime = params['CreateTime']
3490
+ @UpdateTime = params['UpdateTime']
3491
+ @AudioFormat = params['AudioFormat']
3492
+ @AudioName = params['AudioName']
3493
+ @ReqTimestamp = params['ReqTimestamp']
3494
+ end
3495
+ end
3496
+
2694
3497
  end
2695
3498
  end
2696
3499
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-gme
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1101
4
+ version: 3.0.1140
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-07-14 00:00:00.000000000 Z
11
+ date: 2025-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common