tencentcloud-sdk-trtc 3.0.1064 → 3.0.1065

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20190722/models.rb +21 -5
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2ad38c3303a6ddc79bb66f92479e7cc7af5e6b61
4
- data.tar.gz: a2b3e4b84146ade62f9ca2a5368e57b4efda8bef
3
+ metadata.gz: 4c9ac4c108b7fdf1831d90ab4c29cc0850a1b3ab
4
+ data.tar.gz: 88d0108187dee07edc508aa0880d365915a2c929
5
5
  SHA512:
6
- metadata.gz: 966a20cb595c766f59de81e99dc3c6749f37a3a66c6e2ac69bdf397ee82bfe07e7bef9f5a527f5bdea44e6dbafd311deec5e87fad63dc03dd982e92051ed6cbf
7
- data.tar.gz: e781b2299873eb6164d74ee8db800c007e5ae66877cb7f0cf9567d130aa9a22304b13693e8a8c2c9fc54a20a1f40a6614a952a5070e00d605e66a374fc43da4a
6
+ metadata.gz: 6ff5014ab567560a8ced834e1d46fbf23ce943939fbd7b918fee7fff4fc9030687ba509fa8f48935e36d6ecc275a222ef7b0ed298507848924390b3c93562e0e
7
+ data.tar.gz: 28a2188dc12d253ec44000ac469c984ea085c83117761e87ff093f382ba028ca1a7ae574f28d6d9a271a1847aebde4810704aec39bf52a0f4fd2ce047c207afb
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1064
1
+ 3.0.1065
@@ -4418,17 +4418,31 @@ module TencentCloud
4418
4418
  # @param StopAfterPlay: 播报完文本后,是否自动关闭对话任务
4419
4419
  # @type StopAfterPlay: Boolean
4420
4420
  # @param Audio: 服务端推送播报音频
4421
- # 格式说明:音频以16KHz采样率的单声道格式提供,编码为Base64字符串。
4421
+ # 格式说明:音频必须为单声道,采样率必须跟对应TTS的采样率保持一致,编码为Base64字符串。
4422
4422
  # 输入规则:当提供Audio字段时,将不接受Text字段的输入。系统将直接播放Audio字段中的音频内容。
4423
4423
  # @type Audio: String
4424
-
4425
- attr_accessor :Text, :Interrupt, :StopAfterPlay, :Audio
4426
-
4427
- def initialize(text=nil, interrupt=nil, stopafterplay=nil, audio=nil)
4424
+ # @param DropMode: 默认为0,仅在Interrupt为false时有效
4425
+ # - 0表示当前有交互发生时,会丢弃Interrupt为false的消息
4426
+ # - 1表示当前有交互发生时,不会丢弃Interrupt为false的消息,而是缓存下来,等待当前交互结束后,再去处理
4427
+
4428
+ # 注意:DropMode为1时,允许缓存多个消息,如果后续出现了打断,缓存的消息会被清空
4429
+ # @type DropMode: Integer
4430
+ # @param Priority: ServerPushText消息的优先级,0表示可被打断,1表示不会被打断。**目前仅支持传入0,如果需要传入1,请提工单联系我们添加权限。**
4431
+ # 注意:在接收到Priority=1的消息后,后续其他任何消息都会被忽略(包括Priority=1的消息),直到Priority=1的消息处理结束。该字段可与Interrupt、DropMode字段配合使用。
4432
+ # 例子:
4433
+ # - Priority=1、Interrupt=true,会打断现有交互,立刻播报,播报过程中不会被打断
4434
+ # - Priority=1、Interrupt=false、DropMode=1,会等待当前交互结束,再进行播报,播报过程中不会被打断
4435
+ # @type Priority: Integer
4436
+
4437
+ attr_accessor :Text, :Interrupt, :StopAfterPlay, :Audio, :DropMode, :Priority
4438
+
4439
+ def initialize(text=nil, interrupt=nil, stopafterplay=nil, audio=nil, dropmode=nil, priority=nil)
4428
4440
  @Text = text
4429
4441
  @Interrupt = interrupt
4430
4442
  @StopAfterPlay = stopafterplay
4431
4443
  @Audio = audio
4444
+ @DropMode = dropmode
4445
+ @Priority = priority
4432
4446
  end
4433
4447
 
4434
4448
  def deserialize(params)
@@ -4436,6 +4450,8 @@ module TencentCloud
4436
4450
  @Interrupt = params['Interrupt']
4437
4451
  @StopAfterPlay = params['StopAfterPlay']
4438
4452
  @Audio = params['Audio']
4453
+ @DropMode = params['DropMode']
4454
+ @Priority = params['Priority']
4439
4455
  end
4440
4456
  end
4441
4457
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-trtc
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1064
4
+ version: 3.0.1065
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-05-20 00:00:00.000000000 Z
11
+ date: 2025-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common