tencentcloud-sdk-gme 3.0.1101 → 3.0.1139

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: baea8b7164c0fb2014f8747d7ea70539698220f6
4
+ data.tar.gz: 7b87f2f53e3459b10c1e380ef50567efa8f77cde
5
5
  SHA512:
6
- metadata.gz: 18d15a57cf091dc23f0c70f95faa8ae1383834ff32f415bc566718aa0263a23226556297aeaecfe4abc2430b6d0ce6a12eb72c8e9a171e7c0b3a35e65e0d8bed
7
- data.tar.gz: 3b836eae9ecc061335741489108dfe604b96091a46ced6b58adb029c5253f23a52ecaab24d6badf69aa4736c5fd0b1d7d4f08d83d81105e8518127c38d47db87
6
+ metadata.gz: 6585e6df66d909a702b7305abf535ffde72b0d8c1020842c7bfb7638656bfc43dae4e70bd47ad44a6a7053f67310279a4b720308aad1cadd4dccd788dc716dea
7
+ data.tar.gz: e16e5ec80ffc7707bd99a30b393564f74b5ef6346f352ec7aa35ca58eacf5e80cbfe9ee0553130adb2842be74f07fd465809d3227bc8e1647fb5bbd11d9bba4d
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1101
1
+ 3.0.1139
@@ -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
@@ -867,6 +1034,90 @@ module TencentCloud
867
1034
  end
868
1035
  end
869
1036
 
1037
+ # DeleteVoicePrint请求参数结构体
1038
+ class DeleteVoicePrintRequest < TencentCloud::Common::AbstractModel
1039
+ # @param VoicePrintId: 声纹信息ID
1040
+ # @type VoicePrintId: String
1041
+
1042
+ attr_accessor :VoicePrintId
1043
+
1044
+ def initialize(voiceprintid=nil)
1045
+ @VoicePrintId = voiceprintid
1046
+ end
1047
+
1048
+ def deserialize(params)
1049
+ @VoicePrintId = params['VoicePrintId']
1050
+ end
1051
+ end
1052
+
1053
+ # DeleteVoicePrint返回参数结构体
1054
+ class DeleteVoicePrintResponse < TencentCloud::Common::AbstractModel
1055
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1056
+ # @type RequestId: String
1057
+
1058
+ attr_accessor :RequestId
1059
+
1060
+ def initialize(requestid=nil)
1061
+ @RequestId = requestid
1062
+ end
1063
+
1064
+ def deserialize(params)
1065
+ @RequestId = params['RequestId']
1066
+ end
1067
+ end
1068
+
1069
+ # DescribeAIConversation请求参数结构体
1070
+ class DescribeAIConversationRequest < TencentCloud::Common::AbstractModel
1071
+ # @param SdkAppId: GME的SdkAppId,和开启转录任务的房间使用的SdkAppId相同。
1072
+ # @type SdkAppId: Integer
1073
+ # @param TaskId: 唯一标识一次任务。
1074
+ # @type TaskId: String
1075
+
1076
+ attr_accessor :SdkAppId, :TaskId
1077
+
1078
+ def initialize(sdkappid=nil, taskid=nil)
1079
+ @SdkAppId = sdkappid
1080
+ @TaskId = taskid
1081
+ end
1082
+
1083
+ def deserialize(params)
1084
+ @SdkAppId = params['SdkAppId']
1085
+ @TaskId = params['TaskId']
1086
+ end
1087
+ end
1088
+
1089
+ # DescribeAIConversation返回参数结构体
1090
+ class DescribeAIConversationResponse < TencentCloud::Common::AbstractModel
1091
+ # @param StartTime: 任务开始时间。
1092
+ # @type StartTime: String
1093
+ # @param Status: 任务状态。有4个值:1、Idle表示任务未开始2、Preparing表示任务准备中3、InProgress表示任务正在运行4、Stopped表示任务已停止,正在清理资源中
1094
+ # @type Status: String
1095
+ # @param TaskId: 唯一标识一次任务。
1096
+ # @type TaskId: String
1097
+ # @param SessionId: 开启对话任务时填写的SessionId,如果没写则不返回。
1098
+ # @type SessionId: String
1099
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1100
+ # @type RequestId: String
1101
+
1102
+ attr_accessor :StartTime, :Status, :TaskId, :SessionId, :RequestId
1103
+
1104
+ def initialize(starttime=nil, status=nil, taskid=nil, sessionid=nil, requestid=nil)
1105
+ @StartTime = starttime
1106
+ @Status = status
1107
+ @TaskId = taskid
1108
+ @SessionId = sessionid
1109
+ @RequestId = requestid
1110
+ end
1111
+
1112
+ def deserialize(params)
1113
+ @StartTime = params['StartTime']
1114
+ @Status = params['Status']
1115
+ @TaskId = params['TaskId']
1116
+ @SessionId = params['SessionId']
1117
+ @RequestId = params['RequestId']
1118
+ end
1119
+ end
1120
+
870
1121
  # DescribeAgeDetectTask请求参数结构体
