tencentcloud-sdk-trtc 3.0.1189 → 3.0.1195

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 +26 -23
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b0905d2bb184f53d5d7df396b5bd6a35fac34692
4
- data.tar.gz: 6a0525795bee558ee4d50024406e47eab606ec2c
3
+ metadata.gz: db3edb2f191cfa5a07e8748cbaf85bcef9962b7e
4
+ data.tar.gz: 2243858671752ce25e3786ebc202ecac4fd6d2e0
5
5
  SHA512:
6
- metadata.gz: 510509ae8e7db2da7bb3f9a20bf188392c683318ce23be94b567f59045c0d80ba08e967dc22222b2b395a2e56c63ca4ca02fa06caacfc1eea7a436fe6345059d
7
- data.tar.gz: b939f46f8add354ba487f2146899ca59791b775082c6a887f8c3a11a864c5d6b4d64119553ba84b9aac2ffa414f866033a965d059a37f6fa4d86335e95772e1d
6
+ metadata.gz: df76055cd00067bf8fbf427c0ec362ac4dedefe3c085f63060e7d894d18304df31d6a317de0ad79f11d7073a7e08a1b4d0ebe88a97e0381c057f0343b8405ee4
7
+ data.tar.gz: 66d5e0a5e028fd8a088a60a0d853d0227408bc461bb31121d6e651e3b6b330fec86f68b1e25203dc41a949d556195e38135b27489c1e1d1aa00fb55ab23713ea
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1189
1
+ 3.0.1195
@@ -293,17 +293,21 @@ module TencentCloud
293
293
  # - 16000
294
294
  # - 24000
295
295
  # @type SampleRate: Integer
296
+ # @param Bitrate: MP3 比特率 (kbps),仅对 MP3 格式生效, 可以选: `64`, `128`, `192`, `256` , 默认: `128`
297
+ # @type Bitrate: Integer
296
298
 
297
- attr_accessor :Format, :SampleRate
299
+ attr_accessor :Format, :SampleRate, :Bitrate
298
300
 
299
- def initialize(format=nil, samplerate=nil)
301
+ def initialize(format=nil, samplerate=nil, bitrate=nil)
300
302
  @Format = format
301
303
  @SampleRate = samplerate
304
+ @Bitrate = bitrate
302
305
  end
303
306
 
304
307
  def deserialize(params)
305
308
  @Format = params['Format']
306
309
  @SampleRate = params['SampleRate']
310
+ @Bitrate = params['Bitrate']
307
311
  end
308
312
  end
309
313
 
@@ -4786,10 +4790,10 @@ module TencentCloud
4786
4790
 
4787
4791
  attr_accessor :Language, :AlternativeLanguage, :Model, :TranslationLanguage, :HotWordList, :VadSilenceTime, :VadLevel
4788
4792
  extend Gem::Deprecate
4789
- deprecate :Model, :none, 2025, 12
4790
- deprecate :Model=, :none, 2025, 12
4791
- deprecate :TranslationLanguage, :none, 2025, 12
4792
- deprecate :TranslationLanguage=, :none, 2025, 12
4793
+ deprecate :Model, :none, 2026, 1
4794
+ deprecate :Model=, :none, 2026, 1
4795
+ deprecate :TranslationLanguage, :none, 2026, 1
4796
+ deprecate :TranslationLanguage=, :none, 2026, 1
4793
4797
 
4794
4798
  def initialize(language=nil, alternativelanguage=nil, model=nil, translationlanguage=nil, hotwordlist=nil, vadsilencetime=nil, vadlevel=nil)
4795
4799
  @Language = language
@@ -5499,10 +5503,9 @@ module TencentCloud
5499
5503
  # @type RoomIdType: Integer
5500
5504
  # @param STTConfig: 语音识别配置。
5501
5505
  # @type STTConfig: :class:`Tencentcloud::Trtc.v20190722.models.STTConfig`
5502
- # @param LLMConfig: LLM配置。需符合openai规范,为JSON字符串,示例如下:
5503
- # <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; "History": 10, // Integer 选填,设置 LLM 的上下文轮次,默认值为0,最大值50<br> &emsp; "HistoryMode": 1, // Integer 选填,1表示LLM上下文中的内容会和播放音频做同步,没有播放的音频对应的文本不会出现在上下文中。0表示不会做同步,默认值为0<br> &emsp; "Streaming": true // Boolean 非必填,指定是否使用流式传输<br> &emsp;} </pre>
5506
+ # @param LLMConfig: 必填参数,LLM配置。需符合openai规范,为JSON字符串,示例如下:<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; "History": 10, // Integer 选填,设置 LLM 的上下文轮次,默认值为0,最大值50<br> &emsp; "HistoryMode": 1, // Integer 选填,1表示LLM上下文中的内容会和播放音频做同步,没有播放的音频对应的文本不会出现在上下文中。0表示不会做同步,默认值为0<br> &emsp; "Streaming": true // Boolean 非必填,指定是否使用流式传输<br> &emsp;} </pre>
5504
5507
  # @type LLMConfig: String
5505
- # @param TTSConfig: 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,包括标准音色与精品音色,精品音色拟真度更高,价格不同于标准音色,请参见<a href="https://cloud.tencent.com/document/product/1073/34112">语音合成计费概述</a>。完整的音色 ID 列表请参见<a href="https://cloud.tencent.com/document/product/1073/92668#55924b56-1a73-4663-a7a1-a8dd82d6e823">语音合成音色列表</a>。<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等。 参数值与实际语速转换,可参考 <a href="https://sdk-1300466766.cos.ap-shanghai.myqcloud.com/sample/speed_sample.tar.gz">语速转换</a><br> &emsp; "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>
5508
+ # @param TTSConfig: 必填参数,TTS配置,详见 [TTS配置说明](https://cloud.tencent.com/document/product/647/115414 ), 为JSON字符串: TRTC TTS的配置如下:```{ "TTSType": "flow", // 【必填】固定为此值 "VoiceId": "v-female-R2s4N9qJ", // 【必填】精品音色 ID /克隆音色 ID, 可选择不同音色, ID 库参考下方音色列表 "Model": "flow_01_turbo", // 【必填】当前默认的 TTS 模型版本(对应 Flash 版本) "Speed": 1.0, //【可选】调节语速 范围 [0.5-2.0],默认 1.0; 取值越大,语速越快 "Volume": 1.0, // 【可选】调节音量 [0, 10] 默认值 1.0; 取值越大,音量越高 "Pitch": 0, // 【可选】调节语调 [-12,12],默认值为 0,其中 0 为原音色输出。 "Language": "zh" //【可选】建议填写,目前支持填写中文:zh 英文:en 粤语方言:yue; 参数参考:(ISO 639-1) }```
5506
5509
  # @type TTSConfig: String
5507
5510
  # @param AvatarConfig: 数字人配置,为JSON字符串。**数字人配置需要提工单加白后才能使用**
5508
5511
  # @type AvatarConfig: String
@@ -5920,12 +5923,12 @@ module TencentCloud
5920
5923
 
5921
5924
  attr_accessor :SdkAppId, :RoomId, :RoomIdType, :UserId, :UserSig, :StreamUrl, :PrivateMapKey, :VideoEncodeParams, :AudioEncodeParams, :SourceUrl, :SeekSecond, :AutoPush, :RepeatNum, :MaxDuration, :Volume, :EnableProgress, :Tempo
5922
5925
  extend Gem::Deprecate