871
1122
  class DescribeAgeDetectTaskRequest < TencentCloud::Common::AbstractModel
872
1123
  # @param BizId: 应用id
@@ -1535,6 +1786,65 @@ module TencentCloud
1535
1786
  end
1536
1787
  end
1537
1788
 
1789
+ # DescribeVoicePrint请求参数结构体
1790
+ class DescribeVoicePrintRequest < TencentCloud::Common::AbstractModel
1791
+ # @param DescribeMode: 查询方式,0表示查询特定VoicePrintId,1表示分页查询
1792
+ # @type DescribeMode: Integer
1793
+ # @param VoicePrintIdList: 声纹ID
1794
+ # @type VoicePrintIdList: Array
1795
+ # @param PageIndex: 当前页码,从1开始,DescribeMode为1时填写
1796
+ # @type PageIndex: Integer
1797
+ # @param PageSize: 每页条数 最少20,DescribeMode为1时填写
1798
+ # @type PageSize: Integer
1799
+
1800
+ attr_accessor :DescribeMode, :VoicePrintIdList, :PageIndex, :PageSize
1801
+
1802
+ def initialize(describemode=nil, voiceprintidlist=nil, pageindex=nil, pagesize=nil)
1803
+ @DescribeMode = describemode
1804
+ @VoicePrintIdList = voiceprintidlist
1805
+ @PageIndex = pageindex
1806
+ @PageSize = pagesize
1807
+ end
1808
+
1809
+ def deserialize(params)
1810
+ @DescribeMode = params['DescribeMode']
1811
+ @VoicePrintIdList = params['VoicePrintIdList']
1812
+ @PageIndex = params['PageIndex']
1813
+ @PageSize = params['PageSize']
1814
+ end
1815
+ end
1816
+
1817
+ # DescribeVoicePrint返回参数结构体
1818
+ class DescribeVoicePrintResponse < TencentCloud::Common::AbstractModel
1819
+ # @param TotalCount: 总的条数
1820
+ # @type TotalCount: Integer
1821
+ # @param Data: 声纹信息
1822
+ # @type Data: Array
1823
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1824
+ # @type RequestId: String
1825
+
1826
+ attr_accessor :TotalCount, :Data, :RequestId
1827
+
1828
+ def initialize(totalcount=nil, data=nil, requestid=nil)
1829
+ @TotalCount = totalcount
1830
+ @Data = data
1831
+ @RequestId = requestid
1832
+ end
1833
+
1834
+ def deserialize(params)
1835
+ @TotalCount = params['TotalCount']
1836
+ unless params['Data'].nil?
1837
+ @Data = []
1838
+ params['Data'].each do |i|
1839
+ voiceprintinfo_tmp = VoicePrintInfo.new
1840
+ voiceprintinfo_tmp.deserialize(i)
1841
+ @Data << voiceprintinfo_tmp
1842
+ end
1843
+ end
1844
+ @RequestId = params['RequestId']
1845
+ end
1846
+ end
1847
+
1538
1848
  # 查找过滤
1539
1849
  class Filter < TencentCloud::Common::AbstractModel
1540
1850
  # @param Name: 要过滤的字段名, 比如"AppName"
@@ -1618,6 +1928,26 @@ module TencentCloud
1618
1928
  end
1619
1929
  end
1620
1930
 
1931
+ # 调用服务端主动发起请求到LLM
1932
+ class InvokeLLM < TencentCloud::Common::AbstractModel
1933
+ # @param Content: 请求LLM的内容
1934
+ # @type Content: String
1935
+ # @param Interrupt: 是否允许该文本打断机器人说话
1936
+ # @type Interrupt: Boolean
1937
+
1938
+ attr_accessor :Content, :Interrupt
1939
+
1940
+ def initialize(content=nil, interrupt=nil)
1941
+ @Content = content
1942
+ @Interrupt = interrupt
1943
+ end
1944
+
1945
+ def deserialize(params)
1946
+ @Content = params['Content']
1947
+ @Interrupt = params['Interrupt']
1948
+ end
1949
+ end
1950
+
1621
1951
  # ModifyAppStatus请求参数结构体
1622
1952
  class ModifyAppStatusRequest < TencentCloud::Common::AbstractModel
1623
1953
  # @param BizId: 应用ID,创建应用后由后台生成并返回。
@@ -1996,6 +2326,58 @@ module TencentCloud
1996
2326
  end
1997
2327
  end
1998
2328
 
2329
+ # RegisterVoicePrint请求参数结构体
2330
+ class RegisterVoicePrintRequest < TencentCloud::Common::AbstractModel
2331
+ # @param Audio: 整个wav音频文件的base64字符串,其中wav文件限定为16k采样率, 16bit位深, 单声道, 4到18秒音频时长,有效音频不小于3秒(不能有太多静音段), 编码数据大小不超过2M, 为了识别准确率,建议音频长度为8秒
2332
+ # @type Audio: String
2333
+ # @param ReqTimestamp: 毫秒时间戳
2334
+ # @type ReqTimestamp: Integer
2335
+ # @param AudioFormat: 音频格式,目前只支持0,代表wav
2336
+ # @type AudioFormat: Integer
2337
+ # @param AudioName: 音频名称,长度不要超过32
2338
+ # @type AudioName: String
2339
+ # @param AudioMetaInfo: 和声纹绑定的MetaInfo,长度最大不超过512
2340
+ # @type AudioMetaInfo: String
2341
+
2342
+ attr_accessor :Audio, :ReqTimestamp, :AudioFormat, :AudioName, :AudioMetaInfo
2343
+
2344
+ def initialize(audio=nil, reqtimestamp=nil, audioformat=nil, audioname=nil, audiometainfo=nil)
2345
+ @Audio = audio
2346
+ @ReqTimestamp = reqtimestamp
2347
+ @AudioFormat = audioformat
2348
+ @AudioName = audioname
2349
+ @AudioMetaInfo = audiometainfo
2350
+ end
2351
+
2352
+ def deserialize(params)
2353
+ @Audio = params['Audio']
2354
+ @ReqTimestamp = params['ReqTimestamp']
2355
+ @AudioFormat = params['AudioFormat']
2356
+ @AudioName = params['AudioName']
2357
+ @AudioMetaInfo = params['AudioMetaInfo']
2358
+ end
2359
+ end
2360
+
2361
+ # RegisterVoicePrint返回参数结构体
2362
+ class RegisterVoicePrintResponse < TencentCloud::Common::AbstractModel
2363
+ # @param VoicePrintId: 声纹信息ID
2364
+ # @type VoicePrintId: String
2365
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2366
+ # @type RequestId: String
2367
+
2368
+ attr_accessor :VoicePrintId, :RequestId
2369
+
2370
+ def initialize(voiceprintid=nil, requestid=nil)
2371
+ @VoicePrintId = voiceprintid
2372
+ @RequestId = requestid
2373
+ end
2374
+
2375
+ def deserialize(params)
2376
+ @VoicePrintId = params['VoicePrintId']
2377
+ @RequestId = params['RequestId']
2378
+ end
2379
+ end
2380
+
1999
2381
  # 房间内用户信息
2000
2382
  class RoomUser < TencentCloud::Common::AbstractModel
2001
2383
  # @param RoomId: 房间id
@@ -2024,6 +2406,84 @@ module TencentCloud
2024
2406
  end
2025
2407
  end
2026
2408
 