5923
- deprecate :VideoEncodeParams, :none, 2025, 12
5924
- deprecate :VideoEncodeParams=, :none, 2025, 12
5925
- deprecate :AudioEncodeParams, :none, 2025, 12
5926
- deprecate :AudioEncodeParams=, :none, 2025, 12
5927
- deprecate :SourceUrl, :none, 2025, 12
5928
- deprecate :SourceUrl=, :none, 2025, 12
5926
+ deprecate :VideoEncodeParams, :none, 2026, 1
5927
+ deprecate :VideoEncodeParams=, :none, 2026, 1
5928
+ deprecate :AudioEncodeParams, :none, 2026, 1
5929
+ deprecate :AudioEncodeParams=, :none, 2026, 1
5930
+ deprecate :SourceUrl, :none, 2026, 1
5931
+ deprecate :SourceUrl=, :none, 2026, 1
5929
5932
 
5930
5933
  def initialize(sdkappid=nil, roomid=nil, roomidtype=nil, userid=nil, usersig=nil, streamurl=nil, privatemapkey=nil, videoencodeparams=nil, audioencodeparams=nil, sourceurl=nil, seeksecond=nil, autopush=nil, repeatnum=nil, maxduration=nil, volume=nil, enableprogress=nil, tempo=nil)
5931
5934
  @SdkAppId = sdkappid
@@ -6633,8 +6636,8 @@ module TencentCloud
6633
6636
 
6634
6637
  attr_accessor :Text, :Voice, :SdkAppId, :AudioFormat, :APIKey, :Model, :Language
6635
6638
  extend Gem::Deprecate
6636
- deprecate :APIKey, :none, 2025, 12
6637
- deprecate :APIKey=, :none, 2025, 12
6639
+ deprecate :APIKey, :none, 2026, 1
6640
+ deprecate :APIKey=, :none, 2026, 1
6638
6641
 
6639
6642
  def initialize(text=nil, voice=nil, sdkappid=nil, audioformat=nil, apikey=nil, model=nil, language=nil)
6640
6643
  @Text = text
@@ -6702,8 +6705,8 @@ module TencentCloud
6702
6705
 
6703
6706
  attr_accessor :Text, :Voice, :SdkAppId, :AudioFormat, :APIKey, :Model, :Language
6704
6707
  extend Gem::Deprecate
6705
- deprecate :APIKey, :none, 2025, 12
6706
- deprecate :APIKey=, :none, 2025, 12
6708
+ deprecate :APIKey, :none, 2026, 1
6709
+ deprecate :APIKey=, :none, 2026, 1
6707
6710
 
6708
6711
  def initialize(text=nil, voice=nil, sdkappid=nil, audioformat=nil, apikey=nil, model=nil, language=nil)
6709
6712
  @Text = text
@@ -6795,10 +6798,10 @@ module TencentCloud
6795
6798
 
6796
6799
  attr_accessor :UserId, :UserSig, :IMAdminUserId, :IMAdminUserSig, :MaxIdleTime, :TranscriptionMode, :TargetUserId, :TargetUserIdList, :VoicePrint, :TurnDetection
6797
6800
  extend Gem::Deprecate
6798
- deprecate :IMAdminUserId, :none, 2025, 12
6799
- deprecate :IMAdminUserId=, :none, 2025, 12
6800
- deprecate :IMAdminUserSig, :none, 2025, 12
6801
- deprecate :IMAdminUserSig=, :none, 2025, 12
6801
+ deprecate :IMAdminUserId, :none, 2026, 1
6802
+ deprecate :IMAdminUserId=, :none, 2026, 1
6803
+ deprecate :IMAdminUserSig, :none, 2026, 1
6804
+ deprecate :IMAdminUserSig=, :none, 2026, 1
6802
6805
 
6803
6806
  def initialize(userid=nil, usersig=nil, imadminuserid=nil, imadminusersig=nil, maxidletime=nil, transcriptionmode=nil, targetuserid=nil, targetuseridlist=nil, voiceprint=nil, turndetection=nil)
6804
6807
  @UserId = userid
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.1189
4
+ version: 3.0.1195
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-12-24 00:00:00.000000000 Z
11
+ date: 2026-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common