2409
+ # 语音转文字参数
2410
+ class STTConfig < TencentCloud::Common::AbstractModel
2411
+ # @param Language: 语音转文字支持识别的语言,默认是"zh" 中文
2412
+
2413
+ # 可通过购买「AI智能识别时长包」解锁或领取包月套餐体验版解锁不同语言.
2414
+
2415
+ # 语音转文本不同套餐版本支持的语言如下:
2416
+
2417
+ # **基础版**:
2418
+ # - "zh": 中文(简体)
2419
+ # - "zh-TW": 中文(繁体)
2420
+ # - "en": 英语
2421
+
2422
+ # **标准版:**
2423
+ # - "8k_zh_large": 普方大模型引擎. 当前模型同时支持中文等语言的识别,模型参数量极大,语言模型性能增强,针对电话音频中各类场景、各类中文方言的识别准确率极大提升.
2424
+ # - "16k_zh_large": 普方英大模型引擎. 当前模型同时支持中文、英文、多种中文方言等语言的识别,模型参数量极大,语言模型性能增强,针对噪声大、回音大、人声小、人声远等低质量音频的识别准确率极大提升.
2425
+ # - "16k_multi_lang": 多语种大模型引擎. 当前模型同时支持英语、日语、韩语、阿拉伯语、菲律宾语、法语、印地语、印尼语、马来语、葡萄牙语、西班牙语、泰语、土耳其语、越南语、德语的识别,可实现15个语种的自动识别(句子/段落级别).
2426
+ # - "16k_zh_en": 中英大模型引擎. 当前模型同时支持中文、英语识别,模型参数量极大,语言模型性能增强,针对噪声大、回音大、人声小、人声远等低质量音频的识别准确率极大提升.
2427
+
2428
+ # **高级版:**
2429
+ # - "zh-dialect": 中国方言
2430
+ # - "zh-yue": 中国粤语
2431
+ # - "vi": 越南语
2432
+ # - "ja": 日语
2433
+ # - "ko": 韩语
2434
+ # - "id": 印度尼西亚语
2435
+ # - "th": 泰语
2436
+ # - "pt": 葡萄牙语
2437
+ # - "tr": 土耳其语
2438
+ # - "ar": 阿拉伯语
2439
+ # - "es": 西班牙语
2440
+ # - "hi": 印地语
2441
+ # - "fr": 法语
2442
+ # - "ms": 马来语
2443
+ # - "fil": 菲律宾语
2444
+ # - "de": 德语
2445
+ # - "it": 意大利语
2446
+ # - "ru": 俄语
2447
+ # - "sv": 瑞典语
2448
+ # - "da": 丹麦语
2449
+ # - "no": 挪威语
2450
+
2451
+ # **注意:**
2452
+ # 如果缺少满足您需求的语言,请联系我们技术人员。
2453
+ # @type Language: String
2454
+ # @param AlternativeLanguage: **发起模糊识别为高级版能力,默认按照高级版收费,仅支持填写基础版和高级版语言.**
2455
+ # 注意:不支持填写"zh-dialect"
2456
+ # @type AlternativeLanguage: Array
2457
+ # @param CustomParam: 自定义参数,联系后台使用
2458
+ # @type CustomParam: String
2459
+ # @param VadSilenceTime: 语音识别vad的时间,范围为240-2000,默认为1000,单位为ms。更小的值会让语音识别分句更快。
2460
+ # @type VadSilenceTime: Integer
2461
+ # @param HotWordList: 热词表:该参数用于提升识别准确率。 单个热词限制:"热词|权重",单个热词不超过30个字符(最多10个汉字),权重[1-11]或者100,如:“腾讯云|5” 或 “ASR|11”; 热词表限制:多个热词用英文逗号分割,最多支持128个热词,如:“腾讯云|10,语音识别|5,ASR|11”;
2462
+ # @type HotWordList: String
2463
+ # @param VadLevel: vad的远场人声抑制能力(不会对asr识别效果造成影响),范围为[0, 3],默认为0。推荐设置为2,有较好的远场人声抑制能力。
2464
+ # @type VadLevel: Integer
2465
+
2466
+ attr_accessor :Language, :AlternativeLanguage, :CustomParam, :VadSilenceTime, :HotWordList, :VadLevel
2467
+
2468
+ def initialize(language=nil, alternativelanguage=nil, customparam=nil, vadsilencetime=nil, hotwordlist=nil, vadlevel=nil)
2469
+ @Language = language
2470
+ @AlternativeLanguage = alternativelanguage
2471
+ @CustomParam = customparam
2472
+ @VadSilenceTime = vadsilencetime
2473
+ @HotWordList = hotwordlist
2474
+ @VadLevel = vadlevel
2475
+ end
2476
+
2477
+ def deserialize(params)
2478
+ @Language = params['Language']
2479
+ @AlternativeLanguage = params['AlternativeLanguage']
2480
+ @CustomParam = params['CustomParam']
2481
+ @VadSilenceTime = params['VadSilenceTime']
2482
+ @HotWordList = params['HotWordList']
2483
+ @VadLevel = params['VadLevel']
2484
+ end
2485
+ end
2486
+
2027
2487
  # 语音检测详情
2028
2488
  class ScanDetail < TencentCloud::Common::AbstractModel
2029
2489
  # @param Label: 违规场景,参照<a href="https://cloud.tencent.com/document/product/607/37622#Label_Value">Label</a>定义
@@ -2237,6 +2697,52 @@ module TencentCloud
2237
2697
  end
2238
2698
  end
2239
2699
 
2700
+ # 服务端控制AI对话机器人播报指定文本
2701
+ class ServerPushText < TencentCloud::Common::AbstractModel
2702
+ # @param Text: 服务端推送播报文本
2703
+ # @type Text: String
2704
+ # @param Interrupt: 是否允许该文本打断机器人说话
2705
+ # @type Interrupt: Boolean
2706
+ # @param StopAfterPlay: 播报完文本后,是否自动关闭对话任务
2707
+ # @type StopAfterPlay: Boolean
2708
+ # @param Audio: 服务端推送播报音频
2709
+ # 格式说明:音频必须为单声道,采样率必须跟对应TTS的采样率保持一致,编码为Base64字符串。
2710
+ # 输入规则:当提供Audio字段时,将不接受Text字段的输入。系统将直接播放Audio字段中的音频内容。
2711
+ # @type Audio: String
2712
+ # @param DropMode: 默认为0,仅在Interrupt为false时有效
2713
+ # - 0表示当前有交互发生时,会丢弃Interrupt为false的消息
2714
+ # - 1表示当前有交互发生时,不会丢弃Interrupt为false的消息,而是缓存下来,等待当前交互结束后,再去处理
2715
+
2716
+ # 注意:DropMode为1时,允许缓存多个消息,如果后续出现了打断,缓存的消息会被清空
2717
+ # @type DropMode: Integer
2718
+ # @param Priority: ServerPushText消息的优先级,0表示可被打断,1表示不会被打断。**目前仅支持传入0,如果需要传入1,请提工单联系我们添加权限。**
2719
+ # 注意:在接收到Priority=1的消息后,后续其他任何消息都会被忽略(包括Priority=1的消息),直到Priority=1的消息处理结束。该字段可与Interrupt、DropMode字段配合使用。
2720
+ # 例子:
2721
+ # - Priority=1、Interrupt=true,会打断现有交互,立刻播报,播报过程中不会被打断
2722
+ # - Priority=1、Interrupt=false、DropMode=1,会等待当前交互结束,再进行播报,播报过程中不会被打断
2723
+ # @type Priority: Integer
2724
+
2725
+ attr_accessor :Text, :Interrupt, :StopAfterPlay, :Audio, :DropMode, :Priority
2726
+
2727
+ def initialize(text=nil, interrupt=nil, stopafterplay=nil, audio=nil, dropmode=nil, priority=nil)
2728
+ @Text = text
2729
+ @Interrupt = interrupt
2730
+ @StopAfterPlay = stopafterplay
2731
+ @Audio = audio
2732
+ @DropMode = dropmode
2733
+ @Priority = priority
2734
+ end
2735
+
2736
+ def deserialize(params)
2737
+ @Text = params['Text']
2738
+ @Interrupt = params['Interrupt']
2739
+ @StopAfterPlay = params['StopAfterPlay']
2740
+ @Audio = params['Audio']
2741
+ @DropMode = params['DropMode']
2742
+ @Priority = params['Priority']
2743
+ end
2744
+ end
2745
+
2240
2746
  # 服务开关状态
2241
2747
  class ServiceStatus < TencentCloud::Common::AbstractModel
2242
2748
  # @param RealTimeSpeech: 实时语音服务开关状态
@@ -2291,6 +2797,77 @@ module TencentCloud
2291
2797
  end
2292
2798
  end
2293
2799
 
2800
+ # StartAIConversation请求参数结构体
2801
+ class StartAIConversationRequest < TencentCloud::Common::AbstractModel
2802
+ # @param SdkAppId: GME的SdkAppId和开启转录任务的房间使用的SdkAppId相同。
2803
+ # @type SdkAppId: Integer
2804
+ # @param RoomId: GME的RoomId表示开启对话任务的房间号。
2805
+ # @type RoomId: String
2806
+ # @param AgentConfig: 机器人参数
2807
+ # @type AgentConfig: :class:`Tencentcloud::Gme.v20180711.models.AgentConfig`
2808
+ # @param STTConfig: 语音识别配置。
2809
+ # @type STTConfig: :class:`Tencentcloud::Gme.v20180711.models.STTConfig`
2810
+ # @param LLMConfig: LLM配置。需符合openai规范,为JSON字符串,示例如下:
2811
+ # <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>
2812
+ # @type LLMConfig: String
2813
+ # @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>",
2814
+ # @type TTSConfig: String
2815
+ # @param AvatarConfig: 数字人配置,为JSON字符串。**数字人配置需要提工单加白后才能使用**
2816
+ # @type AvatarConfig: String
2817
+ # @param ExperimentalParams: 实验性参数,联系后台使用
2818
+ # @type ExperimentalParams: String
2819
+
2820
+ attr_accessor :SdkAppId, :RoomId, :AgentConfig, :STTConfig, :LLMConfig, :TTSConfig, :AvatarConfig, :ExperimentalParams
2821
+
2822
+ def initialize(sdkappid=nil, roomid=nil, agentconfig=nil, sttconfig=nil, llmconfig=nil, ttsconfig=nil, avatarconfig=nil, experimentalparams=nil)
2823
+ @SdkAppId = sdkappid
2824
+ @RoomId = roomid
2825
+ @AgentConfig = agentconfig
2826
+ @STTConfig = sttconfig
2827
+ @LLMConfig = llmconfig
2828
+ @TTSConfig = ttsconfig
2829
+ @AvatarConfig = avatarconfig
2830
+ @ExperimentalParams = experimentalparams
2831
+ end
2832
+
2833
+ def deserialize(params)
2834
+ @SdkAppId = params['SdkAppId']
2835
+ @RoomId = params['RoomId']
2836
+ unless params['AgentConfig'].nil?
2837
+ @AgentConfig = AgentConfig.new
2838
+ @AgentConfig.deserialize(params['AgentConfig'])
2839
+ end
2840
+ unless params['STTConfig'].nil?
2841
+ @STTConfig = STTConfig.new
2842
+ @STTConfig.deserialize(params['STTConfig'])
2843
+ end
2844
+ @LLMConfig = params['LLMConfig']
2845
+ @TTSConfig = params['TTSConfig']
2846
+ @AvatarConfig = params['AvatarConfig']
2847
+ @ExperimentalParams = params['ExperimentalParams']
2848
+ end
2849
+ end
2850
+
2851
+ # StartAIConversation返回参数结构体
2852
+ class StartAIConversationResponse < TencentCloud::Common::AbstractModel
2853
+ # @param TaskId: 用于唯一标识对话任务。
2854
+ # @type TaskId: String
2855
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2856
+ # @type RequestId: String
2857
+
2858
+ attr_accessor :TaskId, :RequestId
2859
+
2860
+ def initialize(taskid=nil, requestid=nil)
2861
+ @TaskId = taskid
2862
+ @RequestId = requestid
2863
+ end
2864
+
2865
+ def deserialize(params)
2866
+ @TaskId = params['TaskId']
2867
+ @RequestId = params['RequestId']
2868
+ end
2869
+ end
2870
+
2294
2871
  # StartRecord请求参数结构体
2295
2872
  class StartRecordRequest < TencentCloud::Common::AbstractModel
2296
2873
  # @param BizId: 应用ID。
@@ -2378,6 +2955,38 @@ module TencentCloud
2378
2955
  end
2379
2956
  end
2380
2957
 
2958
+ # StopAIConversation请求参数结构体
2959
+ class StopAIConversationRequest < TencentCloud::Common::AbstractModel
2960
+ # @param TaskId: 唯一标识任务。
2961
+ # @type TaskId: String
2962
+
2963
+ attr_accessor :TaskId
2964
+
2965
+ def initialize(taskid=nil)
2966
+ @TaskId = taskid
2967
+ end
2968
+
2969
+ def deserialize(params)
2970
+ @TaskId = params['TaskId']
2971
+ end
2972
+ end
2973
+
2974
+ # StopAIConversation返回参数结构体
2975
+ class StopAIConversationResponse < TencentCloud::Common::AbstractModel
2976
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2977
+ # @type RequestId: String
2978
+
2979
+ attr_accessor :RequestId
2980
+
2981
+ def initialize(requestid=nil)
2982
+ @RequestId = requestid
2983
+ end
2984
+
2985
+ def deserialize(params)
2986
+ @RequestId = params['RequestId']
2987
+ end
2988
+ end
2989
+
2381
2990
  # StopRecord请求参数结构体
2382
2991
  class StopRecordRequest < TencentCloud::Common::AbstractModel
2383
2992
  # @param TaskId: 任务ID。
@@ -2500,6 +3109,90 @@ module TencentCloud
2500
3109
  end
2501
3110
  end
2502
3111
 
3112
+ # 断句配置
3113
+ class TurnDetection < TencentCloud::Common::AbstractModel
3114
+ # @param SemanticEagerness: TurnDetectionMode为3时生效,语义断句的灵敏程度
3115
+
3116
+
3117
+ # 功能简介:根据用户所说的话来判断其已完成发言来分割音频
3118
+
3119
+
3120
+ # 可选: "low" | "medium" | "high" | "auto"
3121
+
3122
+
3123
+ # auto 是默认值,与 medium 相同。
3124
+ # low 将让用户有足够的时间说话。
3125
+ # high 将尽快对音频进行分块。
3126
+
3127
+
3128
+ # 如果您希望模型在对话模式下更频繁地响应,可以将 SemanticEagerness 设置为 high
3129
+ # 如果您希望在用户停顿时,AI能够等待片刻,可以将 SemanticEagerness 设置为 low
3130
+ # 无论什么模式,最终都会分割送个大模型进行回复
3131
+ # @type SemanticEagerness: String
3132
+
3133
+ attr_accessor :SemanticEagerness
3134
+
3135
+ def initialize(semanticeagerness=nil)
3136
+ @SemanticEagerness = semanticeagerness
3137
+ end
3138
+
3139
+ def deserialize(params)
3140
+ @SemanticEagerness = params['SemanticEagerness']
3141
+ end
3142
+ end
3143
+
3144
+ # UpdateAIConversation请求参数结构体
3145
+ class UpdateAIConversationRequest < TencentCloud::Common::AbstractModel
3146
+ # @param TaskId: 唯一标识一个任务
3147
+ # @type TaskId: String
3148
+ # @param WelcomeMessage: 不填写则不进行更新,机器人的欢迎语
3149
+ # @type WelcomeMessage: String
3150
+ # @param InterruptMode: 不填写则不进行更新。智能打断模式,0表示服务端自动打断,1表示服务端不打断,由端上发送打断信令进行打断
3151
+ # @type InterruptMode: Integer
3152
+ # @param InterruptSpeechDuration: 不填写则不进行更新。InterruptMode为0时使用,单位为毫秒,默认为500ms。表示服务端检测到持续InterruptSpeechDuration毫秒的人声则进行打断
3153
+ # @type InterruptSpeechDuration: Integer
3154
+ # @param LLMConfig: 不填写则不进行更新,LLM配置,详情见StartAIConversation接口
3155
+ # @type LLMConfig: String
3156
+ # @param TTSConfig: 不填写则不进行更新,TTS配置,详情见StartAIConversation接口
3157
+ # @type TTSConfig: String
3158
+
3159
+ attr_accessor :TaskId, :WelcomeMessage, :InterruptMode, :InterruptSpeechDuration, :LLMConfig, :TTSConfig
3160
+
3161
+ def initialize(taskid=nil, welcomemessage=nil, interruptmode=nil, interruptspeechduration=nil, llmconfig=nil, ttsconfig=nil)
3162
+ @TaskId = taskid
3163
+ @WelcomeMessage = welcomemessage
3164
+ @InterruptMode = interruptmode
3165
+ @InterruptSpeechDuration = interruptspeechduration
3166
+ @LLMConfig = llmconfig
3167
+ @TTSConfig = ttsconfig
3168
+ end
3169
+
3170
+ def deserialize(params)
3171
+ @TaskId = params['TaskId']
3172
+ @WelcomeMessage = params['WelcomeMessage']
3173
+ @InterruptMode = params['InterruptMode']
3174
+ @InterruptSpeechDuration = params['InterruptSpeechDuration']
3175
+ @LLMConfig = params['LLMConfig']
3176
+ @TTSConfig = params['TTSConfig']
3177
+ end
3178
+ end
3179
+
3180
+ # UpdateAIConversation返回参数结构体
3181
+ class UpdateAIConversationResponse < TencentCloud::Common::AbstractModel
3182
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3183
+ # @type RequestId: String
3184
+
3185
+ attr_accessor :RequestId
3186
+
3187
+ def initialize(requestid=nil)
3188
+ @RequestId = requestid
3189
+ end
3190
+
3191
+ def deserialize(params)
3192
+ @RequestId = params['RequestId']
3193
+ end
3194
+ end
3195
+
2503
3196
  # UpdateScanRooms请求参数结构体
2504
3197
  class UpdateScanRoomsRequest < TencentCloud::Common::AbstractModel
2505
3198
  # @param BizId: 应用ID
@@ -2588,6 +3281,54 @@ module TencentCloud
2588
3281
  end
2589
3282
  end
2590
3283
 
3284
+ # UpdateVoicePrint请求参数结构体
3285
+ class UpdateVoicePrintRequest < TencentCloud::Common::AbstractModel
3286
+ # @param VoicePrintId: 声纹信息ID
3287
+ # @type VoicePrintId: String
3288
+ # @param ReqTimestamp: 毫秒时间戳
3289
+ # @type ReqTimestamp: Integer
3290
+ # @param AudioFormat: 音频格式,目前只支持0,代表wav
3291
+ # @type AudioFormat: Integer
3292
+ # @param Audio: 整个wav音频文件的base64字符串,其中wav文件限定为16k采样率, 16bit位深, 单声道, 8到18秒音频时长,有效音频不小于6秒(不能有太多静音段),编码数据大小不超过2M
3293
+ # @type Audio: String
3294
+ # @param AudioMetaInfo: 和声纹绑定的MetaInfo,长度最大不超过512
3295
+ # @type AudioMetaInfo: String
3296
+
3297
+ attr_accessor :VoicePrintId, :ReqTimestamp, :AudioFormat, :Audio, :AudioMetaInfo
3298
+
3299
+ def initialize(voiceprintid=nil, reqtimestamp=nil, audioformat=nil, audio=nil, audiometainfo=nil)
3300
+ @VoicePrintId = voiceprintid
3301
+ @ReqTimestamp = reqtimestamp
3302
+ @AudioFormat = audioformat
3303
+ @Audio = audio
3304
+ @AudioMetaInfo = audiometainfo
3305
+ end
3306
+
3307
+ def deserialize(params)
3308
+ @VoicePrintId = params['VoicePrintId']
3309
+ @ReqTimestamp = params['ReqTimestamp']
3310
+ @AudioFormat = params['AudioFormat']
3311
+ @Audio = params['Audio']
3312
+ @AudioMetaInfo = params['AudioMetaInfo']
3313
+ end
3314
+ end
3315
+
3316
+ # UpdateVoicePrint返回参数结构体
3317
+ class UpdateVoicePrintResponse < TencentCloud::Common::AbstractModel
3318
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3319
+ # @type RequestId: String
3320
+
3321
+ attr_accessor :RequestId
3322
+
3323
+ def initialize(requestid=nil)
3324
+ @RequestId = requestid
3325
+ end
3326
+
3327
+ def deserialize(params)
3328
+ @RequestId = params['RequestId']
3329
+ end
3330
+ end
3331
+
2591
3332
  # 用户麦克风状态
2592
3333
  class UserMicStatus < TencentCloud::Common::AbstractModel
2593
3334
  # @param EnableMic: 开麦状态。1表示关闭麦克风,2表示打开麦克风。
@@ -2691,6 +3432,70 @@ module TencentCloud
2691
3432
  end
2692
3433
  end
2693
3434
 
3435
+ # 声纹配置参数
3436
+ class VoicePrint < TencentCloud::Common::AbstractModel
3437
+ # @param Mode: 默认为0,表示不启用声纹。1表示启用声纹,此时需要填写voiceprint id。
3438
+ # @type Mode: Integer
3439
+ # @param IdList: VoicePrint Mode为1时需要填写,目前仅支持填写一个声纹id
3440
+ # @type IdList: Array
3441
+
3442
+ attr_accessor :Mode, :IdList
3443
+
3444
+ def initialize(mode=nil, idlist=nil)
3445
+ @Mode = mode
3446
+ @IdList = idlist
3447
+ end
3448
+
3449
+ def deserialize(params)
3450
+ @Mode = params['Mode']
3451
+ @IdList = params['IdList']
3452
+ end
3453
+ end
3454
+
3455
+ # 声纹查询数据
3456
+ class VoicePrintInfo < TencentCloud::Common::AbstractModel
3457
+ # @param VoicePrintId: 声纹ID
3458
+ # @type VoicePrintId: String
3459
+ # @param AppId: 应用id
3460
+ # @type AppId: Integer
3461
+ # @param VoicePrintMetaInfo: 和声纹绑定的MetaInfo
3462
+ # @type VoicePrintMetaInfo: String
3463
+ # @param CreateTime: 创建时间
3464
+ # @type CreateTime: String
3465
+ # @param UpdateTime: 更新时间
3466
+ # @type UpdateTime: String
3467
+ # @param AudioFormat: 音频格式,当前只有0(代表wav)
3468
+ # @type AudioFormat: Integer
3469
+ # @param AudioName: 音频名称
3470
+ # @type AudioName: String
3471
+ # @param ReqTimestamp: 请求毫秒时间戳
3472
+ # @type ReqTimestamp: Integer
3473
+
3474
+ attr_accessor :VoicePrintId, :AppId, :VoicePrintMetaInfo, :CreateTime, :UpdateTime, :AudioFormat, :AudioName, :ReqTimestamp
3475
+
3476
+ def initialize(voiceprintid=nil, appid=nil, voiceprintmetainfo=nil, createtime=nil, updatetime=nil, audioformat=nil, audioname=nil, reqtimestamp=nil)
3477
+ @VoicePrintId = voiceprintid
3478
+ @AppId = appid
3479
+ @VoicePrintMetaInfo = voiceprintmetainfo
3480
+ @CreateTime = createtime
3481
+ @UpdateTime = updatetime
3482
+ @AudioFormat = audioformat
3483
+ @AudioName = audioname
3484
+ @ReqTimestamp = reqtimestamp
3485
+ end
3486
+
3487
+ def deserialize(params)
3488
+ @VoicePrintId = params['VoicePrintId']
3489
+ @AppId = params['AppId']
3490
+ @VoicePrintMetaInfo = params['VoicePrintMetaInfo']
3491
+ @CreateTime = params['CreateTime']
3492
+ @UpdateTime = params['UpdateTime']
3493
+ @AudioFormat = params['AudioFormat']
3494
+ @AudioName = params['AudioName']
3495
+ @ReqTimestamp = params['ReqTimestamp']
3496
+ end
3497
+ end
3498
+
2694
3499
  end
2695
3500
  end
2696
3501
  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.1139
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-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -34,8 +34,8 @@ extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
36
  - lib/tencentcloud-sdk-gme.rb
37
- - lib/v20180711/client.rb
38
37
  - lib/v20180711/models.rb
38
+ - lib/v20180711/client.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: